LLVMFuzzerTestOneInput:
  143|  26.5k|{
  144|  26.5k|   const std::string_view input{reinterpret_cast<const char*>(Data), Size};
  145|       |
  146|       |   // Raw bytes: the batch split, the syntax check, and the envelope read.
  147|  26.5k|   {
  148|  26.5k|      const auto buf = exact_buffer(input);
  149|  26.5k|      drive({buf.data(), buf.size()});
  150|  26.5k|   }
  151|       |
  152|  26.5k|   if (Size < 1) {
  ------------------
  |  Branch (152:8): [True: 0, False: 26.5k]
  ------------------
  153|      0|      return 0;
  154|      0|   }
  155|       |
  156|       |   // Wrapped: the input becomes the params of an envelope that is otherwise well formed, so the
  157|       |   // params reader is reached even when the fuzzer has not yet learned the envelope's shape. The
  158|       |   // first byte picks the method, since which one is registered decides what the params must parse
  159|       |   // as, and a params reader is only interesting once it has a destination type.
  160|       |   // "" is the root method, which reads the whole registered object in one document -- every nested
  161|       |   // struct, container, optional and variant at once, and the deepest reader nesting on offer.
  162|  26.5k|   static constexpr std::string_view methods[] = {
  163|  26.5k|      "",        "value", "name",     "position", "position/x", "inner",   "series", "table", "maybe", "measure",
  164|  26.5k|      "doubled", "greet", "midpoint", "total",    "reset",      "counter", "scale",  "bump",  "shift", "absent"};
  165|  26.5k|   const std::string_view method = methods[Data[0] % (sizeof(methods) / sizeof(methods[0]))];
  166|  26.5k|   const std::string_view params = input.substr(1);
  167|       |
  168|  26.5k|   {
  169|  26.5k|      std::string request;
  170|  26.5k|      request += R"({"jsonrpc":"2.0","method":")";
  171|  26.5k|      request += method;
  172|  26.5k|      request += R"(","params":)";
  173|  26.5k|      request += params;
  174|  26.5k|      request += R"(,"id":1})";
  175|       |
  176|  26.5k|      const auto buf = exact_buffer(request);
  177|  26.5k|      drive({buf.data(), buf.size()});
  178|  26.5k|   }
  179|       |
  180|       |   // The same envelope inside a batch, which takes a different path: the array is split into raw
  181|       |   // views first and each element is read on its own.
  182|  26.5k|   {
  183|  26.5k|      std::string request;
  184|  26.5k|      request += R"([{"jsonrpc":"2.0","method":")";
  185|  26.5k|      request += method;
  186|  26.5k|      request += R"(","params":)";
  187|  26.5k|      request += params;
  188|  26.5k|      request += R"(,"id":1},{"jsonrpc":"2.0","method":")";
  189|  26.5k|      request += method;
  190|  26.5k|      request += R"("}])"; // second element is a notification, so it takes the no-response path
  191|       |
  192|  26.5k|      const auto buf = exact_buffer(request);
  193|  26.5k|      drive({buf.data(), buf.size()});
  194|  26.5k|   }
  195|       |
  196|  26.5k|   return 0;
  197|  26.5k|}
jsonrpc_registry.cpp:_ZN12_GLOBAL__N_112exact_bufferENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  111|   155k|   {
  112|   155k|      std::vector<char> buf(bytes.size());
  113|   155k|      if (!bytes.empty()) {
  ------------------
  |  Branch (113:11): [True: 155k, False: 0]
  ------------------
  114|   155k|         std::memcpy(buf.data(), bytes.data(), bytes.size());
  115|   155k|      }
  116|   155k|      return buf;
  117|   155k|   }
jsonrpc_registry.cpp:_ZN12_GLOBAL__N_15driveENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  120|  79.7k|   {
  121|  79.7k|      glz::registry<glz::opts{}, glz::JSONRPC> registry;
  122|  79.7k|      fuzz_api api{};
  123|  79.7k|      jsonrpc_fuzz::member_api members{};
  124|       |      // members first, so the last registration -- and therefore the root endpoint -- is the wider
  125|       |      // of the two objects. Root reads the whole object in one document, so it should be the one
  126|       |      // with the nested struct, containers, optional and variant in it.
  127|  79.7k|      registry.on(members);
  128|  79.7k|      registry.on(api);
  129|       |
  130|  79.7k|      const auto response = registry.call(request);
  131|  79.7k|      if (!response.empty()) {
  ------------------
  |  Branch (131:11): [True: 75.9k, False: 3.87k]
  ------------------
  132|       |         // The response is JSON the registry itself produced, so reading it back checks that what
  133|       |         // goes out is well formed even when what came in was not.
  134|  75.9k|         const auto buf = exact_buffer(response);
  135|  75.9k|         glz::generic parsed{};
  136|  75.9k|         [[maybe_unused]] auto ec =
  137|  75.9k|            glz::read<glz::opts{.null_terminated = false}>(parsed, std::string_view{buf.data(), buf.size()});
  138|  75.9k|      }
  139|  79.7k|   }
_ZNK12jsonrpc_fuzz8fuzz_api7doubledMUliE_clEi:
   66|  1.24k|      std::function<int32_t(int32_t)> doubled = [](int32_t v) { return int32_t(uint32_t(v) * 2u); };
_ZNK12jsonrpc_fuzz8fuzz_api5greetMUlRKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEE_clESA_:
   67|  2.98k|      std::function<std::string(const std::string&)> greet = [](const std::string& who) { return "hi " + who; };
_ZNK12jsonrpc_fuzz8fuzz_api8midpointMUlRKNS_5pointEE_clES4_:
   68|  1.21k|      std::function<point(const point&)> midpoint = [](const point& p) -> point { return {p.x / 2, p.y / 2}; };
_ZNK12jsonrpc_fuzz8fuzz_api5totalMUlRNSt3__16vectorIdNS2_9allocatorIdEEEEE_clES7_:
   69|  4.28k|      std::function<double(std::vector<double>&)> total = [](std::vector<double>& v) {
   70|  4.28k|         double sum{};
   71|  12.4k|         for (auto d : v) sum += d;
  ------------------
  |  Branch (71:22): [True: 12.4k, False: 4.28k]
  ------------------
   72|  4.28k|         return sum;
   73|  4.28k|      };
_ZNK12jsonrpc_fuzz8fuzz_api5resetMUlvE_clEv:
   74|    792|      std::function<void()> reset = [] {};
_ZN12jsonrpc_fuzz10member_api5scaleEi:
   89|    757|      {
   90|    757|         counter = int32_t(uint32_t(counter) + uint32_t(v));
   91|    757|         return int32_t(uint32_t(v) * 3u);
   92|    757|      }
_ZN12jsonrpc_fuzz10member_api4bumpEv:
   93|    399|      void bump() { counter = int32_t(uint32_t(counter) + 1u); }
_ZN12jsonrpc_fuzz10member_api5shiftERKNS_5pointE:
   94|    636|      point shift(const point& p) { return {p.x + 1, p.y + 1}; }

_ZN3glz11empty_rangeITkNS_5rangeERNSt3__16vectorIiNS1_9allocatorIiEEEEEEbOT_:
  304|    125|   {
  305|    125|#ifdef __cpp_lib_ranges
  306|    125|      return std::ranges::empty(rng);
  307|       |#else
  308|       |      // in lieu of std::ranges::empty
  309|       |      if constexpr (requires() {
  310|       |                       { rng.empty() } -> std::convertible_to<bool>;
  311|       |                    }) {
  312|       |         return rng.empty();
  313|       |      }
  314|       |      else if constexpr (requires() {
  315|       |                            { rng.size() } -> std::same_as<std::size_t>;
  316|       |                         }) {
  317|       |         return rng.size() == std::size_t{0};
  318|       |      }
  319|       |      else {
  320|       |         return std::cbegin(rng) == std::cend(rng);
  321|       |      }
  322|       |#endif
  323|    125|   }
_ZN3glz11empty_rangeITkNS_5rangeERNSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEEEbOT_:
  304|    137|   {
  305|    137|#ifdef __cpp_lib_ranges
  306|    137|      return std::ranges::empty(rng);
  307|       |#else
  308|       |      // in lieu of std::ranges::empty
  309|       |      if constexpr (requires() {
  310|       |                       { rng.empty() } -> std::convertible_to<bool>;
  311|       |                    }) {
  312|       |         return rng.empty();
  313|       |      }
  314|       |      else if constexpr (requires() {
  315|       |                            { rng.size() } -> std::same_as<std::size_t>;
  316|       |                         }) {
  317|       |         return rng.size() == std::size_t{0};
  318|       |      }
  319|       |      else {
  320|       |         return std::cbegin(rng) == std::cend(rng);
  321|       |      }
  322|       |#endif
  323|    137|   }

_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEC2Ev:
  566|   518k|      ordered_small_map() = default;
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE9free_dataEv:
  266|  1.34M|      {
  267|  1.34M|         destroy_all();
  268|  1.34M|         ::operator delete(data_);
  269|  1.34M|         data_ = nullptr;
  270|  1.34M|         size_ = 0;
  271|  1.34M|         capacity_ = 0;
  272|  1.34M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE11destroy_allEv:
  259|  1.85M|      {
  260|  3.40M|         for (uint32_t i = 0; i < size_; ++i) {
  ------------------
  |  Branch (260:31): [True: 1.54M, False: 1.85M]
  ------------------
  261|  1.54M|            std::destroy_at(data_ + i);
  262|  1.54M|         }
  263|  1.85M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE10free_indexEv:
  308|  1.34M|      {
  309|  1.34M|         std::free(index_);
  310|  1.34M|         index_ = nullptr;
  311|  1.34M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEC2EOS4_:
  610|   822k|         : data_(other.data_), size_(other.size_), capacity_(other.capacity_), index_(other.index_)
  611|   822k|      {
  612|   822k|         other.data_ = nullptr;
  613|   822k|         other.size_ = 0;
  614|   822k|         other.capacity_ = 0;
  615|   822k|         other.index_ = nullptr;
  616|   822k|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEED2Ev:
  569|  1.34M|      {
  570|  1.34M|         free_data();
  571|  1.34M|         free_index();
  572|  1.34M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEixERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEE:
  932|  1.54M|      {
  933|  1.54M|         return subscript_or_insert(key, [&] { emplace_back_impl(key, mapped_type{}); });
  934|  1.54M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE19subscript_or_insertINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEZNS4_ixERKSC_EUlvE_EERS3_RKT_OT0_:
  491|  1.54M|      {
  492|  1.54M|         if (size_ <= linear_search_threshold) {
  ------------------
  |  Branch (492:14): [True: 1.54M, False: 195]
  ------------------
  493|  1.54M|            auto it = linear_find(key);
  494|  1.54M|            if (it != end()) return it->second;
  ------------------
  |  Branch (494:17): [True: 0, False: 1.54M]
  ------------------
  495|  1.54M|            append_fn();
  496|  1.54M|            return data_[size_ - 1].second;
  497|  1.54M|         }
  498|       |
  499|    195|         const uint32_t h = hash_key(key);
  500|    195|         if (try_bloom_insert(h, append_fn)) {
  ------------------
  |  Branch (500:14): [True: 130, False: 65]
  ------------------
  501|    130|            return data_[size_ - 1].second;
  502|    130|         }
  503|       |
  504|     65|         auto [it, pos, _] = index_find_or_pos(key, h);
  505|     65|         if (it != end()) return it->second;
  ------------------
  |  Branch (505:14): [True: 0, False: 65]
  ------------------
  506|       |
  507|     65|         append_fn();
  508|     65|         bloom_set(h);
  509|     65|         if (index_size() > 0) {
  ------------------
  |  Branch (509:14): [True: 65, False: 0]
  ------------------
  510|     65|            const uint32_t n = index_->size;
  511|     65|            ensure_index_capacity(static_cast<size_type>(n) + 1);
  512|     65|            auto* entries = index_entries();
  513|     65|            if (pos < n) {
  ------------------
  |  Branch (513:17): [True: 0, False: 65]
  ------------------
  514|      0|               std::memmove(entries + pos + 1, entries + pos, (n - pos) * sizeof(hash_index_entry));
  515|      0|            }
  516|     65|            entries[pos] = {h, size_ - 1};
  517|     65|            index_->size = size_;
  518|     65|         }
  519|     65|         return data_[size_ - 1].second;
  520|     65|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE11linear_findINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEEPNS6_4pairISC_S3_EERKT_:
  421|  1.54M|      {
  422|  3.07M|         for (uint32_t i = 0; i < size_; ++i) {
  ------------------
  |  Branch (422:31): [True: 1.53M, False: 1.54M]
  ------------------
  423|  1.53M|            if (data_[i].first == key) return data_ + i;
  ------------------
  |  Branch (423:17): [True: 0, False: 1.53M]
  ------------------
  424|  1.53M|         }
  425|  1.54M|         return data_ + size_;
  426|  1.54M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE3endEv:
  649|  1.54M|      iterator end() noexcept { return data_ + size_; }
_ZZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEEixERKNSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEENKUlvE_clEv:
  933|  1.54M|         return subscript_or_insert(key, [&] { emplace_back_impl(key, mapped_type{}); });
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE17emplace_back_implIJRKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEES3_EEEvDpOT_:
  243|  1.54M|      {
  244|  1.54M|         grow_if_needed();
  245|  1.54M|         std::construct_at(data_ + size_, std::forward<Args>(args)...);
  246|  1.54M|         ++size_;
  247|  1.54M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE14grow_if_neededEv:
  217|  1.54M|      {
  218|  1.54M|         if (size_ == capacity_) {
  ------------------
  |  Branch (218:14): [True: 518k, False: 1.02M]
  ------------------
  219|   518k|            if (size_ == max_u32) {
  ------------------
  |  Branch (219:17): [True: 0, False: 518k]
  ------------------
  220|      0|               throw_capacity_overflow();
  221|      0|            }
  222|   518k|            const uint32_t new_cap = next_data_capacity(capacity_);
  223|   518k|            reallocate_data(new_cap);
  224|   518k|         }
  225|  1.54M|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE18next_data_capacityEj:
  120|   518k|      {
  121|   518k|         if (current == 0) return 4;
  ------------------
  |  Branch (121:14): [True: 517k, False: 130]
  ------------------
  122|    130|         if (current > (max_u32 / 2)) return max_u32;
  ------------------
  |  Branch (122:14): [True: 0, False: 130]
  ------------------
  123|    130|         return current * 2;
  124|    130|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE15reallocate_dataEj:
  205|   518k|      {
  206|   518k|         if (new_cap < size_) {
  ------------------
  |  Branch (206:14): [True: 0, False: 518k]
  ------------------
  207|      0|            throw_capacity_overflow();
  208|      0|         }
  209|   518k|         auto* new_data = allocate_and_relocate(new_cap);
  210|   518k|         destroy_all();
  211|   518k|         ::operator delete(data_);
  212|   518k|         data_ = new_data;
  213|   518k|         capacity_ = new_cap;
  214|   518k|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE21allocate_and_relocateEj:
  159|   518k|      {
  160|   518k|         auto* new_data = static_cast<value_type*>(::operator new(checked_data_allocation_bytes(new_cap)));
  161|   518k|#if __cpp_exceptions
  162|   518k|         uint32_t constructed = 0;
  163|   518k|         try {
  164|   518k|            for (; constructed < size_; ++constructed) {
  ------------------
  |  Branch (164:20): [True: 780, False: 518k]
  ------------------
  165|    780|               std::construct_at(new_data + constructed, std::move_if_noexcept(data_[constructed]));
  166|    780|            }
  167|   518k|         }
  168|   518k|         catch (...) {
  169|      0|            destroy_range(new_data, constructed);
  170|      0|            ::operator delete(new_data);
  171|      0|            throw;
  172|      0|         }
  173|       |#else
  174|       |         for (uint32_t i = 0; i < size_; ++i) {
  175|       |            std::construct_at(new_data + i, std::move_if_noexcept(data_[i]));
  176|       |         }
  177|       |#endif
  178|   518k|         return new_data;
  179|   518k|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE29checked_data_allocation_bytesEj:
  134|   518k|      {
  135|   518k|         if (count > ((std::numeric_limits<size_t>::max)() / sizeof(value_type))) {
  ------------------
  |  Branch (135:14): [True: 0, False: 518k]
  ------------------
  136|      0|            GLZ_THROW_OR_ABORT(std::bad_alloc{});
  ------------------
  |  |    8|      0|#define GLZ_THROW_OR_ABORT(EXC) (throw(EXC))
  ------------------
  137|      0|         }
  138|   518k|         return static_cast<size_t>(count) * sizeof(value_type);
  139|   518k|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE8hash_keyENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEE:
   97|    780|      static uint32_t hash_key(std::string_view key) noexcept { return sweethash::sweet32(key); }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE16try_bloom_insertIRZNS4_ixERKNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEUlvE_EEbjOT_:
  529|    195|      {
  530|    195|         if (index_ && size_ <= bloom_threshold && !bloom_maybe_contains(h)) {
  ------------------
  |  Branch (530:14): [True: 130, False: 65]
  |  Branch (530:24): [True: 130, False: 0]
  |  Branch (530:52): [True: 130, False: 0]
  ------------------
  531|       |            // Definitely not present — skip the search
  532|    130|            append_fn();
  533|    130|            bloom_set(h);
  534|       |            // Index is now stale (index_->size < size_), will rebuild on next lookup or false positive
  535|    130|            return true;
  536|    130|         }
  537|     65|         return false;
  538|    195|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE20bloom_maybe_containsEj:
  285|    130|      {
  286|    130|         const uint32_t a = h & bloom_mask;
  287|    130|         const uint32_t b = (h >> 10) & bloom_mask;
  288|    130|         return (index_->bloom[a >> 3] & (uint8_t(1) << (a & 7))) && (index_->bloom[b >> 3] & (uint8_t(1) << (b & 7)));
  ------------------
  |  Branch (288:17): [True: 0, False: 130]
  |  Branch (288:70): [True: 0, False: 0]
  ------------------
  289|    130|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE17index_find_or_posINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEENS4_17index_find_resultERKT_j:
  400|     65|      {
  401|     65|         ensure_index();
  402|       |
  403|     65|         const auto* base = index_entries();
  404|     65|         const auto* idx_end = base + index_->size;
  405|     65|         const auto* p = branchless_lower_bound(base, index_->size, h);
  406|     65|         const size_t pos = static_cast<size_t>(p - base);
  407|       |
  408|       |         // Scan adjacent entries with matching hash
  409|     65|         for (auto* scan = p; scan != idx_end && scan->key_hash == h; ++scan) {
  ------------------
  |  Branch (409:31): [True: 0, False: 65]
  |  Branch (409:50): [True: 0, False: 0]
  ------------------
  410|      0|            if (data_[scan->index].first == key) {
  ------------------
  |  Branch (410:17): [True: 0, False: 0]
  ------------------
  411|      0|               return {data_ + scan->index, pos, h};
  412|      0|            }
  413|      0|         }
  414|       |
  415|     65|         return {data_ + size_, pos, h};
  416|     65|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE12ensure_indexEv:
  360|     65|      {
  361|     65|         if (size_ <= linear_search_threshold) return;
  ------------------
  |  Branch (361:14): [True: 0, False: 65]
  ------------------
  362|     65|         const auto current = index_size();
  363|     65|         if (current == size_) return; // fully current
  ------------------
  |  Branch (363:14): [True: 0, False: 65]
  ------------------
  364|       |
  365|     65|         if (current == 0 || (size_ - current) > linear_search_threshold) {
  ------------------
  |  Branch (365:14): [True: 65, False: 0]
  |  Branch (365:30): [True: 0, False: 0]
  ------------------
  366|     65|            rebuild_index(); // full rebuild
  367|     65|            return;
  368|     65|         }
  369|       |
  370|       |         // Incrementally insert-sort the few new entries
  371|      0|         for (uint32_t i = current; i < size_; ++i) {
  ------------------
  |  Branch (371:37): [True: 0, False: 0]
  ------------------
  372|      0|            const hash_index_entry entry{hash_key(data_[i].first), i};
  373|      0|            const auto* base = index_entries();
  374|      0|            const auto* p = branchless_lower_bound(base, index_->size, entry.key_hash);
  375|      0|            auto pos = static_cast<size_t>(p - base);
  376|       |
  377|      0|            const uint32_t m = index_->size;
  378|      0|            ensure_index_capacity(static_cast<size_type>(m) + 1);
  379|      0|            auto* entries = index_entries();
  380|      0|            if (pos < m) {
  ------------------
  |  Branch (380:17): [True: 0, False: 0]
  ------------------
  381|      0|               std::memmove(entries + pos + 1, entries + pos, (m - pos) * sizeof(hash_index_entry));
  382|      0|            }
  383|      0|            entries[pos] = entry;
  384|      0|            index_->size = i + 1;
  385|      0|         }
  386|      0|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE13rebuild_indexEv:
  343|     65|      {
  344|     65|         ensure_index_capacity(static_cast<size_type>(size_));
  345|     65|         bloom_clear();
  346|     65|         auto* entries = index_entries();
  347|    650|         for (uint32_t i = 0; i < size_; ++i) {
  ------------------
  |  Branch (347:31): [True: 585, False: 65]
  ------------------
  348|    585|            const uint32_t h = hash_key(data_[i].first);
  349|    585|            entries[i] = {h, i};
  350|    585|            bloom_set(h);
  351|    585|         }
  352|     65|         std::sort(entries, entries + size_, [](const auto& a, const auto& b) { return a.key_hash < b.key_hash; });
  353|     65|         index_->size = size_;
  354|     65|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE11bloom_clearEv:
  291|     65|      void bloom_clear() const noexcept { std::memset(index_->bloom, 0, bloom_bytes); }
_ZZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE13rebuild_indexEvENKUlRKT_RKT0_E_clINS4_16hash_index_entryESD_EEDaS7_SA_:
  352|  1.62k|         std::sort(entries, entries + size_, [](const auto& a, const auto& b) { return a.key_hash < b.key_hash; });
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE22branchless_lower_boundEPKNS4_16hash_index_entryEmj:
  440|     65|      {
  441|    325|         while (len > 1) {
  ------------------
  |  Branch (441:17): [True: 260, False: 65]
  ------------------
  442|    260|            size_t half = len / 2;
  443|    260|            p += (p[half - 1].key_hash < target) * half;
  444|    260|            len -= half;
  445|    260|         }
  446|       |         // Final element check: advance past it if it's less than target
  447|     65|         p += (len == 1 && p->key_hash < target);
  ------------------
  |  Branch (447:16): [True: 65, False: 0]
  |  Branch (447:28): [True: 65, False: 0]
  ------------------
  448|     65|         return p;
  449|     65|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE9bloom_setEj:
  277|    780|      {
  278|    780|         const uint32_t a = h & bloom_mask;
  279|    780|         const uint32_t b = (h >> 10) & bloom_mask;
  280|    780|         index_->bloom[a >> 3] |= uint8_t(1) << (a & 7);
  281|    780|         index_->bloom[b >> 3] |= uint8_t(1) << (b & 7);
  282|    780|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE10index_sizeEv:
  300|    130|      uint32_t index_size() const noexcept { return index_ ? index_->size : 0; }
  ------------------
  |  Branch (300:53): [True: 65, False: 65]
  ------------------
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE21ensure_index_capacityEm:
  314|    130|      {
  315|    130|         if (needed == 0) return;
  ------------------
  |  Branch (315:14): [True: 0, False: 130]
  ------------------
  316|    130|         if (needed > static_cast<size_type>(max_u32)) {
  ------------------
  |  Branch (316:14): [True: 0, False: 130]
  ------------------
  317|      0|            throw_index_overflow();
  318|      0|         }
  319|    130|         const auto needed_u32 = static_cast<uint32_t>(needed);
  320|    130|         if (index_ && index_->capacity >= needed_u32) return;
  ------------------
  |  Branch (320:14): [True: 65, False: 65]
  |  Branch (320:24): [True: 65, False: 0]
  ------------------
  321|     65|         uint32_t cap = index_ ? index_->capacity : 0;
  ------------------
  |  Branch (321:25): [True: 0, False: 65]
  ------------------
  322|    130|         while (cap < needed_u32) {
  ------------------
  |  Branch (322:17): [True: 65, False: 65]
  ------------------
  323|     65|            const uint32_t next = next_index_capacity(cap);
  324|     65|            if (next <= cap) {
  ------------------
  |  Branch (324:17): [True: 0, False: 65]
  ------------------
  325|      0|               throw_index_overflow();
  326|      0|            }
  327|     65|            cap = next;
  328|     65|         }
  329|     65|         auto* block = static_cast<index_header*>(std::realloc(index_, checked_index_allocation_bytes(cap)));
  330|     65|         if (!block) GLZ_THROW_OR_ABORT(std::bad_alloc{});
  ------------------
  |  |    8|      0|#define GLZ_THROW_OR_ABORT(EXC) (throw(EXC))
  ------------------
  |  Branch (330:14): [True: 0, False: 65]
  ------------------
  331|     65|         if (!index_) {
  ------------------
  |  Branch (331:14): [True: 65, False: 0]
  ------------------
  332|     65|            block->size = 0;
  333|     65|            std::memset(block->bloom, 0, bloom_bytes);
  334|     65|         }
  335|     65|         block->capacity = cap;
  336|     65|         index_ = block;
  337|     65|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE19next_index_capacityEj:
  127|     65|      {
  128|     65|         if (current == 0) return 16;
  ------------------
  |  Branch (128:14): [True: 65, False: 0]
  ------------------
  129|      0|         if (current > (max_u32 / 2)) return max_u32;
  ------------------
  |  Branch (129:14): [True: 0, False: 0]
  ------------------
  130|      0|         return current * 2;
  131|      0|      }
_ZN3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE30checked_index_allocation_bytesEj:
  142|     65|      {
  143|     65|         constexpr size_t header = sizeof(index_header);
  144|     65|         constexpr size_t entry = sizeof(hash_index_entry);
  145|     65|         if (count > (((std::numeric_limits<size_t>::max)() - header) / entry)) {
  ------------------
  |  Branch (145:14): [True: 0, False: 65]
  ------------------
  146|      0|            GLZ_THROW_OR_ABORT(std::bad_alloc{});
  ------------------
  |  |    8|      0|#define GLZ_THROW_OR_ABORT(EXC) (throw(EXC))
  ------------------
  147|      0|         }
  148|     65|         return header + static_cast<size_t>(count) * entry;
  149|     65|      }
_ZNK3glz17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES0_EEE13index_entriesEv:
  296|    195|      {
  297|    195|         return static_cast<hash_index_entry*>(static_cast<void*>(index_ + 1));
  298|    195|      }

_ZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
   63|  6.69M|   {
   64|  6.69M|      if constexpr (requires { b.resize_and_overwrite(n, [](auto*, size_t written) { return written; }); }) {
   65|  6.69M|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });
   66|       |      }
   67|       |      else {
   68|       |         b.resize(n);
   69|       |      }
   70|  6.69M|   }
_ZZN3glz15resize_unfilledINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_mENKUlPS8_mE_clIcEEDaSA_m:
   65|  6.69M|         b.resize_and_overwrite(n, [](auto*, size_t written) noexcept { return written; });
_ZN3glz12ensure_spaceINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10is_contextENS_7contextEEEbRT0_RT_m:
  265|  4.37M|   {
  266|  4.37M|      using Buffer = std::remove_cvref_t<B>;
  267|       |
  268|  4.37M|      if constexpr (vector_like<Buffer>) {
  269|  4.37M|         if (required > b.size()) [[unlikely]] {
  ------------------
  |  Branch (269:14): [True: 1.67k, False: 4.37M]
  ------------------
  270|  1.67k|            grow_buffer(b, required);
  271|  1.67k|         }
  272|  4.37M|         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|  4.37M|   }
_ZN3glz11grow_bufferINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvRT_m:
  143|  1.67k|   {
  144|  1.67k|      using traits = buffer_traits<std::remove_cvref_t<B>>;
  145|  1.67k|      if constexpr (requires { traits::grow(b, required); }) {
  146|  1.67k|         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|  1.67k|   }
_ZN3glz13buffer_traitsINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE4growERS7_mQL_ZNS_13buffer_traits12is_resizableEE:
  118|  1.67k|      {
  119|  1.67k|         resize_unfilled(b, 2 * required);
  120|  1.67k|      }
_ZN3glz13buffer_traitsINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE8finalizeERS7_m:
  124|  4.37M|      {
  125|  4.37M|         if constexpr (is_resizable) {
  126|  4.37M|            b.resize(written);
  127|  4.37M|         }
  128|       |         // For fixed buffers: no-op, count is returned in result
  129|  4.37M|      }

_ZN3glz20inert_key_bits_scopeC2IRNS_7contextEEEOT_Pv:
  192|   687k|      constexpr inert_key_bits_scope(auto&&, void*) noexcept {}
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_iEEDcOT_OT0_:
  678|  79.7k|   {
  679|  79.7k|      using V = std::decay_t<decltype(element)>;
  680|  79.7k|      if constexpr (std::is_member_object_pointer_v<V>) {
  681|  79.7k|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|  79.7k|   }
_ZN3glz8str_viewINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKS7_EENS1_17basic_string_viewIcS4_EEOT0_:
  341|  46.0k|   {
  342|       |      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|       |         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|  46.0k|      else if constexpr (has_data<T> && has_size<T>) {
  349|  46.0k|         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|  46.0k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERS5_EES5_OT0_:
  341|  6.71k|   {
  342|  6.71k|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|  6.71k|         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|  6.71k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_FiiEEEDcOT_OT0_:
  678|  79.7k|   {
  679|  79.7k|      using V = std::decay_t<decltype(element)>;
  680|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  681|       |         return value.*element;
  682|       |      }
  683|  79.7k|      else if constexpr (std::is_member_function_pointer_v<V>) {
  684|  79.7k|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|  79.7k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_FvvEEEDcOT_OT0_:
  678|  79.7k|   {
  679|  79.7k|      using V = std::decay_t<decltype(element)>;
  680|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  681|       |         return value.*element;
  682|       |      }
  683|  79.7k|      else if constexpr (std::is_member_function_pointer_v<V>) {
  684|  79.7k|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|  79.7k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz10member_apiERKMS2_FNS1_5pointERKS4_EEEDcOT_OT0_:
  678|  79.7k|   {
  679|  79.7k|      using V = std::decay_t<decltype(element)>;
  680|       |      if constexpr (std::is_member_object_pointer_v<V>) {
  681|       |         return value.*element;
  682|       |      }
  683|  79.7k|      else if constexpr (std::is_member_function_pointer_v<V>) {
  684|  79.7k|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|  79.7k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz5pointERdEEDcOT_OT0_:
  678|   167k|   {
  679|   167k|      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|   167k|      else {
  701|   167k|         return element;
  702|   167k|      }
  703|   167k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERiEEDcOT_OT0_:
  678|   100k|   {
  679|   100k|      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|   100k|      else {
  701|   100k|         return element;
  702|   100k|      }
  703|   100k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEDcOT_OT0_:
  678|  79.8k|   {
  679|  79.8k|      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|  79.8k|      else {
  701|  79.8k|         return element;
  702|  79.8k|      }
  703|  79.8k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNS1_5pointEEEDcOT_OT0_:
  678|  80.5k|   {
  679|  80.5k|      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|  80.5k|      else {
  701|  80.5k|         return element;
  702|  80.5k|      }
  703|  80.5k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz6nestedERiEEDcOT_OT0_:
  678|  95.0k|   {
  679|  95.0k|      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|  95.0k|      else {
  701|  95.0k|         return element;
  702|  95.0k|      }
  703|  95.0k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz6nestedERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEDcOT_OT0_:
  678|  80.9k|   {
  679|  80.9k|      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|  80.9k|      else {
  701|  80.9k|         return element;
  702|  80.9k|      }
  703|  80.9k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNS1_6nestedEEEDcOT_OT0_:
  678|  80.7k|   {
  679|  80.7k|      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|  80.7k|      else {
  701|  80.7k|         return element;
  702|  80.7k|      }
  703|  80.7k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__16vectorIiNS4_9allocatorIiEEEEEEDcOT_OT0_:
  678|  87.4k|   {
  679|  87.4k|      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|  87.4k|      else {
  701|  87.4k|         return element;
  702|  87.4k|      }
  703|  87.4k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEEEEDcOT_OT0_:
  678|  81.1k|   {
  679|  81.1k|      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|  81.1k|      else {
  701|  81.1k|         return element;
  702|  81.1k|      }
  703|  81.1k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18optionalIdEEEEDcOT_OT0_:
  678|  81.5k|   {
  679|  81.5k|      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|  81.5k|      else {
  701|  81.5k|         return element;
  702|  81.5k|      }
  703|  81.5k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz6amountERdEEDcOT_OT0_:
  678|    293|   {
  679|    293|      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|    293|      else {
  701|    293|         return element;
  702|    293|      }
  703|    293|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS1_6amountEEEEEEDcOT_OT0_:
  678|  81.6k|   {
  679|  81.6k|      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|  81.6k|      else {
  701|  81.6k|         return element;
  702|  81.6k|      }
  703|  81.6k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFiiEEEEEDcOT_OT0_:
  678|  80.4k|   {
  679|  80.4k|      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|  80.4k|      else {
  701|  80.4k|         return element;
  702|  80.4k|      }
  703|  80.4k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSB_EEEEEDcOT_OT0_:
  678|  80.2k|   {
  679|  80.2k|      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|  80.2k|      else {
  701|  80.2k|         return element;
  702|  80.2k|      }
  703|  80.2k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFNS1_5pointERKS6_EEEEEDcOT_OT0_:
  678|  80.1k|   {
  679|  80.1k|      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|  80.1k|      else {
  701|  80.1k|         return element;
  702|  80.1k|      }
  703|  80.1k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFdRNS4_6vectorIdNS4_9allocatorIdEEEEEEEEEDcOT_OT0_:
  678|  80.2k|   {
  679|  80.2k|      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|  80.2k|      else {
  701|  80.2k|         return element;
  702|  80.2k|      }
  703|  80.2k|   }
_ZN3glz10get_memberIRN12jsonrpc_fuzz8fuzz_apiERNSt3__18functionIFvvEEEEEDcOT_OT0_:
  678|  80.0k|   {
  679|  80.0k|      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|  80.0k|      else {
  701|  80.0k|         return element;
  702|  80.0k|      }
  703|  80.0k|   }
_ZN3glz8str_viewINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS7_EENS1_17basic_string_viewIcS4_EEOT0_:
  341|  4.27M|   {
  342|       |      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|       |         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|  4.27M|      else if constexpr (has_data<T> && has_size<T>) {
  349|  4.27M|         return std::string_view{value.data(), value.size()};
  350|       |      }
  351|       |      else {
  352|       |         return std::string_view{value};
  353|       |      }
  354|  4.27M|   }
_ZN3glz14basic_raw_jsonINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEC2Ev:
  231|  9.30M|      basic_raw_json() = default;
_ZN3glz10get_memberIRNS_3rpc18request_envelope_tERKMS2_NSt3__18optionalINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEEEEDcOT_OT0_:
  678|   137k|   {
  679|   137k|      using V = std::decay_t<decltype(element)>;
  680|   137k|      if constexpr (std::is_member_object_pointer_v<V>) {
  681|   137k|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|   137k|   }
_ZN3glz10get_memberIRNS_3rpc18request_envelope_tERKMS2_NS_14basic_raw_jsonINSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEEEEDcOT_OT0_:
  678|  46.0k|   {
  679|  46.0k|      using V = std::decay_t<decltype(element)>;
  680|  46.0k|      if constexpr (std::is_member_object_pointer_v<V>) {
  681|  46.0k|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|  46.0k|   }
_ZN3glz10get_memberIRNS_3rpc18request_envelope_tERKMS2_NSt3__17variantIJDnNS4_17basic_string_viewIcNS4_11char_traitsIcEEEElEEEEEDcOT_OT0_:
  678|  77.3k|   {
  679|  77.3k|      using V = std::decay_t<decltype(element)>;
  680|  77.3k|      if constexpr (std::is_member_object_pointer_v<V>) {
  681|  77.3k|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|  77.3k|   }
_ZN3glz8str_viewINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKS5_EES5_OT0_:
  341|     54|   {
  342|     54|      if constexpr (std::same_as<std::decay_t<T>, std::string_view>) {
  343|     54|         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|     54|   }
_ZN3glz10get_memberIRNS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEERKMS4_NSt3__17variantIJDndNS6_12basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEbNS6_6vectorIS4_NSB_IS4_EEEENS3_IS4_EEEEEEEDcOT_OT0_:
  678|  1.82M|   {
  679|  1.82M|      using V = std::decay_t<decltype(element)>;
  680|  1.82M|      if constexpr (std::is_member_object_pointer_v<V>) {
  681|  1.82M|         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|       |      else {
  701|       |         return element;
  702|       |      }
  703|  1.82M|   }

_ZN3glz10call_scopeINS_7contextEEC2ERS1_:
  272|  13.1M|      explicit call_scope(Ctx& c) noexcept : ctx(c), depth(c.depth)
  273|  13.1M|      {
  274|  13.1M|         ctx.error = error_code::none;
  275|  13.1M|         ctx.custom_error_message = {};
  276|  13.1M|      }
_ZN3glz23seed_speculation_budgetITkNS_10is_contextENS_7contextEEEvRT_m:
  312|   667k|   {
  313|   667k|      if constexpr (requires { ctx.speculation_budget; }) {
  314|   667k|         const size_t proportional = max_speculative_parse_factor * input_bytes;
  315|   667k|         ctx.speculation_budget =
  316|   667k|            (proportional > min_speculative_parse_bytes ? proportional : min_speculative_parse_bytes) + 2;
  ------------------
  |  Branch (316:14): [True: 3.34k, False: 664k]
  ------------------
  317|   667k|      }
  318|   667k|   }
_ZN3glz11enter_depthITkNS_10is_contextENS_7contextEEEbRT_:
  357|  1.09M|   {
  358|  1.09M|      if (ctx.depth >= max_recursive_depth_limit) [[unlikely]] {
  ------------------
  |  Branch (358:11): [True: 576, False: 1.09M]
  ------------------
  359|    576|         ctx.error = error_code::exceeded_max_recursive_depth;
  360|    576|         return true;
  361|    576|      }
  362|  1.09M|      ++ctx.depth;
  363|  1.09M|      return false;
  364|  1.09M|   }
_ZN3glz10call_scopeINS_7contextEED2Ev:
  277|  13.1M|      ~call_scope() { ctx.depth = depth; }
_ZNK3glz9error_ctxcvbEv:
  148|  13.0M|      operator bool() const noexcept { return ec != error_code::none; }
_ZN3glz18charge_speculationITkNS_10is_contextENS_7contextEEEbRT_m:
  324|  37.9k|   {
  325|  37.9k|      if constexpr (requires { ctx.speculation_budget; }) {
  326|  37.9k|         if (ctx.speculation_budget == 0) {
  ------------------
  |  Branch (326:14): [True: 0, False: 37.9k]
  ------------------
  327|      0|            return true;
  328|      0|         }
  329|  37.9k|         ctx.speculation_budget = consumed >= ctx.speculation_budget ? 1 : ctx.speculation_budget - consumed;
  ------------------
  |  Branch (329:35): [True: 0, False: 37.9k]
  ------------------
  330|  37.9k|         return ctx.speculation_budget > 1;
  331|       |      }
  332|       |      else {
  333|       |         return true;
  334|       |      }
  335|  37.9k|   }
_ZN3glz21speculation_exhaustedITkNS_10is_contextENS_7contextEEEbRT_:
  341|  3.13k|   {
  342|  3.13k|      if constexpr (requires { ctx.speculation_budget; }) {
  343|  3.13k|         return ctx.speculation_budget == 1; // the latched floor; 0 means unbudgeted
  344|       |      }
  345|       |      else {
  346|       |         return false;
  347|       |      }
  348|  3.13k|   }

_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEDaOT0_:
   40|   507k|   {
   41|   507k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|   507k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|   507k|      auto end = it + buffer.size();
   45|       |
   46|   507k|      return std::pair{it, end};
   47|   507k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS7_S7_:
  131|   442k|   {
  132|   442k|      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|   442k|         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  ------------------
  |  Branch (137:14): [True: 115k, False: 327k]
  |  Branch (137:54): [True: 114k, False: 944]
  |  Branch (137:72): [True: 110k, False: 3.73k]
  |  Branch (137:85): [True: 110k, False: 0]
  ------------------
  138|   110k|            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  139|   110k|            const char* consumed = start;
  140|   110k|            skip_ws<Opts>(ws_ctx, consumed, it);
  141|   110k|            if (consumed == it) {
  ------------------
  |  Branch (141:17): [True: 15, False: 110k]
  ------------------
  142|     15|               ctx.error = error_code::no_read_input;
  143|     15|            }
  144|   110k|         }
  145|   442k|      }
  146|   442k|      finalize_read_context(ctx);
  147|   442k|   }
_ZN3glz21finalize_read_contextITkNS_10is_contextERNS_7contextEEEvOT_:
  109|   667k|   {
  110|   667k|      settle_partial_read_complete(ctx);
  111|   667k|      settle_end_reached(ctx);
  112|   667k|   }
_ZN3glz28settle_partial_read_completeITkNS_10is_contextERNS_7contextEEEvOT_:
  102|   667k|   {
  103|   667k|      if (ctx.error == error_code::partial_read_complete) {
  ------------------
  |  Branch (103:11): [True: 0, False: 667k]
  ------------------
  104|      0|         ctx.error = error_code::none;
  105|      0|      }
  106|   667k|   }
_ZN3glz18settle_end_reachedITkNS_10is_contextERNS_7contextEEEvOT_:
   88|   667k|   {
   89|   667k|      if (ctx.error == error_code::end_reached) {
  ------------------
  |  Branch (89:11): [True: 146k, False: 521k]
  ------------------
   90|   146k|         ctx.error = (ctx.depth == 0) ? error_code::none : error_code::unexpected_end;
  ------------------
  |  Branch (90:22): [True: 145k, False: 1.22k]
  ------------------
   91|   146k|      }
   92|   667k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERS8_OS9_:
  229|  1.34k|   {
  230|  1.34k|      format_context_t<Opts.format> ctx{};
  231|  1.34k|      return read<Opts>(value, buffer, ctx);
  232|  1.34k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_OT2_:
  152|  1.34k|   {
  153|  1.34k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.34k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  1.34k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  1.34k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 1.34k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  1.34k|      }
  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|  1.34k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  1.34k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  1.34k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  1.34k|      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|  1.34k|      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|  1.34k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  1.34k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 1.24k, False: 103]
  ------------------
  200|  1.24k|         goto finish;
  201|  1.24k|      }
  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|  1.34k|   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|  1.34k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  1.34k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|    103|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  229|  1.44k|   {
  230|  1.44k|      format_context_t<Opts.format> ctx{};
  231|  1.44k|      return read<Opts>(value, buffer, ctx);
  232|  1.44k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  1.44k|   {
  153|  1.44k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.44k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  1.44k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  1.44k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 1.44k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  1.44k|      }
  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|  1.44k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  1.44k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  1.44k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  1.44k|      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|  1.44k|      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|  1.44k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  1.44k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 1.44k, False: 0]
  ------------------
  200|  1.44k|         goto finish;
  201|  1.44k|      }
  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|  1.44k|   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|  1.44k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  1.44k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  229|  9.17k|   {
  230|  9.17k|      format_context_t<Opts.format> ctx{};
  231|  9.17k|      return read<Opts>(value, buffer, ctx);
  232|  9.17k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  9.17k|   {
  153|  9.17k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  9.17k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  9.17k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  9.17k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 9.17k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  9.17k|      }
  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|  9.17k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  9.17k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  9.17k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  9.17k|      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|  9.17k|      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|  9.17k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  9.17k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 9.17k, False: 0]
  ------------------
  200|  9.17k|         goto finish;
  201|  9.17k|      }
  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|  9.17k|   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|  9.17k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  9.17k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10contiguousERNS2_17basic_string_viewIcS5_EEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_:
  229|  1.42k|   {
  230|  1.42k|      format_context_t<Opts.format> ctx{};
  231|  1.42k|      return read<Opts>(value, buffer, ctx);
  232|  1.42k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10contiguousERNS2_17basic_string_viewIcS5_EETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  1.42k|   {
  153|  1.42k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.42k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  1.42k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  1.42k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 1.42k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  1.42k|      }
  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|  1.42k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  1.42k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  1.42k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  1.42k|      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|  1.42k|      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|  1.42k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  1.42k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 840, False: 580]
  ------------------
  200|    840|         goto finish;
  201|    840|      }
  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|  1.42k|   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|  1.42k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  1.42k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|    580|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEdTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERS8_OS9_:
  229|    654|   {
  230|    654|      format_context_t<Opts.format> ctx{};
  231|    654|      return read<Opts>(value, buffer, ctx);
  232|    654|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEdTkNS_10contiguousERNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_OT2_:
  152|    654|   {
  153|    654|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|    654|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|    654|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|    654|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 654]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|    654|      }
  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|    654|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|    654|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|    654|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|    654|      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|    654|      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|    654|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|    654|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 625, False: 29]
  ------------------
  200|    625|         goto finish;
  201|    625|      }
  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|    654|   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|    654|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|    654|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|     29|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  229|  1.68k|   {
  230|  1.68k|      format_context_t<Opts.format> ctx{};
  231|  1.68k|      return read<Opts>(value, buffer, ctx);
  232|  1.68k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  1.68k|   {
  153|  1.68k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.68k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  1.68k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  1.68k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 1.68k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  1.68k|      }
  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|  1.68k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  1.68k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  1.68k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  1.68k|      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|  1.68k|      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|  1.68k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  1.68k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 1.68k, False: 0]
  ------------------
  200|  1.68k|         goto finish;
  201|  1.68k|      }
  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|  1.68k|   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|  1.68k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  1.68k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIiNS2_9allocatorIiEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_:
  229|  1.79k|   {
  230|  1.79k|      format_context_t<Opts.format> ctx{};
  231|  1.79k|      return read<Opts>(value, buffer, ctx);
  232|  1.79k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIiNS2_9allocatorIiEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  1.79k|   {
  153|  1.79k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.79k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  1.79k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  1.79k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 1.79k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  1.79k|      }
  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|  1.79k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  1.79k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  1.79k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  1.79k|      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|  1.79k|      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|  1.79k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  1.79k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 1.33k, False: 466]
  ------------------
  200|  1.33k|         goto finish;
  201|  1.33k|      }
  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|  1.79k|   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|  1.79k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  1.79k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|    466|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSK_OSL_:
  229|  1.71k|   {
  230|  1.71k|      format_context_t<Opts.format> ctx{};
  231|  1.71k|      return read<Opts>(value, buffer, ctx);
  232|  1.71k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSM_OSN_OT2_:
  152|  1.71k|   {
  153|  1.71k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.71k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  1.71k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  1.71k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 1.71k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  1.71k|      }
  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|  1.71k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  1.71k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  1.71k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  1.71k|      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|  1.71k|      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|  1.71k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  1.71k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 1.71k, False: 0]
  ------------------
  200|  1.71k|         goto finish;
  201|  1.71k|      }
  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|  1.71k|   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|  1.71k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  1.71k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|      0|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__18optionalIdEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  229|  2.16k|   {
  230|  2.16k|      format_context_t<Opts.format> ctx{};
  231|  2.16k|      return read<Opts>(value, buffer, ctx);
  232|  2.16k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__18optionalIdEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  2.16k|   {
  153|  2.16k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  2.16k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  2.16k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  2.16k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 2.16k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  2.16k|      }
  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|  2.16k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  2.16k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  2.16k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  2.16k|      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|  2.16k|      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|  2.16k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  2.16k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 2.09k, False: 78]
  ------------------
  200|  2.09k|         goto finish;
  201|  2.09k|      }
  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|  2.16k|   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|  2.16k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  2.16k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|     78|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSG_OSH_:
  229|  1.23k|   {
  230|  1.23k|      format_context_t<Opts.format> ctx{};
  231|  1.23k|      return read<Opts>(value, buffer, ctx);
  232|  1.23k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_10contiguousERNS2_17basic_string_viewIcS6_EETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSI_OSJ_OT2_:
  152|  1.23k|   {
  153|  1.23k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  1.23k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  1.23k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  1.23k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 1.23k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  1.23k|      }
  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|  1.23k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  1.23k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  1.23k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  1.23k|      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|  1.23k|      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|  1.23k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  1.23k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 848, False: 391]
  ------------------
  200|    848|         goto finish;
  201|    848|      }
  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|  1.23k|   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|  1.23k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  1.23k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|    391|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIdNS2_9allocatorIdEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_:
  229|  3.50k|   {
  230|  3.50k|      format_context_t<Opts.format> ctx{};
  231|  3.50k|      return read<Opts>(value, buffer, ctx);
  232|  3.50k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorIdNS2_9allocatorIdEEEETkNS_10contiguousERNS2_17basic_string_viewIcNS2_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  3.50k|   {
  153|  3.50k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  3.50k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  3.50k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  3.50k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 3.50k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  3.50k|      }
  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|  3.50k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  3.50k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  3.50k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  3.50k|      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|  3.50k|      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|  3.50k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  3.50k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 1.58k, False: 1.91k]
  ------------------
  200|  1.58k|         goto finish;
  201|  1.58k|      }
  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|  3.50k|   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|  3.50k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  3.50k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|  1.91k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorINS_14basic_raw_jsonINS2_17basic_string_viewIcNS2_11char_traitsIcEEEEEENS2_9allocatorIS9_EEEETkNS_10contiguousERS8_Qaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_:
  229|  30.4k|   {
  230|  30.4k|      format_context_t<Opts.format> ctx{};
  231|  30.4k|      return read<Opts>(value, buffer, ctx);
  232|  30.4k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__16vectorINS_14basic_raw_jsonINS2_17basic_string_viewIcNS2_11char_traitsIcEEEEEENS2_9allocatorIS9_EEEETkNS_10contiguousERS8_TkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSG_OSH_OT2_:
  152|  30.4k|   {
  153|  30.4k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  30.4k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  30.4k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  30.4k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 30.4k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  30.4k|      }
  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|  30.4k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  30.4k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  30.4k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  30.4k|      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|  30.4k|      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|  30.4k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  30.4k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 9.67k, False: 20.7k]
  ------------------
  200|  9.67k|         goto finish;
  201|  9.67k|      }
  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|  30.4k|   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|  30.4k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  30.4k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|  20.7k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSA_OSB_:
  229|  4.32M|   {
  230|  4.32M|      format_context_t<Opts.format> ctx{};
  231|  4.32M|      return read<Opts>(value, buffer, ctx);
  232|  4.32M|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSC_OSD_OT2_:
  152|  4.32M|   {
  153|  4.32M|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  4.32M|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  4.32M|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  4.32M|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 4.04M, False: 288k]
  ------------------
  160|  4.04M|            ctx.error = error_code::no_read_input;
  161|  4.04M|            return {0, ctx.error, ctx.custom_error_message};
  162|  4.04M|         }
  163|  4.32M|      }
  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|   288k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  4.32M|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  4.32M|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  4.32M|      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|  4.32M|      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|  4.32M|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  4.32M|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 283k, False: 4.04M]
  ------------------
  200|   283k|         goto finish;
  201|   283k|      }
  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|  4.04M|   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|   288k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|   288k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|  4.04M|   }
_ZN3glz4readITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEENS_4skipETkNS_10contiguousERNSt3__117basic_string_viewIcNS5_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSD_OSE_OT2_:
  152|  4.26M|   {
  153|  4.26M|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  4.26M|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  4.26M|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  4.26M|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 4.04M, False: 225k]
  ------------------
  160|  4.04M|            ctx.error = error_code::no_read_input;
  161|  4.04M|            return {0, ctx.error, ctx.custom_error_message};
  162|  4.04M|         }
  163|  4.26M|      }
  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|   225k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  4.26M|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  4.26M|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  4.26M|      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|  4.26M|      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|  4.26M|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  4.26M|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 164k, False: 4.10M]
  ------------------
  200|   164k|         goto finish;
  201|   164k|      }
  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|  4.10M|      if constexpr (check_validate_trailing_whitespace(Opts)) {
  207|  4.10M|         if (it < end) {
  ------------------
  |  Branch (207:14): [True: 5.04k, False: 4.09M]
  ------------------
  208|  5.04k|            skip_ws<ParseOpts>(ctx, it, end);
  209|  5.04k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (209:17): [True: 332, False: 4.71k]
  ------------------
  210|    332|               goto finish;
  211|    332|            }
  212|  4.71k|            if (it != end) [[unlikely]] {
  ------------------
  |  Branch (212:17): [True: 4.71k, False: 0]
  ------------------
  213|  4.71k|               ctx.error = error_code::syntax_error;
  214|  4.71k|            }
  215|  4.71k|         }
  216|  4.10M|      }
  217|       |
  218|  4.10M|   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|   225k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|   225k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|  4.10M|   }
_ZN3glz14read_iteratorsITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEEEEDaOT0_:
   40|   225k|   {
   41|   225k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|   225k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|   225k|      auto end = it + buffer.size();
   45|       |
   46|   225k|      return std::pair{it, end};
   47|   225k|   }
_ZN3glz23finalize_top_level_readITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextEEEvOT0_PKcS9_S9_:
  131|   225k|   {
  132|   225k|      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|   225k|         if (ctx.error == error_code::end_reached && ctx.depth == 0 && it == end && start < it) {
  ------------------
  |  Branch (137:14): [True: 30.9k, False: 194k]
  |  Branch (137:54): [True: 30.6k, False: 285]
  |  Branch (137:72): [True: 30.6k, False: 0]
  |  Branch (137:85): [True: 30.6k, False: 0]
  ------------------
  138|  30.6k|            context ws_ctx{}; // only written to when skip_ws parses a comment; the result is unused
  139|  30.6k|            const char* consumed = start;
  140|  30.6k|            skip_ws<Opts>(ws_ctx, consumed, it);
  141|  30.6k|            if (consumed == it) {
  ------------------
  |  Branch (141:17): [True: 15, False: 30.6k]
  ------------------
  142|     15|               ctx.error = error_code::no_read_input;
  143|     15|            }
  144|  30.6k|         }
  145|   225k|      }
  146|   225k|      finalize_read_context(ctx);
  147|   225k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEETkNS_10contiguousERKNS2_4spanIKcLm18446744073709551615EEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSG_OSH_OT2_:
  152|  21.5k|   {
  153|  21.5k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  21.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|  21.5k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  21.5k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 21.5k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  21.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|  21.5k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  21.5k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  21.5k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  21.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|  21.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|  21.5k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  21.5k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 18.4k, False: 3.07k]
  ------------------
  200|  18.4k|         goto finish;
  201|  18.4k|      }
  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|  21.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|  21.5k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  21.5k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|  3.07k|   }
_ZN3glz14read_iteratorsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERKNSt3__14spanIKcLm18446744073709551615EEEEEDaOT0_:
   40|  21.5k|   {
   41|  21.5k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
   42|       |
   43|  21.5k|      auto it = reinterpret_cast<const char*>(buffer.data());
   44|  21.5k|      auto end = it + buffer.size();
   45|       |
   46|  21.5k|      return std::pair{it, end};
   47|  21.5k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10contiguousENSt3__117basic_string_viewIcNS6_11char_traitsIcEEEEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSB_OSC_:
  229|  75.9k|   {
  230|  75.9k|      format_context_t<Opts.format> ctx{};
  231|  75.9k|      return read<Opts>(value, buffer, ctx);
  232|  75.9k|   }
_ZN3glz4readITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10contiguousERNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEETkNS_10is_contextERNS_7contextEQaa14read_supportedIT0_XdtT_6formatEEnt18is_input_streamingIT1_EEENS_9error_ctxERSE_OSF_OT2_:
  152|  75.9k|   {
  153|  75.9k|      static_assert(sizeof(decltype(*buffer.data())) == 1);
  154|       |
  155|  75.9k|      call_scope scope{ctx};
  156|       |
  157|       |      // A TOML document with no keys is valid, so its reader decides by the type being read.
  158|  75.9k|      if constexpr (Opts.format != NDJSON && Opts.format != TOML) {
  159|  75.9k|         if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (159:14): [True: 0, False: 75.9k]
  ------------------
  160|      0|            ctx.error = error_code::no_read_input;
  161|      0|            return {0, ctx.error, ctx.custom_error_message};
  162|      0|         }
  163|  75.9k|      }
  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|  75.9k|      ctx.padded_input = check_is_padded(Opts);
  175|       |
  176|  75.9k|      static constexpr auto ParseOpts = parse_opts_for<Opts, Buf>();
  177|       |
  178|  75.9k|      auto [it, end] = read_iterators<ParseOpts>(buffer);
  179|  75.9k|      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|  75.9k|      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|  75.9k|      parse<Opts.format>::template op<ParseOpts>(value, ctx, it, end);
  198|       |
  199|  75.9k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:11): [True: 58.1k, False: 17.7k]
  ------------------
  200|  58.1k|         goto finish;
  201|  58.1k|      }
  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|  75.9k|   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|  75.9k|      finalize_top_level_read<ParseOpts>(ctx, start, it, end);
  222|       |
  223|  75.9k|      return {size_t(it - start), ctx.error, ctx.custom_error_message};
  224|  17.7k|   }

_ZN3glz12format_errorINSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEENS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_9error_ctxERKT_:
 3432|  4.29M|   {
 3433|  4.29M|      const auto error_type_str = meta<error_code>::keys[uint32_t(pe.ec)];
 3434|       |
 3435|  4.29M|      const auto info = detail::get_source_info(buffer, pe.count);
 3436|  4.29M|      auto error_str = detail::generate_error_string(error_type_str, info);
 3437|  4.29M|      if (pe.custom_error_message.size()) {
  ------------------
  |  Branch (3437:11): [True: 0, False: 4.29M]
  ------------------
 3438|      0|         error_str.append(" ");
 3439|      0|         error_str.append(pe.custom_error_message.begin(), pe.custom_error_message.end());
 3440|      0|      }
 3441|  4.29M|      return error_str;
 3442|  4.29M|   }
_ZN3glz11decode_hashILj10EN12jsonrpc_fuzz5pointEXtlNS_11hash_info_tIS2_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh0ELh1ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2EEELm1ELm1EEELS5_1EE2opIRPKcSD_EEmOT_T0_:
 2585|  7.28k|      {
 2586|       |         if constexpr (HashInfo.sized_hash) {
 2587|       |            const auto* c = quote_memchr<HashInfo.min_length, HashInfo.max_length>(it, end);
 2588|       |            if (c) [[likely]] {
 2589|       |               const auto n = size_t(static_cast<std::decay_t<decltype(it)>>(c) - it);
 2590|       |               if (n == 0 || n > HashInfo.max_length || HashInfo.unique_index >= size_t(end - it)) [[unlikely]] {
 2591|       |                  return N; // error
 2592|       |               }
 2593|       |
 2594|       |               const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2595|       |               return HashInfo.table[h % bsize];
 2596|       |            }
 2597|       |            else [[unlikely]] {
 2598|       |               return N;
 2599|       |            }
 2600|       |         }
 2601|  7.28k|         else {
 2602|  7.28k|            if constexpr (N == 2) {
 2603|       |               if constexpr (uindex > 0) {
 2604|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2605|       |                     return N; // error
 2606|       |                  }
 2607|       |               }
 2608|       |               // Avoids using a hash table
 2609|  7.28k|               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2610|  7.28k|               return size_t(bool(it[uindex] ^ first_key_char));
 2611|       |            }
 2612|       |            else {
 2613|       |               if constexpr (uindex > 0) {
 2614|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2615|       |                     return N; // error
 2616|       |                  }
 2617|       |               }
 2618|       |               return HashInfo.table[uint8_t(it[uindex])];
 2619|       |            }
 2620|  7.28k|         }
 2621|  7.28k|      }
_ZN3glz11decode_hashILj10EN12jsonrpc_fuzz8fuzz_apiEXtlNS_11hash_info_tIS2_Lm128EEELNS_9hash_typeE2EtlNSt3__15arrayIhLm128EEEtlA128_hLh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh11ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh6ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh9ELh13ELh13ELh13ELh13ELh13ELh12ELh13ELh13ELh13ELh13ELh0ELh13ELh13ELh13ELh13ELh13ELh13ELh5ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh4ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh1ELh13ELh10ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh2ELh3ELh13ELh13ELh13ELh13ELh13ELh13ELh8ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh13ELh7ELh13ELh13ELh13ELh13ELh13ELh13ELh13EEELm4ELm8ELm15149911783463666029ELm18446744073709551615ELb0ELm2EEELS5_2EE2opIRPKcSD_EEmOT_T0_:
 2650|  37.9k|      {
 2651|  37.9k|         if constexpr (HashInfo.front_hash_bytes == 2) {
 2652|  37.9k|            if (size_t(end - it) <= 2) [[unlikely]] {
  ------------------
  |  Branch (2652:17): [True: 8, False: 37.8k]
  ------------------
 2653|      8|               return N; // error
 2654|      8|            }
 2655|  37.8k|            uint16_t h;
 2656|       |            if consteval {
 2657|       |               h = 0;
 2658|       |               for (size_t i = 0; i < 2; ++i) {
 2659|       |                  h |= static_cast<uint16_t>(static_cast<uint8_t>(it[i])) << (8 * i);
 2660|       |               }
 2661|       |            }
 2662|  37.8k|            else {
 2663|  37.8k|               std::memcpy(&h, it, 2);
 2664|       |               if constexpr (std::endian::native == std::endian::big) {
 2665|       |                  h = std::byteswap(h);
 2666|       |               }
 2667|  37.8k|            }
 2668|  37.8k|            return HashInfo.table[bitmix(h, HashInfo.seed) % bsize];
 2669|       |         }
 2670|       |         else if constexpr (HashInfo.front_hash_bytes == 4) {
 2671|       |            if (size_t(end - it) <= 4) [[unlikely]] {
 2672|       |               return N;
 2673|       |            }
 2674|       |            uint32_t h;
 2675|       |            if consteval {
 2676|       |               h = 0;
 2677|       |               for (size_t i = 0; i < 4; ++i) {
 2678|       |                  h |= static_cast<uint32_t>(static_cast<uint8_t>(it[i])) << (8 * i);
 2679|       |               }
 2680|       |            }
 2681|       |            else {
 2682|       |               std::memcpy(&h, it, 4);
 2683|       |               if constexpr (std::endian::native == std::endian::big) {
 2684|       |                  h = std::byteswap(h);
 2685|       |               }
 2686|       |            }
 2687|       |            return HashInfo.table[bitmix(h, HashInfo.seed) % bsize];
 2688|       |         }
 2689|       |         else if constexpr (HashInfo.front_hash_bytes == 8) {
 2690|       |            if (size_t(end - it) <= 8) [[unlikely]] {
 2691|       |               return N;
 2692|       |            }
 2693|       |            uint64_t h;
 2694|       |            if consteval {
 2695|       |               h = 0;
 2696|       |               for (size_t i = 0; i < 8; ++i) {
 2697|       |                  h |= static_cast<uint64_t>(static_cast<uint8_t>(it[i])) << (8 * i);
 2698|       |               }
 2699|       |            }
 2700|       |            else {
 2701|       |               std::memcpy(&h, it, 8);
 2702|       |               if constexpr (std::endian::native == std::endian::big) {
 2703|       |                  h = std::byteswap(h);
 2704|       |               }
 2705|       |            }
 2706|       |            return HashInfo.table[rich_bitmix(h, HashInfo.seed) % bsize];
 2707|       |         }
 2708|       |         else {
 2709|       |            static_assert(false_v<T>, "invalid hash algorithm");
 2710|       |         }
 2711|  37.9k|      }
_ZN3glz6bitmixEmm:
 1571|  37.8k|   {
 1572|  37.8k|      h *= seed;
 1573|  37.8k|      return h ^ std::rotr(h, 49);
 1574|  37.8k|   };
_ZN3glz11decode_hashILj10EN12jsonrpc_fuzz6nestedEXtlNS_11hash_info_tIS2_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh0ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh1ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2ELh2EEELm5ELm5EEELS5_1EE2opIRPKcSD_EEmOT_T0_:
 2585|  16.3k|      {
 2586|       |         if constexpr (HashInfo.sized_hash) {
 2587|       |            const auto* c = quote_memchr<HashInfo.min_length, HashInfo.max_length>(it, end);
 2588|       |            if (c) [[likely]] {
 2589|       |               const auto n = size_t(static_cast<std::decay_t<decltype(it)>>(c) - it);
 2590|       |               if (n == 0 || n > HashInfo.max_length || HashInfo.unique_index >= size_t(end - it)) [[unlikely]] {
 2591|       |                  return N; // error
 2592|       |               }
 2593|       |
 2594|       |               const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2595|       |               return HashInfo.table[h % bsize];
 2596|       |            }
 2597|       |            else [[unlikely]] {
 2598|       |               return N;
 2599|       |            }
 2600|       |         }
 2601|  16.3k|         else {
 2602|  16.3k|            if constexpr (N == 2) {
 2603|       |               if constexpr (uindex > 0) {
 2604|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2605|       |                     return N; // error
 2606|       |                  }
 2607|       |               }
 2608|       |               // Avoids using a hash table
 2609|  16.3k|               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2610|  16.3k|               return size_t(bool(it[uindex] ^ first_key_char));
 2611|       |            }
 2612|       |            else {
 2613|       |               if constexpr (uindex > 0) {
 2614|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2615|       |                     return N; // error
 2616|       |                  }
 2617|       |               }
 2618|       |               return HashInfo.table[uint8_t(it[uindex])];
 2619|       |            }
 2620|  16.3k|         }
 2621|  16.3k|      }
_ZN3glz11decode_hashILj10ENS_3rpc18request_envelope_tEXtlNS_11hash_info_tIS2_Lm256EEELNS_9hash_typeE1EtlNSt3__15arrayIhLm256EEEtlA256_hLh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh3ELh0ELh4ELh4ELh1ELh4ELh4ELh2ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4ELh4EEELm2ELm7EEELS5_1EE2opIRPKcSD_EEmOT_T0_:
 2585|   298k|      {
 2586|       |         if constexpr (HashInfo.sized_hash) {
 2587|       |            const auto* c = quote_memchr<HashInfo.min_length, HashInfo.max_length>(it, end);
 2588|       |            if (c) [[likely]] {
 2589|       |               const auto n = size_t(static_cast<std::decay_t<decltype(it)>>(c) - it);
 2590|       |               if (n == 0 || n > HashInfo.max_length || HashInfo.unique_index >= size_t(end - it)) [[unlikely]] {
 2591|       |                  return N; // error
 2592|       |               }
 2593|       |
 2594|       |               const auto h = bitmix(uint16_t(it[HashInfo.unique_index]) | (uint16_t(n) << 8), HashInfo.seed);
 2595|       |               return HashInfo.table[h % bsize];
 2596|       |            }
 2597|       |            else [[unlikely]] {
 2598|       |               return N;
 2599|       |            }
 2600|       |         }
 2601|   298k|         else {
 2602|       |            if constexpr (N == 2) {
 2603|       |               if constexpr (uindex > 0) {
 2604|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2605|       |                     return N; // error
 2606|       |                  }
 2607|       |               }
 2608|       |               // Avoids using a hash table
 2609|       |               constexpr auto first_key_char = reflect<T>::keys[0][uindex];
 2610|       |               return size_t(bool(it[uindex] ^ first_key_char));
 2611|       |            }
 2612|   298k|            else {
 2613|       |               if constexpr (uindex > 0) {
 2614|       |                  if (size_t(end - it) <= uindex) [[unlikely]] {
 2615|       |                     return N; // error
 2616|       |                  }
 2617|       |               }
 2618|   298k|               return HashInfo.table[uint8_t(it[uindex])];
 2619|   298k|            }
 2620|   298k|         }
 2621|   298k|      }

_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  79.7k|   {
  117|  79.7k|      using D = std::remove_cvref_t<Tup>;
  118|  79.7k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.7k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.7k|         using T = typename D::template type_at<I>;
  121|  79.7k|         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|  79.7k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.7k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.7k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  79.7k|   {
  117|  79.7k|      using D = std::remove_cvref_t<Tup>;
  118|  79.7k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.7k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.7k|         using T = typename D::template type_at<I>;
  121|  79.7k|         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|  79.7k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.7k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.7k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  79.7k|   {
  117|  79.7k|      using D = std::remove_cvref_t<Tup>;
  118|  79.7k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.7k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.7k|         using T = typename D::template type_at<I>;
  121|  79.7k|         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|  79.7k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.7k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.7k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableERKNS_5tupleIJMN12jsonrpc_fuzz10member_apiEiMS4_FiiEMS4_FvvEMS4_FNS3_5pointERKSA_EEEEEEDcOT0_:
  116|  79.7k|   {
  117|  79.7k|      using D = std::remove_cvref_t<Tup>;
  118|  79.7k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.7k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.7k|         using T = typename D::template type_at<I>;
  121|  79.7k|         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|  79.7k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.7k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.7k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  5.74k|   {
  117|  5.74k|      using D = std::remove_cvref_t<Tup>;
  118|  5.74k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  5.74k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  5.74k|         using T = typename D::template type_at<I>;
  121|       |         if constexpr (std::is_reference_v<Tup> || std::is_const_v<std::remove_reference_t<Tup>>) {
  122|       |            // An lvalue, or a const tuple of either value category: element access carries the
  123|       |            // constness of the tuple, except for elements that are themselves references.
  124|       |            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|       |            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|  5.74k|         else {
  128|  5.74k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  5.74k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  5.74k|   }
_ZN3glz3tieIJddEEENS_5tupleIJDpRT_EEES4_:
  325|  87.3k|   {
  326|  87.3k|      return {{{ts}...}};
  327|  87.3k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  1.34k|   {
  117|  1.34k|      using D = std::remove_cvref_t<Tup>;
  118|  1.34k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.34k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.34k|         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|  1.34k|         else {
  128|  1.34k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.34k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.34k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERNS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  80.2k|   {
  117|  80.2k|      using D = std::remove_cvref_t<Tup>;
  118|  80.2k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.2k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.2k|         using T = typename D::template type_at<I>;
  121|  80.2k|         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|  80.2k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.2k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.2k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERNS_5tupleIJRdS3_EEEEEDcOT0_:
  116|  80.2k|   {
  117|  80.2k|      using D = std::remove_cvref_t<Tup>;
  118|  80.2k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  80.2k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  80.2k|         using T = typename D::template type_at<I>;
  121|  80.2k|         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|  80.2k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  80.2k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  80.2k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  20.7k|   {
  117|  20.7k|      using D = std::remove_cvref_t<Tup>;
  118|  20.7k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  20.7k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  20.7k|         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|  20.7k|         else {
  128|  20.7k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  20.7k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  20.7k|   }
_ZN3glz3tieIJiNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz5pointENS8_6nestedENS1_6vectorIiNS5_IiEEEENS1_3mapIS7_iNS1_4lessIS7_EENS5_INS1_4pairIKS7_iEEEEEENS1_8optionalIdEENS1_7variantIJS7_NS8_6amountEEEENS1_8functionIFiiEEENSR_IFS7_RSI_EEENSR_IFS9_RKS9_EEENSR_IFdRNSB_IdNS5_IdEEEEEEENSR_IFvvEEEEEENS_5tupleIJDpRT_EEES1B_:
  325|   116k|   {
  326|   116k|      return {{{ts}...}};
  327|   116k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|     52|   {
  117|     52|      using D = std::remove_cvref_t<Tup>;
  118|     52|      if constexpr (tuple_detail::is_tuple<D>) {
  119|     52|         static_assert(I < D::N, "glz::get index is out of range");
  120|     52|         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|     52|         else {
  128|     52|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|     52|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|     52|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    689|   {
  117|    689|      using D = std::remove_cvref_t<Tup>;
  118|    689|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    689|         static_assert(I < D::N, "glz::get index is out of range");
  120|    689|         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|    689|         else {
  128|    689|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    689|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    689|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|  15.1k|   {
  117|  15.1k|      using D = std::remove_cvref_t<Tup>;
  118|  15.1k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  15.1k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  15.1k|         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|  15.1k|         else {
  128|  15.1k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  15.1k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  15.1k|   }
_ZN3glz3tieIJiNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEENS_5tupleIJDpRT_EEESB_:
  325|  96.0k|   {
  326|  96.0k|      return {{{ts}...}};
  327|  96.0k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|    992|   {
  117|    992|      using D = std::remove_cvref_t<Tup>;
  118|    992|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    992|         static_assert(I < D::N, "glz::get index is out of range");
  120|    992|         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|    992|         else {
  128|    992|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    992|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    992|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    887|   {
  117|    887|      using D = std::remove_cvref_t<Tup>;
  118|    887|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    887|         static_assert(I < D::N, "glz::get index is out of range");
  120|    887|         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|    887|         else {
  128|    887|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    887|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    887|   }
_ZN3glz3getILm4ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  7.62k|   {
  117|  7.62k|      using D = std::remove_cvref_t<Tup>;
  118|  7.62k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  7.62k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  7.62k|         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|  7.62k|         else {
  128|  7.62k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  7.62k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  7.62k|   }
_ZN3glz3getILm5ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  1.33k|   {
  117|  1.33k|      using D = std::remove_cvref_t<Tup>;
  118|  1.33k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.33k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.33k|         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|  1.33k|         else {
  128|  1.33k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.33k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.33k|   }
_ZN3glz3getILm6ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  1.65k|   {
  117|  1.65k|      using D = std::remove_cvref_t<Tup>;
  118|  1.65k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.65k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.65k|         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|  1.65k|         else {
  128|  1.65k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.65k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.65k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableENS_5tupleIJRdEEEEEDcOT0_:
  116|    293|   {
  117|    293|      using D = std::remove_cvref_t<Tup>;
  118|    293|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    293|         static_assert(I < D::N, "glz::get index is out of range");
  120|    293|         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|    293|         else {
  128|    293|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    293|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    293|   }
_ZN3glz3tieIJdEEENS_5tupleIJDpRT_EEES4_:
  325|    293|   {
  326|    293|      return {{{ts}...}};
  327|    293|   }
_ZN3glz3getILm7ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  1.80k|   {
  117|  1.80k|      using D = std::remove_cvref_t<Tup>;
  118|  1.80k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  1.80k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  1.80k|         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|  1.80k|         else {
  128|  1.80k|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|  1.80k|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  1.80k|   }
_ZN3glz3getILm8ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    554|   {
  117|    554|      using D = std::remove_cvref_t<Tup>;
  118|    554|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    554|         static_assert(I < D::N, "glz::get index is out of range");
  120|    554|         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|    554|         else {
  128|    554|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    554|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    554|   }
_ZN3glz3getILm9ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    416|   {
  117|    416|      using D = std::remove_cvref_t<Tup>;
  118|    416|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    416|         static_assert(I < D::N, "glz::get index is out of range");
  120|    416|         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|    416|         else {
  128|    416|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    416|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    416|   }
_ZN3glz3getILm10ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    320|   {
  117|    320|      using D = std::remove_cvref_t<Tup>;
  118|    320|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    320|         static_assert(I < D::N, "glz::get index is out of range");
  120|    320|         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|    320|         else {
  128|    320|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    320|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    320|   }
_ZN3glz3getILm11ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    433|   {
  117|    433|      using D = std::remove_cvref_t<Tup>;
  118|    433|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    433|         static_assert(I < D::N, "glz::get index is out of range");
  120|    433|         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|    433|         else {
  128|    433|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    433|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    433|   }
_ZN3glz3getILm12ETkNS_12tuple_detail9indexableENS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|    182|   {
  117|    182|      using D = std::remove_cvref_t<Tup>;
  118|    182|      if constexpr (tuple_detail::is_tuple<D>) {
  119|    182|         static_assert(I < D::N, "glz::get index is out of range");
  120|    182|         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|    182|         else {
  128|    182|            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|    182|         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|    182|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|  79.9k|   {
  117|  79.9k|      using D = std::remove_cvref_t<Tup>;
  118|  79.9k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.9k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.9k|         using T = typename D::template type_at<I>;
  121|  79.9k|         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|  79.9k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.9k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.9k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEEEEDcOT0_:
  116|  79.9k|   {
  117|  79.9k|      using D = std::remove_cvref_t<Tup>;
  118|  79.9k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.9k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.9k|         using T = typename D::template type_at<I>;
  121|  79.9k|         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|  79.9k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.9k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.9k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm4ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm5ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm6ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm7ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm8ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm9ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm10ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm11ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm12ETkNS_12tuple_detail9indexableERNS_5tupleIJRiRNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERN12jsonrpc_fuzz5pointERNSC_6nestedERNS4_6vectorIiNS8_IiEEEERNS4_3mapISA_iNS4_4lessISA_EENS8_INS4_4pairIKSA_iEEEEEERNS4_8optionalIdEERNS4_7variantIJSA_NSC_6amountEEEERNS4_8functionIFiiEEERNS11_IFSA_RSP_EEERNS11_IFSD_RKSD_EEERNS11_IFdRNSH_IdNS8_IdEEEEEEERNS11_IFvvEEEEEEEEDcOT0_:
  116|  79.8k|   {
  117|  79.8k|      using D = std::remove_cvref_t<Tup>;
  118|  79.8k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  79.8k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  79.8k|         using T = typename D::template type_at<I>;
  121|  79.8k|         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|  79.8k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  79.8k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  79.8k|   }
_ZN3glz3getILm0ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  73.2k|   {
  117|  73.2k|      using D = std::remove_cvref_t<Tup>;
  118|  73.2k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  73.2k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  73.2k|         using T = typename D::template type_at<I>;
  121|  73.2k|         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|  73.2k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  73.2k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  73.2k|   }
_ZN3glz3getILm1ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  64.5k|   {
  117|  64.5k|      using D = std::remove_cvref_t<Tup>;
  118|  64.5k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  64.5k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  64.5k|         using T = typename D::template type_at<I>;
  121|  64.5k|         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|  64.5k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  64.5k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  64.5k|   }
_ZN3glz3getILm2ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  46.0k|   {
  117|  46.0k|      using D = std::remove_cvref_t<Tup>;
  118|  46.0k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  46.0k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  46.0k|         using T = typename D::template type_at<I>;
  121|  46.0k|         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|  46.0k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  46.0k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  46.0k|   }
_ZN3glz3getILm3ETkNS_12tuple_detail9indexableERKNS_5tupleIJMNS_3rpc18request_envelope_tENSt3__18optionalINS5_17basic_string_viewIcNS5_11char_traitsIcEEEEEESC_MS4_NS_14basic_raw_jsonISA_EEMS4_NS5_7variantIJDnSA_lEEEEEEEEDcOT0_:
  116|  77.3k|   {
  117|  77.3k|      using D = std::remove_cvref_t<Tup>;
  118|  77.3k|      if constexpr (tuple_detail::is_tuple<D>) {
  119|  77.3k|         static_assert(I < D::N, "glz::get index is out of range");
  120|  77.3k|         using T = typename D::template type_at<I>;
  121|  77.3k|         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|  77.3k|            using leaf = tuple_detail::match_const_t<std::remove_reference_t<Tup>, tuple_detail::elem<I, T>>;
  125|  77.3k|            return (static_cast<leaf&>(tup).value);
  126|       |         }
  127|       |         else {
  128|       |            return static_cast<T&&>(static_cast<tuple_detail::elem<I, T>&>(tup).value);
  129|       |         }
  130|       |      }
  131|       |      else {
  132|       |         return (static_cast<Tup&&>(tup)[I]);
  133|       |      }
  134|  77.3k|   }

_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedIS8_NS_9error_ctxEEEOSB_:
  119|  46.0k|   {
  120|  46.0k|      std::string buffer{};
  121|  46.0k|      context ctx{};
  122|  46.0k|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  123|  46.0k|      if (res) [[unlikely]] {
  ------------------
  |  Branch (123:11): [True: 0, False: 46.0k]
  ------------------
  124|      0|         return glz::unexpected(res);
  125|      0|      }
  126|  46.0k|      return {buffer};
  127|  46.0k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_TkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSD_RSE_OT2_:
   18|  46.0k|   {
   19|  46.0k|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  46.0k|      call_scope scope{ctx};
   21|       |
   22|  46.0k|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  46.0k|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 46.0k, False: 0]
  ------------------
   25|  46.0k|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  46.0k|         }
   27|  46.0k|      }
   28|  46.0k|      size_t ix = 0; // overwrite index
   29|  46.0k|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  46.0k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 46.0k]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  46.0k|      traits::finalize(buffer, ix);
   43|  46.0k|      return {ix, error_code::none, ctx.custom_error_message};
   44|  46.0k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedINS2_12basic_stringIcS6_NS2_9allocatorIcEEEENS_9error_ctxEEEOSA_:
  119|  46.7k|   {
  120|  46.7k|      std::string buffer{};
  121|  46.7k|      context ctx{};
  122|  46.7k|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  123|  46.7k|      if (res) [[unlikely]] {
  ------------------
  |  Branch (123:11): [True: 0, False: 46.7k]
  ------------------
  124|      0|         return glz::unexpected(res);
  125|      0|      }
  126|  46.7k|      return {buffer};
  127|  46.7k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEETkNS_13output_bufferENS2_12basic_stringIcS6_NS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSG_RSH_OT2_:
   18|  46.7k|   {
   19|  46.7k|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  46.7k|      call_scope scope{ctx};
   21|       |
   22|  46.7k|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  46.7k|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 46.7k, False: 0]
  ------------------
   25|  46.7k|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  46.7k|         }
   27|  46.7k|      }
   28|  46.7k|      size_t ix = 0; // overwrite index
   29|  46.7k|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  46.7k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 46.7k]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  46.7k|      traits::finalize(buffer, ix);
   43|  46.7k|      return {ix, error_code::none, ctx.custom_error_message};
   44|  46.7k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSA_RT1_:
  111|    427|   {
  112|    427|      context ctx{};
  113|    427|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|    427|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSC_RSD_OT2_:
   18|    427|   {
   19|    427|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    427|      call_scope scope{ctx};
   21|       |
   22|    427|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    427|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 427, False: 0]
  ------------------
   25|    427|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    427|         }
   27|    427|      }
   28|    427|      size_t ix = 0; // overwrite index
   29|    427|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    427|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 427]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    427|      traits::finalize(buffer, ix);
   43|    427|      return {ix, error_code::none, ctx.custom_error_message};
   44|    427|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_13output_bufferENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOS9_RT1_:
  111|    292|   {
  112|    292|      context ctx{};
  113|    292|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|    292|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS_13output_bufferENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSB_RSC_OT2_:
   18|    292|   {
   19|    292|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    292|      call_scope scope{ctx};
   21|       |
   22|    292|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    292|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 292, False: 0]
  ------------------
   25|    292|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    292|         }
   27|    292|      }
   28|    292|      size_t ix = 0; // overwrite index
   29|    292|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    292|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 292]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    292|      traits::finalize(buffer, ix);
   43|    292|      return {ix, error_code::none, ctx.custom_error_message};
   44|    292|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSB_RT1_:
  111|    107|   {
  112|    107|      context ctx{};
  113|    107|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|    107|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSD_RSE_OT2_:
   18|    107|   {
   19|    107|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    107|      call_scope scope{ctx};
   21|       |
   22|    107|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    107|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 107, False: 0]
  ------------------
   25|    107|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    107|         }
   27|    107|      }
   28|    107|      size_t ix = 0; // overwrite index
   29|    107|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    107|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 107]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    107|      traits::finalize(buffer, ix);
   43|    107|      return {ix, error_code::none, ctx.custom_error_message};
   44|    107|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
  111|     65|   {
  112|     65|      context ctx{};
  113|     65|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|     65|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSE_RSF_OT2_:
   18|     65|   {
   19|     65|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     65|      call_scope scope{ctx};
   21|       |
   22|     65|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     65|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 65, False: 0]
  ------------------
   25|     65|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     65|         }
   27|     65|      }
   28|     65|      size_t ix = 0; // overwrite index
   29|     65|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     65|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 65]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     65|      traits::finalize(buffer, ix);
   43|     65|      return {ix, error_code::none, ctx.custom_error_message};
   44|     65|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_Q15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSA_RT1_:
  111|    769|   {
  112|    769|      context ctx{};
  113|    769|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|    769|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_TkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSC_RSD_OT2_:
   18|    769|   {
   19|    769|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    769|      call_scope scope{ctx};
   21|       |
   22|    769|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    769|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 769, False: 0]
  ------------------
   25|    769|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    769|         }
   27|    769|      }
   28|    769|      size_t ix = 0; // overwrite index
   29|    769|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    769|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 769]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    769|      traits::finalize(buffer, ix);
   43|    769|      return {ix, error_code::none, ctx.custom_error_message};
   44|    769|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSA_RT1_:
  111|  1.93k|   {
  112|  1.93k|      context ctx{};
  113|  1.93k|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|  1.93k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS_13output_bufferENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSC_RSD_OT2_:
   18|  1.93k|   {
   19|  1.93k|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  1.93k|      call_scope scope{ctx};
   21|       |
   22|  1.93k|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  1.93k|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 1.93k, False: 0]
  ------------------
   25|  1.93k|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  1.93k|         }
   27|  1.93k|      }
   28|  1.93k|      size_t ix = 0; // overwrite index
   29|  1.93k|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  1.93k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 1.93k]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  1.93k|      traits::finalize(buffer, ix);
   43|  1.93k|      return {ix, error_code::none, ctx.custom_error_message};
   44|  1.93k|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
  111|    278|   {
  112|    278|      context ctx{};
  113|    278|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|    278|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSE_RSF_OT2_:
   18|    278|   {
   19|    278|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|    278|      call_scope scope{ctx};
   21|       |
   22|    278|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|    278|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 278, False: 0]
  ------------------
   25|    278|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|    278|         }
   27|    278|      }
   28|    278|      size_t ix = 0; // overwrite index
   29|    278|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|    278|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 278]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|    278|      traits::finalize(buffer, ix);
   43|    278|      return {ix, error_code::none, ctx.custom_error_message};
   44|    278|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
  111|     66|   {
  112|     66|      context ctx{};
  113|     66|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|     66|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS_13output_bufferENSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSE_RSF_OT2_:
   18|     66|   {
   19|     66|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     66|      call_scope scope{ctx};
   21|       |
   22|     66|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     66|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 66, False: 0]
  ------------------
   25|     66|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     66|         }
   27|     66|      }
   28|     66|      size_t ix = 0; // overwrite index
   29|     66|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     66|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 66]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     66|      traits::finalize(buffer, ix);
   43|     66|      return {ix, error_code::none, ctx.custom_error_message};
   44|     66|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS2_9allocatorIiEEEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS4_IcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSD_RT1_:
  111|     60|   {
  112|     60|      context ctx{};
  113|     60|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|     60|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS2_9allocatorIiEEEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS4_IcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSF_RSG_OT2_:
   18|     60|   {
   19|     60|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     60|      call_scope scope{ctx};
   21|       |
   22|     60|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     60|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 60, False: 0]
  ------------------
   25|     60|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     60|         }
   27|     60|      }
   28|     60|      size_t ix = 0; // overwrite index
   29|     60|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     60|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 60]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     60|      traits::finalize(buffer, ix);
   43|     60|      return {ix, error_code::none, ctx.custom_error_message};
   44|     60|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_13output_bufferES9_Q15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSI_RT1_:
  111|     72|   {
  112|     72|      context ctx{};
  113|     72|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|     72|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEETkNS_13output_bufferES9_TkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSK_RSL_OT2_:
   18|     72|   {
   19|     72|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     72|      call_scope scope{ctx};
   21|       |
   22|     72|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     72|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 72, False: 0]
  ------------------
   25|     72|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     72|         }
   27|     72|      }
   28|     72|      size_t ix = 0; // overwrite index
   29|     72|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     72|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 72]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     72|      traits::finalize(buffer, ix);
   43|     72|      return {ix, error_code::none, ctx.custom_error_message};
   44|     72|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSC_RT1_:
  111|     65|   {
  112|     65|      context ctx{};
  113|     65|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|     65|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS_13output_bufferENS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSE_RSF_OT2_:
   18|     65|   {
   19|     65|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     65|      call_scope scope{ctx};
   21|       |
   22|     65|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     65|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 65, False: 0]
  ------------------
   25|     65|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     65|         }
   27|     65|      }
   28|     65|      size_t ix = 0; // overwrite index
   29|     65|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     65|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 65]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     65|      traits::finalize(buffer, ix);
   43|     65|      return {ix, error_code::none, ctx.custom_error_message};
   44|     65|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_13output_bufferES9_Q15write_supportedIT0_XdtT_6formatEEEENS_9error_ctxEOSE_RT1_:
  111|     84|   {
  112|     84|      context ctx{};
  113|     84|      return write<Opts>(std::forward<T>(value), buffer, ctx);
  114|     84|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_13output_bufferES9_TkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSG_RSH_OT2_:
   18|     84|   {
   19|     84|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     84|      call_scope scope{ctx};
   21|       |
   22|     84|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     84|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 84, False: 0]
  ------------------
   25|     84|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     84|         }
   27|     84|      }
   28|     84|      size_t ix = 0; // overwrite index
   29|     84|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     84|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 84]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     84|      traits::finalize(buffer, ix);
   43|     84|      return {ix, error_code::none, ctx.custom_error_message};
   44|     84|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedIS8_NS_9error_ctxEEEOS9_:
  119|  4.27M|   {
  120|  4.27M|      std::string buffer{};
  121|  4.27M|      context ctx{};
  122|  4.27M|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  123|  4.27M|      if (res) [[unlikely]] {
  ------------------
  |  Branch (123:11): [True: 0, False: 4.27M]
  ------------------
  124|      0|         return glz::unexpected(res);
  125|      0|      }
  126|  4.27M|      return {buffer};
  127|  4.27M|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETkNS_13output_bufferES8_TkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSB_RSC_OT2_:
   18|  4.27M|   {
   19|  4.27M|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|  4.27M|      call_scope scope{ctx};
   21|       |
   22|  4.27M|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|  4.27M|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 4.27M, False: 0]
  ------------------
   25|  4.27M|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|  4.27M|         }
   27|  4.27M|      }
   28|  4.27M|      size_t ix = 0; // overwrite index
   29|  4.27M|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|  4.27M|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 4.27M]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|  4.27M|      traits::finalize(buffer, ix);
   43|  4.27M|      return {ix, error_code::none, ctx.custom_error_message};
   44|  4.27M|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEQ15write_supportedIT0_XdtT_6formatEEEENS2_8expectedINS2_12basic_stringIcS5_NS2_9allocatorIcEEEENS_9error_ctxEEEOS9_:
  119|     54|   {
  120|     54|      std::string buffer{};
  121|     54|      context ctx{};
  122|     54|      const auto res = write<Opts>(std::forward<T>(value), buffer, ctx);
  123|     54|      if (res) [[unlikely]] {
  ------------------
  |  Branch (123:11): [True: 0, False: 54]
  ------------------
  124|      0|         return glz::unexpected(res);
  125|      0|      }
  126|     54|      return {buffer};
  127|     54|   }
_ZN3glz5writeITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEETkNS_13output_bufferENS2_12basic_stringIcS5_NS2_9allocatorIcEEEETkNS_10is_contextERNS_7contextEQaa15write_supportedIT0_XdtT_6formatEEnt17byte_array_bufferIT1_EEENS_9error_ctxEOSF_RSG_OT2_:
   18|     54|   {
   19|     54|      using traits = buffer_traits<std::remove_cvref_t<Buffer>>;
   20|     54|      call_scope scope{ctx};
   21|       |
   22|     54|      if constexpr (traits::is_resizable) {
   23|       |         // A buffer could be size 1, to ensure we have sufficient memory we can't just check `empty()`
   24|     54|         if (buffer.size() < 2 * write_padding_bytes) {
  ------------------
  |  Branch (24:14): [True: 54, False: 0]
  ------------------
   25|     54|            resize_unfilled(buffer, 2 * write_padding_bytes);
   26|     54|         }
   27|     54|      }
   28|     54|      size_t ix = 0; // overwrite index
   29|     54|      to<Opts.format, std::remove_cvref_t<T>>::template op<Opts>(std::forward<T>(value), ctx, buffer, ix);
   30|       |
   31|     54|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (31:11): [True: 0, False: 54]
  ------------------
   32|       |         // Truncate on the way out too: the padding above is grown without being filled, so a
   33|       |         // buffer left at its padded length would hand the caller indeterminate bytes. Not
   34|       |         // `finalize`, which for a streaming buffer means flushing -- a failed write must not
   35|       |         // push the partial document downstream on its way out.
   36|      0|         if constexpr (traits::is_resizable && not traits::is_output_streaming) {
   37|      0|            buffer.resize(ix);
   38|      0|         }
   39|      0|         return {ix, ctx.error, ctx.custom_error_message};
   40|      0|      }
   41|       |
   42|     54|      traits::finalize(buffer, ix);
   43|     54|      return {ix, error_code::none, ctx.custom_error_message};
   44|     54|   }

_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  34.2k|      {
  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|  34.2k|         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|  34.2k|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|  34.2k|            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|  34.2k|            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|  34.2k|               const auto end = glz::to_chars_40kb(start, value);
  363|  34.2k|               ix += size_t(end - start);
  364|  34.2k|            }
  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|  34.2k|      }
_ZN3glz11write_chars2opITnDaXtlNS_9opts_sizeEtlNS_4optsELj10ELb1ELb0ELb1ELb1EEEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_5num_tERKmTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  4.51M|      {
  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|  4.51M|         if constexpr (resizable<B> && not check_write_unchecked(Opts)) {
  215|  4.51M|            if (const auto k = ix + 64; k > b.size()) {
  ------------------
  |  Branch (215:41): [True: 0, False: 4.51M]
  ------------------
  216|      0|               grow_buffer(b, k);
  217|      0|            }
  218|  4.51M|         }
  219|       |
  220|  4.51M|         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|  4.51M|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|  4.51M|            const auto start = reinterpret_cast<char*>(&b[ix]);
  355|  4.51M|            if constexpr (is_size_optimized(Opts)) {
  356|       |               // Size mode: use glz::to_chars (400B lookup tables)
  357|  4.51M|               const auto end = glz::to_chars(start, value);
  358|  4.51M|               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|  4.51M|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|    915|      {
  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|    915|         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|    915|         else if constexpr (is_any_of<V, int32_t, uint32_t, int64_t, uint64_t>) {
  354|    915|            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|    915|            else {
  361|       |               // Normal mode: use to_chars_40kb (40KB digit_quads table)
  362|    915|               const auto end = glz::to_chars_40kb(start, value);
  363|    915|               ix += size_t(end - start);
  364|    915|            }
  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|    915|      }
_ZN3glz11write_chars2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS_5num_tERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  206|  2.83k|      {
  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.83k|         using V = std::decay_t<decltype(value)>;
  221|       |
  222|  2.83k|         if constexpr (std::floating_point<V>) {
  223|  2.83k|            using opts_type = std::decay_t<decltype(Opts)>;
  224|  2.83k|            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.83k|            else {
  292|  2.83k|               constexpr auto max_precision = uint8_t(check_float_max_write_precision(Opts));
  293|  2.83k|               constexpr bool narrows = max_precision > 0 && max_precision < sizeof(V);
  ------------------
  |  Branch (293:41): [Folded, False: 2.83k]
  |  Branch (293:62): [True: 0, Folded]
  ------------------
  294|  2.83k|#if !defined(_LIBCPP_VERSION) || _LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT
  295|  2.83k|               constexpr bool has_full_precision_writer = is_any_of<V, float, double> || is_float128<V>;
  ------------------
  |  Branch (295:59): [True: 2.83k, 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.83k|               else if constexpr (is_any_of<V, float, double>) {
  325|  2.83k|                  const auto start = reinterpret_cast<char*>(&b[ix]);
  326|  2.83k|                  const auto end = glz::to_chars(start, value);
  327|  2.83k|                  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.83k|            }
  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.83k|      }

_ZN3glz9sweethash7sweet32ITkNS0_16contiguous_rangeENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEjRKT_j:
  270|    780|   {
  271|    780|      return sweet32(static_cast<const void*>(s.data()), s.size(), seed);
  272|    780|   }
_ZN3glz9sweethash7sweet32EPKvmj:
  154|    780|   {
  155|    780|      const uint8_t* p = static_cast<const uint8_t*>(data);
  156|       |
  157|       |      // For inputs <= 8 bytes, use simple hash (tail handler requires len >= 9)
  158|    780|      if (len <= 8) {
  ------------------
  |  Branch (158:11): [True: 780, False: 0]
  ------------------
  159|    780|         uint64_t v = 0;
  160|    780|         switch (len) {
  161|    130|         case 8:
  ------------------
  |  Branch (161:10): [True: 130, False: 650]
  ------------------
  162|    130|            std::memcpy(&v, p, 8);
  163|    130|            break;
  164|    130|         case 7:
  ------------------
  |  Branch (164:10): [True: 130, False: 650]
  ------------------
  165|    130|            std::memcpy(&v, p, 7);
  166|    130|            break;
  167|     65|         case 6:
  ------------------
  |  Branch (167:10): [True: 65, False: 715]
  ------------------
  168|     65|            std::memcpy(&v, p, 6);
  169|     65|            break;
  170|    390|         case 5:
  ------------------
  |  Branch (170:10): [True: 390, False: 390]
  ------------------
  171|    390|            std::memcpy(&v, p, 5);
  172|    390|            break;
  173|     65|         case 4:
  ------------------
  |  Branch (173:10): [True: 65, False: 715]
  ------------------
  174|     65|            std::memcpy(&v, p, 4);
  175|     65|            break;
  176|      0|         case 3:
  ------------------
  |  Branch (176:10): [True: 0, False: 780]
  ------------------
  177|      0|            std::memcpy(&v, p, 3);
  178|      0|            break;
  179|      0|         case 2:
  ------------------
  |  Branch (179:10): [True: 0, False: 780]
  ------------------
  180|      0|            std::memcpy(&v, p, 2);
  181|      0|            break;
  182|      0|         case 1:
  ------------------
  |  Branch (182:10): [True: 0, False: 780]
  ------------------
  183|      0|            v = p[0];
  184|      0|            break;
  185|      0|         default:
  ------------------
  |  Branch (185:10): [True: 0, False: 780]
  ------------------
  186|      0|            break;
  187|    780|         }
  188|    780|         v = v ^ seed ^ (len + 1);
  189|    780|         return static_cast<uint32_t>(v) ^ static_cast<uint32_t>(v >> 32);
  190|    780|      }
  191|       |
  192|       |      // Full hash for inputs > 8 bytes
  193|      0|      uint64_t seed64 = (static_cast<uint64_t>(seed) << 32) | static_cast<uint64_t>(seed);
  194|      0|      uint64_t h = (seed64 ^ prime4) + (len * prime1);
  195|      0|      const uint8_t* const end = p + len;
  196|       |
  197|      0|      if (len >= 32) {
  ------------------
  |  Branch (197:11): [True: 0, False: 0]
  ------------------
  198|      0|         uint64_t h1 = h;
  199|      0|         uint64_t h2 = (seed64 * prime2) ^ prime3;
  200|      0|         uint64_t h3 = (seed64 * prime3) ^ prime4;
  201|      0|         uint64_t h4 = (seed64 * prime4) ^ prime5;
  202|       |
  203|      0|         do {
  204|      0|            uint64_t k1, k2, k3, k4;
  205|      0|            std::memcpy(&k1, p, 8);
  206|      0|            std::memcpy(&k2, p + 8, 8);
  207|      0|            std::memcpy(&k3, p + 16, 8);
  208|      0|            std::memcpy(&k4, p + 24, 8);
  209|       |
  210|      0|            k1 = k1 * prime2;
  211|      0|            k1 = k1 ^ (k1 >> 47);
  212|      0|            h1 = h1 ^ k1;
  213|      0|            h1 = h1 * prime1;
  214|       |
  215|      0|            k2 = k2 * prime3;
  216|      0|            k2 = k2 ^ (k2 >> 47);
  217|      0|            h2 = h2 ^ k2;
  218|      0|            h2 = h2 * prime2;
  219|       |
  220|      0|            k3 = k3 * prime4;
  221|      0|            k3 = k3 ^ (k3 >> 47);
  222|      0|            h3 = h3 ^ k3;
  223|      0|            h3 = h3 * prime3;
  224|       |
  225|      0|            k4 = k4 * prime5;
  226|      0|            k4 = k4 ^ (k4 >> 47);
  227|      0|            h4 = h4 ^ k4;
  228|      0|            h4 = h4 * prime4;
  229|       |
  230|      0|            p = p + 32;
  231|      0|            len = len - 32;
  232|      0|         } while (len >= 32);
  ------------------
  |  Branch (232:19): [True: 0, False: 0]
  ------------------
  233|       |
  234|      0|         h = h1 + h2 + h3 + h4;
  235|      0|      }
  236|       |
  237|      0|      while (len >= 8) {
  ------------------
  |  Branch (237:14): [True: 0, False: 0]
  ------------------
  238|      0|         uint64_t k;
  239|      0|         std::memcpy(&k, p, 8);
  240|      0|         k = k * prime2;
  241|      0|         k = k ^ (k >> 47);
  242|      0|         h = h ^ k;
  243|      0|         h = h * prime1;
  244|      0|         p = p + 8;
  245|      0|         len = len - 8;
  246|      0|      }
  247|       |
  248|      0|      if (len > 0) {
  ------------------
  |  Branch (248:11): [True: 0, False: 0]
  ------------------
  249|      0|         uint64_t k;
  250|      0|         std::memcpy(&k, end - 8, 8);
  251|      0|         k = k * prime2;
  252|      0|         k = k ^ (k >> 47);
  253|      0|         k = k * prime3;
  254|      0|         h = h ^ k;
  255|      0|      }
  256|       |
  257|      0|      h = mix64(h);
  258|      0|      return static_cast<uint32_t>(h) ^ static_cast<uint32_t>(h >> 32);
  259|    780|   }

_ZN3glz12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEC2Ev:
  411|  1.82M|      generic_json() = default;
_ZN3glz12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEC2EOS3_:
  413|  1.84M|      generic_json(generic_json&& other) noexcept : data(std::move(other.data)) {}
_ZN3glz12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEED2Ev:
  131|  3.67M|      ~generic_json() = default;

_ZN3glz11get_as_jsonINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEETnNS_14string_literalEXtlNS8_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERS6_EENS1_8expectedIT_NS_9error_ctxEEEOT2_:
  224|  86.3k|   {
  225|       |      // The located value is a span of the caller's buffer, so it is read with the options that
  226|       |      // buffer allows (see parse_opts_for) rather than with what a span alone would be taken to promise.
  227|  86.3k|      static constexpr auto Opts = parse_opts_for<Options, decltype(buffer)>();
  228|  86.3k|      const auto str = glz::get_view_json<Str, Opts>(buffer);
  229|  86.3k|      if (str) {
  ------------------
  |  Branch (229:11): [True: 21.5k, False: 64.8k]
  ------------------
  230|  21.5k|         T value{};
  231|  21.5k|         context ctx{};
  232|  21.5k|         if (const auto ec = glz::read<Opts>(value, *str, ctx); ec) {
  ------------------
  |  Branch (232:65): [True: 14.6k, False: 6.81k]
  ------------------
  233|  14.6k|            return unexpected(ec);
  234|  14.6k|         }
  235|  6.81k|         return value;
  236|  21.5k|      }
  237|  64.8k|      return unexpected(str.error());
  238|  86.3k|   }
_ZN3glz13get_view_jsonITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEEDaOT1_:
   23|  86.3k|   {
   24|  86.3k|      static constexpr auto S = chars<JsonPointer>;
   25|  86.3k|      static constexpr auto tokens = split_json_ptr<S>();
   26|  86.3k|      static constexpr auto N = tokens.size();
   27|       |
   28|       |      // The buffer decides whether the terminator `null_terminated` asserts can be relied on, the
   29|       |      // same way it does for glz::read (see parse_opts_for): a std::vector<char> keeps none, so the
   30|       |      // seek below runs with bounds over one rather than scanning for a sentinel past its end.
   31|  86.3k|      static constexpr auto Opts = parse_opts_for<Options, decltype(buffer)>();
   32|       |
   33|  86.3k|      context ctx{};
   34|  86.3k|      auto p = read_iterators<Opts>(buffer);
   35|       |
   36|  86.3k|      auto it = p.first;
   37|  86.3k|      auto end = p.second;
   38|       |
   39|       |      // Don't automatically const qualify the buffer so we can write to the view,
   40|       |      // which allows us to write to a JSON Pointer location
   41|  86.3k|      using span_t =
   42|  86.3k|         std::span<std::conditional_t<std::is_const_v<std::remove_pointer_t<decltype(it)>>, const char, char>>;
   43|  86.3k|      using result_t = expected<span_t, error_ctx>;
   44|       |
   45|  86.3k|      auto start = it;
   46|       |
   47|  86.3k|      if (buffer.size() == 0) [[unlikely]] {
  ------------------
  |  Branch (47:11): [True: 0, False: 86.3k]
  ------------------
   48|      0|         ctx.error = error_code::no_read_input;
   49|      0|      }
   50|       |
   51|  86.3k|      if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (51:11): [True: 0, False: 86.3k]
  ------------------
   52|      0|         return result_t{unexpected(error_ctx{0, ctx.error})};
   53|      0|      }
   54|       |
   55|       |      if constexpr (N == 0) {
   56|       |         return result_t{span_t{it, end}};
   57|       |      }
   58|  86.3k|      else {
   59|  86.3k|         using namespace glz::detail;
   60|       |
   61|  86.3k|         skip_ws<Opts>(ctx, it, end);
   62|       |
   63|  86.3k|         result_t ret;
   64|       |
   65|  86.3k|         for_each<N>([&]<size_t I>() {
   66|  86.3k|            if (bool(ctx.error)) [[unlikely]] {
   67|  86.3k|               return;
   68|  86.3k|            }
   69|       |
   70|  86.3k|            static constexpr auto key = tokens[I];
   71|  86.3k|            if constexpr (maybe_numeric_key(key)) {
   72|  86.3k|               if (it >= end) [[unlikely]] {
   73|  86.3k|                  ctx.error = error_code::unexpected_end;
   74|  86.3k|                  return;
   75|  86.3k|               }
   76|  86.3k|               switch (*it) {
   77|  86.3k|               case '{': {
   78|  86.3k|                  ++it;
   79|  86.3k|                  while (true) {
   80|  86.3k|                     if (skip_ws<Opts>(ctx, it, end)) {
   81|  86.3k|                        return;
   82|  86.3k|                     }
   83|  86.3k|                     if (match<'"'>(ctx, it)) {
   84|  86.3k|                        return;
   85|  86.3k|                     }
   86|       |
   87|  86.3k|                     auto* start = it;
   88|  86.3k|                     skip_string_view(ctx, it, end);
   89|  86.3k|                     if (bool(ctx.error)) [[unlikely]]
   90|  86.3k|                        return;
   91|  86.3k|                     const sv k = {start, size_t(it - start)};
   92|  86.3k|                     ++it;
   93|       |
   94|  86.3k|                     if (key.size() == k.size() && comparitor<key>(k.data())) {
   95|  86.3k|                        if (skip_ws<Opts>(ctx, it, end)) {
   96|  86.3k|                           return;
   97|  86.3k|                        }
   98|  86.3k|                        if (match_invalid_end<':', Opts>(ctx, it, end)) {
   99|  86.3k|                           return;
  100|  86.3k|                        }
  101|  86.3k|                        if (skip_ws<Opts>(ctx, it, end)) {
  102|  86.3k|                           return;
  103|  86.3k|                        }
  104|       |
  105|  86.3k|                        if constexpr (I == (N - 1)) {
  106|  86.3k|                           ret = parse_value<Opts>(ctx, it, end);
  107|  86.3k|                        }
  108|  86.3k|                        return;
  109|  86.3k|                     }
  110|  86.3k|                     else {
  111|  86.3k|                        skip_value<JSON>::op<Opts>(ctx, it, end);
  112|  86.3k|                        if (bool(ctx.error)) [[unlikely]] {
  113|  86.3k|                           return;
  114|  86.3k|                        }
  115|  86.3k|                        if (it >= end || *it != ',') {
  116|  86.3k|                           ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  117|  86.3k|                           return;
  118|  86.3k|                        }
  119|  86.3k|                        ++it;
  120|  86.3k|                     }
  121|  86.3k|                  }
  122|  86.3k|               }
  123|  86.3k|               case '[': {
  124|  86.3k|                  ++it;
  125|       |                  // Could optimize by counting commas
  126|  86.3k|                  static constexpr auto n = detail::parse_json_ptr_array_index(key);
  127|  86.3k|                  if constexpr (n) {
  128|  86.3k|                     for_each<n.value()>([&]<size_t>() {
  129|  86.3k|                        skip_value<JSON>::op<Opts>(ctx, it, end);
  130|  86.3k|                        if (bool(ctx.error)) [[unlikely]] {
  131|  86.3k|                           return;
  132|  86.3k|                        }
  133|  86.3k|                        if (it >= end || *it != ',') {
  134|  86.3k|                           ctx.error = it >= end ? error_code::unexpected_end : error_code::array_element_not_found;
  135|  86.3k|                           return;
  136|  86.3k|                        }
  137|  86.3k|                        ++it;
  138|  86.3k|                     });
  139|       |
  140|  86.3k|                     if (skip_ws<Opts>(ctx, it, end)) {
  141|  86.3k|                        return;
  142|  86.3k|                     }
  143|       |
  144|  86.3k|                     if constexpr (I == (N - 1)) {
  145|  86.3k|                        ret = parse_value<Opts>(ctx, it, end);
  146|  86.3k|                     }
  147|  86.3k|                     return;
  148|  86.3k|                  }
  149|  86.3k|                  else {
  150|  86.3k|                     ctx.error = error_code::array_element_not_found;
  151|  86.3k|                     return;
  152|  86.3k|                  }
  153|  86.3k|               }
  154|  86.3k|               default: {
  155|       |                  // A scalar has no members or elements to index into
  156|  86.3k|                  ctx.error = error_code::syntax_error;
  157|  86.3k|                  return;
  158|  86.3k|               }
  159|  86.3k|               }
  160|  86.3k|            }
  161|  86.3k|            else {
  162|  86.3k|               if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  163|  86.3k|                  return;
  164|  86.3k|               }
  165|       |
  166|  86.3k|               while (it < end) {
  167|  86.3k|                  if (skip_ws<Opts>(ctx, it, end)) {
  168|  86.3k|                     return;
  169|  86.3k|                  }
  170|  86.3k|                  if (match<'"'>(ctx, it)) {
  171|  86.3k|                     return;
  172|  86.3k|                  }
  173|       |
  174|  86.3k|                  auto* start = it;
  175|  86.3k|                  skip_string_view(ctx, it, end);
  176|  86.3k|                  if (bool(ctx.error)) [[unlikely]]
  177|  86.3k|                     return;
  178|  86.3k|                  const sv k = {start, size_t(it - start)};
  179|  86.3k|                  ++it;
  180|       |
  181|  86.3k|                  if (key.size() == k.size() && comparitor<key>(k.data())) {
  182|  86.3k|                     if (skip_ws<Opts>(ctx, it, end)) {
  183|  86.3k|                        return;
  184|  86.3k|                     }
  185|  86.3k|                     if (match_invalid_end<':', Opts>(ctx, it, end)) {
  186|  86.3k|                        return;
  187|  86.3k|                     }
  188|  86.3k|                     if (skip_ws<Opts>(ctx, it, end)) {
  189|  86.3k|                        return;
  190|  86.3k|                     }
  191|       |
  192|  86.3k|                     if constexpr (I == (N - 1)) {
  193|  86.3k|                        ret = parse_value<Opts>(ctx, it, end);
  194|  86.3k|                     }
  195|  86.3k|                     return;
  196|  86.3k|                  }
  197|  86.3k|                  else {
  198|  86.3k|                     skip_value<JSON>::op<Opts>(ctx, it, end);
  199|  86.3k|                     if (bool(ctx.error)) [[unlikely]] {
  200|  86.3k|                        return;
  201|  86.3k|                     }
  202|  86.3k|                     if (it >= end || *it != ',') {
  203|  86.3k|                        ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  204|  86.3k|                        return;
  205|  86.3k|                     }
  206|  86.3k|                     ++it;
  207|  86.3k|                  }
  208|  86.3k|               }
  209|       |               // The object ended after a ',' without the key
  210|  86.3k|               ctx.error = error_code::unexpected_end;
  211|  86.3k|            }
  212|  86.3k|         });
  213|       |
  214|  86.3k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (214:14): [True: 64.8k, False: 21.5k]
  ------------------
  215|  64.8k|            return result_t{unexpected(error_ctx{size_t(it - start), ctx.error})};
  216|  64.8k|         }
  217|       |
  218|  21.5k|         return ret;
  219|  86.3k|      }
  220|  86.3k|   }
_ZZN3glz13get_view_jsonITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEEDaOT1_ENKUlTnmvE_clILm0EEEDav:
   65|  86.3k|         for_each<N>([&]<size_t I>() {
   66|  86.3k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (66:17): [True: 0, False: 86.3k]
  ------------------
   67|      0|               return;
   68|      0|            }
   69|       |
   70|  86.3k|            static constexpr auto key = tokens[I];
   71|       |            if constexpr (maybe_numeric_key(key)) {
   72|       |               if (it >= end) [[unlikely]] {
   73|       |                  ctx.error = error_code::unexpected_end;
   74|       |                  return;
   75|       |               }
   76|       |               switch (*it) {
   77|       |               case '{': {
   78|       |                  ++it;
   79|       |                  while (true) {
   80|       |                     if (skip_ws<Opts>(ctx, it, end)) {
   81|       |                        return;
   82|       |                     }
   83|       |                     if (match<'"'>(ctx, it)) {
   84|       |                        return;
   85|       |                     }
   86|       |
   87|       |                     auto* start = it;
   88|       |                     skip_string_view(ctx, it, end);
   89|       |                     if (bool(ctx.error)) [[unlikely]]
   90|       |                        return;
   91|       |                     const sv k = {start, size_t(it - start)};
   92|       |                     ++it;
   93|       |
   94|       |                     if (key.size() == k.size() && comparitor<key>(k.data())) {
   95|       |                        if (skip_ws<Opts>(ctx, it, end)) {
   96|       |                           return;
   97|       |                        }
   98|       |                        if (match_invalid_end<':', Opts>(ctx, it, end)) {
   99|       |                           return;
  100|       |                        }
  101|       |                        if (skip_ws<Opts>(ctx, it, end)) {
  102|       |                           return;
  103|       |                        }
  104|       |
  105|       |                        if constexpr (I == (N - 1)) {
  106|       |                           ret = parse_value<Opts>(ctx, it, end);
  107|       |                        }
  108|       |                        return;
  109|       |                     }
  110|       |                     else {
  111|       |                        skip_value<JSON>::op<Opts>(ctx, it, end);
  112|       |                        if (bool(ctx.error)) [[unlikely]] {
  113|       |                           return;
  114|       |                        }
  115|       |                        if (it >= end || *it != ',') {
  116|       |                           ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  117|       |                           return;
  118|       |                        }
  119|       |                        ++it;
  120|       |                     }
  121|       |                  }
  122|       |               }
  123|       |               case '[': {
  124|       |                  ++it;
  125|       |                  // Could optimize by counting commas
  126|       |                  static constexpr auto n = detail::parse_json_ptr_array_index(key);
  127|       |                  if constexpr (n) {
  128|       |                     for_each<n.value()>([&]<size_t>() {
  129|       |                        skip_value<JSON>::op<Opts>(ctx, it, end);
  130|       |                        if (bool(ctx.error)) [[unlikely]] {
  131|       |                           return;
  132|       |                        }
  133|       |                        if (it >= end || *it != ',') {
  134|       |                           ctx.error = it >= end ? error_code::unexpected_end : error_code::array_element_not_found;
  135|       |                           return;
  136|       |                        }
  137|       |                        ++it;
  138|       |                     });
  139|       |
  140|       |                     if (skip_ws<Opts>(ctx, it, end)) {
  141|       |                        return;
  142|       |                     }
  143|       |
  144|       |                     if constexpr (I == (N - 1)) {
  145|       |                        ret = parse_value<Opts>(ctx, it, end);
  146|       |                     }
  147|       |                     return;
  148|       |                  }
  149|       |                  else {
  150|       |                     ctx.error = error_code::array_element_not_found;
  151|       |                     return;
  152|       |                  }
  153|       |               }
  154|       |               default: {
  155|       |                  // A scalar has no members or elements to index into
  156|       |                  ctx.error = error_code::syntax_error;
  157|       |                  return;
  158|       |               }
  159|       |               }
  160|       |            }
  161|  86.3k|            else {
  162|  86.3k|               if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (162:20): [True: 57.2k, False: 29.1k]
  ------------------
  163|  57.2k|                  return;
  164|  57.2k|               }
  165|       |
  166|  52.2k|               while (it < end) {
  ------------------
  |  Branch (166:23): [True: 52.2k, False: 0]
  ------------------
  167|  52.2k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (167:23): [True: 0, False: 52.2k]
  ------------------
  168|      0|                     return;
  169|      0|                  }
  170|  52.2k|                  if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (170:23): [True: 0, False: 52.2k]
  ------------------
  171|      0|                     return;
  172|      0|                  }
  173|       |
  174|  52.2k|                  auto* start = it;
  175|  52.2k|                  skip_string_view(ctx, it, end);
  176|  52.2k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (176:23): [True: 0, False: 52.2k]
  ------------------
  177|      0|                     return;
  178|  52.2k|                  const sv k = {start, size_t(it - start)};
  179|  52.2k|                  ++it;
  180|       |
  181|  52.2k|                  if (key.size() == k.size() && comparitor<key>(k.data())) {
  ------------------
  |  Branch (181:23): [True: 25.3k, False: 26.9k]
  |  Branch (181:49): [True: 21.5k, False: 3.81k]
  ------------------
  182|  21.5k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (182:26): [True: 0, False: 21.5k]
  ------------------
  183|      0|                        return;
  184|      0|                     }
  185|  21.5k|                     if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (185:26): [True: 0, False: 21.5k]
  ------------------
  186|      0|                        return;
  187|      0|                     }
  188|  21.5k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (188:26): [True: 0, False: 21.5k]
  ------------------
  189|      0|                        return;
  190|      0|                     }
  191|       |
  192|  21.5k|                     if constexpr (I == (N - 1)) {
  193|  21.5k|                        ret = parse_value<Opts>(ctx, it, end);
  194|  21.5k|                     }
  195|  21.5k|                     return;
  196|  21.5k|                  }
  197|  30.7k|                  else {
  198|  30.7k|                     skip_value<JSON>::op<Opts>(ctx, it, end);
  199|  30.7k|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (199:26): [True: 0, False: 30.7k]
  ------------------
  200|      0|                        return;
  201|      0|                     }
  202|  30.7k|                     if (it >= end || *it != ',') {
  ------------------
  |  Branch (202:26): [True: 0, False: 30.7k]
  |  Branch (202:39): [True: 7.63k, False: 23.1k]
  ------------------
  203|  7.63k|                        ctx.error = it >= end ? error_code::unexpected_end : error_code::key_not_found;
  ------------------
  |  Branch (203:37): [True: 0, False: 7.63k]
  ------------------
  204|  7.63k|                        return;
  205|  7.63k|                     }
  206|  23.1k|                     ++it;
  207|  23.1k|                  }
  208|  52.2k|               }
  209|       |               // The object ended after a ',' without the key
  210|      0|               ctx.error = error_code::unexpected_end;
  211|      0|            }
  212|  86.3k|         });

_ZN3glz4fromILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcRiTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  764|   814k|      {
  765|       |         if constexpr (check_quoted_num(Opts)) {
  766|       |            if (skip_ws<Opts>(ctx, it, end)) {
  767|       |               return;
  768|       |            }
  769|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  770|       |               return;
  771|       |            }
  772|       |         }
  773|       |
  774|       |         if constexpr (!check_ws_handled(Opts)) {
  775|       |            if (skip_ws<Opts>(ctx, it, end)) {
  776|       |               return;
  777|       |            }
  778|       |         }
  779|       |
  780|   814k|         using V = std::decay_t<decltype(value)>;
  781|   814k|         if constexpr (int_t<V>) {
  782|   814k|            static_assert(sizeof(*it) == sizeof(char));
  783|       |
  784|       |            if constexpr (Opts.null_terminated) {
  785|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  786|       |                  ctx.error = error_code::parse_number_failure;
  787|       |                  return;
  788|       |               }
  789|       |            }
  790|   814k|            else {
  791|   814k|               if (not glz::atoi(value, it, end)) [[unlikely]] {
  ------------------
  |  Branch (791:20): [True: 4.51k, False: 810k]
  ------------------
  792|  4.51k|                  ctx.error = error_code::parse_number_failure;
  793|  4.51k|                  return;
  794|  4.51k|               }
  795|   814k|            }
  796|       |         }
  797|       |         else {
  798|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  799|       |#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  800|       |            if constexpr (is_float128<V>) {
  801|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  802|       |               if (ec != std::errc()) {
  803|       |                  ctx.error = error_code::parse_number_failure;
  804|       |                  return;
  805|       |               }
  806|       |               it = ptr;
  807|       |            }
  808|       |            else
  809|       |#endif
  810|       |            {
  811|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  812|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  813|       |                  // place
  814|       |                  V temp;
  815|       |                  if constexpr (is_size_optimized(Opts)) {
  816|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  817|       |                     if (ec != std::errc{}) [[unlikely]] {
  818|       |                        ctx.error = error_code::parse_number_failure;
  819|       |                        return;
  820|       |                     }
  821|       |                     it = ptr;
  822|       |                  }
  823|       |                  else {
  824|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  825|       |                     if (ec != std::errc()) [[unlikely]] {
  826|       |                        ctx.error = error_code::parse_number_failure;
  827|       |                        return;
  828|       |                     }
  829|       |                     it = ptr;
  830|       |                  }
  831|       |                  value = temp;
  832|       |               }
  833|       |               else {
  834|       |                  if constexpr (is_size_optimized(Opts)) {
  835|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  836|       |                     if (ec != std::errc{}) [[unlikely]] {
  837|       |                        ctx.error = error_code::parse_number_failure;
  838|       |                        return;
  839|       |                     }
  840|       |                     it = ptr;
  841|       |                  }
  842|       |                  else {
  843|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  844|       |                     if (ec != std::errc()) [[unlikely]] {
  845|       |                        ctx.error = error_code::parse_number_failure;
  846|       |                        return;
  847|       |                     }
  848|       |                     it = ptr;
  849|       |                  }
  850|       |               }
  851|       |            }
  852|       |         }
  853|       |
  854|       |         if constexpr (check_quoted_num(Opts)) {
  855|       |            if constexpr (not Opts.null_terminated) {
  856|       |               if (it == end) [[unlikely]] {
  857|       |                  ctx.error = error_code::unexpected_end;
  858|       |                  return;
  859|       |               }
  860|       |            }
  861|       |            if (match<'"'>(ctx, it)) {
  862|       |               return;
  863|       |            }
  864|       |            if constexpr (not Opts.null_terminated) {
  865|       |               if (it == end) {
  866|       |                  ctx.error = error_code::end_reached;
  867|       |                  return;
  868|       |               }
  869|       |            }
  870|       |         }
  871|   814k|         else {
  872|   814k|            if constexpr (not Opts.null_terminated) {
  873|   814k|               if (it == end) {
  ------------------
  |  Branch (873:20): [True: 0, False: 814k]
  ------------------
  874|      0|                  ctx.error = error_code::end_reached;
  875|      0|                  return;
  876|      0|               }
  877|   814k|            }
  878|   814k|         }
  879|   814k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   50|  1.34k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.34k|         else {
   61|  1.34k|            using V = std::remove_cvref_t<T>;
   62|  1.34k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.34k|                                             end);
   64|  1.34k|         }
   65|  1.34k|      }
_ZN3glz4fromILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERPKcRiTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  764|  1.34k|      {
  765|       |         if constexpr (check_quoted_num(Opts)) {
  766|       |            if (skip_ws<Opts>(ctx, it, end)) {
  767|       |               return;
  768|       |            }
  769|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  770|       |               return;
  771|       |            }
  772|       |         }
  773|       |
  774|  1.34k|         if constexpr (!check_ws_handled(Opts)) {
  775|  1.34k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (775:17): [True: 0, False: 1.34k]
  ------------------
  776|      0|               return;
  777|      0|            }
  778|  1.34k|         }
  779|       |
  780|  1.34k|         using V = std::decay_t<decltype(value)>;
  781|  1.34k|         if constexpr (int_t<V>) {
  782|  1.34k|            static_assert(sizeof(*it) == sizeof(char));
  783|       |
  784|       |            if constexpr (Opts.null_terminated) {
  785|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  786|       |                  ctx.error = error_code::parse_number_failure;
  787|       |                  return;
  788|       |               }
  789|       |            }
  790|  1.34k|            else {
  791|  1.34k|               if (not glz::atoi(value, it, end)) [[unlikely]] {
  ------------------
  |  Branch (791:20): [True: 675, False: 669]
  ------------------
  792|    675|                  ctx.error = error_code::parse_number_failure;
  793|    675|                  return;
  794|    675|               }
  795|  1.34k|            }
  796|       |         }
  797|       |         else {
  798|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  799|       |#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  800|       |            if constexpr (is_float128<V>) {
  801|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  802|       |               if (ec != std::errc()) {
  803|       |                  ctx.error = error_code::parse_number_failure;
  804|       |                  return;
  805|       |               }
  806|       |               it = ptr;
  807|       |            }
  808|       |            else
  809|       |#endif
  810|       |            {
  811|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  812|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  813|       |                  // place
  814|       |                  V temp;
  815|       |                  if constexpr (is_size_optimized(Opts)) {
  816|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  817|       |                     if (ec != std::errc{}) [[unlikely]] {
  818|       |                        ctx.error = error_code::parse_number_failure;
  819|       |                        return;
  820|       |                     }
  821|       |                     it = ptr;
  822|       |                  }
  823|       |                  else {
  824|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  825|       |                     if (ec != std::errc()) [[unlikely]] {
  826|       |                        ctx.error = error_code::parse_number_failure;
  827|       |                        return;
  828|       |                     }
  829|       |                     it = ptr;
  830|       |                  }
  831|       |                  value = temp;
  832|       |               }
  833|       |               else {
  834|       |                  if constexpr (is_size_optimized(Opts)) {
  835|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  836|       |                     if (ec != std::errc{}) [[unlikely]] {
  837|       |                        ctx.error = error_code::parse_number_failure;
  838|       |                        return;
  839|       |                     }
  840|       |                     it = ptr;
  841|       |                  }
  842|       |                  else {
  843|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  844|       |                     if (ec != std::errc()) [[unlikely]] {
  845|       |                        ctx.error = error_code::parse_number_failure;
  846|       |                        return;
  847|       |                     }
  848|       |                     it = ptr;
  849|       |                  }
  850|       |               }
  851|       |            }
  852|       |         }
  853|       |
  854|       |         if constexpr (check_quoted_num(Opts)) {
  855|       |            if constexpr (not Opts.null_terminated) {
  856|       |               if (it == end) [[unlikely]] {
  857|       |                  ctx.error = error_code::unexpected_end;
  858|       |                  return;
  859|       |               }
  860|       |            }
  861|       |            if (match<'"'>(ctx, it)) {
  862|       |               return;
  863|       |            }
  864|       |            if constexpr (not Opts.null_terminated) {
  865|       |               if (it == end) {
  866|       |                  ctx.error = error_code::end_reached;
  867|       |                  return;
  868|       |               }
  869|       |            }
  870|       |         }
  871|  1.34k|         else {
  872|  1.34k|            if constexpr (not Opts.null_terminated) {
  873|  1.34k|               if (it == end) {
  ------------------
  |  Branch (873:20): [True: 566, False: 778]
  ------------------
  874|    566|                  ctx.error = error_code::end_reached;
  875|    566|                  return;
  876|    566|               }
  877|  1.34k|            }
  878|  1.34k|         }
  879|  1.34k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   50|  1.44k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.44k|         else {
   61|  1.44k|            using V = std::remove_cvref_t<T>;
   62|  1.44k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.44k|                                             end);
   64|  1.44k|         }
   65|  1.44k|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2794|  1.44k|      {
 2795|  1.44k|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|  1.44k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|  1.44k|         if constexpr (!check_opening_handled(Options)) {
 2799|  1.44k|            if constexpr (!check_ws_handled(Options)) {
 2800|  1.44k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2800:20): [True: 0, False: 1.44k]
  ------------------
 2801|      0|                  return;
 2802|      0|               }
 2803|  1.44k|            }
 2804|  1.44k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 402, False: 1.04k]
  ------------------
 2805|    402|               return;
 2806|    402|            }
 2807|  1.04k|            if constexpr (not Opts.null_terminated) {
 2808|  1.04k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 1.04k]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|  1.04k|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|  1.04k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 1.04k]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|  1.04k|         }
 2819|  1.04k|         const auto ws_start = it;
 2820|  1.44k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 1.44k]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|  1.44k|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|  1.44k|         else {
 2898|  1.44k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|  1.44k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|  1.44k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|  1.44k|                  return bit_array<num_members>{};
 2902|  1.44k|               }
 2903|  1.44k|               else {
 2904|  1.44k|                  return nullptr;
 2905|  1.44k|               }
 2906|  1.44k|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|  1.44k|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|  1.44k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|  1.44k|                  return has_includer_member<T>;
 2918|  1.44k|               }
 2919|  1.44k|               else {
 2920|  1.44k|                  return false;
 2921|  1.44k|               }
 2922|  1.44k|            }();
 2923|  1.44k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|  1.44k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|  1.44k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|  1.44k|                                                      inert_key_bits_scope> published_bits{
 2934|  1.44k|               ctx, [&]() -> void* {
 2935|  1.44k|                  if constexpr (tracks_include_keys) {
 2936|  1.44k|                     return &fields;
 2937|  1.44k|                  }
 2938|  1.44k|                  else {
 2939|  1.44k|                     return nullptr;
 2940|  1.44k|                  }
 2941|  1.44k|               }()};
 2942|       |
 2943|  1.44k|            size_t read_count{}; // for partial_read
 2944|       |
 2945|  1.44k|            bool first = true;
 2946|  5.86k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 4.60k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  4.60k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 135, False: 4.47k]
  ------------------
 2984|    135|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|    135|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|    135|                  }
 3020|    135|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|    135|                  if constexpr (not Opts.null_terminated) {
 3022|    135|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 135, False: 0]
  ------------------
 3023|    135|                        ctx.error = error_code::end_reached;
 3024|    135|                        return;
 3025|    135|                     }
 3026|    135|                  }
 3027|      0|                  return;
 3028|    135|               }
 3029|  4.47k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 1.00k, False: 3.46k]
  ------------------
 3030|  1.00k|                  first = false;
 3031|  1.00k|               }
 3032|  3.46k|               else {
 3033|  3.46k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 46, False: 3.42k]
  ------------------
 3034|     46|                     return;
 3035|     46|                  }
 3036|  3.42k|                  if constexpr (not Opts.null_terminated) {
 3037|  3.42k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 3.42k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  3.42k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|  3.42k|                                (!Opts.comments)) {
 3045|  3.42k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3045:26): [True: 3.14k, False: 279]
  |  Branch (3045:37): [True: 2.91k, False: 233]
  ------------------
 3046|  2.91k|                        skip_matching_ws(ws_start, it, ws_size);
 3047|  2.91k|                     }
 3048|  3.42k|                  }
 3049|       |
 3050|  3.42k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 3.42k]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  3.42k|               }
 3054|       |
 3055|  4.42k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [True: 0, Folded]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|  4.42k|               else if constexpr (reflection_type) {
 3121|  4.42k|                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|  4.42k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3123:23): [True: 637, False: 3.78k]
  ------------------
 3124|    637|                     ctx.error = error_code::expected_quote;
 3125|    637|                     return;
 3126|    637|                  }
 3127|  3.78k|                  ++it;
 3128|  3.78k|                  if constexpr (not Opts.null_terminated) {
 3129|  3.78k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3129:26): [True: 0, False: 3.78k]
  ------------------
 3130|      0|                        ctx.error = error_code::unexpected_end;
 3131|      0|                        return;
 3132|      0|                     }
 3133|  3.78k|                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|  3.78k|                  else {
 3184|  3.78k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|  3.78k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3185:26): [True: 222, False: 3.56k]
  ------------------
 3186|    222|                        return;
 3187|  3.78k|                  }
 3188|       |               }
 3189|       |               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|       |                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|       |                     else {
 3203|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|       |                     }
 3205|       |                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|       |                  using Key = typename T::key_type;
 3209|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|       |                     ctx.scratch.clear();
 3211|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|       |                     if (bool(ctx.error)) [[unlikely]]
 3213|       |                        return;
 3214|       |
 3215|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3216|       |                        return;
 3217|       |                     }
 3218|       |
 3219|       |                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|       |                     if (bool(ctx.error)) [[unlikely]]
 3226|       |                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|       |               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  4.42k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 4.42k]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  4.42k|            }
 3300|  1.44k|         }
 3301|  1.44k|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|  1.04k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|  1.04k|               else {
 2904|  1.04k|                  return nullptr;
 2905|  1.04k|               }
 2906|  1.04k|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|  1.04k|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|  1.04k|                  else {
 2939|  1.04k|                     return nullptr;
 2940|  1.04k|                  }
 2941|  1.04k|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  383|  7.28k|   {
  384|  7.28k|      constexpr auto N = reflect<T>::size;
  385|       |
  386|       |      if constexpr (N == 1) {
  387|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  388|       |      }
  389|       |      else if constexpr (check_linear_search(Opts)) {
  390|       |         // Linear search path
  391|       |         auto key_start = it;
  392|       |         const auto index = decode_linear<T>(ctx, it, end);
  393|       |         if (bool(ctx.error)) [[unlikely]]
  394|       |            return;
  395|       |
  396|       |         if (index >= N) [[unlikely]] {
  397|       |            if constexpr (Opts.error_on_unknown_keys) {
  398|       |               ctx.error = error_code::unknown_key;
  399|       |               return;
  400|       |            }
  401|       |            else {
  402|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  403|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  404|       |                  return;
  405|       |               }
  406|       |               const sv key{key_start, size_t(it - key_start - 1)};
  407|       |               if constexpr (not Opts.null_terminated) {
  408|       |                  if (it == end) [[unlikely]] {
  409|       |                     ctx.error = error_code::unexpected_end;
  410|       |                     return;
  411|       |                  }
  412|       |               }
  413|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  414|       |                  return;
  415|       |               }
  416|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  417|       |               return;
  418|       |            }
  419|       |         }
  420|       |
  421|       |         if constexpr (not Opts.null_terminated) {
  422|       |            if (it == end) [[unlikely]] {
  423|       |               ctx.error = error_code::unexpected_end;
  424|       |               return;
  425|       |            }
  426|       |         }
  427|       |         if (skip_ws<Opts>(ctx, it, end)) {
  428|       |            return;
  429|       |         }
  430|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  431|       |            return;
  432|       |         }
  433|       |         if (skip_ws<Opts>(ctx, it, end)) {
  434|       |            return;
  435|       |         }
  436|       |
  437|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  438|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  439|       |         // instantiations; the whitespace before the value has already been skipped either way.
  440|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  441|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  442|       |                                 : false) ||
  443|       |                    ...));
  444|       |         }(std::make_index_sequence<N>{});
  445|       |      }
  446|  7.28k|      else {
  447|       |         // Hash-based lookup
  448|  7.28k|         constexpr auto& HashInfo = hash_info<T>;
  449|  7.28k|         constexpr auto type = HashInfo.type;
  450|  7.28k|         static_assert(bool(type), "invalid hash algorithm");
  451|       |
  452|  7.28k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  453|       |
  454|  7.28k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (454:14): [True: 0, False: 7.28k]
  ------------------
  455|      0|            if constexpr (Opts.error_on_unknown_keys) {
  456|      0|               ctx.error = error_code::unknown_key;
  457|      0|               return;
  458|       |            }
  459|       |            else {
  460|       |               auto start = it;
  461|       |               skip_string_view(ctx, it, end);
  462|       |               if (bool(ctx.error)) [[unlikely]]
  463|       |                  return;
  464|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  465|       |                  return;
  466|       |               const sv key = {start, size_t(it - start)};
  467|       |               ++it; // skip the quote
  468|       |               if constexpr (not Opts.null_terminated) {
  469|       |                  if (it == end) [[unlikely]] {
  470|       |                     ctx.error = error_code::unexpected_end;
  471|       |                     return;
  472|       |                  }
  473|       |               }
  474|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  475|       |                  return;
  476|       |               }
  477|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  478|       |               return;
  479|       |            }
  480|      0|         }
  481|       |
  482|  7.28k|         if constexpr (N == 2) {
  483|  7.28k|            if (index == 0) {
  ------------------
  |  Branch (483:17): [True: 5.81k, False: 1.47k]
  ------------------
  484|  5.81k|               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  485|  5.81k|            }
  486|  1.47k|            else {
  487|  1.47k|               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  488|  1.47k|            }
  489|       |         }
  490|       |         else {
  491|       |            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  492|       |         }
  493|  7.28k|      }
  494|  7.28k|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  5.81k|   {
  314|  5.81k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  5.81k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  5.81k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  5.81k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 5.81k, False: 0]
  |  Branch (322:52): [True: 5.79k, False: 17]
  ------------------
  323|  5.79k|         it += Length;
  324|  5.79k|         if constexpr (not Opts.null_terminated) {
  325|  5.79k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 5.79k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  5.79k|         }
  330|       |
  331|  5.79k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 5.79k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  5.79k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 48, False: 5.74k]
  ------------------
  335|     48|            return;
  336|     48|         }
  337|  5.74k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 5.74k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  5.74k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  5.74k|      }
  344|     17|      else [[unlikely]] {
  345|     17|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     17|      }
  347|  5.81k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz5pointELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  5.74k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  5.74k|      else {
  275|  5.74k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  5.74k|         else {
  299|  5.74k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  5.74k|                                                                       it, end);
  301|  5.74k|         }
  302|  5.74k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  5.74k|   }
_ZN3glz4fromILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcRdTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  764|   509k|      {
  765|       |         if constexpr (check_quoted_num(Opts)) {
  766|       |            if (skip_ws<Opts>(ctx, it, end)) {
  767|       |               return;
  768|       |            }
  769|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  770|       |               return;
  771|       |            }
  772|       |         }
  773|       |
  774|       |         if constexpr (!check_ws_handled(Opts)) {
  775|       |            if (skip_ws<Opts>(ctx, it, end)) {
  776|       |               return;
  777|       |            }
  778|       |         }
  779|       |
  780|   509k|         using V = std::decay_t<decltype(value)>;
  781|       |         if constexpr (int_t<V>) {
  782|       |            static_assert(sizeof(*it) == sizeof(char));
  783|       |
  784|       |            if constexpr (Opts.null_terminated) {
  785|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  786|       |                  ctx.error = error_code::parse_number_failure;
  787|       |                  return;
  788|       |               }
  789|       |            }
  790|       |            else {
  791|       |               if (not glz::atoi(value, it, end)) [[unlikely]] {
  792|       |                  ctx.error = error_code::parse_number_failure;
  793|       |                  return;
  794|       |               }
  795|       |            }
  796|       |         }
  797|   509k|         else {
  798|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  799|   509k|#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  800|       |            if constexpr (is_float128<V>) {
  801|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  802|       |               if (ec != std::errc()) {
  803|       |                  ctx.error = error_code::parse_number_failure;
  804|       |                  return;
  805|       |               }
  806|       |               it = ptr;
  807|       |            }
  808|       |            else
  809|       |#endif
  810|   509k|            {
  811|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  812|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  813|       |                  // place
  814|       |                  V temp;
  815|       |                  if constexpr (is_size_optimized(Opts)) {
  816|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  817|       |                     if (ec != std::errc{}) [[unlikely]] {
  818|       |                        ctx.error = error_code::parse_number_failure;
  819|       |                        return;
  820|       |                     }
  821|       |                     it = ptr;
  822|       |                  }
  823|       |                  else {
  824|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  825|       |                     if (ec != std::errc()) [[unlikely]] {
  826|       |                        ctx.error = error_code::parse_number_failure;
  827|       |                        return;
  828|       |                     }
  829|       |                     it = ptr;
  830|       |                  }
  831|       |                  value = temp;
  832|       |               }
  833|   509k|               else {
  834|       |                  if constexpr (is_size_optimized(Opts)) {
  835|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  836|       |                     if (ec != std::errc{}) [[unlikely]] {
  837|       |                        ctx.error = error_code::parse_number_failure;
  838|       |                        return;
  839|       |                     }
  840|       |                     it = ptr;
  841|       |                  }
  842|   509k|                  else {
  843|   509k|                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  844|   509k|                     if (ec != std::errc()) [[unlikely]] {
  ------------------
  |  Branch (844:26): [True: 1.07k, False: 508k]
  ------------------
  845|  1.07k|                        ctx.error = error_code::parse_number_failure;
  846|  1.07k|                        return;
  847|  1.07k|                     }
  848|   508k|                     it = ptr;
  849|   508k|                  }
  850|   509k|               }
  851|   509k|            }
  852|   509k|         }
  853|       |
  854|       |         if constexpr (check_quoted_num(Opts)) {
  855|       |            if constexpr (not Opts.null_terminated) {
  856|       |               if (it == end) [[unlikely]] {
  857|       |                  ctx.error = error_code::unexpected_end;
  858|       |                  return;
  859|       |               }
  860|       |            }
  861|       |            if (match<'"'>(ctx, it)) {
  862|       |               return;
  863|       |            }
  864|       |            if constexpr (not Opts.null_terminated) {
  865|       |               if (it == end) {
  866|       |                  ctx.error = error_code::end_reached;
  867|       |                  return;
  868|       |               }
  869|       |            }
  870|       |         }
  871|   509k|         else {
  872|   509k|            if constexpr (not Opts.null_terminated) {
  873|   509k|               if (it == end) {
  ------------------
  |  Branch (873:20): [True: 0, False: 509k]
  ------------------
  874|      0|                  ctx.error = error_code::end_reached;
  875|      0|                  return;
  876|      0|               }
  877|   509k|            }
  878|   509k|         }
  879|   509k|      }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  178|    107|   {
  179|    107|      if constexpr (Opts.error_on_unknown_keys) {
  180|    107|         ctx.error = error_code::unknown_key;
  181|       |      }
  182|       |      else {
  183|       |         auto* start = it;
  184|       |         uint64_t ascii_acc{};
  185|       |         skip_string_view(ctx, it, end, ascii_acc);
  186|       |         if (bool(ctx.error)) [[unlikely]]
  187|       |            return;
  188|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  189|       |            return;
  190|       |         const sv key = {start, size_t(it - start)};
  191|       |         ++it;
  192|       |         if constexpr (not Opts.null_terminated) {
  193|       |            if (it == end) [[unlikely]] {
  194|       |               ctx.error = error_code::unexpected_end;
  195|       |               return;
  196|       |            }
  197|       |         }
  198|       |
  199|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  200|       |            return;
  201|       |         }
  202|       |
  203|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  204|       |      }
  205|    107|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  1.47k|   {
  314|  1.47k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  1.47k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  1.47k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  1.47k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 1.46k, False: 12]
  |  Branch (322:52): [True: 1.38k, False: 78]
  ------------------
  323|  1.38k|         it += Length;
  324|  1.38k|         if constexpr (not Opts.null_terminated) {
  325|  1.38k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 1.38k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  1.38k|         }
  330|       |
  331|  1.38k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 1.38k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  1.38k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 40, False: 1.34k]
  ------------------
  335|     40|            return;
  336|     40|         }
  337|  1.34k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 1.34k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  1.34k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  1.34k|      }
  344|     90|      else [[unlikely]] {
  345|     90|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     90|      }
  347|  1.47k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz5pointELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  1.34k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  1.34k|      else {
  275|  1.34k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  1.34k|         else {
  299|  1.34k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  1.34k|                                                                       it, end);
  301|  1.34k|         }
  302|  1.34k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  1.34k|   }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   50|  9.17k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  9.17k|         else {
   61|  9.17k|            using V = std::remove_cvref_t<T>;
   62|  9.17k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  9.17k|                                             end);
   64|  9.17k|         }
   65|  9.17k|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2794|  9.17k|      {
 2795|  9.17k|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|  9.17k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|  9.17k|         if constexpr (!check_opening_handled(Options)) {
 2799|  9.17k|            if constexpr (!check_ws_handled(Options)) {
 2800|  9.17k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2800:20): [True: 0, False: 9.17k]
  ------------------
 2801|      0|                  return;
 2802|      0|               }
 2803|  9.17k|            }
 2804|  9.17k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 82, False: 9.09k]
  ------------------
 2805|     82|               return;
 2806|     82|            }
 2807|  9.09k|            if constexpr (not Opts.null_terminated) {
 2808|  9.09k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 9.09k]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|  9.09k|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|  9.09k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 9.09k]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|  9.09k|         }
 2819|  9.09k|         const auto ws_start = it;
 2820|  9.17k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 9.17k]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|  9.17k|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|  9.17k|         else {
 2898|  9.17k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|  9.17k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|  9.17k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|  9.17k|                  return bit_array<num_members>{};
 2902|  9.17k|               }
 2903|  9.17k|               else {
 2904|  9.17k|                  return nullptr;
 2905|  9.17k|               }
 2906|  9.17k|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|  9.17k|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|  9.17k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|  9.17k|                  return has_includer_member<T>;
 2918|  9.17k|               }
 2919|  9.17k|               else {
 2920|  9.17k|                  return false;
 2921|  9.17k|               }
 2922|  9.17k|            }();
 2923|  9.17k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|  9.17k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|  9.17k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|  9.17k|                                                      inert_key_bits_scope> published_bits{
 2934|  9.17k|               ctx, [&]() -> void* {
 2935|  9.17k|                  if constexpr (tracks_include_keys) {
 2936|  9.17k|                     return &fields;
 2937|  9.17k|                  }
 2938|  9.17k|                  else {
 2939|  9.17k|                     return nullptr;
 2940|  9.17k|                  }
 2941|  9.17k|               }()};
 2942|       |
 2943|  9.17k|            size_t read_count{}; // for partial_read
 2944|       |
 2945|  9.17k|            bool first = true;
 2946|  47.8k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 40.1k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  40.1k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 1.19k, False: 38.9k]
  ------------------
 2984|  1.19k|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|  1.19k|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|  1.19k|                  }
 3020|  1.19k|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|  1.19k|                  if constexpr (not Opts.null_terminated) {
 3022|  1.19k|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 1.19k, False: 0]
  ------------------
 3023|  1.19k|                        ctx.error = error_code::end_reached;
 3024|  1.19k|                        return;
 3025|  1.19k|                     }
 3026|  1.19k|                  }
 3027|      0|                  return;
 3028|  1.19k|               }
 3029|  38.9k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 9.06k, False: 29.9k]
  ------------------
 3030|  9.06k|                  first = false;
 3031|  9.06k|               }
 3032|  29.9k|               else {
 3033|  29.9k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 327, False: 29.5k]
  ------------------
 3034|    327|                     return;
 3035|    327|                  }
 3036|  29.5k|                  if constexpr (not Opts.null_terminated) {
 3037|  29.5k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 29.5k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  29.5k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|  29.5k|                                (!Opts.comments)) {
 3045|  29.5k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3045:26): [True: 16.7k, False: 12.8k]
  |  Branch (3045:37): [True: 16.4k, False: 269]
  ------------------
 3046|  16.4k|                        skip_matching_ws(ws_start, it, ws_size);
 3047|  16.4k|                     }
 3048|  29.5k|                  }
 3049|       |
 3050|  29.5k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 29.5k]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  29.5k|               }
 3054|       |
 3055|  38.6k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [True: 0, Folded]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|  38.6k|               else if constexpr (reflection_type) {
 3121|  38.6k|                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|  38.6k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3123:23): [True: 737, False: 37.9k]
  ------------------
 3124|    737|                     ctx.error = error_code::expected_quote;
 3125|    737|                     return;
 3126|    737|                  }
 3127|  37.9k|                  ++it;
 3128|  37.9k|                  if constexpr (not Opts.null_terminated) {
 3129|  37.9k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3129:26): [True: 0, False: 37.9k]
  ------------------
 3130|      0|                        ctx.error = error_code::unexpected_end;
 3131|      0|                        return;
 3132|      0|                     }
 3133|  37.9k|                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|  37.9k|                  else {
 3184|  37.9k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|  37.9k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3185:26): [True: 6.84k, False: 31.0k]
  ------------------
 3186|  6.84k|                        return;
 3187|  37.9k|                  }
 3188|       |               }
 3189|       |               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|       |                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|       |                     else {
 3203|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|       |                     }
 3205|       |                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|       |                  using Key = typename T::key_type;
 3209|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|       |                     ctx.scratch.clear();
 3211|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|       |                     if (bool(ctx.error)) [[unlikely]]
 3213|       |                        return;
 3214|       |
 3215|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3216|       |                        return;
 3217|       |                     }
 3218|       |
 3219|       |                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|       |                     if (bool(ctx.error)) [[unlikely]]
 3226|       |                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|       |               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  38.6k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 38.6k]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  38.6k|            }
 3300|  9.17k|         }
 3301|  9.17k|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|  9.09k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|  9.09k|               else {
 2904|  9.09k|                  return nullptr;
 2905|  9.09k|               }
 2906|  9.09k|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|  9.09k|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|  9.09k|                  else {
 2939|  9.09k|                     return nullptr;
 2940|  9.09k|                  }
 2941|  9.09k|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  383|  37.9k|   {
  384|  37.9k|      constexpr auto N = reflect<T>::size;
  385|       |
  386|       |      if constexpr (N == 1) {
  387|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  388|       |      }
  389|       |      else if constexpr (check_linear_search(Opts)) {
  390|       |         // Linear search path
  391|       |         auto key_start = it;
  392|       |         const auto index = decode_linear<T>(ctx, it, end);
  393|       |         if (bool(ctx.error)) [[unlikely]]
  394|       |            return;
  395|       |
  396|       |         if (index >= N) [[unlikely]] {
  397|       |            if constexpr (Opts.error_on_unknown_keys) {
  398|       |               ctx.error = error_code::unknown_key;
  399|       |               return;
  400|       |            }
  401|       |            else {
  402|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  403|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  404|       |                  return;
  405|       |               }
  406|       |               const sv key{key_start, size_t(it - key_start - 1)};
  407|       |               if constexpr (not Opts.null_terminated) {
  408|       |                  if (it == end) [[unlikely]] {
  409|       |                     ctx.error = error_code::unexpected_end;
  410|       |                     return;
  411|       |                  }
  412|       |               }
  413|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  414|       |                  return;
  415|       |               }
  416|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  417|       |               return;
  418|       |            }
  419|       |         }
  420|       |
  421|       |         if constexpr (not Opts.null_terminated) {
  422|       |            if (it == end) [[unlikely]] {
  423|       |               ctx.error = error_code::unexpected_end;
  424|       |               return;
  425|       |            }
  426|       |         }
  427|       |         if (skip_ws<Opts>(ctx, it, end)) {
  428|       |            return;
  429|       |         }
  430|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  431|       |            return;
  432|       |         }
  433|       |         if (skip_ws<Opts>(ctx, it, end)) {
  434|       |            return;
  435|       |         }
  436|       |
  437|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  438|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  439|       |         // instantiations; the whitespace before the value has already been skipped either way.
  440|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  441|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  442|       |                                 : false) ||
  443|       |                    ...));
  444|       |         }(std::make_index_sequence<N>{});
  445|       |      }
  446|  37.9k|      else {
  447|       |         // Hash-based lookup
  448|  37.9k|         constexpr auto& HashInfo = hash_info<T>;
  449|  37.9k|         constexpr auto type = HashInfo.type;
  450|  37.9k|         static_assert(bool(type), "invalid hash algorithm");
  451|       |
  452|  37.9k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  453|       |
  454|  37.9k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (454:14): [True: 107, False: 37.7k]
  ------------------
  455|    107|            if constexpr (Opts.error_on_unknown_keys) {
  456|    107|               ctx.error = error_code::unknown_key;
  457|    107|               return;
  458|       |            }
  459|       |            else {
  460|       |               auto start = it;
  461|       |               skip_string_view(ctx, it, end);
  462|       |               if (bool(ctx.error)) [[unlikely]]
  463|       |                  return;
  464|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  465|       |                  return;
  466|       |               const sv key = {start, size_t(it - start)};
  467|       |               ++it; // skip the quote
  468|       |               if constexpr (not Opts.null_terminated) {
  469|       |                  if (it == end) [[unlikely]] {
  470|       |                     ctx.error = error_code::unexpected_end;
  471|       |                     return;
  472|       |                  }
  473|       |               }
  474|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  475|       |                  return;
  476|       |               }
  477|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  478|       |               return;
  479|       |            }
  480|    107|         }
  481|       |
  482|       |         if constexpr (N == 2) {
  483|       |            if (index == 0) {
  484|       |               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  485|       |            }
  486|       |            else {
  487|       |               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  488|       |            }
  489|       |         }
  490|  37.9k|         else {
  491|  37.9k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  492|  37.9k|         }
  493|  37.9k|      }
  494|  37.9k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm0EEEDav:
  491|  20.8k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  20.8k|   {
  314|  20.8k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  20.8k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  20.8k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  20.8k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 20.8k, False: 5]
  |  Branch (322:52): [True: 20.8k, False: 32]
  ------------------
  323|  20.8k|         it += Length;
  324|  20.8k|         if constexpr (not Opts.null_terminated) {
  325|  20.8k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 20.8k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  20.8k|         }
  330|       |
  331|  20.8k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 20.8k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  20.8k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 53, False: 20.7k]
  ------------------
  335|     53|            return;
  336|     53|         }
  337|  20.7k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 20.7k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  20.7k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  20.7k|      }
  344|     37|      else [[unlikely]] {
  345|     37|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     37|      }
  347|  20.8k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  20.7k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  20.7k|      else {
  275|  20.7k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  20.7k|         else {
  299|  20.7k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  20.7k|                                                                       it, end);
  301|  20.7k|         }
  302|  20.7k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  20.7k|   }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  178|    630|   {
  179|    630|      if constexpr (Opts.error_on_unknown_keys) {
  180|    630|         ctx.error = error_code::unknown_key;
  181|       |      }
  182|       |      else {
  183|       |         auto* start = it;
  184|       |         uint64_t ascii_acc{};
  185|       |         skip_string_view(ctx, it, end, ascii_acc);
  186|       |         if (bool(ctx.error)) [[unlikely]]
  187|       |            return;
  188|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  189|       |            return;
  190|       |         const sv key = {start, size_t(it - start)};
  191|       |         ++it;
  192|       |         if constexpr (not Opts.null_terminated) {
  193|       |            if (it == end) [[unlikely]] {
  194|       |               ctx.error = error_code::unexpected_end;
  195|       |               return;
  196|       |            }
  197|       |         }
  198|       |
  199|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  200|       |            return;
  201|       |         }
  202|       |
  203|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  204|       |      }
  205|    630|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm1EEEDav:
  491|    156|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    156|   {
  314|    156|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    156|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    156|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    156|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 149, False: 7]
  |  Branch (322:52): [True: 78, False: 71]
  ------------------
  323|     78|         it += Length;
  324|     78|         if constexpr (not Opts.null_terminated) {
  325|     78|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 78]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|     78|         }
  330|       |
  331|     78|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 78]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|     78|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 26, False: 52]
  ------------------
  335|     26|            return;
  336|     26|         }
  337|     52|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 52]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|     52|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|     52|      }
  344|     78|      else [[unlikely]] {
  345|     78|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     78|      }
  347|    156|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|     52|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|     52|      else {
  275|     52|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|     52|         else {
  299|     52|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|     52|                                                                       it, end);
  301|     52|         }
  302|     52|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|     52|   }
_ZN3glz4fromILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcSC_S7_TkNS_10is_contextERNS_7contextEEEvRT2_OT3_OT0_T1_:
  888|   780k|      {
  889|       |         if constexpr (check_string_as_number(Opts)) {
  890|       |            auto start = it;
  891|       |            skip_number<Opts>(ctx, it, end);
  892|       |            if (bool(ctx.error)) [[unlikely]] {
  893|       |               return;
  894|       |            }
  895|       |            if (start == it) [[unlikely]] {
  896|       |               ctx.error = error_code::parse_number_failure;
  897|       |               return;
  898|       |            }
  899|       |            value.append(start, size_t(it - start));
  900|       |         }
  901|   780k|         else {
  902|   780k|            if constexpr (!check_opening_handled(Opts)) {
  903|       |               if constexpr (!check_ws_handled(Opts)) {
  904|       |                  if (skip_ws<Opts>(ctx, it, end)) {
  905|       |                     return;
  906|       |                  }
  907|       |               }
  908|       |
  909|   780k|               if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (909:20): [True: 95, False: 779k]
  ------------------
  910|     95|                  return;
  911|     95|               }
  912|   780k|            }
  913|       |
  914|   780k|            if constexpr (not check_raw_string(Opts)) {
  915|   780k|               static constexpr auto string_padding_bytes = 8;
  916|       |
  917|       |               // How much buffer has to remain for an eight byte load at the cursor to stay inside
  918|       |               // it. One on a padded input, where the last chunk is free to straddle the end of the
  919|       |               // document, so the byte tails below are unreachable; eight otherwise, which costs the
  920|       |               // final bytes of the buffer their chunked path and nothing else.
  921|   780k|               const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
  922|       |
  923|   780k|               if (size_t(end - it) >= 8) {
  ------------------
  |  Branch (923:20): [True: 779k, False: 475]
  ------------------
  924|       |                  // The bound as a pointer, so the loops below spend a compare per chunk rather
  925|       |                  // than a subtract and a compare. Well defined here and nowhere else in this
  926|       |                  // reader: the branch has just established that at least eight bytes remain, and
  927|       |                  // `scan_min` is at most eight.
  928|   779k|                  const auto* const chunk_limit = end - scan_min;
  929|       |
  930|   779k|                  auto start = it;
  931|   779k|                  uint64_t ascii_acc{};
  932|  15.5M|                  while (it <= chunk_limit) {
  ------------------
  |  Branch (932:26): [True: 15.5M, False: 843]
  ------------------
  933|  15.5M|                     uint64_t chunk;
  934|  15.5M|                     std::memcpy(&chunk, it, 8);
  935|       |                     if constexpr (std::endian::native == std::endian::big) {
  936|       |                        chunk = std::byteswap(chunk);
  937|       |                     }
  938|  15.5M|                     ascii_acc |= chunk;
  939|  15.5M|                     const uint64_t test_chars = has_quote(chunk);
  940|  15.5M|                     if (test_chars) {
  ------------------
  |  Branch (940:26): [True: 1.15M, False: 14.4M]
  ------------------
  941|  1.15M|                        it += (countr_zero(test_chars) >> 3);
  942|       |
  943|  1.15M|                        auto* prev = it - 1;
  944|  1.57M|                        while (*prev == '\\') {
  ------------------
  |  Branch (944:32): [True: 424k, False: 1.15M]
  ------------------
  945|   424k|                           --prev;
  946|   424k|                        }
  947|  1.15M|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (947:29): [True: 778k, False: 372k]
  ------------------
  948|   778k|                           goto continue_decode;
  949|   778k|                        }
  950|   372k|                        ++it; // skip the escaped quote
  951|   372k|                     }
  952|  14.4M|                     else {
  953|  14.4M|                        it += 8;
  954|  14.4M|                     }
  955|  15.5M|                  }
  956|       |
  957|  6.56k|                  while (it[-1] == '\\') [[unlikely]] {
  ------------------
  |  Branch (957:26): [True: 5.71k, False: 843]
  ------------------
  958|       |                     // if we ended on an escape character then we need to rewind
  959|       |                     // because we lost our context
  960|  5.71k|                     --it;
  961|  5.71k|                  }
  962|       |
  963|       |                  // The byte-wise tail keeps feeding the accumulator: it has to cover every byte of
  964|       |                  // the string, or a non-ASCII byte reached here would be waved through unvalidated.
  965|  8.59k|                  for (; it < end; ++it) {
  ------------------
  |  Branch (965:26): [True: 8.59k, False: 0]
  ------------------
  966|  8.59k|                     ascii_acc |= uint8_t(*it);
  967|  8.59k|                     if (*it == '"') {
  ------------------
  |  Branch (967:26): [True: 884, False: 7.70k]
  ------------------
  968|    884|                        auto* prev = it - 1;
  969|  6.25k|                        while (*prev == '\\') {
  ------------------
  |  Branch (969:32): [True: 5.37k, False: 884]
  ------------------
  970|  5.37k|                           --prev;
  971|  5.37k|                        }
  972|    884|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (972:29): [True: 843, False: 41]
  ------------------
  973|    843|                           goto continue_decode;
  974|    843|                        }
  975|    884|                     }
  976|  8.59k|                  }
  977|       |
  978|      0|                  ctx.error = error_code::unexpected_end;
  979|      0|                  return;
  980|       |
  981|   779k|               continue_decode:
  982|       |
  983|   779k|                  if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (983:23): [True: 10.4k, False: 769k]
  ------------------
  984|  10.4k|                     return;
  985|  10.4k|                  }
  986|       |
  987|   769k|                  auto n = size_t(it - start);
  988|       |
  989|       |                  // The padding lets the chunked copy below run up to the closing quote. Skip it when it
  990|       |                  // would be the only reason to allocate, as for a string that fits the small string
  991|       |                  // buffer but not with eight bytes to spare.
  992|   769k|                  bool pad = true;
  993|   769k|                  if constexpr (requires { value.capacity(); }) {
  994|   769k|                     const auto capacity = size_t(value.capacity());
  995|   769k|                     pad = capacity >= n + string_padding_bytes || capacity < n;
  ------------------
  |  Branch (995:28): [True: 490k, False: 278k]
  |  Branch (995:68): [True: 103k, False: 175k]
  ------------------
  996|   769k|                  }
  997|   769k|                  resize_unfilled(value, pad ? n + string_padding_bytes : n);
  ------------------
  |  Branch (997:42): [True: 593k, False: 175k]
  ------------------
  998|       |
  999|   769k|                  auto* p = value.data();
 1000|       |
 1001|       |                  // An error below returns with the tail of `value` still unwritten. Leave the size at
 1002|       |                  // what was actually written rather than at the padded length, which resize_unfilled
 1003|       |                  // did not fill.
 1004|   769k|                  auto* const written_begin = p;
 1005|       |
 1006|       |                  // Without the padding, copy a chunk only while eight bytes remain before the quote.
 1007|       |                  // Unescaping never puts the output ahead of the input, so no store lands past the end.
 1008|   769k|                  const auto* const copy_end = pad ? it : it - (std::min)(n, size_t(7));
  ------------------
  |  Branch (1008:48): [True: 593k, False: 175k]
  ------------------
 1009|       |
 1010|       |                  // Copy eight bytes at a time for as long as eight bytes are there to read, then
 1011|       |                  // finish the span below. The chunked form reads past the character it is looking
 1012|       |                  // at, so on an unpadded buffer it has to stop short of the end; splitting it this
 1013|       |                  // way keeps it for the body of every string rather than giving it up whenever the
 1014|       |                  // string happens to finish near the end of the buffer -- which, for a document
 1015|       |                  // that is itself one string, is every string.
 1016|  6.33M|                  while (start < copy_end && start <= chunk_limit) {
  ------------------
  |  Branch (1016:26): [True: 5.57M, False: 767k]
  |  Branch (1016:46): [True: 5.57M, False: 389]
  ------------------
 1017|  5.57M|                     std::memcpy(p, start, 8);
 1018|  5.57M|                     uint64_t swar;
 1019|  5.57M|                     std::memcpy(&swar, p, 8);
 1020|       |                     if constexpr (std::endian::native == std::endian::big) {
 1021|       |                        swar = std::byteswap(swar);
 1022|       |                     }
 1023|       |
 1024|  5.57M|                     constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1025|  5.57M|                     const uint64_t lo7 = swar & lo7_mask;
 1026|  5.57M|                     const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1027|  5.57M|                     const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1028|  5.57M|                     uint64_t next = ~((backslash & less_32) | swar);
 1029|       |
 1030|  5.57M|                     next &= repeat_byte8(0b10000000);
 1031|  5.57M|                     if (next == 0) {
  ------------------
  |  Branch (1031:26): [True: 4.91M, False: 652k]
  ------------------
 1032|  4.91M|                        start += 8;
 1033|  4.91M|                        p += 8;
 1034|  4.91M|                        continue;
 1035|  4.91M|                     }
 1036|       |
 1037|   652k|                     next = countr_zero(next) >> 3;
 1038|   652k|                     start += next;
 1039|   652k|                     if (start >= it) {
  ------------------
  |  Branch (1039:26): [True: 679, False: 651k]
  ------------------
 1040|    679|                        break;
 1041|    679|                     }
 1042|       |
 1043|   651k|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1043:26): [True: 723, False: 650k]
  ------------------
 1044|    723|                        ctx.error = error_code::syntax_error;
 1045|    723|                        value.resize(size_t(p - written_begin));
 1046|    723|                        return;
 1047|    723|                     }
 1048|   650k|                     ++start; // skip the escape
 1049|   650k|                     if (*start == 'u') {
  ------------------
  |  Branch (1049:26): [True: 1.88k, False: 648k]
  ------------------
 1050|  1.88k|                        ++start;
 1051|  1.88k|                        p += next;
 1052|  1.88k|                        const auto mark = start;
 1053|  1.88k|                        const auto decoded = handle_unicode_code_point(start, p, end);
 1054|  1.88k|                        if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1054:29): [True: 143, False: 1.74k]
  ------------------
 1055|    143|                           ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1055:40): [True: 0, False: 143]
  ------------------
 1056|    143|                                                         : error_code::unicode_escape_conversion_failure;
 1057|    143|                           value.resize(size_t(p - written_begin));
 1058|    143|                           return;
 1059|    143|                        }
 1060|  1.74k|                        n += decoded.written;
 1061|       |                        // escape + u + unicode code points
 1062|  1.74k|                        n -= 2 + uint32_t(start - mark);
 1063|  1.74k|                     }
 1064|   648k|                     else {
 1065|   648k|                        p += next;
 1066|   648k|                        *p = char_unescape_table[uint8_t(*start)];
 1067|   648k|                        if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1067:29): [True: 25, False: 648k]
  ------------------
 1068|     25|                           ctx.error = error_code::invalid_escape;
 1069|     25|                           value.resize(size_t(p - written_begin));
 1070|     25|                           return;
 1071|     25|                        }
 1072|   648k|                        ++p;
 1073|   648k|                        ++start;
 1074|   648k|                        --n;
 1075|   648k|                     }
 1076|   650k|                  }
 1077|       |
 1078|       |                  // Whatever the chunked copy could not reach. `p` and `start` stay in step across
 1079|       |                  // that loop, so this picks up exactly where it stopped.
 1080|  1.83M|                  while (start < it) {
  ------------------
  |  Branch (1080:26): [True: 1.06M, False: 768k]
  ------------------
 1081|  1.06M|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1081:26): [True: 92, False: 1.06M]
  ------------------
 1082|     92|                        ctx.error = error_code::syntax_error;
 1083|     92|                        value.resize(size_t(p - written_begin));
 1084|     92|                        return;
 1085|     92|                     }
 1086|  1.06M|                     if (*start == '\\') {
  ------------------
  |  Branch (1086:26): [True: 775, False: 1.06M]
  ------------------
 1087|    775|                        ++start; // skip the escape
 1088|    775|                        if (*start == 'u') {
  ------------------
  |  Branch (1088:29): [True: 96, False: 679]
  ------------------
 1089|     96|                           ++start;
 1090|     96|                           const auto mark = start;
 1091|     96|                           const auto decoded = handle_unicode_code_point(start, p, end);
 1092|     96|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1092:32): [True: 55, False: 41]
  ------------------
 1093|     55|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1093:43): [True: 0, False: 55]
  ------------------
 1094|     55|                                                            : error_code::unicode_escape_conversion_failure;
 1095|     55|                              value.resize(size_t(p - written_begin));
 1096|     55|                              return;
 1097|     55|                           }
 1098|     41|                           n += decoded.written;
 1099|     41|                           n -= 2 + uint32_t(start - mark);
 1100|     41|                        }
 1101|    679|                        else {
 1102|    679|                           *p = char_unescape_table[uint8_t(*start)];
 1103|    679|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1103:32): [True: 23, False: 656]
  ------------------
 1104|     23|                              ctx.error = error_code::invalid_escape;
 1105|     23|                              value.resize(size_t(p - written_begin));
 1106|     23|                              return;
 1107|     23|                           }
 1108|    656|                           ++p;
 1109|    656|                           ++start;
 1110|    656|                           --n;
 1111|    656|                        }
 1112|    775|                     }
 1113|  1.06M|                     else {
 1114|  1.06M|                        *p = *start;
 1115|  1.06M|                        ++p;
 1116|  1.06M|                        ++start;
 1117|  1.06M|                     }
 1118|  1.06M|                  }
 1119|       |
 1120|   768k|                  value.resize(n);
 1121|   768k|                  ++it;
 1122|   768k|               }
 1123|    475|               else {
 1124|       |                  // For short strings
 1125|       |
 1126|    475|                  std::array<char, 8> buffer{};
 1127|       |
 1128|    475|                  auto* p = buffer.data();
 1129|    475|                  const auto* const utf8_start = it;
 1130|       |
 1131|  1.03k|                  while (it < end) [[likely]] {
  ------------------
  |  Branch (1131:26): [True: 940, False: 95]
  ------------------
 1132|    940|                     *p = *it;
 1133|    940|                     if (*it == '"') {
  ------------------
  |  Branch (1133:26): [True: 315, False: 625]
  ------------------
 1134|    315|                        if (validate_utf8_span<Opts>(ctx, utf8_start, it)) [[unlikely]] {
  ------------------
  |  Branch (1134:29): [True: 0, False: 315]
  ------------------
 1135|      0|                           return;
 1136|      0|                        }
 1137|    315|                        const size_t n = size_t(p - buffer.data());
 1138|    315|#if __has_cpp_attribute(assume) >= 202207L
 1139|    315|                        [[assume(n <= sizeof(buffer))]];
 1140|    315|#endif
 1141|    315|                        value.assign(buffer.data(), n);
 1142|    315|                        ++it;
 1143|    315|                        if constexpr (not Opts.null_terminated) {
 1144|    315|                           if (it == end) {
  ------------------
  |  Branch (1144:32): [True: 190, False: 125]
  ------------------
 1145|    190|                              ctx.error = error_code::end_reached;
 1146|    190|                              return;
 1147|    190|                           }
 1148|    315|                        }
 1149|    125|                        return;
 1150|    315|                     }
 1151|    625|                     else if (*it == '\\') {
  ------------------
  |  Branch (1151:31): [True: 146, False: 479]
  ------------------
 1152|       |                        // Bounded whatever `null_terminated` says: a document cut off inside an
 1153|       |                        // escape has run out of input, and saying so beats blaming the terminator
 1154|       |                        // the cut exposed -- which is what reading on would find, and would report
 1155|       |                        // as a malformed escape.
 1156|    146|                        ++it; // skip the escape
 1157|    146|                        if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1157:29): [True: 0, False: 146]
  ------------------
 1158|      0|                           ctx.error = error_code::unexpected_end;
 1159|      0|                           return;
 1160|      0|                        }
 1161|    146|                        if (*it == 'u') {
  ------------------
  |  Branch (1161:29): [True: 87, False: 59]
  ------------------
 1162|     87|                           ++it;
 1163|     87|                           if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1163:32): [True: 0, False: 87]
  ------------------
 1164|      0|                              ctx.error = error_code::unexpected_end;
 1165|      0|                              return;
 1166|      0|                           }
 1167|     87|                           const auto decoded = handle_unicode_code_point(it, p, end);
 1168|     87|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1168:32): [True: 24, False: 63]
  ------------------
 1169|     24|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1169:43): [True: 0, False: 24]
  ------------------
 1170|     24|                                                            : error_code::unicode_escape_conversion_failure;
 1171|     24|                              return;
 1172|     24|                           }
 1173|     87|                        }
 1174|     59|                        else {
 1175|     59|                           *p = char_unescape_table[uint8_t(*it)];
 1176|     59|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1176:32): [True: 9, False: 50]
  ------------------
 1177|      9|                              ctx.error = error_code::invalid_escape;
 1178|      9|                              return;
 1179|      9|                           }
 1180|     50|                           ++p;
 1181|     50|                           ++it;
 1182|     50|                        }
 1183|    146|                     }
 1184|    479|                     else if ((*it & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1184:31): [True: 32, False: 447]
  ------------------
 1185|     32|                        ctx.error = error_code::syntax_error;
 1186|     32|                        return;
 1187|     32|                     }
 1188|    447|                     else {
 1189|    447|                        ++it;
 1190|    447|                        ++p;
 1191|    447|                     }
 1192|    940|                  }
 1193|       |
 1194|     95|                  ctx.error = error_code::unexpected_end;
 1195|     95|               }
 1196|       |            }
 1197|       |            else {
 1198|       |               // raw_string
 1199|       |               auto start = it;
 1200|       |               skip_string_view(ctx, it, end);
 1201|       |               if (bool(ctx.error)) [[unlikely]]
 1202|       |                  return;
 1203|       |
 1204|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
 1205|       |                  return;
 1206|       |               }
 1207|       |
 1208|       |               value.assign(start, size_t(it - start));
 1209|       |               ++it;
 1210|       |            }
 1211|   780k|         }
 1212|   780k|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm2EEEDav:
  491|    753|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    753|   {
  314|    753|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    753|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    753|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    753|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 745, False: 8]
  |  Branch (322:52): [True: 715, False: 30]
  ------------------
  323|    715|         it += Length;
  324|    715|         if constexpr (not Opts.null_terminated) {
  325|    715|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 715]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    715|         }
  330|       |
  331|    715|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 715]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    715|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 26, False: 689]
  ------------------
  335|     26|            return;
  336|     26|         }
  337|    689|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 689]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    689|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    689|      }
  344|     38|      else [[unlikely]] {
  345|     38|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     38|      }
  347|    753|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    689|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    689|      else {
  275|    689|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    689|         else {
  299|    689|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    689|                                                                       it, end);
  301|    689|         }
  302|    689|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    689|   }
_ZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2794|    689|      {
 2795|    689|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|    689|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|    689|         if constexpr (!check_opening_handled(Options)) {
 2799|       |            if constexpr (!check_ws_handled(Options)) {
 2800|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2801|       |                  return;
 2802|       |               }
 2803|       |            }
 2804|    689|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 25, False: 664]
  ------------------
 2805|     25|               return;
 2806|     25|            }
 2807|    664|            if constexpr (not Opts.null_terminated) {
 2808|    664|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 664]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|    664|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|    664|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 664]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|    664|         }
 2819|    664|         const auto ws_start = it;
 2820|    689|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 689]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|    689|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|    689|         else {
 2898|    689|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|    689|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|    689|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|    689|                  return bit_array<num_members>{};
 2902|    689|               }
 2903|    689|               else {
 2904|    689|                  return nullptr;
 2905|    689|               }
 2906|    689|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|    689|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|    689|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|    689|                  return has_includer_member<T>;
 2918|    689|               }
 2919|    689|               else {
 2920|    689|                  return false;
 2921|    689|               }
 2922|    689|            }();
 2923|    689|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|    689|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|    689|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|    689|                                                      inert_key_bits_scope> published_bits{
 2934|    689|               ctx, [&]() -> void* {
 2935|    689|                  if constexpr (tracks_include_keys) {
 2936|    689|                     return &fields;
 2937|    689|                  }
 2938|    689|                  else {
 2939|    689|                     return nullptr;
 2940|    689|                  }
 2941|    689|               }()};
 2942|       |
 2943|    689|            size_t read_count{}; // for partial_read
 2944|       |
 2945|    689|            bool first = true;
 2946|  4.64k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 4.12k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  4.12k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 150, False: 3.97k]
  ------------------
 2984|    150|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|    150|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|    150|                  }
 3020|    150|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|    150|                  if constexpr (not Opts.null_terminated) {
 3022|    150|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 0, False: 150]
  ------------------
 3023|      0|                        ctx.error = error_code::end_reached;
 3024|      0|                        return;
 3025|      0|                     }
 3026|    150|                  }
 3027|    150|                  return;
 3028|    150|               }
 3029|  3.97k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 593, False: 3.37k]
  ------------------
 3030|    593|                  first = false;
 3031|    593|               }
 3032|  3.37k|               else {
 3033|  3.37k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 15, False: 3.36k]
  ------------------
 3034|     15|                     return;
 3035|     15|                  }
 3036|  3.36k|                  if constexpr (not Opts.null_terminated) {
 3037|  3.36k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 3.36k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  3.36k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|  3.36k|                                (!Opts.comments)) {
 3045|  3.36k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3045:26): [True: 3.12k, False: 237]
  |  Branch (3045:37): [True: 2.51k, False: 610]
  ------------------
 3046|  2.51k|                        skip_matching_ws(ws_start, it, ws_size);
 3047|  2.51k|                     }
 3048|  3.36k|                  }
 3049|       |
 3050|  3.36k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 3.36k]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  3.36k|               }
 3054|       |
 3055|  3.95k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [True: 0, Folded]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|  3.95k|               else if constexpr (reflection_type) {
 3121|  3.95k|                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|  3.95k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3123:23): [True: 459, False: 3.49k]
  ------------------
 3124|    459|                     ctx.error = error_code::expected_quote;
 3125|    459|                     return;
 3126|    459|                  }
 3127|  3.49k|                  ++it;
 3128|  3.49k|                  if constexpr (not Opts.null_terminated) {
 3129|  3.49k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3129:26): [True: 0, False: 3.49k]
  ------------------
 3130|      0|                        ctx.error = error_code::unexpected_end;
 3131|      0|                        return;
 3132|      0|                     }
 3133|  3.49k|                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|  3.49k|                  else {
 3184|  3.49k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|  3.49k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3185:26): [True: 40, False: 3.45k]
  ------------------
 3186|     40|                        return;
 3187|  3.49k|                  }
 3188|       |               }
 3189|       |               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|       |                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|       |                     else {
 3203|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|       |                     }
 3205|       |                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|       |                  using Key = typename T::key_type;
 3209|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|       |                     ctx.scratch.clear();
 3211|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|       |                     if (bool(ctx.error)) [[unlikely]]
 3213|       |                        return;
 3214|       |
 3215|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3216|       |                        return;
 3217|       |                     }
 3218|       |
 3219|       |                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|       |                     if (bool(ctx.error)) [[unlikely]]
 3226|       |                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|       |               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  3.95k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 3.95k]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  3.95k|            }
 3300|    689|         }
 3301|    689|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|    664|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|    664|               else {
 2904|    664|                  return nullptr;
 2905|    664|               }
 2906|    664|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|    664|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|    664|                  else {
 2939|    664|                     return nullptr;
 2940|    664|                  }
 2941|    664|               }()};
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm3EEEDav:
  491|    942|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    942|   {
  314|    942|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    942|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    942|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    942|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 932, False: 10]
  |  Branch (322:52): [True: 915, False: 17]
  ------------------
  323|    915|         it += Length;
  324|    915|         if constexpr (not Opts.null_terminated) {
  325|    915|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 915]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    915|         }
  330|       |
  331|    915|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 915]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    915|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 28, False: 887]
  ------------------
  335|     28|            return;
  336|     28|         }
  337|    887|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 887]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    887|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    887|      }
  344|     27|      else [[unlikely]] {
  345|     27|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     27|      }
  347|    942|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    887|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    887|      else {
  275|    887|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    887|         else {
  299|    887|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    887|                                                                       it, end);
  301|    887|         }
  302|    887|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    887|   }
_ZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2794|    887|      {
 2795|    887|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|    887|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|    887|         if constexpr (!check_opening_handled(Options)) {
 2799|       |            if constexpr (!check_ws_handled(Options)) {
 2800|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2801|       |                  return;
 2802|       |               }
 2803|       |            }
 2804|    887|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 29, False: 858]
  ------------------
 2805|     29|               return;
 2806|     29|            }
 2807|    858|            if constexpr (not Opts.null_terminated) {
 2808|    858|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 858]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|    858|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|    858|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 858]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|    858|         }
 2819|    858|         const auto ws_start = it;
 2820|    887|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 887]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|    887|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|    887|         else {
 2898|    887|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|    887|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|    887|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|    887|                  return bit_array<num_members>{};
 2902|    887|               }
 2903|    887|               else {
 2904|    887|                  return nullptr;
 2905|    887|               }
 2906|    887|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|    887|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|    887|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|    887|                  return has_includer_member<T>;
 2918|    887|               }
 2919|    887|               else {
 2920|    887|                  return false;
 2921|    887|               }
 2922|    887|            }();
 2923|    887|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|    887|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|    887|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|    887|                                                      inert_key_bits_scope> published_bits{
 2934|    887|               ctx, [&]() -> void* {
 2935|    887|                  if constexpr (tracks_include_keys) {
 2936|    887|                     return &fields;
 2937|    887|                  }
 2938|    887|                  else {
 2939|    887|                     return nullptr;
 2940|    887|                  }
 2941|    887|               }()};
 2942|       |
 2943|    887|            size_t read_count{}; // for partial_read
 2944|       |
 2945|    887|            bool first = true;
 2946|  4.80k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 4.03k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  4.03k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 111, False: 3.92k]
  ------------------
 2984|    111|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|    111|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|    111|                  }
 3020|    111|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|    111|                  if constexpr (not Opts.null_terminated) {
 3022|    111|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 0, False: 111]
  ------------------
 3023|      0|                        ctx.error = error_code::end_reached;
 3024|      0|                        return;
 3025|      0|                     }
 3026|    111|                  }
 3027|    111|                  return;
 3028|    111|               }
 3029|  3.92k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 765, False: 3.16k]
  ------------------
 3030|    765|                  first = false;
 3031|    765|               }
 3032|  3.16k|               else {
 3033|  3.16k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 9, False: 3.15k]
  ------------------
 3034|      9|                     return;
 3035|      9|                  }
 3036|  3.15k|                  if constexpr (not Opts.null_terminated) {
 3037|  3.15k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 3.15k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  3.15k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|  3.15k|                                (!Opts.comments)) {
 3045|  3.15k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3045:26): [True: 2.66k, False: 487]
  |  Branch (3045:37): [True: 2.56k, False: 101]
  ------------------
 3046|  2.56k|                        skip_matching_ws(ws_start, it, ws_size);
 3047|  2.56k|                     }
 3048|  3.15k|                  }
 3049|       |
 3050|  3.15k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 3.15k]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  3.15k|               }
 3054|       |
 3055|  3.91k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [True: 0, Folded]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|  3.91k|               else if constexpr (reflection_type) {
 3121|  3.91k|                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|  3.91k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3123:23): [True: 633, False: 3.28k]
  ------------------
 3124|    633|                     ctx.error = error_code::expected_quote;
 3125|    633|                     return;
 3126|    633|                  }
 3127|  3.28k|                  ++it;
 3128|  3.28k|                  if constexpr (not Opts.null_terminated) {
 3129|  3.28k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3129:26): [True: 0, False: 3.28k]
  ------------------
 3130|      0|                        ctx.error = error_code::unexpected_end;
 3131|      0|                        return;
 3132|      0|                     }
 3133|  3.28k|                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|  3.28k|                  else {
 3184|  3.28k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|  3.28k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3185:26): [True: 105, False: 3.18k]
  ------------------
 3186|    105|                        return;
 3187|  3.28k|                  }
 3188|       |               }
 3189|       |               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|       |                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|       |                     else {
 3203|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|       |                     }
 3205|       |                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|       |                  using Key = typename T::key_type;
 3209|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|       |                     ctx.scratch.clear();
 3211|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|       |                     if (bool(ctx.error)) [[unlikely]]
 3213|       |                        return;
 3214|       |
 3215|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3216|       |                        return;
 3217|       |                     }
 3218|       |
 3219|       |                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|       |                     if (bool(ctx.error)) [[unlikely]]
 3226|       |                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|       |               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  3.91k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 3.91k]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  3.91k|            }
 3300|    887|         }
 3301|    887|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|    858|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|    858|               else {
 2904|    858|                  return nullptr;
 2905|    858|               }
 2906|    858|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|    858|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|    858|                  else {
 2939|    858|                     return nullptr;
 2940|    858|                  }
 2941|    858|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  383|  16.3k|   {
  384|  16.3k|      constexpr auto N = reflect<T>::size;
  385|       |
  386|       |      if constexpr (N == 1) {
  387|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  388|       |      }
  389|       |      else if constexpr (check_linear_search(Opts)) {
  390|       |         // Linear search path
  391|       |         auto key_start = it;
  392|       |         const auto index = decode_linear<T>(ctx, it, end);
  393|       |         if (bool(ctx.error)) [[unlikely]]
  394|       |            return;
  395|       |
  396|       |         if (index >= N) [[unlikely]] {
  397|       |            if constexpr (Opts.error_on_unknown_keys) {
  398|       |               ctx.error = error_code::unknown_key;
  399|       |               return;
  400|       |            }
  401|       |            else {
  402|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  403|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  404|       |                  return;
  405|       |               }
  406|       |               const sv key{key_start, size_t(it - key_start - 1)};
  407|       |               if constexpr (not Opts.null_terminated) {
  408|       |                  if (it == end) [[unlikely]] {
  409|       |                     ctx.error = error_code::unexpected_end;
  410|       |                     return;
  411|       |                  }
  412|       |               }
  413|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  414|       |                  return;
  415|       |               }
  416|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  417|       |               return;
  418|       |            }
  419|       |         }
  420|       |
  421|       |         if constexpr (not Opts.null_terminated) {
  422|       |            if (it == end) [[unlikely]] {
  423|       |               ctx.error = error_code::unexpected_end;
  424|       |               return;
  425|       |            }
  426|       |         }
  427|       |         if (skip_ws<Opts>(ctx, it, end)) {
  428|       |            return;
  429|       |         }
  430|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  431|       |            return;
  432|       |         }
  433|       |         if (skip_ws<Opts>(ctx, it, end)) {
  434|       |            return;
  435|       |         }
  436|       |
  437|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  438|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  439|       |         // instantiations; the whitespace before the value has already been skipped either way.
  440|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  441|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  442|       |                                 : false) ||
  443|       |                    ...));
  444|       |         }(std::make_index_sequence<N>{});
  445|       |      }
  446|  16.3k|      else {
  447|       |         // Hash-based lookup
  448|  16.3k|         constexpr auto& HashInfo = hash_info<T>;
  449|  16.3k|         constexpr auto type = HashInfo.type;
  450|  16.3k|         static_assert(bool(type), "invalid hash algorithm");
  451|       |
  452|  16.3k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  453|       |
  454|  16.3k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (454:14): [True: 0, False: 16.3k]
  ------------------
  455|      0|            if constexpr (Opts.error_on_unknown_keys) {
  456|      0|               ctx.error = error_code::unknown_key;
  457|      0|               return;
  458|       |            }
  459|       |            else {
  460|       |               auto start = it;
  461|       |               skip_string_view(ctx, it, end);
  462|       |               if (bool(ctx.error)) [[unlikely]]
  463|       |                  return;
  464|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  465|       |                  return;
  466|       |               const sv key = {start, size_t(it - start)};
  467|       |               ++it; // skip the quote
  468|       |               if constexpr (not Opts.null_terminated) {
  469|       |                  if (it == end) [[unlikely]] {
  470|       |                     ctx.error = error_code::unexpected_end;
  471|       |                     return;
  472|       |                  }
  473|       |               }
  474|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  475|       |                  return;
  476|       |               }
  477|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  478|       |               return;
  479|       |            }
  480|      0|         }
  481|       |
  482|  16.3k|         if constexpr (N == 2) {
  483|  16.3k|            if (index == 0) {
  ------------------
  |  Branch (483:17): [True: 15.2k, False: 1.12k]
  ------------------
  484|  15.2k|               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  485|  15.2k|            }
  486|  1.12k|            else {
  487|  1.12k|               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  488|  1.12k|            }
  489|       |         }
  490|       |         else {
  491|       |            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  492|       |         }
  493|  16.3k|      }
  494|  16.3k|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  15.2k|   {
  314|  15.2k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  15.2k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  15.2k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  15.2k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 15.2k, False: 13]
  |  Branch (322:52): [True: 15.2k, False: 33]
  ------------------
  323|  15.2k|         it += Length;
  324|  15.2k|         if constexpr (not Opts.null_terminated) {
  325|  15.2k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 15.2k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  15.2k|         }
  330|       |
  331|  15.2k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 15.2k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  15.2k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 42, False: 15.1k]
  ------------------
  335|     42|            return;
  336|     42|         }
  337|  15.1k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 15.1k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  15.1k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  15.1k|      }
  344|     46|      else [[unlikely]] {
  345|     46|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     46|      }
  347|  15.2k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz6nestedELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  15.1k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  15.1k|      else {
  275|  15.1k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  15.1k|         else {
  299|  15.1k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  15.1k|                                                                       it, end);
  301|  15.1k|         }
  302|  15.1k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  15.1k|   }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  178|    117|   {
  179|    117|      if constexpr (Opts.error_on_unknown_keys) {
  180|    117|         ctx.error = error_code::unknown_key;
  181|       |      }
  182|       |      else {
  183|       |         auto* start = it;
  184|       |         uint64_t ascii_acc{};
  185|       |         skip_string_view(ctx, it, end, ascii_acc);
  186|       |         if (bool(ctx.error)) [[unlikely]]
  187|       |            return;
  188|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  189|       |            return;
  190|       |         const sv key = {start, size_t(it - start)};
  191|       |         ++it;
  192|       |         if constexpr (not Opts.null_terminated) {
  193|       |            if (it == end) [[unlikely]] {
  194|       |               ctx.error = error_code::unexpected_end;
  195|       |               return;
  196|       |            }
  197|       |         }
  198|       |
  199|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  200|       |            return;
  201|       |         }
  202|       |
  203|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  204|       |      }
  205|    117|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  1.12k|   {
  314|  1.12k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  1.12k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  1.12k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  1.12k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 1.10k, False: 24]
  |  Branch (322:52): [True: 1.05k, False: 47]
  ------------------
  323|  1.05k|         it += Length;
  324|  1.05k|         if constexpr (not Opts.null_terminated) {
  325|  1.05k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 1.05k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  1.05k|         }
  330|       |
  331|  1.05k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 1.05k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  1.05k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 62, False: 992]
  ------------------
  335|     62|            return;
  336|     62|         }
  337|    992|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 992]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    992|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    992|      }
  344|     71|      else [[unlikely]] {
  345|     71|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     71|      }
  347|  1.12k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz6nestedELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    992|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    992|      else {
  275|    992|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    992|         else {
  299|    992|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    992|                                                                       it, end);
  301|    992|         }
  302|    992|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    992|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm4EEEDav:
  491|  7.67k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm4ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  7.67k|   {
  314|  7.67k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  7.67k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  7.67k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  7.67k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 7.66k, False: 7]
  |  Branch (322:52): [True: 7.65k, False: 11]
  ------------------
  323|  7.65k|         it += Length;
  324|  7.65k|         if constexpr (not Opts.null_terminated) {
  325|  7.65k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 7.65k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  7.65k|         }
  330|       |
  331|  7.65k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 7.65k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  7.65k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 30, False: 7.62k]
  ------------------
  335|     30|            return;
  336|     30|         }
  337|  7.62k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 7.62k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  7.62k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  7.62k|      }
  344|     18|      else [[unlikely]] {
  345|     18|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     18|      }
  347|  7.67k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm4ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  7.62k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  7.62k|      else {
  275|  7.62k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  7.62k|         else {
  299|  7.62k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  7.62k|                                                                       it, end);
  301|  7.62k|         }
  302|  7.62k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  7.62k|   }
_ZN3glz4fromILj10ENSt3__16vectorIiNS1_9allocatorIiEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS5_TkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
 2051|  7.62k|      {
 2052|  7.62k|         constexpr auto Opts = ws_handled_off<Options>();
 2053|       |         if constexpr (!check_ws_handled(Options)) {
 2054|       |            if (skip_ws<Opts>(ctx, it, end)) {
 2055|       |               return;
 2056|       |            }
 2057|       |         }
 2058|       |
 2059|  7.62k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2059:14): [True: 32, False: 7.59k]
  ------------------
 2060|     32|            return;
 2061|     32|         }
 2062|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2063|       |         // released at each syntactic close below
 2064|  7.59k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2064:14): [True: 0, False: 7.59k]
  ------------------
 2065|      0|            return;
 2066|      0|         }
 2067|       |
 2068|  7.59k|         const auto ws_start = it;
 2069|  7.59k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2069:14): [True: 0, False: 7.59k]
  ------------------
 2070|      0|            return;
 2071|      0|         }
 2072|       |
 2073|  7.59k|         if (*it == ']') {
  ------------------
  |  Branch (2073:14): [True: 219, False: 7.37k]
  ------------------
 2074|    219|            --ctx.depth;
 2075|    219|            ++it;
 2076|    219|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2077|    219|               value.clear();
 2078|       |
 2079|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2080|       |                  value.shrink_to_fit();
 2081|       |               }
 2082|    219|            }
 2083|    219|            return;
 2084|    219|         }
 2085|       |
 2086|  7.37k|         const size_t ws_size = size_t(it - ws_start);
 2087|       |
 2088|  7.37k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2088:49): [True: 7.37k, Folded]
  |  Branch (2088:65): [Folded, False: 0]
  |  Branch (2088:90): [Folded, False: 0]
  ------------------
 2089|  7.37k|         if constexpr (not should_append) {
 2090|  7.37k|            const auto n = value.size();
 2091|       |
 2092|  7.37k|            auto value_it = value.begin();
 2093|       |
 2094|  30.1k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2094:32): [True: 25.0k, False: 5.13k]
  ------------------
 2095|  25.0k|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2096|  25.0k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2096:20): [True: 406, False: 24.6k]
  ------------------
 2097|    406|                  return;
 2098|  24.6k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2098:20): [True: 0, False: 24.6k]
  ------------------
 2099|      0|                  return;
 2100|      0|               }
 2101|  24.6k|               if (*it == ',') {
  ------------------
  |  Branch (2101:20): [True: 22.7k, False: 1.83k]
  ------------------
 2102|  22.7k|                  ++it;
 2103|       |
 2104|  22.7k|                  if constexpr (!Opts.minified && !Opts.comments) {
 2105|  22.7k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2105:26): [True: 18.7k, False: 4.02k]
  |  Branch (2105:37): [True: 18.4k, False: 250]
  ------------------
 2106|  18.4k|                        skip_matching_ws(ws_start, it, ws_size);
 2107|  18.4k|                     }
 2108|  22.7k|                  }
 2109|       |
 2110|  22.7k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2110:23): [True: 0, False: 22.7k]
  ------------------
 2111|      0|                     return;
 2112|      0|                  }
 2113|  22.7k|               }
 2114|  1.83k|               else if (*it == ']') {
  ------------------
  |  Branch (2114:25): [True: 1.40k, False: 430]
  ------------------
 2115|  1.40k|                  --ctx.depth;
 2116|  1.40k|                  ++it;
 2117|  1.40k|                  if constexpr (erasable<T>) {
 2118|  1.40k|                     value.erase(value_it,
 2119|  1.40k|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2120|       |
 2121|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2122|       |                        value.shrink_to_fit();
 2123|       |                     }
 2124|  1.40k|                  }
 2125|  1.40k|                  return;
 2126|  1.40k|               }
 2127|    430|               else [[unlikely]] {
 2128|    430|                  ctx.error = error_code::expected_bracket;
 2129|    430|                  return;
 2130|    430|               }
 2131|  24.6k|            }
 2132|  7.37k|         }
 2133|       |
 2134|       |         if constexpr (Opts.partial_read) {
 2135|       |            // partial_read stops early on a success path, so give the level back like the
 2136|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2137|       |            --ctx.depth;
 2138|       |            return;
 2139|       |         }
 2140|  7.37k|         else {
 2141|       |            // growing
 2142|  7.37k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2143|  80.4k|               while (it < end) {
  ------------------
  |  Branch (2143:23): [True: 78.2k, False: 2.24k]
  ------------------
 2144|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2145|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2146|       |                     if (ctx.stream.enabled()) {
 2147|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2148|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2149|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2150|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2151|       |                           const char* new_it;
 2152|       |                           const char* new_end;
 2153|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2154|       |                           it = new_it;
 2155|       |                           end = new_end;
 2156|       |                           if (it >= end && ctx.stream.at_eof()) {
 2157|       |                              break; // No more data, exit loop normally
 2158|       |                           }
 2159|       |                        }
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (has_try_emplace_back<T>) {
 2164|       |                     if (value.try_emplace_back())
 2165|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2166|       |                     else
 2167|       |                        ctx.error = error_code::exceeded_static_array_size;
 2168|       |                  }
 2169|  78.2k|                  else {
 2170|  78.2k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2171|  78.2k|                  }
 2172|       |
 2173|  78.2k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2173:23): [True: 1.44k, False: 76.7k]
  ------------------
 2174|  1.44k|                     return;
 2175|       |
 2176|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2177|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2178|       |                     if (ctx.stream.enabled()) {
 2179|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2180|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2181|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2182|       |                           const char* new_it;
 2183|       |                           const char* new_end;
 2184|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2185|       |                           it = new_it;
 2186|       |                           end = new_end;
 2187|       |                           if (it >= end && ctx.stream.at_eof()) {
 2188|       |                              ctx.error = error_code::unexpected_end;
 2189|       |                              return;
 2190|       |                           }
 2191|       |                        }
 2192|       |                     }
 2193|       |                  }
 2194|       |
 2195|  76.7k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2195:23): [True: 0, False: 76.7k]
  ------------------
 2196|      0|                     return;
 2197|      0|                  }
 2198|  76.7k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2198:23): [True: 73.1k, False: 3.68k]
  ------------------
 2199|  73.1k|                     ++it;
 2200|       |
 2201|  73.1k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2202|  73.1k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2202:29): [True: 58.2k, False: 14.9k]
  |  Branch (2202:40): [True: 57.8k, False: 336]
  ------------------
 2203|  57.8k|                           skip_matching_ws(ws_start, it, ws_size);
 2204|  57.8k|                        }
 2205|  73.1k|                     }
 2206|       |
 2207|  73.1k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2207:26): [True: 0, False: 73.1k]
  ------------------
 2208|      0|                        return;
 2209|      0|                     }
 2210|  73.1k|                  }
 2211|  3.68k|                  else if (*it == ']') {
  ------------------
  |  Branch (2211:28): [True: 2.96k, False: 720]
  ------------------
 2212|  2.96k|                     --ctx.depth;
 2213|  2.96k|                     ++it;
 2214|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2215|       |                        value.shrink_to_fit();
 2216|       |                     }
 2217|  2.96k|                     return;
 2218|  2.96k|                  }
 2219|    720|                  else [[unlikely]] {
 2220|    720|                     ctx.error = error_code::expected_bracket;
 2221|    720|                     return;
 2222|    720|                  }
 2223|  76.7k|               }
 2224|       |
 2225|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2226|       |               // For a null-terminated buffer the loop can only exit here by falling
 2227|       |               // through when `it` reaches the terminator without a closing bracket,
 2228|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2229|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2230|       |               // tracking (or the streaming refill break), so this guard is limited
 2231|       |               // to the null-terminated case.
 2232|       |               if constexpr (Opts.null_terminated) {
 2233|       |                  ctx.error = error_code::unexpected_end;
 2234|       |               }
 2235|       |            }
 2236|       |            else {
 2237|       |               ctx.error = error_code::exceeded_static_array_size;
 2238|       |            }
 2239|  7.37k|         }
 2240|  7.37k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERiTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   50|   778k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|   778k|         else {
   61|   778k|            using V = std::remove_cvref_t<T>;
   62|   778k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|   778k|                                             end);
   64|   778k|         }
   65|   778k|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm5EEEDav:
  491|  1.36k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm5ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  1.36k|   {
  314|  1.36k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  1.36k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  1.36k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  1.36k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 1.36k, False: 4]
  |  Branch (322:52): [True: 1.35k, False: 3]
  ------------------
  323|  1.35k|         it += Length;
  324|  1.35k|         if constexpr (not Opts.null_terminated) {
  325|  1.35k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 1.35k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  1.35k|         }
  330|       |
  331|  1.35k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 1.35k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  1.35k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 26, False: 1.33k]
  ------------------
  335|     26|            return;
  336|     26|         }
  337|  1.33k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 1.33k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  1.33k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  1.33k|      }
  344|      7|      else [[unlikely]] {
  345|      7|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|      7|      }
  347|  1.36k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm5ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  1.33k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  1.33k|      else {
  275|  1.33k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  1.33k|         else {
  299|  1.33k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  1.33k|                                                                       it, end);
  301|  1.33k|         }
  302|  1.33k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  1.33k|   }
_ZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_:
 2794|  1.33k|      {
 2795|  1.33k|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|  1.33k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|  1.33k|         if constexpr (!check_opening_handled(Options)) {
 2799|       |            if constexpr (!check_ws_handled(Options)) {
 2800|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2801|       |                  return;
 2802|       |               }
 2803|       |            }
 2804|  1.33k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 28, False: 1.30k]
  ------------------
 2805|     28|               return;
 2806|     28|            }
 2807|  1.30k|            if constexpr (not Opts.null_terminated) {
 2808|  1.30k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 1.30k]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|  1.30k|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|  1.30k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 1.30k]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|  1.30k|         }
 2819|  1.30k|         const auto ws_start = it;
 2820|  1.33k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 1.33k]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|  1.33k|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|  1.33k|         else {
 2898|  1.33k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|  1.33k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|  1.33k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|  1.33k|                  return bit_array<num_members>{};
 2902|  1.33k|               }
 2903|  1.33k|               else {
 2904|  1.33k|                  return nullptr;
 2905|  1.33k|               }
 2906|  1.33k|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|  1.33k|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|  1.33k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|  1.33k|                  return has_includer_member<T>;
 2918|  1.33k|               }
 2919|  1.33k|               else {
 2920|  1.33k|                  return false;
 2921|  1.33k|               }
 2922|  1.33k|            }();
 2923|  1.33k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|  1.33k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|  1.33k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|  1.33k|                                                      inert_key_bits_scope> published_bits{
 2934|  1.33k|               ctx, [&]() -> void* {
 2935|  1.33k|                  if constexpr (tracks_include_keys) {
 2936|  1.33k|                     return &fields;
 2937|  1.33k|                  }
 2938|  1.33k|                  else {
 2939|  1.33k|                     return nullptr;
 2940|  1.33k|                  }
 2941|  1.33k|               }()};
 2942|       |
 2943|  1.33k|            size_t read_count{}; // for partial_read
 2944|       |
 2945|  1.33k|            bool first = true;
 2946|  14.9k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 14.4k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  14.4k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 633, False: 13.7k]
  ------------------
 2984|    633|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|       |                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|       |                  }
 3020|    633|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|    633|                  if constexpr (not Opts.null_terminated) {
 3022|    633|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 0, False: 633]
  ------------------
 3023|      0|                        ctx.error = error_code::end_reached;
 3024|      0|                        return;
 3025|      0|                     }
 3026|    633|                  }
 3027|    633|                  return;
 3028|    633|               }
 3029|  13.7k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 1.21k, False: 12.5k]
  ------------------
 3030|  1.21k|                  first = false;
 3031|  1.21k|               }
 3032|  12.5k|               else {
 3033|  12.5k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 140, False: 12.4k]
  ------------------
 3034|    140|                     return;
 3035|    140|                  }
 3036|  12.4k|                  if constexpr (not Opts.null_terminated) {
 3037|  12.4k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 12.4k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  12.4k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|       |                                (!Opts.comments)) {
 3045|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3046|       |                        skip_matching_ws(ws_start, it, ws_size);
 3047|       |                     }
 3048|       |                  }
 3049|       |
 3050|  12.4k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 12.4k]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  12.4k|               }
 3054|       |
 3055|  13.6k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [Folded, False: 0]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|       |               else if constexpr (reflection_type) {
 3121|       |                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|       |                  if (*it != '"') [[unlikely]] {
 3124|       |                     ctx.error = error_code::expected_quote;
 3125|       |                     return;
 3126|       |                  }
 3127|       |                  ++it;
 3128|       |                  if constexpr (not Opts.null_terminated) {
 3129|       |                     if (it == end) [[unlikely]] {
 3130|       |                        ctx.error = error_code::unexpected_end;
 3131|       |                        return;
 3132|       |                     }
 3133|       |                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|       |                  else {
 3184|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|       |                     if (bool(ctx.error)) [[unlikely]]
 3186|       |                        return;
 3187|       |                  }
 3188|       |               }
 3189|  13.6k|               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|  13.6k|                  auto reading = [&](auto&& key) {
 3193|  13.6k|                     if constexpr (Opts.partial_read) {
 3194|  13.6k|                        if (auto element = value.find(key); element != value.end()) {
 3195|  13.6k|                           ++read_count;
 3196|  13.6k|                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|  13.6k|                        }
 3198|  13.6k|                        else {
 3199|  13.6k|                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|  13.6k|                        }
 3201|  13.6k|                     }
 3202|  13.6k|                     else {
 3203|  13.6k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|  13.6k|                     }
 3205|  13.6k|                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|  13.6k|                  using Key = typename T::key_type;
 3209|  13.6k|                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|  13.6k|                     ctx.scratch.clear();
 3211|  13.6k|                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|  13.6k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3212:26): [True: 136, False: 13.5k]
  ------------------
 3213|    136|                        return;
 3214|       |
 3215|  13.5k|                     if (parse_ws_colon<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3215:26): [True: 54, False: 13.4k]
  ------------------
 3216|     54|                        return;
 3217|     54|                     }
 3218|       |
 3219|  13.4k|                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|  13.4k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3225:26): [True: 341, False: 13.1k]
  ------------------
 3226|    341|                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|  13.6k|               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  13.6k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 13.6k]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  13.6k|            }
 3300|  1.33k|         }
 3301|  1.33k|      }
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|  1.30k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|  1.30k|               else {
 2904|  1.30k|                  return nullptr;
 2905|  1.30k|               }
 2906|  1.30k|            }();
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|  1.30k|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|  1.30k|                  else {
 2939|  1.30k|                     return nullptr;
 2940|  1.30k|                  }
 2941|  1.30k|               }()};
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   50|  1.57M|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.57M|         else {
   61|  1.57M|            using V = std::remove_cvref_t<T>;
   62|  1.57M|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.57M|                                             end);
   64|  1.57M|         }
   65|  1.57M|      }
_ZN3glz4fromILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERPKcSC_S7_TkNS_10is_contextERNS_7contextEEEvRT2_OT3_OT0_T1_:
  888|  1.57M|      {
  889|       |         if constexpr (check_string_as_number(Opts)) {
  890|       |            auto start = it;
  891|       |            skip_number<Opts>(ctx, it, end);
  892|       |            if (bool(ctx.error)) [[unlikely]] {
  893|       |               return;
  894|       |            }
  895|       |            if (start == it) [[unlikely]] {
  896|       |               ctx.error = error_code::parse_number_failure;
  897|       |               return;
  898|       |            }
  899|       |            value.append(start, size_t(it - start));
  900|       |         }
  901|  1.57M|         else {
  902|  1.57M|            if constexpr (!check_opening_handled(Opts)) {
  903|  1.57M|               if constexpr (!check_ws_handled(Opts)) {
  904|  1.57M|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (904:23): [True: 0, False: 1.57M]
  ------------------
  905|      0|                     return;
  906|      0|                  }
  907|  1.57M|               }
  908|       |
  909|  1.57M|               if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (909:20): [True: 495, False: 1.57M]
  ------------------
  910|    495|                  return;
  911|    495|               }
  912|  1.57M|            }
  913|       |
  914|  1.57M|            if constexpr (not check_raw_string(Opts)) {
  915|  1.57M|               static constexpr auto string_padding_bytes = 8;
  916|       |
  917|       |               // How much buffer has to remain for an eight byte load at the cursor to stay inside
  918|       |               // it. One on a padded input, where the last chunk is free to straddle the end of the
  919|       |               // document, so the byte tails below are unreachable; eight otherwise, which costs the
  920|       |               // final bytes of the buffer their chunked path and nothing else.
  921|  1.57M|               const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
  922|       |
  923|  1.57M|               if (size_t(end - it) >= 8) {
  ------------------
  |  Branch (923:20): [True: 1.55M, False: 25.0k]
  ------------------
  924|       |                  // The bound as a pointer, so the loops below spend a compare per chunk rather
  925|       |                  // than a subtract and a compare. Well defined here and nowhere else in this
  926|       |                  // reader: the branch has just established that at least eight bytes remain, and
  927|       |                  // `scan_min` is at most eight.
  928|  1.55M|                  const auto* const chunk_limit = end - scan_min;
  929|       |
  930|  1.55M|                  auto start = it;
  931|  1.55M|                  uint64_t ascii_acc{};
  932|  6.01M|                  while (it <= chunk_limit) {
  ------------------
  |  Branch (932:26): [True: 6.01M, False: 805]
  ------------------
  933|  6.01M|                     uint64_t chunk;
  934|  6.01M|                     std::memcpy(&chunk, it, 8);
  935|       |                     if constexpr (std::endian::native == std::endian::big) {
  936|       |                        chunk = std::byteswap(chunk);
  937|       |                     }
  938|  6.01M|                     ascii_acc |= chunk;
  939|  6.01M|                     const uint64_t test_chars = has_quote(chunk);
  940|  6.01M|                     if (test_chars) {
  ------------------
  |  Branch (940:26): [True: 1.55M, False: 4.46M]
  ------------------
  941|  1.55M|                        it += (countr_zero(test_chars) >> 3);
  942|       |
  943|  1.55M|                        auto* prev = it - 1;
  944|  1.56M|                        while (*prev == '\\') {
  ------------------
  |  Branch (944:32): [True: 7.23k, False: 1.55M]
  ------------------
  945|  7.23k|                           --prev;
  946|  7.23k|                        }
  947|  1.55M|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (947:29): [True: 1.55M, False: 1.68k]
  ------------------
  948|  1.55M|                           goto continue_decode;
  949|  1.55M|                        }
  950|  1.68k|                        ++it; // skip the escaped quote
  951|  1.68k|                     }
  952|  4.46M|                     else {
  953|  4.46M|                        it += 8;
  954|  4.46M|                     }
  955|  6.01M|                  }
  956|       |
  957|  2.04k|                  while (it[-1] == '\\') [[unlikely]] {
  ------------------
  |  Branch (957:26): [True: 1.23k, False: 805]
  ------------------
  958|       |                     // if we ended on an escape character then we need to rewind
  959|       |                     // because we lost our context
  960|  1.23k|                     --it;
  961|  1.23k|                  }
  962|       |
  963|       |                  // The byte-wise tail keeps feeding the accumulator: it has to cover every byte of
  964|       |                  // the string, or a non-ASCII byte reached here would be waved through unvalidated.
  965|  4.26k|                  for (; it < end; ++it) {
  ------------------
  |  Branch (965:26): [True: 4.26k, False: 0]
  ------------------
  966|  4.26k|                     ascii_acc |= uint8_t(*it);
  967|  4.26k|                     if (*it == '"') {
  ------------------
  |  Branch (967:26): [True: 840, False: 3.42k]
  ------------------
  968|    840|                        auto* prev = it - 1;
  969|  1.87k|                        while (*prev == '\\') {
  ------------------
  |  Branch (969:32): [True: 1.03k, False: 840]
  ------------------
  970|  1.03k|                           --prev;
  971|  1.03k|                        }
  972|    840|                        if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (972:29): [True: 805, False: 35]
  ------------------
  973|    805|                           goto continue_decode;
  974|    805|                        }
  975|    840|                     }
  976|  4.26k|                  }
  977|       |
  978|      0|                  ctx.error = error_code::unexpected_end;
  979|      0|                  return;
  980|       |
  981|  1.55M|               continue_decode:
  982|       |
  983|  1.55M|                  if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (983:23): [True: 0, False: 1.55M]
  ------------------
  984|      0|                     return;
  985|      0|                  }
  986|       |
  987|  1.55M|                  auto n = size_t(it - start);
  988|       |
  989|       |                  // The padding lets the chunked copy below run up to the closing quote. Skip it when it
  990|       |                  // would be the only reason to allocate, as for a string that fits the small string
  991|       |                  // buffer but not with eight bytes to spare.
  992|  1.55M|                  bool pad = true;
  993|  1.55M|                  if constexpr (requires { value.capacity(); }) {
  994|  1.55M|                     const auto capacity = size_t(value.capacity());
  995|  1.55M|                     pad = capacity >= n + string_padding_bytes || capacity < n;
  ------------------
  |  Branch (995:28): [True: 1.55M, False: 1.82k]
  |  Branch (995:68): [True: 509, False: 1.31k]
  ------------------
  996|  1.55M|                  }
  997|  1.55M|                  resize_unfilled(value, pad ? n + string_padding_bytes : n);
  ------------------
  |  Branch (997:42): [True: 1.55M, False: 1.31k]
  ------------------
  998|       |
  999|  1.55M|                  auto* p = value.data();
 1000|       |
 1001|       |                  // An error below returns with the tail of `value` still unwritten. Leave the size at
 1002|       |                  // what was actually written rather than at the padded length, which resize_unfilled
 1003|       |                  // did not fill.
 1004|  1.55M|                  auto* const written_begin = p;
 1005|       |
 1006|       |                  // Without the padding, copy a chunk only while eight bytes remain before the quote.
 1007|       |                  // Unescaping never puts the output ahead of the input, so no store lands past the end.
 1008|  1.55M|                  const auto* const copy_end = pad ? it : it - (std::min)(n, size_t(7));
  ------------------
  |  Branch (1008:48): [True: 1.55M, False: 1.31k]
  ------------------
 1009|       |
 1010|       |                  // Copy eight bytes at a time for as long as eight bytes are there to read, then
 1011|       |                  // finish the span below. The chunked form reads past the character it is looking
 1012|       |                  // at, so on an unpadded buffer it has to stop short of the end; splitting it this
 1013|       |                  // way keeps it for the body of every string rather than giving it up whenever the
 1014|       |                  // string happens to finish near the end of the buffer -- which, for a document
 1015|       |                  // that is itself one string, is every string.
 1016|  6.50M|                  while (start < copy_end && start <= chunk_limit) {
  ------------------
  |  Branch (1016:26): [True: 4.95M, False: 1.54M]
  |  Branch (1016:46): [True: 4.95M, False: 441]
  ------------------
 1017|  4.95M|                     std::memcpy(p, start, 8);
 1018|  4.95M|                     uint64_t swar;
 1019|  4.95M|                     std::memcpy(&swar, p, 8);
 1020|       |                     if constexpr (std::endian::native == std::endian::big) {
 1021|       |                        swar = std::byteswap(swar);
 1022|       |                     }
 1023|       |
 1024|  4.95M|                     constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1025|  4.95M|                     const uint64_t lo7 = swar & lo7_mask;
 1026|  4.95M|                     const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1027|  4.95M|                     const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1028|  4.95M|                     uint64_t next = ~((backslash & less_32) | swar);
 1029|       |
 1030|  4.95M|                     next &= repeat_byte8(0b10000000);
 1031|  4.95M|                     if (next == 0) {
  ------------------
  |  Branch (1031:26): [True: 4.89M, False: 62.6k]
  ------------------
 1032|  4.89M|                        start += 8;
 1033|  4.89M|                        p += 8;
 1034|  4.89M|                        continue;
 1035|  4.89M|                     }
 1036|       |
 1037|  62.6k|                     next = countr_zero(next) >> 3;
 1038|  62.6k|                     start += next;
 1039|  62.6k|                     if (start >= it) {
  ------------------
  |  Branch (1039:26): [True: 3.05k, False: 59.5k]
  ------------------
 1040|  3.05k|                        break;
 1041|  3.05k|                     }
 1042|       |
 1043|  59.5k|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1043:26): [True: 160, False: 59.4k]
  ------------------
 1044|    160|                        ctx.error = error_code::syntax_error;
 1045|    160|                        value.resize(size_t(p - written_begin));
 1046|    160|                        return;
 1047|    160|                     }
 1048|  59.4k|                     ++start; // skip the escape
 1049|  59.4k|                     if (*start == 'u') {
  ------------------
  |  Branch (1049:26): [True: 54.0k, False: 5.42k]
  ------------------
 1050|  54.0k|                        ++start;
 1051|  54.0k|                        p += next;
 1052|  54.0k|                        const auto mark = start;
 1053|  54.0k|                        const auto decoded = handle_unicode_code_point(start, p, end);
 1054|  54.0k|                        if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1054:29): [True: 117, False: 53.8k]
  ------------------
 1055|    117|                           ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1055:40): [True: 0, False: 117]
  ------------------
 1056|    117|                                                         : error_code::unicode_escape_conversion_failure;
 1057|    117|                           value.resize(size_t(p - written_begin));
 1058|    117|                           return;
 1059|    117|                        }
 1060|  53.8k|                        n += decoded.written;
 1061|       |                        // escape + u + unicode code points
 1062|  53.8k|                        n -= 2 + uint32_t(start - mark);
 1063|  53.8k|                     }
 1064|  5.42k|                     else {
 1065|  5.42k|                        p += next;
 1066|  5.42k|                        *p = char_unescape_table[uint8_t(*start)];
 1067|  5.42k|                        if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1067:29): [True: 29, False: 5.39k]
  ------------------
 1068|     29|                           ctx.error = error_code::invalid_escape;
 1069|     29|                           value.resize(size_t(p - written_begin));
 1070|     29|                           return;
 1071|     29|                        }
 1072|  5.39k|                        ++p;
 1073|  5.39k|                        ++start;
 1074|  5.39k|                        --n;
 1075|  5.39k|                     }
 1076|  59.4k|                  }
 1077|       |
 1078|       |                  // Whatever the chunked copy could not reach. `p` and `start` stay in step across
 1079|       |                  // that loop, so this picks up exactly where it stopped.
 1080|  1.55M|                  while (start < it) {
  ------------------
  |  Branch (1080:26): [True: 5.47k, False: 1.55M]
  ------------------
 1081|  5.47k|                     if ((*start & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1081:26): [True: 23, False: 5.45k]
  ------------------
 1082|     23|                        ctx.error = error_code::syntax_error;
 1083|     23|                        value.resize(size_t(p - written_begin));
 1084|     23|                        return;
 1085|     23|                     }
 1086|  5.45k|                     if (*start == '\\') {
  ------------------
  |  Branch (1086:26): [True: 922, False: 4.52k]
  ------------------
 1087|    922|                        ++start; // skip the escape
 1088|    922|                        if (*start == 'u') {
  ------------------
  |  Branch (1088:29): [True: 440, False: 482]
  ------------------
 1089|    440|                           ++start;
 1090|    440|                           const auto mark = start;
 1091|    440|                           const auto decoded = handle_unicode_code_point(start, p, end);
 1092|    440|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1092:32): [True: 42, False: 398]
  ------------------
 1093|     42|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1093:43): [True: 0, False: 42]
  ------------------
 1094|     42|                                                            : error_code::unicode_escape_conversion_failure;
 1095|     42|                              value.resize(size_t(p - written_begin));
 1096|     42|                              return;
 1097|     42|                           }
 1098|    398|                           n += decoded.written;
 1099|    398|                           n -= 2 + uint32_t(start - mark);
 1100|    398|                        }
 1101|    482|                        else {
 1102|    482|                           *p = char_unescape_table[uint8_t(*start)];
 1103|    482|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1103:32): [True: 9, False: 473]
  ------------------
 1104|      9|                              ctx.error = error_code::invalid_escape;
 1105|      9|                              value.resize(size_t(p - written_begin));
 1106|      9|                              return;
 1107|      9|                           }
 1108|    473|                           ++p;
 1109|    473|                           ++start;
 1110|    473|                           --n;
 1111|    473|                        }
 1112|    922|                     }
 1113|  4.52k|                     else {
 1114|  4.52k|                        *p = *start;
 1115|  4.52k|                        ++p;
 1116|  4.52k|                        ++start;
 1117|  4.52k|                     }
 1118|  5.45k|                  }
 1119|       |
 1120|  1.55M|                  value.resize(n);
 1121|  1.55M|                  ++it;
 1122|  1.55M|               }
 1123|  25.0k|               else {
 1124|       |                  // For short strings
 1125|       |
 1126|  25.0k|                  std::array<char, 8> buffer{};
 1127|       |
 1128|  25.0k|                  auto* p = buffer.data();
 1129|  25.0k|                  const auto* const utf8_start = it;
 1130|       |
 1131|  73.0k|                  while (it < end) [[likely]] {
  ------------------
  |  Branch (1131:26): [True: 72.5k, False: 495]
  ------------------
 1132|  72.5k|                     *p = *it;
 1133|  72.5k|                     if (*it == '"') {
  ------------------
  |  Branch (1133:26): [True: 24.4k, False: 48.0k]
  ------------------
 1134|  24.4k|                        if (validate_utf8_span<Opts>(ctx, utf8_start, it)) [[unlikely]] {
  ------------------
  |  Branch (1134:29): [True: 0, False: 24.4k]
  ------------------
 1135|      0|                           return;
 1136|      0|                        }
 1137|  24.4k|                        const size_t n = size_t(p - buffer.data());
 1138|  24.4k|#if __has_cpp_attribute(assume) >= 202207L
 1139|  24.4k|                        [[assume(n <= sizeof(buffer))]];
 1140|  24.4k|#endif
 1141|  24.4k|                        value.assign(buffer.data(), n);
 1142|  24.4k|                        ++it;
 1143|  24.4k|                        if constexpr (not Opts.null_terminated) {
 1144|  24.4k|                           if (it == end) {
  ------------------
  |  Branch (1144:32): [True: 218, False: 24.2k]
  ------------------
 1145|    218|                              ctx.error = error_code::end_reached;
 1146|    218|                              return;
 1147|    218|                           }
 1148|  24.4k|                        }
 1149|  24.2k|                        return;
 1150|  24.4k|                     }
 1151|  48.0k|                     else if (*it == '\\') {
  ------------------
  |  Branch (1151:31): [True: 168, False: 47.8k]
  ------------------
 1152|       |                        // Bounded whatever `null_terminated` says: a document cut off inside an
 1153|       |                        // escape has run out of input, and saying so beats blaming the terminator
 1154|       |                        // the cut exposed -- which is what reading on would find, and would report
 1155|       |                        // as a malformed escape.
 1156|    168|                        ++it; // skip the escape
 1157|    168|                        if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1157:29): [True: 0, False: 168]
  ------------------
 1158|      0|                           ctx.error = error_code::unexpected_end;
 1159|      0|                           return;
 1160|      0|                        }
 1161|    168|                        if (*it == 'u') {
  ------------------
  |  Branch (1161:29): [True: 97, False: 71]
  ------------------
 1162|     97|                           ++it;
 1163|     97|                           if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1163:32): [True: 0, False: 97]
  ------------------
 1164|      0|                              ctx.error = error_code::unexpected_end;
 1165|      0|                              return;
 1166|      0|                           }
 1167|     97|                           const auto decoded = handle_unicode_code_point(it, p, end);
 1168|     97|                           if (decoded.written == 0) [[unlikely]] {
  ------------------
  |  Branch (1168:32): [True: 37, False: 60]
  ------------------
 1169|     37|                              ctx.error = decoded.truncated ? error_code::unexpected_end
  ------------------
  |  Branch (1169:43): [True: 0, False: 37]
  ------------------
 1170|     37|                                                            : error_code::unicode_escape_conversion_failure;
 1171|     37|                              return;
 1172|     37|                           }
 1173|     97|                        }
 1174|     71|                        else {
 1175|     71|                           *p = char_unescape_table[uint8_t(*it)];
 1176|     71|                           if (*p == 0) [[unlikely]] {
  ------------------
  |  Branch (1176:32): [True: 21, False: 50]
  ------------------
 1177|     21|                              ctx.error = error_code::invalid_escape;
 1178|     21|                              return;
 1179|     21|                           }
 1180|     50|                           ++p;
 1181|     50|                           ++it;
 1182|     50|                        }
 1183|    168|                     }
 1184|  47.8k|                     else if ((*it & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1184:31): [True: 13, False: 47.8k]
  ------------------
 1185|     13|                        ctx.error = error_code::syntax_error;
 1186|     13|                        return;
 1187|     13|                     }
 1188|  47.8k|                     else {
 1189|  47.8k|                        ++it;
 1190|  47.8k|                        ++p;
 1191|  47.8k|                     }
 1192|  72.5k|                  }
 1193|       |
 1194|    495|                  ctx.error = error_code::unexpected_end;
 1195|    495|               }
 1196|       |            }
 1197|       |            else {
 1198|       |               // raw_string
 1199|       |               auto start = it;
 1200|       |               skip_string_view(ctx, it, end);
 1201|       |               if (bool(ctx.error)) [[unlikely]]
 1202|       |                  return;
 1203|       |
 1204|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
 1205|       |                  return;
 1206|       |               }
 1207|       |
 1208|       |               value.assign(start, size_t(it - start));
 1209|       |               ++it;
 1210|       |            }
 1211|  1.57M|         }
 1212|  1.57M|      }
_ZN3glz14parse_ws_colonITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextENS_7contextERPKcS4_EEbRT0_OT1_T2_:
  160|  1.57M|   {
  161|  1.57M|      if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (161:11): [True: 0, False: 1.57M]
  ------------------
  162|      0|         return true;
  163|      0|      }
  164|  1.57M|      if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (164:11): [True: 241, False: 1.57M]
  ------------------
  165|    241|         return true;
  166|    241|      }
  167|  1.57M|      if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (167:11): [True: 0, False: 1.57M]
  ------------------
  168|      0|         return true;
  169|      0|      }
  170|  1.57M|      return false;
  171|  1.57M|   }
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlOT_E_clIRS8_EEDaSZ_:
 3192|  13.4k|                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|  13.4k|                     else {
 3203|  13.4k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|  13.4k|                     }
 3205|  13.4k|                  };
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm6EEEDav:
  491|  1.69k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm6ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  1.69k|   {
  314|  1.69k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  1.69k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  1.69k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  1.69k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 1.68k, False: 7]
  |  Branch (322:52): [True: 1.68k, False: 4]
  ------------------
  323|  1.68k|         it += Length;
  324|  1.68k|         if constexpr (not Opts.null_terminated) {
  325|  1.68k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 1.68k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  1.68k|         }
  330|       |
  331|  1.68k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 1.68k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  1.68k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 25, False: 1.65k]
  ------------------
  335|     25|            return;
  336|     25|         }
  337|  1.65k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 1.65k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  1.65k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  1.65k|      }
  344|     11|      else [[unlikely]] {
  345|     11|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     11|      }
  347|  1.69k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm6ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  1.65k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  1.65k|      else {
  275|  1.65k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  1.65k|         else {
  299|  1.65k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  1.65k|                                                                       it, end);
  301|  1.65k|         }
  302|  1.65k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  1.65k|   }
_ZN3glz4fromILj10ENSt3__18optionalIdEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 4898|  1.65k|      {
 4899|  1.65k|         constexpr auto Opts = ws_handled_off<Options>();
 4900|       |         if constexpr (!check_ws_handled(Options)) {
 4901|       |            if (skip_ws<Opts>(ctx, it, end)) {
 4902|       |               return;
 4903|       |            }
 4904|       |         }
 4905|       |
 4906|  1.65k|         if (*it == 'n') {
  ------------------
  |  Branch (4906:14): [True: 648, False: 1.01k]
  ------------------
 4907|    648|            ++it;
 4908|    648|            if constexpr (not Opts.null_terminated) {
 4909|    648|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (4909:20): [True: 0, False: 648]
  ------------------
 4910|      0|                  ctx.error = error_code::unexpected_end;
 4911|      0|                  return;
 4912|      0|               }
 4913|    648|            }
 4914|    648|            match<"ull", Opts>(ctx, it, end);
 4915|    648|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (4915:17): [True: 14, False: 634]
  ------------------
 4916|     14|               return;
 4917|    634|            if constexpr (requires { value.reset(); }) {
 4918|    634|               value.reset();
 4919|    634|            }
 4920|    634|         }
 4921|  1.01k|         else {
 4922|  1.01k|            if constexpr (nullable_value_t<T>) {
 4923|  1.01k|               if (not value.has_value()) {
  ------------------
  |  Branch (4923:20): [True: 502, False: 509]
  ------------------
 4924|       |                  if constexpr (constructible<T>) {
 4925|       |                     value = meta_construct_v<T>();
 4926|       |                  }
 4927|    502|                  else if constexpr (requires { value.emplace(); }) {
 4928|    502|                     value.emplace();
 4929|       |                  }
 4930|       |                  else {
 4931|       |                     static_assert(false_v<T>,
 4932|       |                                   "Your nullable type must have `emplace()` or be glz::meta constructible, or "
 4933|       |                                   "create a custom glz::from specialization");
 4934|       |                  }
 4935|    502|               }
 4936|  1.01k|               parse<JSON>::op<Opts>(value.value(), ctx, it, end);
 4937|       |            }
 4938|       |            else {
 4939|       |               if (!value) {
 4940|       |                  if (!nullable_emplace<Opts>(value, ctx)) {
 4941|       |                     return;
 4942|       |                  }
 4943|       |               }
 4944|       |               parse<JSON>::op<Opts>(*value, ctx, it, end);
 4945|       |            }
 4946|  1.01k|         }
 4947|  1.65k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   50|  3.83k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  3.83k|         else {
   61|  3.83k|            using V = std::remove_cvref_t<T>;
   62|  3.83k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  3.83k|                                             end);
   64|  3.83k|         }
   65|  3.83k|      }
_ZN3glz4fromILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERPKcRdTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  764|  3.83k|      {
  765|       |         if constexpr (check_quoted_num(Opts)) {
  766|       |            if (skip_ws<Opts>(ctx, it, end)) {
  767|       |               return;
  768|       |            }
  769|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  770|       |               return;
  771|       |            }
  772|       |         }
  773|       |
  774|  3.83k|         if constexpr (!check_ws_handled(Opts)) {
  775|  3.83k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (775:17): [True: 0, False: 3.83k]
  ------------------
  776|      0|               return;
  777|      0|            }
  778|  3.83k|         }
  779|       |
  780|  3.83k|         using V = std::decay_t<decltype(value)>;
  781|       |         if constexpr (int_t<V>) {
  782|       |            static_assert(sizeof(*it) == sizeof(char));
  783|       |
  784|       |            if constexpr (Opts.null_terminated) {
  785|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  786|       |                  ctx.error = error_code::parse_number_failure;
  787|       |                  return;
  788|       |               }
  789|       |            }
  790|       |            else {
  791|       |               if (not glz::atoi(value, it, end)) [[unlikely]] {
  792|       |                  ctx.error = error_code::parse_number_failure;
  793|       |                  return;
  794|       |               }
  795|       |            }
  796|       |         }
  797|  3.83k|         else {
  798|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  799|  3.83k|#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  800|       |            if constexpr (is_float128<V>) {
  801|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  802|       |               if (ec != std::errc()) {
  803|       |                  ctx.error = error_code::parse_number_failure;
  804|       |                  return;
  805|       |               }
  806|       |               it = ptr;
  807|       |            }
  808|       |            else
  809|       |#endif
  810|  3.83k|            {
  811|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  812|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  813|       |                  // place
  814|       |                  V temp;
  815|       |                  if constexpr (is_size_optimized(Opts)) {
  816|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  817|       |                     if (ec != std::errc{}) [[unlikely]] {
  818|       |                        ctx.error = error_code::parse_number_failure;
  819|       |                        return;
  820|       |                     }
  821|       |                     it = ptr;
  822|       |                  }
  823|       |                  else {
  824|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  825|       |                     if (ec != std::errc()) [[unlikely]] {
  826|       |                        ctx.error = error_code::parse_number_failure;
  827|       |                        return;
  828|       |                     }
  829|       |                     it = ptr;
  830|       |                  }
  831|       |                  value = temp;
  832|       |               }
  833|  3.83k|               else {
  834|       |                  if constexpr (is_size_optimized(Opts)) {
  835|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  836|       |                     if (ec != std::errc{}) [[unlikely]] {
  837|       |                        ctx.error = error_code::parse_number_failure;
  838|       |                        return;
  839|       |                     }
  840|       |                     it = ptr;
  841|       |                  }
  842|  3.83k|                  else {
  843|  3.83k|                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  844|  3.83k|                     if (ec != std::errc()) [[unlikely]] {
  ------------------
  |  Branch (844:26): [True: 715, False: 3.11k]
  ------------------
  845|    715|                        ctx.error = error_code::parse_number_failure;
  846|    715|                        return;
  847|    715|                     }
  848|  3.11k|                     it = ptr;
  849|  3.11k|                  }
  850|  3.83k|               }
  851|  3.83k|            }
  852|  3.83k|         }
  853|       |
  854|       |         if constexpr (check_quoted_num(Opts)) {
  855|       |            if constexpr (not Opts.null_terminated) {
  856|       |               if (it == end) [[unlikely]] {
  857|       |                  ctx.error = error_code::unexpected_end;
  858|       |                  return;
  859|       |               }
  860|       |            }
  861|       |            if (match<'"'>(ctx, it)) {
  862|       |               return;
  863|       |            }
  864|       |            if constexpr (not Opts.null_terminated) {
  865|       |               if (it == end) {
  866|       |                  ctx.error = error_code::end_reached;
  867|       |                  return;
  868|       |               }
  869|       |            }
  870|       |         }
  871|  3.83k|         else {
  872|  3.83k|            if constexpr (not Opts.null_terminated) {
  873|  3.83k|               if (it == end) {
  ------------------
  |  Branch (873:20): [True: 2.04k, False: 1.78k]
  ------------------
  874|  2.04k|                  ctx.error = error_code::end_reached;
  875|  2.04k|                  return;
  876|  2.04k|               }
  877|  3.83k|            }
  878|  3.83k|         }
  879|  3.83k|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm7EEEDav:
  491|  2.01k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm7ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  2.01k|   {
  314|  2.01k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  2.01k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  2.01k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  2.01k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 2.01k, False: 7]
  |  Branch (322:52): [True: 1.84k, False: 163]
  ------------------
  323|  1.84k|         it += Length;
  324|  1.84k|         if constexpr (not Opts.null_terminated) {
  325|  1.84k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 1.84k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  1.84k|         }
  330|       |
  331|  1.84k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 1.84k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  1.84k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 43, False: 1.80k]
  ------------------
  335|     43|            return;
  336|     43|         }
  337|  1.80k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 1.80k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  1.80k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  1.80k|      }
  344|    170|      else [[unlikely]] {
  345|    170|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|    170|      }
  347|  2.01k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm7ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  1.80k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  1.80k|      else {
  275|  1.80k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|  1.80k|         else {
  299|  1.80k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|  1.80k|                                                                       it, end);
  301|  1.80k|         }
  302|  1.80k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  1.80k|   }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3863|  1.80k|      {
 3864|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3865|       |            read_adjacent<Options>(value, ctx, it, end);
 3866|       |         }
 3867|  1.80k|         else {
 3868|  1.80k|            read_deduced<Options>(value, ctx, it, end);
 3869|  1.80k|         }
 3870|  1.80k|      }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3874|  1.80k|      {
 3875|       |         // In the reader rather than on the variant, because the choice only exists here: writing such
 3876|       |         // a variant is unambiguous, and code that only writes one has nothing to fix.
 3877|  1.80k|         using indistinguishable = variant_indistinguishable_alternatives<T>;
 3878|  1.80k|         static_assert(not indistinguishable::found ||
 3879|  1.80k|                          detail::variant_alternatives_are_indistinguishable<T, typename indistinguishable::first,
 3880|  1.80k|                                                                             typename indistinguishable::second>::value,
 3881|  1.80k|                       "Two alternatives of this variant have the same keys holding the same types and no "
 3882|  1.80k|                       "discriminator, so reading JSON into it cannot tell them apart: every read would silently "
 3883|  1.80k|                       "produce the first, whichever was written. Declare `tag` and `ids` in glz::meta for the "
 3884|  1.80k|                       "variant, or remove one of the two. They are the last two template arguments of "
 3885|  1.80k|                       "variant_alternatives_are_indistinguishable in the instantiation backtrace.");
 3886|       |
 3887|  1.80k|         constexpr auto Opts = ws_handled_off<Options>();
 3888|  1.80k|         if constexpr (variant_is_auto_deducible<T>()) {
 3889|       |            if constexpr (not check_ws_handled(Options)) {
 3890|       |               if (skip_ws<Opts>(ctx, it, end)) {
 3891|       |                  return;
 3892|       |               }
 3893|       |            }
 3894|       |
 3895|  1.80k|            switch (*it) {
 3896|      3|            case '\0':
  ------------------
  |  Branch (3896:13): [True: 3, False: 1.80k]
  ------------------
 3897|      3|               ctx.error = error_code::unexpected_end;
 3898|      3|               return;
 3899|    517|            case '{': {
  ------------------
  |  Branch (3899:13): [True: 517, False: 1.28k]
  ------------------
 3900|       |               // This branch consumes the brace itself and hands the object to a reader with
 3901|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3902|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3903|       |               // the reader below.
 3904|    517|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3904:20): [True: 0, False: 517]
  ------------------
 3905|      0|                  return;
 3906|      0|               }
 3907|       |
 3908|    517|               ++it;
 3909|    517|               if constexpr (not Opts.null_terminated) {
 3910|    517|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3910:23): [True: 0, False: 517]
  ------------------
 3911|      0|                     ctx.error = error_code::unexpected_end;
 3912|      0|                     return;
 3913|      0|                  }
 3914|    517|               }
 3915|    517|               using type_counts = variant_type_count<T>;
 3916|    517|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3917|       |               if constexpr (n_object_candidates < 1) {
 3918|       |                  ctx.error = error_code::no_matching_variant_type;
 3919|       |                  return;
 3920|       |               }
 3921|    517|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3922|    517|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3923|    517|                  using V = std::variant_alternative_t<first_idx, T>;
 3924|    517|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3924:23): [True: 344, False: 173]
  ------------------
 3925|    517|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3926|    517|                  return;
 3927|       |               }
 3928|       |               else {
 3929|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3930|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3931|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3932|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3933|       |
 3934|       |                  // Track if we've encountered a tag and what value it had
 3935|       |                  std::optional<size_t> tag_specified_index{};
 3936|       |
 3937|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3938|       |                     return;
 3939|       |                  }
 3940|       |                  // Once the reader knows which alternative this object holds it may have to read
 3941|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3942|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3943|       |                  // from under a raw pointer (see rewind_anchor).
 3944|       |                  auto start = make_rewind_anchor(ctx, it);
 3945|       |                  bool first_key = true;
 3946|       |                  // Parse bifurcation for tagged variants:
 3947|       |                  //
 3948|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3949|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3950|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3951|       |                  //
 3952|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3953|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3954|       |                  // it advances past the trailing comma so the object parser picks up at the
 3955|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3956|       |                  //
 3957|       |                  // One exception: if the tag name is also a field on the resolved struct
 3958|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3959|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3960|       |                  //
 3961|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3962|       |                  // much, and an object wider than it has no start left to return to.
 3963|       |                  auto position_after_tag = [&] {
 3964|       |                     if (first_key) {
 3965|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3966|       |                        return true;
 3967|       |                     }
 3968|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3969|       |                  };
 3970|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3971|       |                  // position_after_tag does for every key but the first.
 3972|       |                  for (; *it != '}'; first_key = false) {
 3973|       |                     if (!first_key) {
 3974|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3975|       |                           return;
 3976|       |                        }
 3977|       |                     }
 3978|       |
 3979|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3983|       |                        return;
 3984|       |                     }
 3985|       |
 3986|       |                     auto* key_start = it;
 3987|       |                     skip_string_view(ctx, it, end);
 3988|       |                     if (bool(ctx.error)) [[unlikely]]
 3989|       |                        return;
 3990|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3991|       |                        return;
 3992|       |                     const sv key = {key_start, size_t(it - key_start)};
 3993|       |
 3994|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3995|       |                        return;
 3996|       |                     }
 3997|       |
 3998|       |                     if constexpr (deduction_key_count > 0) {
 3999|       |                        // We first check if a tag is defined and see if the key matches the tag
 4000|       |                        if constexpr (not tag_v<T>.empty()) {
 4001|       |                           if (key == tag_v<T>) {
 4002|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 4003|       |                                 return;
 4004|       |                              }
 4005|       |
 4006|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 4007|       |
 4008|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 4009|       |                              if constexpr (std::integral<id_type>) {
 4010|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 4011|       |                              }
 4012|       |                              else {
 4013|       |                                 // The id is turned into an index below and never leaves this
 4014|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4015|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4016|       |                              }
 4017|       |                              if (bool(ctx.error)) [[unlikely]]
 4018|       |                                 return;
 4019|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4020|       |                                 return;
 4021|       |                              }
 4022|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4023|       |                                 ctx.error = error_code::syntax_error;
 4024|       |                                 return;
 4025|       |                              }
 4026|       |
 4027|       |                              size_t type_index;
 4028|       |                              if constexpr (std::integral<id_type>) {
 4029|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4030|       |                              }
 4031|       |                              else {
 4032|       |                                 type_index = variant_id_to_index<T>::op(
 4033|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4034|       |                              }
 4035|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4036|       |                                 // Check if the deduced types include the tag-specified type
 4037|       |                                 // If not, the tag doesn't match the fields
 4038|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4039|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4040|       |                                 // Check if the tag-specified type is still possible
 4041|       |                                 const bool type_is_possible = possible_types[type_index];
 4042|       |                                 if (!type_is_possible) {
 4043|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4044|       |                                    ctx.error = error_code::no_matching_variant_type;
 4045|       |                                    return;
 4046|       |                                 }
 4047|       |
 4048|       |                                 if (!position_after_tag()) return;
 4049|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4050|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4051|       |                                 std::visit(
 4052|       |                                    [&](auto&& v) {
 4053|       |                                       using V = std::decay_t<decltype(v)>;
 4054|       |                                       constexpr bool is_object =
 4055|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4056|       |                                       if constexpr (variant_unit_alternative<V>) {
 4057|       |                                          // A unit alternative carries no data; its object holds only the
 4058|       |                                          // discriminator. Consume that body through an empty reflected object so
 4059|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4060|       |                                          detail::variant_unit_body unit_body{};
 4061|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4062|       |                                                                                             tag_literal>(unit_body,
 4063|       |                                                                                                          ctx, it, end);
 4064|       |                                       }
 4065|       |                                       else if constexpr (is_object) {
 4066|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4067|       |                                             // tag is a struct field, must re-parse
 4068|       |                                             if (!start.rewind(ctx, it, end)) return;
 4069|       |                                          }
 4070|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4071|       |                                                                                                           end);
 4072|       |                                       }
 4073|       |                                       else if constexpr (is_memory_object<V>) {
 4074|       |                                          if (!v) {
 4075|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4076|       |                                                if constexpr (requires { v.emplace(); }) {
 4077|       |                                                   v.emplace();
 4078|       |                                                }
 4079|       |                                                else {
 4080|       |                                                   v = typename V::value_type{};
 4081|       |                                                }
 4082|       |                                             }
 4083|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4084|       |                                                v = std::make_unique<typename V::element_type>();
 4085|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4086|       |                                                v = std::make_shared<typename V::element_type>();
 4087|       |                                             else if constexpr (constructible<V>) {
 4088|       |                                                v = meta_construct_v<V>();
 4089|       |                                             }
 4090|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4091|       |                                                                can_allocate_raw_pointer<Opts,
 4092|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4093|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4094|       |                                                   return;
 4095|       |                                                }
 4096|       |                                             }
 4097|       |                                             else {
 4098|       |                                                ctx.error = error_code::invalid_nullable_read;
 4099|       |                                                return;
 4100|       |                                                // Cannot read into unset nullable that is not std::optional,
 4101|       |                                                // std::unique_ptr, or std::shared_ptr
 4102|       |                                             }
 4103|       |                                          }
 4104|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4105|       |                                             // tag is a struct field, must re-parse
 4106|       |                                             if (!start.rewind(ctx, it, end)) return;
 4107|       |                                          }
 4108|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4109|       |                                             *v, ctx, it, end);
 4110|       |                                       }
 4111|       |                                       else if constexpr (custom_read<V>) {
 4112|       |                                          // Custom handlers parse the remaining body themselves and do not
 4113|       |                                          // accept the tag template parameter; the tag was already consumed.
 4114|       |                                          // This only works when the tag was the first key. If it came later,
 4115|       |                                          // we were reset to the object start and the custom handler would
 4116|       |                                          // absorb the tag, so error rather than corrupt the value.
 4117|       |                                          if (!first_key) {
 4118|       |                                             ctx.error = error_code::feature_not_supported;
 4119|       |                                             ctx.custom_error_message =
 4120|       |                                                "the tag must be the first key for a custom variant alternative";
 4121|       |                                             return;
 4122|       |                                          }
 4123|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4124|       |                                       }
 4125|       |                                    },
 4126|       |                                    value);
 4127|       |
 4128|       |                                 return; // we've decoded our target type
 4129|       |                              }
 4130|       |                              else [[unlikely]] {
 4131|       |                                 // Check if we have a default type (ids array shorter than variant)
 4132|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4133|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4134|       |                                 if constexpr (ids_size < variant_size) {
 4135|       |                                    // Use the first unlabeled type as the default
 4136|       |                                    const auto default_type_index = ids_size;
 4137|       |
 4138|       |                                    if (!position_after_tag()) return;
 4139|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4140|       |                                    if (value.index() != default_type_index)
 4141|       |                                       emplace_runtime_variant(value, default_type_index);
 4142|       |                                    std::visit(
 4143|       |                                       [&](auto&& v) {
 4144|       |                                          using V = std::decay_t<decltype(v)>;
 4145|       |                                          constexpr bool is_object =
 4146|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4147|       |                                          if constexpr (variant_unit_alternative<V>) {
 4148|       |                                             // A unit alternative carries no data; its object holds only the
 4149|       |                                             // discriminator. Consume that body through an empty reflected object so
 4150|       |                                             // unknown-key policy and terminator handling match every other
 4151|       |                                             // alternative.
 4152|       |                                             detail::variant_unit_body unit_body{};
 4153|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4154|       |                                                                                                tag_literal>(
 4155|       |                                                unit_body, ctx, it, end);
 4156|       |                                          }
 4157|       |                                          else if constexpr (is_object) {
 4158|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4159|       |                                                // tag is a struct field, must re-parse
 4160|       |                                                if (!start.rewind(ctx, it, end)) return;
 4161|       |                                             }
 4162|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4163|       |                                          }
 4164|       |                                          else if constexpr (is_memory_object<V>) {
 4165|       |                                             if (!v) {
 4166|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4167|       |                                                   if constexpr (requires { v.emplace(); }) {
 4168|       |                                                      v.emplace();
 4169|       |                                                   }
 4170|       |                                                   else {
 4171|       |                                                      v = typename V::value_type{};
 4172|       |                                                   }
 4173|       |                                                }
 4174|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4175|       |                                                   v = std::make_unique<typename V::element_type>();
 4176|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4177|       |                                                   v = std::make_shared<typename V::element_type>();
 4178|       |                                                else if constexpr (constructible<V>) {
 4179|       |                                                   v = meta_construct_v<V>();
 4180|       |                                                }
 4181|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4182|       |                                                                   can_allocate_raw_pointer<
 4183|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4184|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4185|       |                                                      return;
 4186|       |                                                   }
 4187|       |                                                }
 4188|       |                                                else {
 4189|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4190|       |                                                   return;
 4191|       |                                                }
 4192|       |                                             }
 4193|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4194|       |                                                // tag is a struct field, must re-parse
 4195|       |                                                if (!start.rewind(ctx, it, end)) return;
 4196|       |                                             }
 4197|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4198|       |                                                                                                              it, end);
 4199|       |                                          }
 4200|       |                                          else if constexpr (custom_read<V>) {
 4201|       |                                             // Custom handlers parse the remaining body themselves; this only
 4202|       |                                             // works when the tag was the first key (see above). If it came
 4203|       |                                             // later we were reset to the object start, so error rather than
 4204|       |                                             // let the custom handler absorb the tag.
 4205|       |                                             if (!first_key) {
 4206|       |                                                ctx.error = error_code::feature_not_supported;
 4207|       |                                                ctx.custom_error_message =
 4208|       |                                                   "the tag must be the first key for a custom variant alternative";
 4209|       |                                                return;
 4210|       |                                             }
 4211|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4212|       |                                          }
 4213|       |                                       },
 4214|       |                                       value);
 4215|       |
 4216|       |                                    return;
 4217|       |                                 }
 4218|       |                                 else {
 4219|       |                                    ctx.error = error_code::no_matching_variant_type;
 4220|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4221|       |                                    return;
 4222|       |                                 }
 4223|       |                              }
 4224|       |                           }
 4225|       |                        }
 4226|       |
 4227|       |                        // Inline decode_hash lookup for variant deduction
 4228|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4229|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4230|       |                        const auto deduction_index =
 4231|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4232|       |                              key.data(), key.data() + key.size(), key.size());
 4233|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4234|       |                           [[likely]] {
 4235|       |                           possible_types &= deduction_bits[deduction_index];
 4236|       |                        }
 4237|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4238|       |                           ctx.error = error_code::unknown_key;
 4239|       |                           return;
 4240|       |                        }
 4241|       |                     }
 4242|       |                     else if constexpr (not tag_v<T>.empty()) {
 4243|       |                        // empty object case for variant, if there are no normal elements
 4244|       |                        if (key == tag_v<T>) {
 4245|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4246|       |                              return;
 4247|       |                           }
 4248|       |
 4249|       |                           // The id is turned into an index below and never leaves this reader,
 4250|       |                           // so the view of the window it borrows cannot outlive that window.
 4251|       |                           std::string_view type_id{};
 4252|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4253|       |                           if (bool(ctx.error)) [[unlikely]]
 4254|       |                              return;
 4255|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4256|       |                              return;
 4257|       |                           }
 4258|       |
 4259|       |                           const auto type_index = variant_id_to_index<T>::op(
 4260|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4261|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4262|       |                              if (!position_after_tag()) return;
 4263|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4264|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4265|       |                           }
 4266|       |                           else {
 4267|       |                              // Check if we have a default type (ids array shorter than variant)
 4268|       |                              constexpr auto ids_size = ids_v<T>.size();
 4269|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4270|       |                              if constexpr (ids_size < variant_size) {
 4271|       |                                 // Use the first unlabeled type as the default
 4272|       |                                 if (!position_after_tag()) return;
 4273|       |                                 const auto default_index = ids_size;
 4274|       |                                 tag_specified_index = default_index; // Store the default type index
 4275|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4276|       |                              }
 4277|       |                              else {
 4278|       |                                 ctx.error = error_code::no_matching_variant_type;
 4279|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4280|       |                                 return;
 4281|       |                              }
 4282|       |                           }
 4283|       |                           // Parse the type (handles tag skipping and unknown keys)
 4284|       |                           std::visit(
 4285|       |                              [&](auto&& v) {
 4286|       |                                 using V = std::decay_t<decltype(v)>;
 4287|       |                                 if constexpr (custom_read<V>) {
 4288|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4289|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4290|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4291|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4292|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4293|       |                                    // into its value, so error here rather than corrupt the result.
 4294|       |                                    if (!first_key) {
 4295|       |                                       ctx.error = error_code::feature_not_supported;
 4296|       |                                       ctx.custom_error_message =
 4297|       |                                          "the tag must be the first key for a custom variant alternative";
 4298|       |                                       return;
 4299|       |                                    }
 4300|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4301|       |                                 }
 4302|       |                                 else {
 4303|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4304|       |                                       // tag is a struct field, must re-parse
 4305|       |                                       if (!start.rewind(ctx, it, end)) return;
 4306|       |                                    }
 4307|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4308|       |                                 }
 4309|       |                              },
 4310|       |                              value);
 4311|       |                           return;
 4312|       |                        }
 4313|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4314|       |                           ctx.error = error_code::unknown_key;
 4315|       |                           return;
 4316|       |                        }
 4317|       |                        else {
 4318|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4319|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4320|       |                              return;
 4321|       |                           }
 4322|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4323|       |                           if (bool(ctx.error)) [[unlikely]]
 4324|       |                              return;
 4325|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4326|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4327|       |                              return;
 4328|       |                           }
 4329|       |                           continue; // Continue loop to find the tag
 4330|       |                        }
 4331|       |                     }
 4332|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4333|       |                        ctx.error = error_code::unknown_key;
 4334|       |                        return;
 4335|       |                     }
 4336|       |
 4337|       |                     auto matching_types = possible_types.popcount();
 4338|       |                     if (matching_types == 0) {
 4339|       |                        ctx.error = error_code::no_matching_variant_type;
 4340|       |                        return;
 4341|       |                     }
 4342|       |                     // Only short-circuit for variants without tags
 4343|       |                     else if constexpr (tag_v<T>.empty()) {
 4344|       |                        if (matching_types == 1) {
 4345|       |                           if (!start.rewind(ctx, it, end)) return;
 4346|       |                           const auto type_index = possible_types.countr_zero();
 4347|       |
 4348|       |                           if (value.index() != static_cast<size_t>(type_index))
 4349|       |                              emplace_runtime_variant(value, type_index);
 4350|       |                           std::visit(
 4351|       |                              [&](auto&& v) {
 4352|       |                                 using V = std::decay_t<decltype(v)>;
 4353|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4354|       |                                 if constexpr (variant_unit_alternative<V>) {
 4355|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4356|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4357|       |                                    // terminator handling match every other alternative.
 4358|       |                                    detail::variant_unit_body unit_body{};
 4359|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4360|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4361|       |                                                                                                    end);
 4362|       |                                 }
 4363|       |                                 else if constexpr (is_object) {
 4364|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4365|       |                                 }
 4366|       |                                 else if constexpr (is_memory_object<V>) {
 4367|       |                                    if (!v) {
 4368|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4369|       |                                          if constexpr (requires { v.emplace(); }) {
 4370|       |                                             v.emplace();
 4371|       |                                          }
 4372|       |                                          else {
 4373|       |                                             v = typename V::value_type{};
 4374|       |                                          }
 4375|       |                                       }
 4376|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4377|       |                                          v = std::make_unique<typename V::element_type>();
 4378|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4379|       |                                          v = std::make_shared<typename V::element_type>();
 4380|       |                                       else if constexpr (constructible<V>) {
 4381|       |                                          v = meta_construct_v<V>();
 4382|       |                                       }
 4383|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4384|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4385|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4386|       |                                             return;
 4387|       |                                          }
 4388|       |                                       }
 4389|       |                                       else {
 4390|       |                                          ctx.error = error_code::invalid_nullable_read;
 4391|       |                                          return;
 4392|       |                                          // Cannot read into unset nullable that is not std::optional,
 4393|       |                                          // std::unique_ptr, or std::shared_ptr
 4394|       |                                       }
 4395|       |                                    }
 4396|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4397|       |                                       *v, ctx, it, end);
 4398|       |                                 }
 4399|       |                                 else if constexpr (custom_read<V>) {
 4400|       |                                    // Custom handlers parse the remaining body themselves.
 4401|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4402|       |                                 }
 4403|       |                              },
 4404|       |                              value);
 4405|       |
 4406|       |                           return; // we've decoded our target type
 4407|       |                        }
 4408|       |                     }
 4409|       |                     // For tagged variants, continue processing to validate tags
 4410|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4411|       |                        return;
 4412|       |                     }
 4413|       |
 4414|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4415|       |                     if (bool(ctx.error)) [[unlikely]]
 4416|       |                        return;
 4417|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4418|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4419|       |                        return;
 4420|       |                     }
 4421|       |                  }
 4422|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4423|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4424|       |                     // After parsing all keys, check if we have multiple matching types
 4425|       |                     // If so, choose the one with the fewest fields
 4426|       |                     auto final_matching = possible_types.popcount();
 4427|       |                     if (final_matching == 0) {
 4428|       |                        ctx.error = error_code::no_matching_variant_type;
 4429|       |                     }
 4430|       |                     else if (final_matching == 1) {
 4431|       |                        // Single type remains after field deduction
 4432|       |                        const auto type_index = possible_types.countr_zero();
 4433|       |
 4434|       |                        // Validate against tag if one was specified
 4435|       |                        if (tag_specified_index.has_value() &&
 4436|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4437|       |                           ctx.error = error_code::no_matching_variant_type;
 4438|       |                           return;
 4439|       |                        }
 4440|       |
 4441|       |                        if (!start.rewind(ctx, it, end)) return;
 4442|       |                        if (value.index() != static_cast<size_t>(type_index))
 4443|       |                           emplace_runtime_variant(value, type_index);
 4444|       |                        std::visit(
 4445|       |                           [&](auto&& v) {
 4446|       |                              using V = std::decay_t<decltype(v)>;
 4447|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4448|       |                              if constexpr (variant_unit_alternative<V>) {
 4449|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4450|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4451|       |                                 // terminator handling match every other alternative.
 4452|       |                                 detail::variant_unit_body unit_body{};
 4453|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4454|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4455|       |                                                                                                 end);
 4456|       |                              }
 4457|       |                              else if constexpr (is_object) {
 4458|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4459|       |                              }
 4460|       |                              else if constexpr (is_memory_object<V>) {
 4461|       |                                 if (!v) {
 4462|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4463|       |                                       if constexpr (requires { v.emplace(); }) {
 4464|       |                                          v.emplace();
 4465|       |                                       }
 4466|       |                                       else {
 4467|       |                                          v = typename V::value_type{};
 4468|       |                                       }
 4469|       |                                    }
 4470|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4471|       |                                       v = std::make_unique<typename V::element_type>();
 4472|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4473|       |                                       v = std::make_shared<typename V::element_type>();
 4474|       |                                    else if constexpr (constructible<V>) {
 4475|       |                                       v = meta_construct_v<V>();
 4476|       |                                    }
 4477|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4478|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4479|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4480|       |                                          return;
 4481|       |                                       }
 4482|       |                                    }
 4483|       |                                    else {
 4484|       |                                       ctx.error = error_code::invalid_nullable_read;
 4485|       |                                       return;
 4486|       |                                    }
 4487|       |                                 }
 4488|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4489|       |                                                                                                               it, end);
 4490|       |                              }
 4491|       |                              else if constexpr (custom_read<V>) {
 4492|       |                                 // Custom handlers parse the remaining body themselves.
 4493|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4494|       |                              }
 4495|       |                           },
 4496|       |                           value);
 4497|       |                     }
 4498|       |                     else if (final_matching > 1) {
 4499|       |                        constexpr auto N = std::variant_size_v<T>;
 4500|       |
 4501|       |                        // Compile-time array of field counts for each variant type
 4502|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4503|       |                           return std::array<size_t, N> {
 4504|       |                              ([]<size_t J = I>() -> size_t {
 4505|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4506|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4507|       |                                    return reflect<V>::size;
 4508|       |                                 }
 4509|       |                                 else if constexpr (is_memory_object<V>) {
 4510|       |                                    using X = memory_type<V>;
 4511|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4512|       |                                       return reflect<X>::size;
 4513|       |                                    }
 4514|       |                                    else {
 4515|       |                                       return (std::numeric_limits<size_t>::max)();
 4516|       |                                    }
 4517|       |                                 }
 4518|       |                                 else {
 4519|       |                                    return (std::numeric_limits<size_t>::max)();
 4520|       |                                 }
 4521|       |                              }.template operator()<I>())...
 4522|       |                           };
 4523|       |                        }(std::make_index_sequence<N>{});
 4524|       |
 4525|       |                        // Find the type with minimum field count among the possible types
 4526|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4527|       |                        size_t chosen_index = N; // Invalid index initially
 4528|       |
 4529|       |                        for (size_t i = 0; i < N; ++i) {
 4530|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4531|       |                              min_fields = field_counts[i];
 4532|       |                              chosen_index = i;
 4533|       |                           }
 4534|       |                        }
 4535|       |
 4536|       |                        if (chosen_index < N) {
 4537|       |                           // Validate against tag if one was specified
 4538|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4539|       |                              ctx.error = error_code::no_matching_variant_type;
 4540|       |                              return;
 4541|       |                           }
 4542|       |
 4543|       |                           if (!start.rewind(ctx, it, end)) return;
 4544|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4545|       |                           std::visit(
 4546|       |                              [&](auto&& v) {
 4547|       |                                 using V = std::decay_t<decltype(v)>;
 4548|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4549|       |                                 if constexpr (variant_unit_alternative<V>) {
 4550|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4551|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4552|       |                                    // terminator handling match every other alternative.
 4553|       |                                    detail::variant_unit_body unit_body{};
 4554|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4555|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4556|       |                                                                                                    end);
 4557|       |                                 }
 4558|       |                                 else if constexpr (is_object) {
 4559|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4560|       |                                 }
 4561|       |                                 else if constexpr (is_memory_object<V>) {
 4562|       |                                    if (!v) {
 4563|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4564|       |                                          if constexpr (requires { v.emplace(); }) {
 4565|       |                                             v.emplace();
 4566|       |                                          }
 4567|       |                                          else {
 4568|       |                                             v = typename V::value_type{};
 4569|       |                                          }
 4570|       |                                       }
 4571|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4572|       |                                          v = std::make_unique<typename V::element_type>();
 4573|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4574|       |                                          v = std::make_shared<typename V::element_type>();
 4575|       |                                       else if constexpr (constructible<V>) {
 4576|       |                                          v = meta_construct_v<V>();
 4577|       |                                       }
 4578|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4579|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4580|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4581|       |                                             return;
 4582|       |                                          }
 4583|       |                                       }
 4584|       |                                       else {
 4585|       |                                          ctx.error = error_code::invalid_nullable_read;
 4586|       |                                          return;
 4587|       |                                       }
 4588|       |                                    }
 4589|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4590|       |                                       *v, ctx, it, end);
 4591|       |                                 }
 4592|       |                                 else if constexpr (custom_read<V>) {
 4593|       |                                    // Custom handlers parse the remaining body themselves.
 4594|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4595|       |                                 }
 4596|       |                              },
 4597|       |                              value);
 4598|       |                        }
 4599|       |                        else {
 4600|       |                           ctx.error = error_code::no_matching_variant_type;
 4601|       |                        }
 4602|       |                     }
 4603|       |                  }
 4604|       |                  else {
 4605|       |                     // For variants with 0 or 1 object types, use the original error handling
 4606|       |                     ctx.error = error_code::no_matching_variant_type;
 4607|       |                  }
 4608|       |               }
 4609|      0|               break;
 4610|    517|            }
 4611|      3|            case '[':
  ------------------
  |  Branch (4611:13): [True: 3, False: 1.80k]
  ------------------
 4612|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4613|      3|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4614|      3|               break;
 4615|  1.24k|            case '"': {
  ------------------
  |  Branch (4615:13): [True: 1.24k, False: 558]
  ------------------
 4616|  1.24k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4617|  1.24k|               break;
 4618|    517|            }
 4619|      3|            case 't':
  ------------------
  |  Branch (4619:13): [True: 3, False: 1.80k]
  ------------------
 4620|      6|            case 'f': {
  ------------------
  |  Branch (4620:13): [True: 3, False: 1.80k]
  ------------------
 4621|      6|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4622|      6|               break;
 4623|      3|            }
 4624|      3|            case 'n':
  ------------------
  |  Branch (4624:13): [True: 3, False: 1.80k]
  ------------------
 4625|      3|               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4626|      3|                  ctx.error = error_code::no_matching_variant_type;
 4627|       |               }
 4628|       |               else {
 4629|       |                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4630|       |                  using V = std::variant_alternative_t<first_idx, T>;
 4631|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 4632|       |                  match<"null", Opts>(ctx, it, end);
 4633|       |               }
 4634|      3|               break;
 4635|     26|            default: {
  ------------------
  |  Branch (4635:13): [True: 26, False: 1.77k]
  ------------------
 4636|       |               // Not bool, string, object, or array so must be number or null
 4637|     26|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4638|     26|            }
 4639|  1.80k|            }
 4640|       |         }
 4641|       |         else {
 4642|       |            // For non-auto-deducible variants, try each type until one succeeds
 4643|       |            constexpr auto N = std::variant_size_v<T>;
 4644|       |            bool parsed = false;
 4645|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4646|       |
 4647|       |            for_each<N>([&]<size_t I>() {
 4648|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4649|       |
 4650|       |               auto copy_it = it;
 4651|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4652|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4653|       |               const auto copy_depth = ctx.depth;
 4654|       |
 4655|       |               // Try parsing as this type
 4656|       |               if (value.index() != I) {
 4657|       |                  emplace_runtime_variant(value, I);
 4658|       |               }
 4659|       |
 4660|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4661|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4662|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4663|       |               }
 4664|       |
 4665|       |               if (!bool(ctx.error)) {
 4666|       |                  parsed = true;
 4667|       |               }
 4668|       |               else if constexpr (not Options.null_terminated) {
 4669|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4670|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4671|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4672|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4673|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4674|       |                     parsed = true;
 4675|       |                     ctx.error = error_code::none;
 4676|       |                  }
 4677|       |                  else {
 4678|       |                     // Reset for next attempt (unless this is the last type)
 4679|       |                     it = copy_it;
 4680|       |                     rewind_depth<Options>(ctx, copy_depth);
 4681|       |                     if constexpr (I + 1 < N) {
 4682|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4683|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4684|       |                        }
 4685|       |                     }
 4686|       |                  }
 4687|       |               }
 4688|       |               else {
 4689|       |                  // Reset for next attempt (unless this is the last type)
 4690|       |                  it = copy_it;
 4691|       |                  rewind_depth<Options>(ctx, copy_depth);
 4692|       |                  if constexpr (I + 1 < N) {
 4693|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4694|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4695|       |                     }
 4696|       |                  }
 4697|       |               }
 4698|       |            });
 4699|       |         }
 4700|  1.80k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEERN12jsonrpc_fuzz6amountETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   50|    846|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|    846|         else {
   61|    846|            using V = std::remove_cvref_t<T>;
   62|    846|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|    846|                                             end);
   64|    846|         }
   65|    846|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz6amountEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2794|    846|      {
 2795|    846|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|    846|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|       |         if constexpr (!check_opening_handled(Options)) {
 2799|       |            if constexpr (!check_ws_handled(Options)) {
 2800|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2801|       |                  return;
 2802|       |               }
 2803|       |            }
 2804|       |            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
 2805|       |               return;
 2806|       |            }
 2807|       |            if constexpr (not Opts.null_terminated) {
 2808|       |               if (it == end) [[unlikely]] {
 2809|       |                  ctx.error = error_code::unexpected_end;
 2810|       |                  return;
 2811|       |               }
 2812|       |            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|       |            if (enter_depth(ctx)) [[unlikely]] {
 2816|       |               return;
 2817|       |            }
 2818|       |         }
 2819|    846|         const auto ws_start = it;
 2820|    846|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 846]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|    846|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|    846|         else {
 2898|    846|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|    846|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|    846|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|    846|                  return bit_array<num_members>{};
 2902|    846|               }
 2903|    846|               else {
 2904|    846|                  return nullptr;
 2905|    846|               }
 2906|    846|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|    846|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|    846|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|    846|                  return has_includer_member<T>;
 2918|    846|               }
 2919|    846|               else {
 2920|    846|                  return false;
 2921|    846|               }
 2922|    846|            }();
 2923|    846|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|    846|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|    846|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|    846|                                                      inert_key_bits_scope> published_bits{
 2934|    846|               ctx, [&]() -> void* {
 2935|    846|                  if constexpr (tracks_include_keys) {
 2936|    846|                     return &fields;
 2937|    846|                  }
 2938|    846|                  else {
 2939|    846|                     return nullptr;
 2940|    846|                  }
 2941|    846|               }()};
 2942|       |
 2943|    846|            size_t read_count{}; // for partial_read
 2944|       |
 2945|    846|            bool first = true;
 2946|  1.38k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 1.11k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  1.11k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 569, False: 544]
  ------------------
 2984|    569|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|    569|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|    569|                  }
 3020|    569|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|    569|                  if constexpr (not Opts.null_terminated) {
 3022|    569|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 54, False: 515]
  ------------------
 3023|     54|                        ctx.error = error_code::end_reached;
 3024|     54|                        return;
 3025|     54|                     }
 3026|    569|                  }
 3027|    515|                  return;
 3028|    569|               }
 3029|    544|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 306, False: 238]
  ------------------
 3030|    306|                  first = false;
 3031|    306|               }
 3032|    238|               else {
 3033|    238|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 9, False: 229]
  ------------------
 3034|      9|                     return;
 3035|      9|                  }
 3036|    229|                  if constexpr (not Opts.null_terminated) {
 3037|    229|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 229]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|    229|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|       |                                (!Opts.comments)) {
 3045|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3046|       |                        skip_matching_ws(ws_start, it, ws_size);
 3047|       |                     }
 3048|       |                  }
 3049|       |
 3050|    229|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 229]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|    229|               }
 3054|       |
 3055|    535|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [True: 0, Folded]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|    535|               else if constexpr (reflection_type) {
 3121|    535|                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|    535|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3123:23): [True: 66, False: 469]
  ------------------
 3124|     66|                     ctx.error = error_code::expected_quote;
 3125|     66|                     return;
 3126|     66|                  }
 3127|    469|                  ++it;
 3128|    469|                  if constexpr (not Opts.null_terminated) {
 3129|    469|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3129:26): [True: 0, False: 469]
  ------------------
 3130|      0|                        ctx.error = error_code::unexpected_end;
 3131|      0|                        return;
 3132|      0|                     }
 3133|    469|                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|    469|                  else {
 3184|    469|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|    469|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3185:26): [True: 202, False: 267]
  ------------------
 3186|    202|                        return;
 3187|    469|                  }
 3188|       |               }
 3189|       |               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|       |                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|       |                     else {
 3203|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|       |                     }
 3205|       |                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|       |                  using Key = typename T::key_type;
 3209|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|       |                     ctx.scratch.clear();
 3211|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|       |                     if (bool(ctx.error)) [[unlikely]]
 3213|       |                        return;
 3214|       |
 3215|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3216|       |                        return;
 3217|       |                     }
 3218|       |
 3219|       |                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|       |                     if (bool(ctx.error)) [[unlikely]]
 3226|       |                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|       |               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|    535|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 535]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|    535|            }
 3300|    846|         }
 3301|    846|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6amountEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|    846|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|    846|               else {
 2904|    846|                  return nullptr;
 2905|    846|               }
 2906|    846|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6amountEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|    846|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|    846|                  else {
 2939|    846|                     return nullptr;
 2940|    846|                  }
 2941|    846|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  383|    469|   {
  384|    469|      constexpr auto N = reflect<T>::size;
  385|       |
  386|    469|      if constexpr (N == 1) {
  387|    469|         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  388|       |      }
  389|       |      else if constexpr (check_linear_search(Opts)) {
  390|       |         // Linear search path
  391|       |         auto key_start = it;
  392|       |         const auto index = decode_linear<T>(ctx, it, end);
  393|       |         if (bool(ctx.error)) [[unlikely]]
  394|       |            return;
  395|       |
  396|       |         if (index >= N) [[unlikely]] {
  397|       |            if constexpr (Opts.error_on_unknown_keys) {
  398|       |               ctx.error = error_code::unknown_key;
  399|       |               return;
  400|       |            }
  401|       |            else {
  402|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  403|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  404|       |                  return;
  405|       |               }
  406|       |               const sv key{key_start, size_t(it - key_start - 1)};
  407|       |               if constexpr (not Opts.null_terminated) {
  408|       |                  if (it == end) [[unlikely]] {
  409|       |                     ctx.error = error_code::unexpected_end;
  410|       |                     return;
  411|       |                  }
  412|       |               }
  413|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  414|       |                  return;
  415|       |               }
  416|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  417|       |               return;
  418|       |            }
  419|       |         }
  420|       |
  421|       |         if constexpr (not Opts.null_terminated) {
  422|       |            if (it == end) [[unlikely]] {
  423|       |               ctx.error = error_code::unexpected_end;
  424|       |               return;
  425|       |            }
  426|       |         }
  427|       |         if (skip_ws<Opts>(ctx, it, end)) {
  428|       |            return;
  429|       |         }
  430|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  431|       |            return;
  432|       |         }
  433|       |         if (skip_ws<Opts>(ctx, it, end)) {
  434|       |            return;
  435|       |         }
  436|       |
  437|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  438|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  439|       |         // instantiations; the whitespace before the value has already been skipped either way.
  440|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  441|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  442|       |                                 : false) ||
  443|       |                    ...));
  444|       |         }(std::make_index_sequence<N>{});
  445|       |      }
  446|       |      else {
  447|       |         // Hash-based lookup
  448|       |         constexpr auto& HashInfo = hash_info<T>;
  449|       |         constexpr auto type = HashInfo.type;
  450|       |         static_assert(bool(type), "invalid hash algorithm");
  451|       |
  452|       |         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  453|       |
  454|       |         if (index >= N) [[unlikely]] {
  455|       |            if constexpr (Opts.error_on_unknown_keys) {
  456|       |               ctx.error = error_code::unknown_key;
  457|       |               return;
  458|       |            }
  459|       |            else {
  460|       |               auto start = it;
  461|       |               skip_string_view(ctx, it, end);
  462|       |               if (bool(ctx.error)) [[unlikely]]
  463|       |                  return;
  464|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  465|       |                  return;
  466|       |               const sv key = {start, size_t(it - start)};
  467|       |               ++it; // skip the quote
  468|       |               if constexpr (not Opts.null_terminated) {
  469|       |                  if (it == end) [[unlikely]] {
  470|       |                     ctx.error = error_code::unexpected_end;
  471|       |                     return;
  472|       |                  }
  473|       |               }
  474|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  475|       |                  return;
  476|       |               }
  477|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  478|       |               return;
  479|       |            }
  480|       |         }
  481|       |
  482|       |         if constexpr (N == 2) {
  483|       |            if (index == 0) {
  484|       |               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  485|       |            }
  486|       |            else {
  487|       |               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  488|       |            }
  489|       |         }
  490|       |         else {
  491|       |            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  492|       |         }
  493|       |      }
  494|    469|   }
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    469|   {
  314|    469|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    469|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    469|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    469|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 449, False: 20]
  |  Branch (322:52): [True: 321, False: 128]
  ------------------
  323|    321|         it += Length;
  324|    321|         if constexpr (not Opts.null_terminated) {
  325|    321|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 321]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    321|         }
  330|       |
  331|    321|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 321]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    321|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 28, False: 293]
  ------------------
  335|     28|            return;
  336|     28|         }
  337|    293|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 293]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    293|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    293|      }
  344|    148|      else [[unlikely]] {
  345|    148|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|    148|      }
  347|    469|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz6amountELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    293|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    293|      else {
  275|    293|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    293|         else {
  299|    293|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    293|                                                                       it, end);
  301|    293|         }
  302|    293|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    293|   }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  178|    148|   {
  179|    148|      if constexpr (Opts.error_on_unknown_keys) {
  180|    148|         ctx.error = error_code::unknown_key;
  181|       |      }
  182|       |      else {
  183|       |         auto* start = it;
  184|       |         uint64_t ascii_acc{};
  185|       |         skip_string_view(ctx, it, end, ascii_acc);
  186|       |         if (bool(ctx.error)) [[unlikely]]
  187|       |            return;
  188|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  189|       |            return;
  190|       |         const sv key = {start, size_t(it - start)};
  191|       |         ++it;
  192|       |         if constexpr (not Opts.null_terminated) {
  193|       |            if (it == end) [[unlikely]] {
  194|       |               ctx.error = error_code::unexpected_end;
  195|       |               return;
  196|       |            }
  197|       |         }
  198|       |
  199|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  200|       |            return;
  201|       |         }
  202|       |
  203|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  204|       |      }
  205|    148|   }
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3523|     13|      {
 3524|     13|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|     13|         if constexpr (category_count == 0) {
 3527|     13|            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|       |         else {
 3530|       |            constexpr auto N = std::variant_size_v<Variant>;
 3531|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|       |            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|       |            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|       |            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|       |               size_t non_const_idx = 0;
 3591|       |
 3592|       |               for_each<N>([&]<size_t I>() {
 3593|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|       |                     return;
 3595|       |                  }
 3596|       |                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|       |               });
 3648|       |               if (!found_match) {
 3649|       |                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|       |               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|       |         }
 3662|     13|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3523|  1.96k|      {
 3524|  1.96k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|       |         if constexpr (category_count == 0) {
 3527|       |            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|  1.96k|         else {
 3530|  1.96k|            constexpr auto N = std::variant_size_v<Variant>;
 3531|  1.96k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|  1.96k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|  1.96k|            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|  1.96k|            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|  1.96k|            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|  1.96k|               size_t non_const_idx = 0;
 3591|       |
 3592|  1.96k|               for_each<N>([&]<size_t I>() {
 3593|  1.96k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|  1.96k|                     return;
 3595|  1.96k|                  }
 3596|  1.96k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  1.96k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  1.96k|                     auto copy_it{it};
 3599|  1.96k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  1.96k|                     if (!std::holds_alternative<V>(value)) {
 3601|  1.96k|                        value = V{};
 3602|  1.96k|                     }
 3603|  1.96k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  1.96k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|  1.96k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|  1.96k|                     }
 3607|  1.96k|                     if (!bool(ctx.error)) {
 3608|  1.96k|                        found_match = true;
 3609|  1.96k|                     }
 3610|  1.96k|                     else if constexpr (not Options.null_terminated) {
 3611|  1.96k|                        constexpr bool is_complete_type =
 3612|  1.96k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|  1.96k|                        if constexpr (is_complete_type) {
 3615|  1.96k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|  1.96k|                              found_match = true;
 3617|  1.96k|                              ctx.error = error_code::none;
 3618|  1.96k|                           }
 3619|  1.96k|                           else {
 3620|  1.96k|                              it = copy_it;
 3621|  1.96k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|  1.96k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|  1.96k|                                  not variant_alternative_exhausted(ctx)) {
 3624|  1.96k|                                 ctx.error = error_code::none;
 3625|  1.96k|                              }
 3626|  1.96k|                           }
 3627|  1.96k|                        }
 3628|  1.96k|                        else {
 3629|  1.96k|                           it = copy_it;
 3630|  1.96k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|  1.96k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|  1.96k|                               not variant_alternative_exhausted(ctx)) {
 3633|  1.96k|                              ctx.error = error_code::none;
 3634|  1.96k|                           }
 3635|  1.96k|                        }
 3636|  1.96k|                     }
 3637|  1.96k|                     else {
 3638|  1.96k|                        it = copy_it;
 3639|  1.96k|                        rewind_depth<Options>(ctx, copy_depth);
 3640|  1.96k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|  1.96k|                            not variant_alternative_exhausted(ctx)) {
 3642|  1.96k|                           ctx.error = error_code::none;
 3643|  1.96k|                        }
 3644|  1.96k|                     }
 3645|  1.96k|                     ++non_const_idx;
 3646|  1.96k|                  }
 3647|  1.96k|               });
 3648|  1.96k|               if (!found_match) {
  ------------------
  |  Branch (3648:20): [True: 334, False: 1.62k]
  ------------------
 3649|    334|                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|    334|               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|  1.96k|         }
 3662|  1.96k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3592|  1.96k|               for_each<N>([&]<size_t I>() {
 3593|  1.96k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 1.96k]
  |  Branch (3593:38): [True: 0, False: 1.96k]
  |  Branch (3593:51): [True: 0, False: 1.96k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  1.96k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  1.96k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  1.96k|                     auto copy_it{it};
 3599|  1.96k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  1.96k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3600:26): [True: 306, False: 1.65k]
  ------------------
 3601|    306|                        value = V{};
 3602|    306|                     }
 3603|  1.96k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  1.96k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3604:26): [True: 524, False: 1.43k]
  |  Branch (3604:45): [True: 0, False: 524]
  ------------------
 3605|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|      0|                     }
 3607|  1.96k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3607:26): [True: 1.43k, False: 524]
  ------------------
 3608|  1.43k|                        found_match = true;
 3609|  1.43k|                     }
 3610|    524|                     else if constexpr (not Options.null_terminated) {
 3611|    524|                        constexpr bool is_complete_type =
 3612|    524|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3612:28): [Folded, False: 0]
  |  Branch (3612:40): [Folded, False: 0]
  |  Branch (3612:53): [True: 0, Folded]
  |  Branch (3612:68): [Folded, False: 0]
  |  Branch (3612:89): [Folded, False: 0]
  |  Branch (3612:103): [Folded, False: 0]
  ------------------
 3613|       |
 3614|    524|                        if constexpr (is_complete_type) {
 3615|    524|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3615:32): [True: 190, False: 334]
  |  Branch (3615:72): [True: 190, False: 0]
  |  Branch (3615:88): [True: 190, False: 0]
  ------------------
 3616|    190|                              found_match = true;
 3617|    190|                              ctx.error = error_code::none;
 3618|    190|                           }
 3619|    334|                           else {
 3620|    334|                              it = copy_it;
 3621|    334|                              rewind_depth<Options>(ctx, copy_depth);
 3622|    334|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3622:35): [True: 0, False: 334]
  |  Branch (3622:74): [True: 0, False: 0]
  ------------------
 3623|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3623:35): [True: 0, False: 0]
  ------------------
 3624|      0|                                 ctx.error = error_code::none;
 3625|      0|                              }
 3626|    334|                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|  1.96k|                     ++non_const_idx;
 3646|  1.96k|                  }
 3647|  1.96k|               });
_ZN3glz29variant_alternative_exhaustedITkNS_10is_contextENS_7contextEEEbRT_:
 3512|  3.27M|   {
 3513|  3.27M|      return ctx.error == error_code::exceeded_max_recursive_depth;
 3514|  3.27M|   }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   50|   778k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|   778k|         else {
   61|   778k|            using V = std::remove_cvref_t<T>;
   62|   778k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|   778k|                                             end);
   64|   778k|         }
   65|   778k|      }
_ZN3glz12rewind_depthITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextENS_7contextEEEvRT0_j:
 3495|  34.8k|   {
 3496|  34.8k|      if (ctx.error == error_code::exceeded_max_recursive_depth) [[unlikely]] {
  ------------------
  |  Branch (3496:11): [True: 0, False: 34.8k]
  ------------------
 3497|      0|         return;
 3498|      0|      }
 3499|       |      if constexpr (Opts.null_terminated) {
 3500|       |         ctx.depth = depth;
 3501|       |      }
 3502|  34.8k|      else {
 3503|  34.8k|         if (ctx.error != error_code::end_reached && ctx.error != error_code::unexpected_end) {
  ------------------
  |  Branch (3503:14): [True: 31.0k, False: 3.74k]
  |  Branch (3503:54): [True: 31.0k, False: 3]
  ------------------
 3504|  31.0k|            ctx.depth = depth;
 3505|  31.0k|         }
 3506|  34.8k|      }
 3507|  34.8k|   }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3592|  1.96k|               for_each<N>([&]<size_t I>() {
 3593|  1.96k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 1.62k, False: 334]
  |  Branch (3593:38): [True: 0, False: 334]
  |  Branch (3593:51): [True: 0, False: 334]
  ------------------
 3594|  1.62k|                     return;
 3595|  1.62k|                  }
 3596|    334|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|    334|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_15is_variant_boolEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3523|     17|      {
 3524|     17|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|     17|         if constexpr (category_count == 0) {
 3527|     17|            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|       |         else {
 3530|       |            constexpr auto N = std::variant_size_v<Variant>;
 3531|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|       |            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|       |            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|       |            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|       |               size_t non_const_idx = 0;
 3591|       |
 3592|       |               for_each<N>([&]<size_t I>() {
 3593|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|       |                     return;
 3595|       |                  }
 3596|       |                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|       |               });
 3648|       |               if (!found_match) {
 3649|       |                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|       |               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|       |         }
 3662|     17|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSK_EEvOT0_OT1_OT2_T3_:
 3523|    202|      {
 3524|    202|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|    202|         if constexpr (category_count == 0) {
 3527|    202|            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|       |         else {
 3530|       |            constexpr auto N = std::variant_size_v<Variant>;
 3531|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|       |            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|       |            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|       |            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|       |               size_t non_const_idx = 0;
 3591|       |
 3592|       |               for_each<N>([&]<size_t I>() {
 3593|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|       |                     return;
 3595|       |                  }
 3596|       |                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|       |               });
 3648|       |               if (!found_match) {
 3649|       |                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|       |               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|       |         }
 3662|    202|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm8EEEDav:
  491|    750|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm8ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    750|   {
  314|    750|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    750|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    750|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    750|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 740, False: 10]
  |  Branch (322:52): [True: 578, False: 162]
  ------------------
  323|    578|         it += Length;
  324|    578|         if constexpr (not Opts.null_terminated) {
  325|    578|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 578]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    578|         }
  330|       |
  331|    578|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 578]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    578|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 24, False: 554]
  ------------------
  335|     24|            return;
  336|     24|         }
  337|    554|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 554]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    554|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    554|      }
  344|    172|      else [[unlikely]] {
  345|    172|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|    172|      }
  347|    750|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm8ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    554|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    554|      else {
  275|    554|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    554|         else {
  299|    554|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    554|                                                                       it, end);
  301|    554|         }
  302|    554|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    554|   }
_ZN3glz4fromILj10ENSt3__18functionIFiiEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES4_TkNS_10is_contextERNS_7contextERPKcSB_EEvRT0_OT1_OT2_T3_:
 1922|    554|      {
 1923|       |         if constexpr (!check_ws_handled(Opts)) {
 1924|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1925|       |               return;
 1926|       |            }
 1927|       |         }
 1928|    554|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1928:14): [True: 24, False: 530]
  ------------------
 1929|     24|            return;
 1930|     24|         }
 1931|    530|         skip_string_view(ctx, it, end);
 1932|    530|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1932:14): [True: 0, False: 530]
  ------------------
 1933|      0|            return;
 1934|    530|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1934:14): [True: 0, False: 530]
  ------------------
 1935|      0|            return;
 1936|      0|         }
 1937|    530|         if constexpr (not Opts.null_terminated) {
 1938|    530|            if (it == end) {
  ------------------
  |  Branch (1938:17): [True: 0, False: 530]
  ------------------
 1939|      0|               ctx.error = error_code::end_reached;
 1940|      0|               return;
 1941|      0|            }
 1942|    530|         }
 1943|    530|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm9EEEDav:
  491|    460|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm9ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    460|   {
  314|    460|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    460|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    460|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    460|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 449, False: 11]
  |  Branch (322:52): [True: 446, False: 3]
  ------------------
  323|    446|         it += Length;
  324|    446|         if constexpr (not Opts.null_terminated) {
  325|    446|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 446]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    446|         }
  330|       |
  331|    446|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 446]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    446|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 30, False: 416]
  ------------------
  335|     30|            return;
  336|     30|         }
  337|    416|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 416]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    416|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    416|      }
  344|     14|      else [[unlikely]] {
  345|     14|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     14|      }
  347|    460|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm9ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    416|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    416|      else {
  275|    416|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    416|         else {
  299|    416|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    416|                                                                       it, end);
  301|    416|         }
  302|    416|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    416|   }
_ZN3glz4fromILj10ENSt3__18functionIFNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKS8_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEESC_TkNS_10is_contextERNS_7contextERPKcSJ_EEvRT0_OT1_OT2_T3_:
 1922|    416|      {
 1923|       |         if constexpr (!check_ws_handled(Opts)) {
 1924|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1925|       |               return;
 1926|       |            }
 1927|       |         }
 1928|    416|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1928:14): [True: 33, False: 383]
  ------------------
 1929|     33|            return;
 1930|     33|         }
 1931|    383|         skip_string_view(ctx, it, end);
 1932|    383|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1932:14): [True: 0, False: 383]
  ------------------
 1933|      0|            return;
 1934|    383|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1934:14): [True: 0, False: 383]
  ------------------
 1935|      0|            return;
 1936|      0|         }
 1937|    383|         if constexpr (not Opts.null_terminated) {
 1938|    383|            if (it == end) {
  ------------------
  |  Branch (1938:17): [True: 0, False: 383]
  ------------------
 1939|      0|               ctx.error = error_code::end_reached;
 1940|      0|               return;
 1941|      0|            }
 1942|    383|         }
 1943|    383|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm10EEEDav:
  491|    404|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm10ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    404|   {
  314|    404|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    404|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    404|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    404|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 395, False: 9]
  |  Branch (322:52): [True: 369, False: 26]
  ------------------
  323|    369|         it += Length;
  324|    369|         if constexpr (not Opts.null_terminated) {
  325|    369|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 369]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    369|         }
  330|       |
  331|    369|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 369]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    369|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 49, False: 320]
  ------------------
  335|     49|            return;
  336|     49|         }
  337|    320|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 320]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    320|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    320|      }
  344|     35|      else [[unlikely]] {
  345|     35|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     35|      }
  347|    404|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm10ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    320|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    320|      else {
  275|    320|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    320|         else {
  299|    320|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    320|                                                                       it, end);
  301|    320|         }
  302|    320|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    320|   }
_ZN3glz4fromILj10ENSt3__18functionIFN12jsonrpc_fuzz5pointERKS4_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES8_TkNS_10is_contextERNS_7contextERPKcSF_EEvRT0_OT1_OT2_T3_:
 1922|    320|      {
 1923|       |         if constexpr (!check_ws_handled(Opts)) {
 1924|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1925|       |               return;
 1926|       |            }
 1927|       |         }
 1928|    320|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1928:14): [True: 22, False: 298]
  ------------------
 1929|     22|            return;
 1930|     22|         }
 1931|    298|         skip_string_view(ctx, it, end);
 1932|    298|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1932:14): [True: 0, False: 298]
  ------------------
 1933|      0|            return;
 1934|    298|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1934:14): [True: 0, False: 298]
  ------------------
 1935|      0|            return;
 1936|      0|         }
 1937|    298|         if constexpr (not Opts.null_terminated) {
 1938|    298|            if (it == end) {
  ------------------
  |  Branch (1938:17): [True: 0, False: 298]
  ------------------
 1939|      0|               ctx.error = error_code::end_reached;
 1940|      0|               return;
 1941|      0|            }
 1942|    298|         }
 1943|    298|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm11EEEDav:
  491|    477|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm11ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    477|   {
  314|    477|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    477|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    477|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    477|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 470, False: 7]
  |  Branch (322:52): [True: 463, False: 7]
  ------------------
  323|    463|         it += Length;
  324|    463|         if constexpr (not Opts.null_terminated) {
  325|    463|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 463]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    463|         }
  330|       |
  331|    463|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 463]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    463|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 30, False: 433]
  ------------------
  335|     30|            return;
  336|     30|         }
  337|    433|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 433]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    433|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    433|      }
  344|     14|      else [[unlikely]] {
  345|     14|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|     14|      }
  347|    477|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm11ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    433|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    433|      else {
  275|    433|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    433|         else {
  299|    433|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    433|                                                                       it, end);
  301|    433|         }
  302|    433|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    433|   }
_ZN3glz4fromILj10ENSt3__18functionIFdRNS1_6vectorIdNS1_9allocatorIdEEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES9_TkNS_10is_contextERNS_7contextERPKcSG_EEvRT0_OT1_OT2_T3_:
 1922|    433|      {
 1923|       |         if constexpr (!check_ws_handled(Opts)) {
 1924|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1925|       |               return;
 1926|       |            }
 1927|       |         }
 1928|    433|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1928:14): [True: 28, False: 405]
  ------------------
 1929|     28|            return;
 1930|     28|         }
 1931|    405|         skip_string_view(ctx, it, end);
 1932|    405|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1932:14): [True: 0, False: 405]
  ------------------
 1933|      0|            return;
 1934|    405|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1934:14): [True: 0, False: 405]
  ------------------
 1935|      0|            return;
 1936|      0|         }
 1937|    405|         if constexpr (not Opts.null_terminated) {
 1938|    405|            if (it == end) {
  ------------------
  |  Branch (1938:17): [True: 0, False: 405]
  ------------------
 1939|      0|               ctx.error = error_code::end_reached;
 1940|      0|               return;
 1941|      0|            }
 1942|    405|         }
 1943|    405|      }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm12EEEDav:
  491|    218|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm12ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|    218|   {
  314|    218|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|    218|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|    218|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|    218|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 212, False: 6]
  |  Branch (322:52): [True: 209, False: 3]
  ------------------
  323|    209|         it += Length;
  324|    209|         if constexpr (not Opts.null_terminated) {
  325|    209|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 209]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|    209|         }
  330|       |
  331|    209|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 209]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|    209|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 27, False: 182]
  ------------------
  335|     27|            return;
  336|     27|         }
  337|    182|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 182]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|    182|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|    182|      }
  344|      9|      else [[unlikely]] {
  345|      9|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|      9|      }
  347|    218|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEEN12jsonrpc_fuzz8fuzz_apiELm12ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|    182|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|    182|      else {
  275|    182|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|       |         else if constexpr (glaze_object_t<T>) {
  295|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|       |                                                                       ctx, it, end);
  297|       |         }
  298|    182|         else {
  299|    182|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|    182|                                                                       it, end);
  301|    182|         }
  302|    182|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|    182|   }
_ZN3glz4fromILj10ENSt3__18functionIFvvEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEES4_TkNS_10is_contextERNS_7contextERPKcSB_EEvRT0_OT1_OT2_T3_:
 1922|    182|      {
 1923|       |         if constexpr (!check_ws_handled(Opts)) {
 1924|       |            if (skip_ws<Opts>(ctx, it, end)) {
 1925|       |               return;
 1926|       |            }
 1927|       |         }
 1928|    182|         if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1928:14): [True: 21, False: 161]
  ------------------
 1929|     21|            return;
 1930|     21|         }
 1931|    161|         skip_string_view(ctx, it, end);
 1932|    161|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1932:14): [True: 0, False: 161]
  ------------------
 1933|      0|            return;
 1934|    161|         if (match<'"'>(ctx, it)) {
  ------------------
  |  Branch (1934:14): [True: 0, False: 161]
  ------------------
 1935|      0|            return;
 1936|      0|         }
 1937|    161|         if constexpr (not Opts.null_terminated) {
 1938|    161|            if (it == end) {
  ------------------
  |  Branch (1938:17): [True: 0, False: 161]
  ------------------
 1939|      0|               ctx.error = error_code::end_reached;
 1940|      0|               return;
 1941|      0|            }
 1942|    161|         }
 1943|    161|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   50|  1.68k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.68k|         else {
   61|  1.68k|            using V = std::remove_cvref_t<T>;
   62|  1.68k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.68k|                                             end);
   64|  1.68k|         }
   65|  1.68k|      }
_ZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2794|  1.68k|      {
 2795|  1.68k|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|  1.68k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|  1.68k|         if constexpr (!check_opening_handled(Options)) {
 2799|  1.68k|            if constexpr (!check_ws_handled(Options)) {
 2800|  1.68k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2800:20): [True: 0, False: 1.68k]
  ------------------
 2801|      0|                  return;
 2802|      0|               }
 2803|  1.68k|            }
 2804|  1.68k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 74, False: 1.60k]
  ------------------
 2805|     74|               return;
 2806|     74|            }
 2807|  1.60k|            if constexpr (not Opts.null_terminated) {
 2808|  1.60k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 1.60k]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|  1.60k|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|  1.60k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 1.60k]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|  1.60k|         }
 2819|  1.60k|         const auto ws_start = it;
 2820|  1.68k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 1.68k]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|  1.68k|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|  1.68k|         else {
 2898|  1.68k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|  1.68k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|  1.68k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|  1.68k|                  return bit_array<num_members>{};
 2902|  1.68k|               }
 2903|  1.68k|               else {
 2904|  1.68k|                  return nullptr;
 2905|  1.68k|               }
 2906|  1.68k|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|  1.68k|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|  1.68k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|  1.68k|                  return has_includer_member<T>;
 2918|  1.68k|               }
 2919|  1.68k|               else {
 2920|  1.68k|                  return false;
 2921|  1.68k|               }
 2922|  1.68k|            }();
 2923|  1.68k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|  1.68k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|  1.68k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|  1.68k|                                                      inert_key_bits_scope> published_bits{
 2934|  1.68k|               ctx, [&]() -> void* {
 2935|  1.68k|                  if constexpr (tracks_include_keys) {
 2936|  1.68k|                     return &fields;
 2937|  1.68k|                  }
 2938|  1.68k|                  else {
 2939|  1.68k|                     return nullptr;
 2940|  1.68k|                  }
 2941|  1.68k|               }()};
 2942|       |
 2943|  1.68k|            size_t read_count{}; // for partial_read
 2944|       |
 2945|  1.68k|            bool first = true;
 2946|  15.4k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 14.1k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  14.1k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 295, False: 13.9k]
  ------------------
 2984|    295|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|    295|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|    295|                  }
 3020|    295|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|    295|                  if constexpr (not Opts.null_terminated) {
 3022|    295|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 295, False: 0]
  ------------------
 3023|    295|                        ctx.error = error_code::end_reached;
 3024|    295|                        return;
 3025|    295|                     }
 3026|    295|                  }
 3027|      0|                  return;
 3028|    295|               }
 3029|  13.9k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 1.58k, False: 12.3k]
  ------------------
 3030|  1.58k|                  first = false;
 3031|  1.58k|               }
 3032|  12.3k|               else {
 3033|  12.3k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 124, False: 12.1k]
  ------------------
 3034|    124|                     return;
 3035|    124|                  }
 3036|  12.1k|                  if constexpr (not Opts.null_terminated) {
 3037|  12.1k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 12.1k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  12.1k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|  12.1k|                                (!Opts.comments)) {
 3045|  12.1k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3045:26): [True: 10.3k, False: 1.85k]
  |  Branch (3045:37): [True: 10.1k, False: 236]
  ------------------
 3046|  10.1k|                        skip_matching_ws(ws_start, it, ws_size);
 3047|  10.1k|                     }
 3048|  12.1k|                  }
 3049|       |
 3050|  12.1k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 12.1k]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  12.1k|               }
 3054|       |
 3055|  13.7k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [True: 0, Folded]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|  13.7k|               else if constexpr (reflection_type) {
 3121|  13.7k|                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|  13.7k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3123:23): [True: 693, False: 13.0k]
  ------------------
 3124|    693|                     ctx.error = error_code::expected_quote;
 3125|    693|                     return;
 3126|    693|                  }
 3127|  13.0k|                  ++it;
 3128|  13.0k|                  if constexpr (not Opts.null_terminated) {
 3129|  13.0k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3129:26): [True: 0, False: 13.0k]
  ------------------
 3130|      0|                        ctx.error = error_code::unexpected_end;
 3131|      0|                        return;
 3132|      0|                     }
 3133|  13.0k|                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|  13.0k|                  else {
 3184|  13.0k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|  13.0k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3185:26): [True: 494, False: 12.5k]
  ------------------
 3186|    494|                        return;
 3187|  13.0k|                  }
 3188|       |               }
 3189|       |               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|       |                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|       |                     else {
 3203|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|       |                     }
 3205|       |                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|       |                  using Key = typename T::key_type;
 3209|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|       |                     ctx.scratch.clear();
 3211|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|       |                     if (bool(ctx.error)) [[unlikely]]
 3213|       |                        return;
 3214|       |
 3215|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3216|       |                        return;
 3217|       |                     }
 3218|       |
 3219|       |                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|       |                     if (bool(ctx.error)) [[unlikely]]
 3226|       |                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|       |               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  13.7k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 13.7k]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  13.7k|            }
 3300|  1.68k|         }
 3301|  1.68k|      }
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|  1.60k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|  1.60k|               else {
 2904|  1.60k|                  return nullptr;
 2905|  1.60k|               }
 2906|  1.60k|            }();
_ZZN3glz4fromILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|  1.60k|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|  1.60k|                  else {
 2939|  1.60k|                     return nullptr;
 2940|  1.60k|                  }
 2941|  1.60k|               }()};
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS4_9allocatorIiEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   50|  1.79k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.79k|         else {
   61|  1.79k|            using V = std::remove_cvref_t<T>;
   62|  1.79k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.79k|                                             end);
   64|  1.79k|         }
   65|  1.79k|      }
_ZN3glz4fromILj10ENSt3__16vectorIiNS1_9allocatorIiEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS5_TkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
 2051|  1.79k|      {
 2052|  1.79k|         constexpr auto Opts = ws_handled_off<Options>();
 2053|  1.79k|         if constexpr (!check_ws_handled(Options)) {
 2054|  1.79k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2054:17): [True: 0, False: 1.79k]
  ------------------
 2055|      0|               return;
 2056|      0|            }
 2057|  1.79k|         }
 2058|       |
 2059|  1.79k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2059:14): [True: 57, False: 1.74k]
  ------------------
 2060|     57|            return;
 2061|     57|         }
 2062|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2063|       |         // released at each syntactic close below
 2064|  1.74k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2064:14): [True: 0, False: 1.74k]
  ------------------
 2065|      0|            return;
 2066|      0|         }
 2067|       |
 2068|  1.74k|         const auto ws_start = it;
 2069|  1.74k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2069:14): [True: 0, False: 1.74k]
  ------------------
 2070|      0|            return;
 2071|      0|         }
 2072|       |
 2073|  1.74k|         if (*it == ']') {
  ------------------
  |  Branch (2073:14): [True: 24, False: 1.71k]
  ------------------
 2074|     24|            --ctx.depth;
 2075|     24|            ++it;
 2076|     24|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2077|     24|               value.clear();
 2078|       |
 2079|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2080|       |                  value.shrink_to_fit();
 2081|       |               }
 2082|     24|            }
 2083|     24|            return;
 2084|     24|         }
 2085|       |
 2086|  1.71k|         const size_t ws_size = size_t(it - ws_start);
 2087|       |
 2088|  1.71k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2088:49): [True: 1.71k, Folded]
  |  Branch (2088:65): [Folded, False: 0]
  |  Branch (2088:90): [Folded, False: 0]
  ------------------
 2089|  1.71k|         if constexpr (not should_append) {
 2090|  1.71k|            const auto n = value.size();
 2091|       |
 2092|  1.71k|            auto value_it = value.begin();
 2093|       |
 2094|  1.71k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2094:32): [True: 0, False: 1.71k]
  ------------------
 2095|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2096|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2096:20): [True: 0, False: 0]
  ------------------
 2097|      0|                  return;
 2098|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2098:20): [True: 0, False: 0]
  ------------------
 2099|      0|                  return;
 2100|      0|               }
 2101|      0|               if (*it == ',') {
  ------------------
  |  Branch (2101:20): [True: 0, False: 0]
  ------------------
 2102|      0|                  ++it;
 2103|       |
 2104|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2105|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2105:26): [True: 0, False: 0]
  |  Branch (2105:37): [True: 0, False: 0]
  ------------------
 2106|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2107|      0|                     }
 2108|      0|                  }
 2109|       |
 2110|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2110:23): [True: 0, False: 0]
  ------------------
 2111|      0|                     return;
 2112|      0|                  }
 2113|      0|               }
 2114|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2114:25): [True: 0, False: 0]
  ------------------
 2115|      0|                  --ctx.depth;
 2116|      0|                  ++it;
 2117|      0|                  if constexpr (erasable<T>) {
 2118|      0|                     value.erase(value_it,
 2119|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2120|       |
 2121|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2122|       |                        value.shrink_to_fit();
 2123|       |                     }
 2124|      0|                  }
 2125|      0|                  return;
 2126|      0|               }
 2127|      0|               else [[unlikely]] {
 2128|      0|                  ctx.error = error_code::expected_bracket;
 2129|      0|                  return;
 2130|      0|               }
 2131|      0|            }
 2132|  1.71k|         }
 2133|       |
 2134|       |         if constexpr (Opts.partial_read) {
 2135|       |            // partial_read stops early on a success path, so give the level back like the
 2136|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2137|       |            --ctx.depth;
 2138|       |            return;
 2139|       |         }
 2140|  1.71k|         else {
 2141|       |            // growing
 2142|  1.71k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2143|   642k|               while (it < end) {
  ------------------
  |  Branch (2143:23): [True: 642k, False: 0]
  ------------------
 2144|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2145|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2146|       |                     if (ctx.stream.enabled()) {
 2147|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2148|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2149|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2150|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2151|       |                           const char* new_it;
 2152|       |                           const char* new_end;
 2153|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2154|       |                           it = new_it;
 2155|       |                           end = new_end;
 2156|       |                           if (it >= end && ctx.stream.at_eof()) {
 2157|       |                              break; // No more data, exit loop normally
 2158|       |                           }
 2159|       |                        }
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (has_try_emplace_back<T>) {
 2164|       |                     if (value.try_emplace_back())
 2165|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2166|       |                     else
 2167|       |                        ctx.error = error_code::exceeded_static_array_size;
 2168|       |                  }
 2169|   642k|                  else {
 2170|   642k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2171|   642k|                  }
 2172|       |
 2173|   642k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2173:23): [True: 994, False: 641k]
  ------------------
 2174|    994|                     return;
 2175|       |
 2176|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2177|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2178|       |                     if (ctx.stream.enabled()) {
 2179|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2180|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2181|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2182|       |                           const char* new_it;
 2183|       |                           const char* new_end;
 2184|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2185|       |                           it = new_it;
 2186|       |                           end = new_end;
 2187|       |                           if (it >= end && ctx.stream.at_eof()) {
 2188|       |                              ctx.error = error_code::unexpected_end;
 2189|       |                              return;
 2190|       |                           }
 2191|       |                        }
 2192|       |                     }
 2193|       |                  }
 2194|       |
 2195|   641k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2195:23): [True: 0, False: 641k]
  ------------------
 2196|      0|                     return;
 2197|      0|                  }
 2198|   641k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2198:23): [True: 640k, False: 722]
  ------------------
 2199|   640k|                     ++it;
 2200|       |
 2201|   640k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2202|   640k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2202:29): [True: 39.9k, False: 600k]
  |  Branch (2202:40): [True: 39.7k, False: 281]
  ------------------
 2203|  39.7k|                           skip_matching_ws(ws_start, it, ws_size);
 2204|  39.7k|                        }
 2205|   640k|                     }
 2206|       |
 2207|   640k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2207:26): [True: 0, False: 640k]
  ------------------
 2208|      0|                        return;
 2209|      0|                     }
 2210|   640k|                  }
 2211|    722|                  else if (*it == ']') {
  ------------------
  |  Branch (2211:28): [True: 442, False: 280]
  ------------------
 2212|    442|                     --ctx.depth;
 2213|    442|                     ++it;
 2214|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2215|       |                        value.shrink_to_fit();
 2216|       |                     }
 2217|    442|                     return;
 2218|    442|                  }
 2219|    280|                  else [[unlikely]] {
 2220|    280|                     ctx.error = error_code::expected_bracket;
 2221|    280|                     return;
 2222|    280|                  }
 2223|   641k|               }
 2224|       |
 2225|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2226|       |               // For a null-terminated buffer the loop can only exit here by falling
 2227|       |               // through when `it` reaches the terminator without a closing bracket,
 2228|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2229|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2230|       |               // tracking (or the streaming refill break), so this guard is limited
 2231|       |               // to the null-terminated case.
 2232|       |               if constexpr (Opts.null_terminated) {
 2233|       |                  ctx.error = error_code::unexpected_end;
 2234|       |               }
 2235|       |            }
 2236|       |            else {
 2237|       |               ctx.error = error_code::exceeded_static_array_size;
 2238|       |            }
 2239|  1.71k|         }
 2240|  1.71k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEETkNS_10is_contextERNS_7contextERPKcSN_EEvOT0_OT1_OT2_T3_:
   50|  1.71k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.71k|         else {
   61|  1.71k|            using V = std::remove_cvref_t<T>;
   62|  1.71k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.71k|                                             end);
   64|  1.71k|         }
   65|  1.71k|      }
_ZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_:
 2794|  1.71k|      {
 2795|  1.71k|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|  1.71k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|  1.71k|         if constexpr (!check_opening_handled(Options)) {
 2799|  1.71k|            if constexpr (!check_ws_handled(Options)) {
 2800|  1.71k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2800:20): [True: 0, False: 1.71k]
  ------------------
 2801|      0|                  return;
 2802|      0|               }
 2803|  1.71k|            }
 2804|  1.71k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 45, False: 1.66k]
  ------------------
 2805|     45|               return;
 2806|     45|            }
 2807|  1.66k|            if constexpr (not Opts.null_terminated) {
 2808|  1.66k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 1.66k]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|  1.66k|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|  1.66k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 1.66k]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|  1.66k|         }
 2819|  1.66k|         const auto ws_start = it;
 2820|  1.71k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 1.71k]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|  1.71k|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|  1.71k|         else {
 2898|  1.71k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|  1.71k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|  1.71k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|  1.71k|                  return bit_array<num_members>{};
 2902|  1.71k|               }
 2903|  1.71k|               else {
 2904|  1.71k|                  return nullptr;
 2905|  1.71k|               }
 2906|  1.71k|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|  1.71k|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|  1.71k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|  1.71k|                  return has_includer_member<T>;
 2918|  1.71k|               }
 2919|  1.71k|               else {
 2920|  1.71k|                  return false;
 2921|  1.71k|               }
 2922|  1.71k|            }();
 2923|  1.71k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|  1.71k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|  1.71k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|  1.71k|                                                      inert_key_bits_scope> published_bits{
 2934|  1.71k|               ctx, [&]() -> void* {
 2935|  1.71k|                  if constexpr (tracks_include_keys) {
 2936|  1.71k|                     return &fields;
 2937|  1.71k|                  }
 2938|  1.71k|                  else {
 2939|  1.71k|                     return nullptr;
 2940|  1.71k|                  }
 2941|  1.71k|               }()};
 2942|       |
 2943|  1.71k|            size_t read_count{}; // for partial_read
 2944|       |
 2945|  1.71k|            bool first = true;
 2946|  21.6k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 20.5k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  20.5k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 419, False: 20.1k]
  ------------------
 2984|    419|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|       |                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|       |                  }
 3020|    419|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|    419|                  if constexpr (not Opts.null_terminated) {
 3022|    419|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 419, False: 0]
  ------------------
 3023|    419|                        ctx.error = error_code::end_reached;
 3024|    419|                        return;
 3025|    419|                     }
 3026|    419|                  }
 3027|      0|                  return;
 3028|    419|               }
 3029|  20.1k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 1.63k, False: 18.4k]
  ------------------
 3030|  1.63k|                  first = false;
 3031|  1.63k|               }
 3032|  18.4k|               else {
 3033|  18.4k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 192, False: 18.2k]
  ------------------
 3034|    192|                     return;
 3035|    192|                  }
 3036|  18.2k|                  if constexpr (not Opts.null_terminated) {
 3037|  18.2k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 18.2k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  18.2k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|       |                                (!Opts.comments)) {
 3045|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3046|       |                        skip_matching_ws(ws_start, it, ws_size);
 3047|       |                     }
 3048|       |                  }
 3049|       |
 3050|  18.2k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 18.2k]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  18.2k|               }
 3054|       |
 3055|  19.9k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [Folded, False: 0]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|       |               else if constexpr (reflection_type) {
 3121|       |                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|       |                  if (*it != '"') [[unlikely]] {
 3124|       |                     ctx.error = error_code::expected_quote;
 3125|       |                     return;
 3126|       |                  }
 3127|       |                  ++it;
 3128|       |                  if constexpr (not Opts.null_terminated) {
 3129|       |                     if (it == end) [[unlikely]] {
 3130|       |                        ctx.error = error_code::unexpected_end;
 3131|       |                        return;
 3132|       |                     }
 3133|       |                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|       |                  else {
 3184|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|       |                     if (bool(ctx.error)) [[unlikely]]
 3186|       |                        return;
 3187|       |                  }
 3188|       |               }
 3189|  19.9k|               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|  19.9k|                  auto reading = [&](auto&& key) {
 3193|  19.9k|                     if constexpr (Opts.partial_read) {
 3194|  19.9k|                        if (auto element = value.find(key); element != value.end()) {
 3195|  19.9k|                           ++read_count;
 3196|  19.9k|                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|  19.9k|                        }
 3198|  19.9k|                        else {
 3199|  19.9k|                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|  19.9k|                        }
 3201|  19.9k|                     }
 3202|  19.9k|                     else {
 3203|  19.9k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|  19.9k|                     }
 3205|  19.9k|                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|  19.9k|                  using Key = typename T::key_type;
 3209|  19.9k|                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|  19.9k|                     ctx.scratch.clear();
 3211|  19.9k|                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|  19.9k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3212:26): [True: 188, False: 19.7k]
  ------------------
 3213|    188|                        return;
 3214|       |
 3215|  19.7k|                     if (parse_ws_colon<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3215:26): [True: 187, False: 19.5k]
  ------------------
 3216|    187|                        return;
 3217|    187|                     }
 3218|       |
 3219|  19.5k|                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|  19.5k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3225:26): [True: 679, False: 18.8k]
  ------------------
 3226|    679|                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|  19.9k|               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  19.9k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 19.9k]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  19.9k|            }
 3300|  1.71k|         }
 3301|  1.71k|      }
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|  1.66k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|  1.66k|               else {
 2904|  1.66k|                  return nullptr;
 2905|  1.66k|               }
 2906|  1.66k|            }();
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|  1.66k|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|  1.66k|                  else {
 2939|  1.66k|                     return nullptr;
 2940|  1.66k|                  }
 2941|  1.66k|               }()};
_ZZN3glz4fromILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNSJ_ILm1EEEEERSF_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT1_OT2_OT3_T4_ENKUlOT_E_clIRS8_EEDaSZ_:
 3192|  19.5k|                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|  19.5k|                     else {
 3203|  19.5k|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|  19.5k|                     }
 3205|  19.5k|                  };
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
   50|  2.16k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  2.16k|         else {
   61|  2.16k|            using V = std::remove_cvref_t<T>;
   62|  2.16k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  2.16k|                                             end);
   64|  2.16k|         }
   65|  2.16k|      }
_ZN3glz4fromILj10ENSt3__18optionalIdEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
 4898|  2.16k|      {
 4899|  2.16k|         constexpr auto Opts = ws_handled_off<Options>();
 4900|  2.16k|         if constexpr (!check_ws_handled(Options)) {
 4901|  2.16k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (4901:17): [True: 0, False: 2.16k]
  ------------------
 4902|      0|               return;
 4903|      0|            }
 4904|  2.16k|         }
 4905|       |
 4906|  2.16k|         if (*it == 'n') {
  ------------------
  |  Branch (4906:14): [True: 0, False: 2.16k]
  ------------------
 4907|      0|            ++it;
 4908|      0|            if constexpr (not Opts.null_terminated) {
 4909|      0|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (4909:20): [True: 0, False: 0]
  ------------------
 4910|      0|                  ctx.error = error_code::unexpected_end;
 4911|      0|                  return;
 4912|      0|               }
 4913|      0|            }
 4914|      0|            match<"ull", Opts>(ctx, it, end);
 4915|      0|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (4915:17): [True: 0, False: 0]
  ------------------
 4916|      0|               return;
 4917|      0|            if constexpr (requires { value.reset(); }) {
 4918|      0|               value.reset();
 4919|      0|            }
 4920|      0|         }
 4921|  2.16k|         else {
 4922|  2.16k|            if constexpr (nullable_value_t<T>) {
 4923|  2.16k|               if (not value.has_value()) {
  ------------------
  |  Branch (4923:20): [True: 2.16k, False: 0]
  ------------------
 4924|       |                  if constexpr (constructible<T>) {
 4925|       |                     value = meta_construct_v<T>();
 4926|       |                  }
 4927|  2.16k|                  else if constexpr (requires { value.emplace(); }) {
 4928|  2.16k|                     value.emplace();
 4929|       |                  }
 4930|       |                  else {
 4931|       |                     static_assert(false_v<T>,
 4932|       |                                   "Your nullable type must have `emplace()` or be glz::meta constructible, or "
 4933|       |                                   "create a custom glz::from specialization");
 4934|       |                  }
 4935|  2.16k|               }
 4936|  2.16k|               parse<JSON>::op<Opts>(value.value(), ctx, it, end);
 4937|       |            }
 4938|       |            else {
 4939|       |               if (!value) {
 4940|       |                  if (!nullable_emplace<Opts>(value, ctx)) {
 4941|       |                     return;
 4942|       |                  }
 4943|       |               }
 4944|       |               parse<JSON>::op<Opts>(*value, ctx, it, end);
 4945|       |            }
 4946|  2.16k|         }
 4947|  2.16k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
   50|  1.23k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.23k|         else {
   61|  1.23k|            using V = std::remove_cvref_t<T>;
   62|  1.23k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.23k|                                             end);
   64|  1.23k|         }
   65|  1.23k|      }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3863|  1.23k|      {
 3864|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3865|       |            read_adjacent<Options>(value, ctx, it, end);
 3866|       |         }
 3867|  1.23k|         else {
 3868|  1.23k|            read_deduced<Options>(value, ctx, it, end);
 3869|  1.23k|         }
 3870|  1.23k|      }
_ZN3glz4fromILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 3874|  1.23k|      {
 3875|       |         // In the reader rather than on the variant, because the choice only exists here: writing such
 3876|       |         // a variant is unambiguous, and code that only writes one has nothing to fix.
 3877|  1.23k|         using indistinguishable = variant_indistinguishable_alternatives<T>;
 3878|  1.23k|         static_assert(not indistinguishable::found ||
 3879|  1.23k|                          detail::variant_alternatives_are_indistinguishable<T, typename indistinguishable::first,
 3880|  1.23k|                                                                             typename indistinguishable::second>::value,
 3881|  1.23k|                       "Two alternatives of this variant have the same keys holding the same types and no "
 3882|  1.23k|                       "discriminator, so reading JSON into it cannot tell them apart: every read would silently "
 3883|  1.23k|                       "produce the first, whichever was written. Declare `tag` and `ids` in glz::meta for the "
 3884|  1.23k|                       "variant, or remove one of the two. They are the last two template arguments of "
 3885|  1.23k|                       "variant_alternatives_are_indistinguishable in the instantiation backtrace.");
 3886|       |
 3887|  1.23k|         constexpr auto Opts = ws_handled_off<Options>();
 3888|  1.23k|         if constexpr (variant_is_auto_deducible<T>()) {
 3889|  1.23k|            if constexpr (not check_ws_handled(Options)) {
 3890|  1.23k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3890:20): [True: 0, False: 1.23k]
  ------------------
 3891|      0|                  return;
 3892|      0|               }
 3893|  1.23k|            }
 3894|       |
 3895|  1.23k|            switch (*it) {
 3896|      0|            case '\0':
  ------------------
  |  Branch (3896:13): [True: 0, False: 1.23k]
  ------------------
 3897|      0|               ctx.error = error_code::unexpected_end;
 3898|      0|               return;
 3899|    329|            case '{': {
  ------------------
  |  Branch (3899:13): [True: 329, False: 910]
  ------------------
 3900|       |               // This branch consumes the brace itself and hands the object to a reader with
 3901|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3902|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3903|       |               // the reader below.
 3904|    329|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3904:20): [True: 0, False: 329]
  ------------------
 3905|      0|                  return;
 3906|      0|               }
 3907|       |
 3908|    329|               ++it;
 3909|    329|               if constexpr (not Opts.null_terminated) {
 3910|    329|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3910:23): [True: 0, False: 329]
  ------------------
 3911|      0|                     ctx.error = error_code::unexpected_end;
 3912|      0|                     return;
 3913|      0|                  }
 3914|    329|               }
 3915|    329|               using type_counts = variant_type_count<T>;
 3916|    329|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3917|       |               if constexpr (n_object_candidates < 1) {
 3918|       |                  ctx.error = error_code::no_matching_variant_type;
 3919|       |                  return;
 3920|       |               }
 3921|    329|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3922|    329|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3923|    329|                  using V = std::variant_alternative_t<first_idx, T>;
 3924|    329|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3924:23): [True: 329, False: 0]
  ------------------
 3925|    329|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3926|    329|                  return;
 3927|       |               }
 3928|       |               else {
 3929|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3930|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3931|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3932|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3933|       |
 3934|       |                  // Track if we've encountered a tag and what value it had
 3935|       |                  std::optional<size_t> tag_specified_index{};
 3936|       |
 3937|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3938|       |                     return;
 3939|       |                  }
 3940|       |                  // Once the reader knows which alternative this object holds it may have to read
 3941|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3942|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3943|       |                  // from under a raw pointer (see rewind_anchor).
 3944|       |                  auto start = make_rewind_anchor(ctx, it);
 3945|       |                  bool first_key = true;
 3946|       |                  // Parse bifurcation for tagged variants:
 3947|       |                  //
 3948|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3949|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3950|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3951|       |                  //
 3952|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3953|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3954|       |                  // it advances past the trailing comma so the object parser picks up at the
 3955|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3956|       |                  //
 3957|       |                  // One exception: if the tag name is also a field on the resolved struct
 3958|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3959|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3960|       |                  //
 3961|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3962|       |                  // much, and an object wider than it has no start left to return to.
 3963|       |                  auto position_after_tag = [&] {
 3964|       |                     if (first_key) {
 3965|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3966|       |                        return true;
 3967|       |                     }
 3968|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3969|       |                  };
 3970|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3971|       |                  // position_after_tag does for every key but the first.
 3972|       |                  for (; *it != '}'; first_key = false) {
 3973|       |                     if (!first_key) {
 3974|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3975|       |                           return;
 3976|       |                        }
 3977|       |                     }
 3978|       |
 3979|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3983|       |                        return;
 3984|       |                     }
 3985|       |
 3986|       |                     auto* key_start = it;
 3987|       |                     skip_string_view(ctx, it, end);
 3988|       |                     if (bool(ctx.error)) [[unlikely]]
 3989|       |                        return;
 3990|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3991|       |                        return;
 3992|       |                     const sv key = {key_start, size_t(it - key_start)};
 3993|       |
 3994|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3995|       |                        return;
 3996|       |                     }
 3997|       |
 3998|       |                     if constexpr (deduction_key_count > 0) {
 3999|       |                        // We first check if a tag is defined and see if the key matches the tag
 4000|       |                        if constexpr (not tag_v<T>.empty()) {
 4001|       |                           if (key == tag_v<T>) {
 4002|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 4003|       |                                 return;
 4004|       |                              }
 4005|       |
 4006|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 4007|       |
 4008|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 4009|       |                              if constexpr (std::integral<id_type>) {
 4010|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 4011|       |                              }
 4012|       |                              else {
 4013|       |                                 // The id is turned into an index below and never leaves this
 4014|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4015|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4016|       |                              }
 4017|       |                              if (bool(ctx.error)) [[unlikely]]
 4018|       |                                 return;
 4019|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4020|       |                                 return;
 4021|       |                              }
 4022|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4023|       |                                 ctx.error = error_code::syntax_error;
 4024|       |                                 return;
 4025|       |                              }
 4026|       |
 4027|       |                              size_t type_index;
 4028|       |                              if constexpr (std::integral<id_type>) {
 4029|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4030|       |                              }
 4031|       |                              else {
 4032|       |                                 type_index = variant_id_to_index<T>::op(
 4033|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4034|       |                              }
 4035|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4036|       |                                 // Check if the deduced types include the tag-specified type
 4037|       |                                 // If not, the tag doesn't match the fields
 4038|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4039|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4040|       |                                 // Check if the tag-specified type is still possible
 4041|       |                                 const bool type_is_possible = possible_types[type_index];
 4042|       |                                 if (!type_is_possible) {
 4043|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4044|       |                                    ctx.error = error_code::no_matching_variant_type;
 4045|       |                                    return;
 4046|       |                                 }
 4047|       |
 4048|       |                                 if (!position_after_tag()) return;
 4049|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4050|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4051|       |                                 std::visit(
 4052|       |                                    [&](auto&& v) {
 4053|       |                                       using V = std::decay_t<decltype(v)>;
 4054|       |                                       constexpr bool is_object =
 4055|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4056|       |                                       if constexpr (variant_unit_alternative<V>) {
 4057|       |                                          // A unit alternative carries no data; its object holds only the
 4058|       |                                          // discriminator. Consume that body through an empty reflected object so
 4059|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4060|       |                                          detail::variant_unit_body unit_body{};
 4061|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4062|       |                                                                                             tag_literal>(unit_body,
 4063|       |                                                                                                          ctx, it, end);
 4064|       |                                       }
 4065|       |                                       else if constexpr (is_object) {
 4066|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4067|       |                                             // tag is a struct field, must re-parse
 4068|       |                                             if (!start.rewind(ctx, it, end)) return;
 4069|       |                                          }
 4070|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4071|       |                                                                                                           end);
 4072|       |                                       }
 4073|       |                                       else if constexpr (is_memory_object<V>) {
 4074|       |                                          if (!v) {
 4075|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4076|       |                                                if constexpr (requires { v.emplace(); }) {
 4077|       |                                                   v.emplace();
 4078|       |                                                }
 4079|       |                                                else {
 4080|       |                                                   v = typename V::value_type{};
 4081|       |                                                }
 4082|       |                                             }
 4083|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4084|       |                                                v = std::make_unique<typename V::element_type>();
 4085|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4086|       |                                                v = std::make_shared<typename V::element_type>();
 4087|       |                                             else if constexpr (constructible<V>) {
 4088|       |                                                v = meta_construct_v<V>();
 4089|       |                                             }
 4090|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4091|       |                                                                can_allocate_raw_pointer<Opts,
 4092|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4093|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4094|       |                                                   return;
 4095|       |                                                }
 4096|       |                                             }
 4097|       |                                             else {
 4098|       |                                                ctx.error = error_code::invalid_nullable_read;
 4099|       |                                                return;
 4100|       |                                                // Cannot read into unset nullable that is not std::optional,
 4101|       |                                                // std::unique_ptr, or std::shared_ptr
 4102|       |                                             }
 4103|       |                                          }
 4104|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4105|       |                                             // tag is a struct field, must re-parse
 4106|       |                                             if (!start.rewind(ctx, it, end)) return;
 4107|       |                                          }
 4108|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4109|       |                                             *v, ctx, it, end);
 4110|       |                                       }
 4111|       |                                       else if constexpr (custom_read<V>) {
 4112|       |                                          // Custom handlers parse the remaining body themselves and do not
 4113|       |                                          // accept the tag template parameter; the tag was already consumed.
 4114|       |                                          // This only works when the tag was the first key. If it came later,
 4115|       |                                          // we were reset to the object start and the custom handler would
 4116|       |                                          // absorb the tag, so error rather than corrupt the value.
 4117|       |                                          if (!first_key) {
 4118|       |                                             ctx.error = error_code::feature_not_supported;
 4119|       |                                             ctx.custom_error_message =
 4120|       |                                                "the tag must be the first key for a custom variant alternative";
 4121|       |                                             return;
 4122|       |                                          }
 4123|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4124|       |                                       }
 4125|       |                                    },
 4126|       |                                    value);
 4127|       |
 4128|       |                                 return; // we've decoded our target type
 4129|       |                              }
 4130|       |                              else [[unlikely]] {
 4131|       |                                 // Check if we have a default type (ids array shorter than variant)
 4132|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4133|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4134|       |                                 if constexpr (ids_size < variant_size) {
 4135|       |                                    // Use the first unlabeled type as the default
 4136|       |                                    const auto default_type_index = ids_size;
 4137|       |
 4138|       |                                    if (!position_after_tag()) return;
 4139|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4140|       |                                    if (value.index() != default_type_index)
 4141|       |                                       emplace_runtime_variant(value, default_type_index);
 4142|       |                                    std::visit(
 4143|       |                                       [&](auto&& v) {
 4144|       |                                          using V = std::decay_t<decltype(v)>;
 4145|       |                                          constexpr bool is_object =
 4146|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4147|       |                                          if constexpr (variant_unit_alternative<V>) {
 4148|       |                                             // A unit alternative carries no data; its object holds only the
 4149|       |                                             // discriminator. Consume that body through an empty reflected object so
 4150|       |                                             // unknown-key policy and terminator handling match every other
 4151|       |                                             // alternative.
 4152|       |                                             detail::variant_unit_body unit_body{};
 4153|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4154|       |                                                                                                tag_literal>(
 4155|       |                                                unit_body, ctx, it, end);
 4156|       |                                          }
 4157|       |                                          else if constexpr (is_object) {
 4158|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4159|       |                                                // tag is a struct field, must re-parse
 4160|       |                                                if (!start.rewind(ctx, it, end)) return;
 4161|       |                                             }
 4162|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4163|       |                                          }
 4164|       |                                          else if constexpr (is_memory_object<V>) {
 4165|       |                                             if (!v) {
 4166|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4167|       |                                                   if constexpr (requires { v.emplace(); }) {
 4168|       |                                                      v.emplace();
 4169|       |                                                   }
 4170|       |                                                   else {
 4171|       |                                                      v = typename V::value_type{};
 4172|       |                                                   }
 4173|       |                                                }
 4174|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4175|       |                                                   v = std::make_unique<typename V::element_type>();
 4176|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4177|       |                                                   v = std::make_shared<typename V::element_type>();
 4178|       |                                                else if constexpr (constructible<V>) {
 4179|       |                                                   v = meta_construct_v<V>();
 4180|       |                                                }
 4181|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4182|       |                                                                   can_allocate_raw_pointer<
 4183|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4184|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4185|       |                                                      return;
 4186|       |                                                   }
 4187|       |                                                }
 4188|       |                                                else {
 4189|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4190|       |                                                   return;
 4191|       |                                                }
 4192|       |                                             }
 4193|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4194|       |                                                // tag is a struct field, must re-parse
 4195|       |                                                if (!start.rewind(ctx, it, end)) return;
 4196|       |                                             }
 4197|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4198|       |                                                                                                              it, end);
 4199|       |                                          }
 4200|       |                                          else if constexpr (custom_read<V>) {
 4201|       |                                             // Custom handlers parse the remaining body themselves; this only
 4202|       |                                             // works when the tag was the first key (see above). If it came
 4203|       |                                             // later we were reset to the object start, so error rather than
 4204|       |                                             // let the custom handler absorb the tag.
 4205|       |                                             if (!first_key) {
 4206|       |                                                ctx.error = error_code::feature_not_supported;
 4207|       |                                                ctx.custom_error_message =
 4208|       |                                                   "the tag must be the first key for a custom variant alternative";
 4209|       |                                                return;
 4210|       |                                             }
 4211|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4212|       |                                          }
 4213|       |                                       },
 4214|       |                                       value);
 4215|       |
 4216|       |                                    return;
 4217|       |                                 }
 4218|       |                                 else {
 4219|       |                                    ctx.error = error_code::no_matching_variant_type;
 4220|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4221|       |                                    return;
 4222|       |                                 }
 4223|       |                              }
 4224|       |                           }
 4225|       |                        }
 4226|       |
 4227|       |                        // Inline decode_hash lookup for variant deduction
 4228|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4229|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4230|       |                        const auto deduction_index =
 4231|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4232|       |                              key.data(), key.data() + key.size(), key.size());
 4233|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4234|       |                           [[likely]] {
 4235|       |                           possible_types &= deduction_bits[deduction_index];
 4236|       |                        }
 4237|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4238|       |                           ctx.error = error_code::unknown_key;
 4239|       |                           return;
 4240|       |                        }
 4241|       |                     }
 4242|       |                     else if constexpr (not tag_v<T>.empty()) {
 4243|       |                        // empty object case for variant, if there are no normal elements
 4244|       |                        if (key == tag_v<T>) {
 4245|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4246|       |                              return;
 4247|       |                           }
 4248|       |
 4249|       |                           // The id is turned into an index below and never leaves this reader,
 4250|       |                           // so the view of the window it borrows cannot outlive that window.
 4251|       |                           std::string_view type_id{};
 4252|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4253|       |                           if (bool(ctx.error)) [[unlikely]]
 4254|       |                              return;
 4255|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4256|       |                              return;
 4257|       |                           }
 4258|       |
 4259|       |                           const auto type_index = variant_id_to_index<T>::op(
 4260|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4261|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4262|       |                              if (!position_after_tag()) return;
 4263|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4264|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4265|       |                           }
 4266|       |                           else {
 4267|       |                              // Check if we have a default type (ids array shorter than variant)
 4268|       |                              constexpr auto ids_size = ids_v<T>.size();
 4269|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4270|       |                              if constexpr (ids_size < variant_size) {
 4271|       |                                 // Use the first unlabeled type as the default
 4272|       |                                 if (!position_after_tag()) return;
 4273|       |                                 const auto default_index = ids_size;
 4274|       |                                 tag_specified_index = default_index; // Store the default type index
 4275|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4276|       |                              }
 4277|       |                              else {
 4278|       |                                 ctx.error = error_code::no_matching_variant_type;
 4279|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4280|       |                                 return;
 4281|       |                              }
 4282|       |                           }
 4283|       |                           // Parse the type (handles tag skipping and unknown keys)
 4284|       |                           std::visit(
 4285|       |                              [&](auto&& v) {
 4286|       |                                 using V = std::decay_t<decltype(v)>;
 4287|       |                                 if constexpr (custom_read<V>) {
 4288|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4289|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4290|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4291|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4292|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4293|       |                                    // into its value, so error here rather than corrupt the result.
 4294|       |                                    if (!first_key) {
 4295|       |                                       ctx.error = error_code::feature_not_supported;
 4296|       |                                       ctx.custom_error_message =
 4297|       |                                          "the tag must be the first key for a custom variant alternative";
 4298|       |                                       return;
 4299|       |                                    }
 4300|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4301|       |                                 }
 4302|       |                                 else {
 4303|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4304|       |                                       // tag is a struct field, must re-parse
 4305|       |                                       if (!start.rewind(ctx, it, end)) return;
 4306|       |                                    }
 4307|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4308|       |                                 }
 4309|       |                              },
 4310|       |                              value);
 4311|       |                           return;
 4312|       |                        }
 4313|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4314|       |                           ctx.error = error_code::unknown_key;
 4315|       |                           return;
 4316|       |                        }
 4317|       |                        else {
 4318|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4319|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4320|       |                              return;
 4321|       |                           }
 4322|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4323|       |                           if (bool(ctx.error)) [[unlikely]]
 4324|       |                              return;
 4325|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4326|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4327|       |                              return;
 4328|       |                           }
 4329|       |                           continue; // Continue loop to find the tag
 4330|       |                        }
 4331|       |                     }
 4332|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4333|       |                        ctx.error = error_code::unknown_key;
 4334|       |                        return;
 4335|       |                     }
 4336|       |
 4337|       |                     auto matching_types = possible_types.popcount();
 4338|       |                     if (matching_types == 0) {
 4339|       |                        ctx.error = error_code::no_matching_variant_type;
 4340|       |                        return;
 4341|       |                     }
 4342|       |                     // Only short-circuit for variants without tags
 4343|       |                     else if constexpr (tag_v<T>.empty()) {
 4344|       |                        if (matching_types == 1) {
 4345|       |                           if (!start.rewind(ctx, it, end)) return;
 4346|       |                           const auto type_index = possible_types.countr_zero();
 4347|       |
 4348|       |                           if (value.index() != static_cast<size_t>(type_index))
 4349|       |                              emplace_runtime_variant(value, type_index);
 4350|       |                           std::visit(
 4351|       |                              [&](auto&& v) {
 4352|       |                                 using V = std::decay_t<decltype(v)>;
 4353|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4354|       |                                 if constexpr (variant_unit_alternative<V>) {
 4355|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4356|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4357|       |                                    // terminator handling match every other alternative.
 4358|       |                                    detail::variant_unit_body unit_body{};
 4359|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4360|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4361|       |                                                                                                    end);
 4362|       |                                 }
 4363|       |                                 else if constexpr (is_object) {
 4364|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4365|       |                                 }
 4366|       |                                 else if constexpr (is_memory_object<V>) {
 4367|       |                                    if (!v) {
 4368|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4369|       |                                          if constexpr (requires { v.emplace(); }) {
 4370|       |                                             v.emplace();
 4371|       |                                          }
 4372|       |                                          else {
 4373|       |                                             v = typename V::value_type{};
 4374|       |                                          }
 4375|       |                                       }
 4376|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4377|       |                                          v = std::make_unique<typename V::element_type>();
 4378|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4379|       |                                          v = std::make_shared<typename V::element_type>();
 4380|       |                                       else if constexpr (constructible<V>) {
 4381|       |                                          v = meta_construct_v<V>();
 4382|       |                                       }
 4383|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4384|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4385|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4386|       |                                             return;
 4387|       |                                          }
 4388|       |                                       }
 4389|       |                                       else {
 4390|       |                                          ctx.error = error_code::invalid_nullable_read;
 4391|       |                                          return;
 4392|       |                                          // Cannot read into unset nullable that is not std::optional,
 4393|       |                                          // std::unique_ptr, or std::shared_ptr
 4394|       |                                       }
 4395|       |                                    }
 4396|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4397|       |                                       *v, ctx, it, end);
 4398|       |                                 }
 4399|       |                                 else if constexpr (custom_read<V>) {
 4400|       |                                    // Custom handlers parse the remaining body themselves.
 4401|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4402|       |                                 }
 4403|       |                              },
 4404|       |                              value);
 4405|       |
 4406|       |                           return; // we've decoded our target type
 4407|       |                        }
 4408|       |                     }
 4409|       |                     // For tagged variants, continue processing to validate tags
 4410|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4411|       |                        return;
 4412|       |                     }
 4413|       |
 4414|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4415|       |                     if (bool(ctx.error)) [[unlikely]]
 4416|       |                        return;
 4417|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4418|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4419|       |                        return;
 4420|       |                     }
 4421|       |                  }
 4422|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4423|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4424|       |                     // After parsing all keys, check if we have multiple matching types
 4425|       |                     // If so, choose the one with the fewest fields
 4426|       |                     auto final_matching = possible_types.popcount();
 4427|       |                     if (final_matching == 0) {
 4428|       |                        ctx.error = error_code::no_matching_variant_type;
 4429|       |                     }
 4430|       |                     else if (final_matching == 1) {
 4431|       |                        // Single type remains after field deduction
 4432|       |                        const auto type_index = possible_types.countr_zero();
 4433|       |
 4434|       |                        // Validate against tag if one was specified
 4435|       |                        if (tag_specified_index.has_value() &&
 4436|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4437|       |                           ctx.error = error_code::no_matching_variant_type;
 4438|       |                           return;
 4439|       |                        }
 4440|       |
 4441|       |                        if (!start.rewind(ctx, it, end)) return;
 4442|       |                        if (value.index() != static_cast<size_t>(type_index))
 4443|       |                           emplace_runtime_variant(value, type_index);
 4444|       |                        std::visit(
 4445|       |                           [&](auto&& v) {
 4446|       |                              using V = std::decay_t<decltype(v)>;
 4447|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4448|       |                              if constexpr (variant_unit_alternative<V>) {
 4449|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4450|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4451|       |                                 // terminator handling match every other alternative.
 4452|       |                                 detail::variant_unit_body unit_body{};
 4453|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4454|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4455|       |                                                                                                 end);
 4456|       |                              }
 4457|       |                              else if constexpr (is_object) {
 4458|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4459|       |                              }
 4460|       |                              else if constexpr (is_memory_object<V>) {
 4461|       |                                 if (!v) {
 4462|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4463|       |                                       if constexpr (requires { v.emplace(); }) {
 4464|       |                                          v.emplace();
 4465|       |                                       }
 4466|       |                                       else {
 4467|       |                                          v = typename V::value_type{};
 4468|       |                                       }
 4469|       |                                    }
 4470|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4471|       |                                       v = std::make_unique<typename V::element_type>();
 4472|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4473|       |                                       v = std::make_shared<typename V::element_type>();
 4474|       |                                    else if constexpr (constructible<V>) {
 4475|       |                                       v = meta_construct_v<V>();
 4476|       |                                    }
 4477|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4478|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4479|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4480|       |                                          return;
 4481|       |                                       }
 4482|       |                                    }
 4483|       |                                    else {
 4484|       |                                       ctx.error = error_code::invalid_nullable_read;
 4485|       |                                       return;
 4486|       |                                    }
 4487|       |                                 }
 4488|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4489|       |                                                                                                               it, end);
 4490|       |                              }
 4491|       |                              else if constexpr (custom_read<V>) {
 4492|       |                                 // Custom handlers parse the remaining body themselves.
 4493|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4494|       |                              }
 4495|       |                           },
 4496|       |                           value);
 4497|       |                     }
 4498|       |                     else if (final_matching > 1) {
 4499|       |                        constexpr auto N = std::variant_size_v<T>;
 4500|       |
 4501|       |                        // Compile-time array of field counts for each variant type
 4502|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4503|       |                           return std::array<size_t, N> {
 4504|       |                              ([]<size_t J = I>() -> size_t {
 4505|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4506|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4507|       |                                    return reflect<V>::size;
 4508|       |                                 }
 4509|       |                                 else if constexpr (is_memory_object<V>) {
 4510|       |                                    using X = memory_type<V>;
 4511|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4512|       |                                       return reflect<X>::size;
 4513|       |                                    }
 4514|       |                                    else {
 4515|       |                                       return (std::numeric_limits<size_t>::max)();
 4516|       |                                    }
 4517|       |                                 }
 4518|       |                                 else {
 4519|       |                                    return (std::numeric_limits<size_t>::max)();
 4520|       |                                 }
 4521|       |                              }.template operator()<I>())...
 4522|       |                           };
 4523|       |                        }(std::make_index_sequence<N>{});
 4524|       |
 4525|       |                        // Find the type with minimum field count among the possible types
 4526|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4527|       |                        size_t chosen_index = N; // Invalid index initially
 4528|       |
 4529|       |                        for (size_t i = 0; i < N; ++i) {
 4530|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4531|       |                              min_fields = field_counts[i];
 4532|       |                              chosen_index = i;
 4533|       |                           }
 4534|       |                        }
 4535|       |
 4536|       |                        if (chosen_index < N) {
 4537|       |                           // Validate against tag if one was specified
 4538|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4539|       |                              ctx.error = error_code::no_matching_variant_type;
 4540|       |                              return;
 4541|       |                           }
 4542|       |
 4543|       |                           if (!start.rewind(ctx, it, end)) return;
 4544|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4545|       |                           std::visit(
 4546|       |                              [&](auto&& v) {
 4547|       |                                 using V = std::decay_t<decltype(v)>;
 4548|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4549|       |                                 if constexpr (variant_unit_alternative<V>) {
 4550|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4551|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4552|       |                                    // terminator handling match every other alternative.
 4553|       |                                    detail::variant_unit_body unit_body{};
 4554|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4555|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4556|       |                                                                                                    end);
 4557|       |                                 }
 4558|       |                                 else if constexpr (is_object) {
 4559|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4560|       |                                 }
 4561|       |                                 else if constexpr (is_memory_object<V>) {
 4562|       |                                    if (!v) {
 4563|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4564|       |                                          if constexpr (requires { v.emplace(); }) {
 4565|       |                                             v.emplace();
 4566|       |                                          }
 4567|       |                                          else {
 4568|       |                                             v = typename V::value_type{};
 4569|       |                                          }
 4570|       |                                       }
 4571|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4572|       |                                          v = std::make_unique<typename V::element_type>();
 4573|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4574|       |                                          v = std::make_shared<typename V::element_type>();
 4575|       |                                       else if constexpr (constructible<V>) {
 4576|       |                                          v = meta_construct_v<V>();
 4577|       |                                       }
 4578|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4579|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4580|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4581|       |                                             return;
 4582|       |                                          }
 4583|       |                                       }
 4584|       |                                       else {
 4585|       |                                          ctx.error = error_code::invalid_nullable_read;
 4586|       |                                          return;
 4587|       |                                       }
 4588|       |                                    }
 4589|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4590|       |                                       *v, ctx, it, end);
 4591|       |                                 }
 4592|       |                                 else if constexpr (custom_read<V>) {
 4593|       |                                    // Custom handlers parse the remaining body themselves.
 4594|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4595|       |                                 }
 4596|       |                              },
 4597|       |                              value);
 4598|       |                        }
 4599|       |                        else {
 4600|       |                           ctx.error = error_code::no_matching_variant_type;
 4601|       |                        }
 4602|       |                     }
 4603|       |                  }
 4604|       |                  else {
 4605|       |                     // For variants with 0 or 1 object types, use the original error handling
 4606|       |                     ctx.error = error_code::no_matching_variant_type;
 4607|       |                  }
 4608|       |               }
 4609|      0|               break;
 4610|    329|            }
 4611|     10|            case '[':
  ------------------
  |  Branch (4611:13): [True: 10, False: 1.22k]
  ------------------
 4612|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4613|     10|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4614|     10|               break;
 4615|    713|            case '"': {
  ------------------
  |  Branch (4615:13): [True: 713, False: 526]
  ------------------
 4616|    713|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4617|    713|               break;
 4618|    329|            }
 4619|      7|            case 't':
  ------------------
  |  Branch (4619:13): [True: 7, False: 1.23k]
  ------------------
 4620|     11|            case 'f': {
  ------------------
  |  Branch (4620:13): [True: 4, False: 1.23k]
  ------------------
 4621|     11|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4622|     11|               break;
 4623|      7|            }
 4624|      0|            case 'n':
  ------------------
  |  Branch (4624:13): [True: 0, False: 1.23k]
  ------------------
 4625|      0|               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4626|      0|                  ctx.error = error_code::no_matching_variant_type;
 4627|       |               }
 4628|       |               else {
 4629|       |                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4630|       |                  using V = std::variant_alternative_t<first_idx, T>;
 4631|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 4632|       |                  match<"null", Opts>(ctx, it, end);
 4633|       |               }
 4634|      0|               break;
 4635|    176|            default: {
  ------------------
  |  Branch (4635:13): [True: 176, False: 1.06k]
  ------------------
 4636|       |               // Not bool, string, object, or array so must be number or null
 4637|    176|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4638|    176|            }
 4639|  1.23k|            }
 4640|       |         }
 4641|       |         else {
 4642|       |            // For non-auto-deducible variants, try each type until one succeeds
 4643|       |            constexpr auto N = std::variant_size_v<T>;
 4644|       |            bool parsed = false;
 4645|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4646|       |
 4647|       |            for_each<N>([&]<size_t I>() {
 4648|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4649|       |
 4650|       |               auto copy_it = it;
 4651|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4652|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4653|       |               const auto copy_depth = ctx.depth;
 4654|       |
 4655|       |               // Try parsing as this type
 4656|       |               if (value.index() != I) {
 4657|       |                  emplace_runtime_variant(value, I);
 4658|       |               }
 4659|       |
 4660|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4661|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4662|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4663|       |               }
 4664|       |
 4665|       |               if (!bool(ctx.error)) {
 4666|       |                  parsed = true;
 4667|       |               }
 4668|       |               else if constexpr (not Options.null_terminated) {
 4669|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4670|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4671|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4672|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4673|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4674|       |                     parsed = true;
 4675|       |                     ctx.error = error_code::none;
 4676|       |                  }
 4677|       |                  else {
 4678|       |                     // Reset for next attempt (unless this is the last type)
 4679|       |                     it = copy_it;
 4680|       |                     rewind_depth<Options>(ctx, copy_depth);
 4681|       |                     if constexpr (I + 1 < N) {
 4682|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4683|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4684|       |                        }
 4685|       |                     }
 4686|       |                  }
 4687|       |               }
 4688|       |               else {
 4689|       |                  // Reset for next attempt (unless this is the last type)
 4690|       |                  it = copy_it;
 4691|       |                  rewind_depth<Options>(ctx, copy_depth);
 4692|       |                  if constexpr (I + 1 < N) {
 4693|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4694|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4695|       |                     }
 4696|       |                  }
 4697|       |               }
 4698|       |            });
 4699|       |         }
 4700|  1.23k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIdNS4_9allocatorIdEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   50|  3.50k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  3.50k|         else {
   61|  3.50k|            using V = std::remove_cvref_t<T>;
   62|  3.50k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  3.50k|                                             end);
   64|  3.50k|         }
   65|  3.50k|      }
_ZN3glz4fromILj10ENSt3__16vectorIdNS1_9allocatorIdEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS5_TkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
 2051|  3.50k|      {
 2052|  3.50k|         constexpr auto Opts = ws_handled_off<Options>();
 2053|  3.50k|         if constexpr (!check_ws_handled(Options)) {
 2054|  3.50k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2054:17): [True: 0, False: 3.50k]
  ------------------
 2055|      0|               return;
 2056|      0|            }
 2057|  3.50k|         }
 2058|       |
 2059|  3.50k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2059:14): [True: 76, False: 3.42k]
  ------------------
 2060|     76|            return;
 2061|     76|         }
 2062|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2063|       |         // released at each syntactic close below
 2064|  3.42k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2064:14): [True: 0, False: 3.42k]
  ------------------
 2065|      0|            return;
 2066|      0|         }
 2067|       |
 2068|  3.42k|         const auto ws_start = it;
 2069|  3.42k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2069:14): [True: 0, False: 3.42k]
  ------------------
 2070|      0|            return;
 2071|      0|         }
 2072|       |
 2073|  3.42k|         if (*it == ']') {
  ------------------
  |  Branch (2073:14): [True: 27, False: 3.39k]
  ------------------
 2074|     27|            --ctx.depth;
 2075|     27|            ++it;
 2076|     27|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2077|     27|               value.clear();
 2078|       |
 2079|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2080|       |                  value.shrink_to_fit();
 2081|       |               }
 2082|     27|            }
 2083|     27|            return;
 2084|     27|         }
 2085|       |
 2086|  3.39k|         const size_t ws_size = size_t(it - ws_start);
 2087|       |
 2088|  3.39k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2088:49): [True: 3.39k, Folded]
  |  Branch (2088:65): [Folded, False: 0]
  |  Branch (2088:90): [Folded, False: 0]
  ------------------
 2089|  3.39k|         if constexpr (not should_append) {
 2090|  3.39k|            const auto n = value.size();
 2091|       |
 2092|  3.39k|            auto value_it = value.begin();
 2093|       |
 2094|  3.39k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2094:32): [True: 0, False: 3.39k]
  ------------------
 2095|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2096|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2096:20): [True: 0, False: 0]
  ------------------
 2097|      0|                  return;
 2098|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2098:20): [True: 0, False: 0]
  ------------------
 2099|      0|                  return;
 2100|      0|               }
 2101|      0|               if (*it == ',') {
  ------------------
  |  Branch (2101:20): [True: 0, False: 0]
  ------------------
 2102|      0|                  ++it;
 2103|       |
 2104|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2105|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2105:26): [True: 0, False: 0]
  |  Branch (2105:37): [True: 0, False: 0]
  ------------------
 2106|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2107|      0|                     }
 2108|      0|                  }
 2109|       |
 2110|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2110:23): [True: 0, False: 0]
  ------------------
 2111|      0|                     return;
 2112|      0|                  }
 2113|      0|               }
 2114|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2114:25): [True: 0, False: 0]
  ------------------
 2115|      0|                  --ctx.depth;
 2116|      0|                  ++it;
 2117|      0|                  if constexpr (erasable<T>) {
 2118|      0|                     value.erase(value_it,
 2119|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2120|       |
 2121|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2122|       |                        value.shrink_to_fit();
 2123|       |                     }
 2124|      0|                  }
 2125|      0|                  return;
 2126|      0|               }
 2127|      0|               else [[unlikely]] {
 2128|      0|                  ctx.error = error_code::expected_bracket;
 2129|      0|                  return;
 2130|      0|               }
 2131|      0|            }
 2132|  3.39k|         }
 2133|       |
 2134|       |         if constexpr (Opts.partial_read) {
 2135|       |            // partial_read stops early on a success path, so give the level back like the
 2136|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2137|       |            --ctx.depth;
 2138|       |            return;
 2139|       |         }
 2140|  3.39k|         else {
 2141|       |            // growing
 2142|  3.39k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2143|   217k|               while (it < end) {
  ------------------
  |  Branch (2143:23): [True: 217k, False: 0]
  ------------------
 2144|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2145|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2146|       |                     if (ctx.stream.enabled()) {
 2147|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2148|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2149|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2150|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2151|       |                           const char* new_it;
 2152|       |                           const char* new_end;
 2153|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2154|       |                           it = new_it;
 2155|       |                           end = new_end;
 2156|       |                           if (it >= end && ctx.stream.at_eof()) {
 2157|       |                              break; // No more data, exit loop normally
 2158|       |                           }
 2159|       |                        }
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (has_try_emplace_back<T>) {
 2164|       |                     if (value.try_emplace_back())
 2165|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2166|       |                     else
 2167|       |                        ctx.error = error_code::exceeded_static_array_size;
 2168|       |                  }
 2169|   217k|                  else {
 2170|   217k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2171|   217k|                  }
 2172|       |
 2173|   217k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2173:23): [True: 981, False: 217k]
  ------------------
 2174|    981|                     return;
 2175|       |
 2176|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2177|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2178|       |                     if (ctx.stream.enabled()) {
 2179|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2180|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2181|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2182|       |                           const char* new_it;
 2183|       |                           const char* new_end;
 2184|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2185|       |                           it = new_it;
 2186|       |                           end = new_end;
 2187|       |                           if (it >= end && ctx.stream.at_eof()) {
 2188|       |                              ctx.error = error_code::unexpected_end;
 2189|       |                              return;
 2190|       |                           }
 2191|       |                        }
 2192|       |                     }
 2193|       |                  }
 2194|       |
 2195|   217k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2195:23): [True: 0, False: 217k]
  ------------------
 2196|      0|                     return;
 2197|      0|                  }
 2198|   217k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2198:23): [True: 214k, False: 2.41k]
  ------------------
 2199|   214k|                     ++it;
 2200|       |
 2201|   214k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2202|   214k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2202:29): [True: 8.17k, False: 206k]
  |  Branch (2202:40): [True: 7.87k, False: 300]
  ------------------
 2203|  7.87k|                           skip_matching_ws(ws_start, it, ws_size);
 2204|  7.87k|                        }
 2205|   214k|                     }
 2206|       |
 2207|   214k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2207:26): [True: 0, False: 214k]
  ------------------
 2208|      0|                        return;
 2209|      0|                     }
 2210|   214k|                  }
 2211|  2.41k|                  else if (*it == ']') {
  ------------------
  |  Branch (2211:28): [True: 1.88k, False: 530]
  ------------------
 2212|  1.88k|                     --ctx.depth;
 2213|  1.88k|                     ++it;
 2214|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2215|       |                        value.shrink_to_fit();
 2216|       |                     }
 2217|  1.88k|                     return;
 2218|  1.88k|                  }
 2219|    530|                  else [[unlikely]] {
 2220|    530|                     ctx.error = error_code::expected_bracket;
 2221|    530|                     return;
 2222|    530|                  }
 2223|   217k|               }
 2224|       |
 2225|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2226|       |               // For a null-terminated buffer the loop can only exit here by falling
 2227|       |               // through when `it` reaches the terminator without a closing bracket,
 2228|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2229|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2230|       |               // tracking (or the streaming refill break), so this guard is limited
 2231|       |               // to the null-terminated case.
 2232|       |               if constexpr (Opts.null_terminated) {
 2233|       |                  ctx.error = error_code::unexpected_end;
 2234|       |               }
 2235|       |            }
 2236|       |            else {
 2237|       |               ctx.error = error_code::exceeded_static_array_size;
 2238|       |            }
 2239|  3.39k|         }
 2240|  3.39k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERdTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   50|   501k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|   501k|         else {
   61|   501k|            using V = std::remove_cvref_t<T>;
   62|   501k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|   501k|                                             end);
   64|   501k|         }
   65|   501k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorINS_14basic_raw_jsonINS4_17basic_string_viewIcNS4_11char_traitsIcEEEEEENS4_9allocatorISB_EEEETkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
   50|  30.4k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  30.4k|         else {
   61|  30.4k|            using V = std::remove_cvref_t<T>;
   62|  30.4k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  30.4k|                                             end);
   64|  30.4k|         }
   65|  30.4k|      }
_ZN3glz4fromILj10ENSt3__16vectorINS_14basic_raw_jsonINS1_17basic_string_viewIcNS1_11char_traitsIcEEEEEENS1_9allocatorIS8_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSB_TkNS_10is_contextERNS_7contextERPKcSJ_EEvOT0_OT1_OT2_T3_:
 2051|  30.4k|      {
 2052|  30.4k|         constexpr auto Opts = ws_handled_off<Options>();
 2053|  30.4k|         if constexpr (!check_ws_handled(Options)) {
 2054|  30.4k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2054:17): [True: 0, False: 30.4k]
  ------------------
 2055|      0|               return;
 2056|      0|            }
 2057|  30.4k|         }
 2058|       |
 2059|  30.4k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2059:14): [True: 21, False: 30.4k]
  ------------------
 2060|     21|            return;
 2061|     21|         }
 2062|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2063|       |         // released at each syntactic close below
 2064|  30.4k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2064:14): [True: 0, False: 30.4k]
  ------------------
 2065|      0|            return;
 2066|      0|         }
 2067|       |
 2068|  30.4k|         const auto ws_start = it;
 2069|  30.4k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2069:14): [True: 12, False: 30.4k]
  ------------------
 2070|     12|            return;
 2071|     12|         }
 2072|       |
 2073|  30.4k|         if (*it == ']') {
  ------------------
  |  Branch (2073:14): [True: 20, False: 30.4k]
  ------------------
 2074|     20|            --ctx.depth;
 2075|     20|            ++it;
 2076|     20|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2077|     20|               value.clear();
 2078|       |
 2079|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2080|       |                  value.shrink_to_fit();
 2081|       |               }
 2082|     20|            }
 2083|     20|            return;
 2084|     20|         }
 2085|       |
 2086|  30.4k|         const size_t ws_size = size_t(it - ws_start);
 2087|       |
 2088|  30.4k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2088:49): [True: 30.4k, Folded]
  |  Branch (2088:65): [Folded, False: 0]
  |  Branch (2088:90): [Folded, False: 0]
  ------------------
 2089|  30.4k|         if constexpr (not should_append) {
 2090|  30.4k|            const auto n = value.size();
 2091|       |
 2092|  30.4k|            auto value_it = value.begin();
 2093|       |
 2094|  30.4k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2094:32): [True: 0, False: 30.4k]
  ------------------
 2095|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2096|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2096:20): [True: 0, False: 0]
  ------------------
 2097|      0|                  return;
 2098|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2098:20): [True: 0, False: 0]
  ------------------
 2099|      0|                  return;
 2100|      0|               }
 2101|      0|               if (*it == ',') {
  ------------------
  |  Branch (2101:20): [True: 0, False: 0]
  ------------------
 2102|      0|                  ++it;
 2103|       |
 2104|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2105|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2105:26): [True: 0, False: 0]
  |  Branch (2105:37): [True: 0, False: 0]
  ------------------
 2106|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2107|      0|                     }
 2108|      0|                  }
 2109|       |
 2110|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2110:23): [True: 0, False: 0]
  ------------------
 2111|      0|                     return;
 2112|      0|                  }
 2113|      0|               }
 2114|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2114:25): [True: 0, False: 0]
  ------------------
 2115|      0|                  --ctx.depth;
 2116|      0|                  ++it;
 2117|      0|                  if constexpr (erasable<T>) {
 2118|      0|                     value.erase(value_it,
 2119|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2120|       |
 2121|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2122|       |                        value.shrink_to_fit();
 2123|       |                     }
 2124|      0|                  }
 2125|      0|                  return;
 2126|      0|               }
 2127|      0|               else [[unlikely]] {
 2128|      0|                  ctx.error = error_code::expected_bracket;
 2129|      0|                  return;
 2130|      0|               }
 2131|      0|            }
 2132|  30.4k|         }
 2133|       |
 2134|       |         if constexpr (Opts.partial_read) {
 2135|       |            // partial_read stops early on a success path, so give the level back like the
 2136|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2137|       |            --ctx.depth;
 2138|       |            return;
 2139|       |         }
 2140|  30.4k|         else {
 2141|       |            // growing
 2142|  30.4k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2143|  4.97M|               while (it < end) {
  ------------------
  |  Branch (2143:23): [True: 4.97M, False: 0]
  ------------------
 2144|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2145|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2146|       |                     if (ctx.stream.enabled()) {
 2147|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2148|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2149|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2150|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2151|       |                           const char* new_it;
 2152|       |                           const char* new_end;
 2153|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2154|       |                           it = new_it;
 2155|       |                           end = new_end;
 2156|       |                           if (it >= end && ctx.stream.at_eof()) {
 2157|       |                              break; // No more data, exit loop normally
 2158|       |                           }
 2159|       |                        }
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (has_try_emplace_back<T>) {
 2164|       |                     if (value.try_emplace_back())
 2165|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2166|       |                     else
 2167|       |                        ctx.error = error_code::exceeded_static_array_size;
 2168|       |                  }
 2169|  4.97M|                  else {
 2170|  4.97M|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2171|  4.97M|                  }
 2172|       |
 2173|  4.97M|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2173:23): [True: 4.70k, False: 4.97M]
  ------------------
 2174|  4.70k|                     return;
 2175|       |
 2176|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2177|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2178|       |                     if (ctx.stream.enabled()) {
 2179|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2180|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2181|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2182|       |                           const char* new_it;
 2183|       |                           const char* new_end;
 2184|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2185|       |                           it = new_it;
 2186|       |                           end = new_end;
 2187|       |                           if (it >= end && ctx.stream.at_eof()) {
 2188|       |                              ctx.error = error_code::unexpected_end;
 2189|       |                              return;
 2190|       |                           }
 2191|       |                        }
 2192|       |                     }
 2193|       |                  }
 2194|       |
 2195|  4.97M|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2195:23): [True: 528, False: 4.97M]
  ------------------
 2196|    528|                     return;
 2197|    528|                  }
 2198|  4.97M|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2198:23): [True: 4.94M, False: 25.1k]
  ------------------
 2199|  4.94M|                     ++it;
 2200|       |
 2201|  4.94M|                     if constexpr (!Opts.minified && !Opts.comments) {
 2202|  4.94M|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2202:29): [True: 281k, False: 4.66M]
  |  Branch (2202:40): [True: 281k, False: 436]
  ------------------
 2203|   281k|                           skip_matching_ws(ws_start, it, ws_size);
 2204|   281k|                        }
 2205|  4.94M|                     }
 2206|       |
 2207|  4.94M|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2207:26): [True: 58, False: 4.94M]
  ------------------
 2208|     58|                        return;
 2209|     58|                     }
 2210|  4.94M|                  }
 2211|  25.1k|                  else if (*it == ']') {
  ------------------
  |  Branch (2211:28): [True: 20.7k, False: 4.35k]
  ------------------
 2212|  20.7k|                     --ctx.depth;
 2213|  20.7k|                     ++it;
 2214|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2215|       |                        value.shrink_to_fit();
 2216|       |                     }
 2217|  20.7k|                     return;
 2218|  20.7k|                  }
 2219|  4.35k|                  else [[unlikely]] {
 2220|  4.35k|                     ctx.error = error_code::expected_bracket;
 2221|  4.35k|                     return;
 2222|  4.35k|                  }
 2223|  4.97M|               }
 2224|       |
 2225|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2226|       |               // For a null-terminated buffer the loop can only exit here by falling
 2227|       |               // through when `it` reaches the terminator without a closing bracket,
 2228|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2229|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2230|       |               // tracking (or the streaming refill break), so this guard is limited
 2231|       |               // to the null-terminated case.
 2232|       |               if constexpr (Opts.null_terminated) {
 2233|       |                  ctx.error = error_code::unexpected_end;
 2234|       |               }
 2235|       |            }
 2236|       |            else {
 2237|       |               ctx.error = error_code::exceeded_static_array_size;
 2238|       |            }
 2239|  30.4k|         }
 2240|  30.4k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNS_14basic_raw_jsonINSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   50|  4.97M|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  4.97M|         else {
   61|  4.97M|            using V = std::remove_cvref_t<T>;
   62|  4.97M|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  4.97M|                                             end);
   64|  4.97M|         }
   65|  4.97M|      }
_ZN3glz4fromILj10ENS_14basic_raw_jsonINSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 1951|  5.02M|      {
 1952|  5.02M|         auto it_start = it;
 1953|  5.02M|         if (*it == 'n') {
  ------------------
  |  Branch (1953:14): [True: 1.15k, False: 5.02M]
  ------------------
 1954|  1.15k|            match<"null", Opts>(ctx, it, end);
 1955|  1.15k|         }
 1956|  5.02M|         else if (is_digit(uint8_t(*it))) {
  ------------------
  |  Branch (1956:19): [True: 70.7k, False: 4.95M]
  ------------------
 1957|  70.7k|            skip_number<Opts>(ctx, it, end);
 1958|  70.7k|         }
 1959|  4.95M|         else {
 1960|  4.95M|            skip_value<JSON>::op<Opts>(ctx, it, end);
 1961|  4.95M|         }
 1962|  5.02M|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1962:14): [True: 8.74k, False: 5.01M]
  ------------------
 1963|  8.74k|            return;
 1964|  5.01M|         if constexpr (string_view_t<T>) {
 1965|  5.01M|            GLZ_ASSERT_OWNS_ITS_BYTES(decltype(ctx));
  ------------------
  |  |  242|  5.01M|   static_assert(!::glz::has_streaming_state<Ctx>,                                                              \
  |  |  243|  5.01M|                 "This read fills a non-owning view (std::string_view, glz::raw_json_view, glz::text_view, or " \
  |  |  244|  5.01M|                 "a std::span) that would point into the streaming window. A streaming read refills that "      \
  |  |  245|  5.01M|                 "window as it goes, so the view would address overwritten bytes by the time the read "         \
  |  |  246|  5.01M|                 "returns, and the read would report success while handing back silently wrong data. Read "     \
  |  |  247|  5.01M|                 "into the owning equivalent instead (std::string, glz::raw_json, glz::text, or an owning "     \
  |  |  248|  5.01M|                 "container), or read from a buffer that holds the whole document.")
  ------------------
 1966|  5.01M|         }
 1967|  5.01M|         value.str = {it_start, static_cast<size_t>(it - it_start)};
 1968|  5.01M|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS_3rpc18request_envelope_tETkNS_10is_contextERNS_7contextERPKcSA_EEvOT0_OT1_OT2_T3_:
   50|   288k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|   288k|         else {
   61|   288k|            using V = std::remove_cvref_t<T>;
   62|   288k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|   288k|                                             end);
   64|   288k|         }
   65|   288k|      }
_ZN3glz4fromILj10ENS_3rpc18request_envelope_tEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_:
 2794|   288k|      {
 2795|   288k|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|   288k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|   288k|         if constexpr (!check_opening_handled(Options)) {
 2799|   288k|            if constexpr (!check_ws_handled(Options)) {
 2800|   288k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2800:20): [True: 15, False: 288k]
  ------------------
 2801|     15|                  return;
 2802|     15|               }
 2803|   288k|            }
 2804|   288k|            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2804:17): [True: 135k, False: 152k]
  ------------------
 2805|   135k|               return;
 2806|   135k|            }
 2807|   152k|            if constexpr (not Opts.null_terminated) {
 2808|   152k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (2808:20): [True: 0, False: 152k]
  ------------------
 2809|      0|                  ctx.error = error_code::unexpected_end;
 2810|      0|                  return;
 2811|      0|               }
 2812|   152k|            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|   152k|            if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2815:17): [True: 0, False: 152k]
  ------------------
 2816|      0|               return;
 2817|      0|            }
 2818|   152k|         }
 2819|   152k|         const auto ws_start = it;
 2820|   288k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 18, False: 288k]
  ------------------
 2821|     18|            return;
 2822|     18|         }
 2823|   288k|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|   288k|         else {
 2898|   288k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|   288k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|   288k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|   288k|                  return bit_array<num_members>{};
 2902|   288k|               }
 2903|   288k|               else {
 2904|   288k|                  return nullptr;
 2905|   288k|               }
 2906|   288k|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|   288k|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|   288k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|   288k|                  return has_includer_member<T>;
 2918|   288k|               }
 2919|   288k|               else {
 2920|   288k|                  return false;
 2921|   288k|               }
 2922|   288k|            }();
 2923|   288k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|   288k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|   288k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|   288k|                                                      inert_key_bits_scope> published_bits{
 2934|   288k|               ctx, [&]() -> void* {
 2935|   288k|                  if constexpr (tracks_include_keys) {
 2936|   288k|                     return &fields;
 2937|   288k|                  }
 2938|   288k|                  else {
 2939|   288k|                     return nullptr;
 2940|   288k|                  }
 2941|   288k|               }()};
 2942|       |
 2943|   288k|            size_t read_count{}; // for partial_read
 2944|       |
 2945|   288k|            bool first = true;
 2946|   605k|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 388k, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|   388k|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 63.5k, False: 325k]
  ------------------
 2984|  63.5k|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|  63.5k|                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|  63.5k|                  }
 3020|  63.5k|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|  63.5k|                  if constexpr (not Opts.null_terminated) {
 3022|  63.5k|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 58.8k, False: 4.71k]
  ------------------
 3023|  58.8k|                        ctx.error = error_code::end_reached;
 3024|  58.8k|                        return;
 3025|  58.8k|                     }
 3026|  63.5k|                  }
 3027|  4.71k|                  return;
 3028|  63.5k|               }
 3029|   325k|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 150k, False: 174k]
  ------------------
 3030|   150k|                  first = false;
 3031|   150k|               }
 3032|   174k|               else {
 3033|   174k|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 8.38k, False: 165k]
  ------------------
 3034|  8.38k|                     return;
 3035|  8.38k|                  }
 3036|   165k|                  if constexpr (not Opts.null_terminated) {
 3037|   165k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 165k]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|   165k|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|   165k|                                (!Opts.comments)) {
 3045|   165k|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (3045:26): [True: 5.76k, False: 160k]
  |  Branch (3045:37): [True: 5.30k, False: 459]
  ------------------
 3046|  5.30k|                        skip_matching_ws(ws_start, it, ws_size);
 3047|  5.30k|                     }
 3048|   165k|                  }
 3049|       |
 3050|   165k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 10, False: 165k]
  ------------------
 3051|     10|                     return;
 3052|     10|                  }
 3053|   165k|               }
 3054|       |
 3055|   316k|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [True: 316k, Folded]
  |  Branch (3055:70): [Folded, False: 0]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|   316k|               else if constexpr (reflection_type) {
 3121|   316k|                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|   316k|                  if (*it != '"') [[unlikely]] {
  ------------------
  |  Branch (3123:23): [True: 18.5k, False: 298k]
  ------------------
 3124|  18.5k|                     ctx.error = error_code::expected_quote;
 3125|  18.5k|                     return;
 3126|  18.5k|                  }
 3127|   298k|                  ++it;
 3128|   298k|                  if constexpr (not Opts.null_terminated) {
 3129|   298k|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3129:26): [True: 6, False: 298k]
  ------------------
 3130|      6|                        ctx.error = error_code::unexpected_end;
 3131|      6|                        return;
 3132|      6|                     }
 3133|   298k|                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|   298k|                  else {
 3184|   298k|                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|   298k|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3185:26): [True: 61.8k, False: 236k]
  ------------------
 3186|  61.8k|                        return;
 3187|   298k|                  }
 3188|       |               }
 3189|       |               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|       |                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|       |                     else {
 3203|       |                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|       |                     }
 3205|       |                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|       |                  using Key = typename T::key_type;
 3209|       |                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|       |                     ctx.scratch.clear();
 3211|       |                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|       |                     if (bool(ctx.error)) [[unlikely]]
 3213|       |                        return;
 3214|       |
 3215|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3216|       |                        return;
 3217|       |                     }
 3218|       |
 3219|       |                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|       |                     if (bool(ctx.error)) [[unlikely]]
 3226|       |                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|       |               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|   316k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 294, False: 316k]
  ------------------
 3297|    294|                  return;
 3298|    294|               }
 3299|   316k|            }
 3300|   288k|         }
 3301|   288k|      }
_ZZN3glz4fromILj10ENS_3rpc18request_envelope_tEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|   152k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|   152k|               else {
 2904|   152k|                  return nullptr;
 2905|   152k|               }
 2906|   152k|            }();
_ZZN3glz4fromILj10ENS_3rpc18request_envelope_tEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnNS_14string_literalEXtlNS6_ILm1EEEEERS2_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|   152k|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|   152k|                  else {
 2939|   152k|                     return nullptr;
 2940|   152k|                  }
 2941|   152k|               }()};
_ZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_:
  383|   298k|   {
  384|   298k|      constexpr auto N = reflect<T>::size;
  385|       |
  386|       |      if constexpr (N == 1) {
  387|       |         decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  388|       |      }
  389|       |      else if constexpr (check_linear_search(Opts)) {
  390|       |         // Linear search path
  391|       |         auto key_start = it;
  392|       |         const auto index = decode_linear<T>(ctx, it, end);
  393|       |         if (bool(ctx.error)) [[unlikely]]
  394|       |            return;
  395|       |
  396|       |         if (index >= N) [[unlikely]] {
  397|       |            if constexpr (Opts.error_on_unknown_keys) {
  398|       |               ctx.error = error_code::unknown_key;
  399|       |               return;
  400|       |            }
  401|       |            else {
  402|       |               // it sits one past the closing quote, so the raw key spans [key_start, it - 1)
  403|       |               if (validate_utf8_span<Opts>(ctx, key_start, it - 1)) [[unlikely]] {
  404|       |                  return;
  405|       |               }
  406|       |               const sv key{key_start, size_t(it - key_start - 1)};
  407|       |               if constexpr (not Opts.null_terminated) {
  408|       |                  if (it == end) [[unlikely]] {
  409|       |                     ctx.error = error_code::unexpected_end;
  410|       |                     return;
  411|       |                  }
  412|       |               }
  413|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  414|       |                  return;
  415|       |               }
  416|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  417|       |               return;
  418|       |            }
  419|       |         }
  420|       |
  421|       |         if constexpr (not Opts.null_terminated) {
  422|       |            if (it == end) [[unlikely]] {
  423|       |               ctx.error = error_code::unexpected_end;
  424|       |               return;
  425|       |            }
  426|       |         }
  427|       |         if (skip_ws<Opts>(ctx, it, end)) {
  428|       |            return;
  429|       |         }
  430|       |         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  431|       |            return;
  432|       |         }
  433|       |         if (skip_ws<Opts>(ctx, it, end)) {
  434|       |            return;
  435|       |         }
  436|       |
  437|       |         // Fold expression dispatch - avoids jump table overhead for smaller binary size.
  438|       |         // For linear_search, pass Opts through to the field parser to avoid duplicate template
  439|       |         // instantiations; the whitespace before the value has already been skipped either way.
  440|       |         [&]<size_t... Is>(std::index_sequence<Is...>) {
  441|       |            (void)(((index == Is ? (decode_field_value<Opts, Opts, T, Is>(value, ctx, it, end, selected_index...), true)
  442|       |                                 : false) ||
  443|       |                    ...));
  444|       |         }(std::make_index_sequence<N>{});
  445|       |      }
  446|   298k|      else {
  447|       |         // Hash-based lookup
  448|   298k|         constexpr auto& HashInfo = hash_info<T>;
  449|   298k|         constexpr auto type = HashInfo.type;
  450|   298k|         static_assert(bool(type), "invalid hash algorithm");
  451|       |
  452|   298k|         const auto index = decode_hash<JSON, T, HashInfo, HashInfo.type>::op(it, end);
  453|       |
  454|   298k|         if (index >= N) [[unlikely]] {
  ------------------
  |  Branch (454:14): [True: 28.0k, False: 270k]
  ------------------
  455|  28.0k|            if constexpr (Opts.error_on_unknown_keys) {
  456|  28.0k|               ctx.error = error_code::unknown_key;
  457|  28.0k|               return;
  458|       |            }
  459|       |            else {
  460|       |               auto start = it;
  461|       |               skip_string_view(ctx, it, end);
  462|       |               if (bool(ctx.error)) [[unlikely]]
  463|       |                  return;
  464|       |               if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
  465|       |                  return;
  466|       |               const sv key = {start, size_t(it - start)};
  467|       |               ++it; // skip the quote
  468|       |               if constexpr (not Opts.null_terminated) {
  469|       |                  if (it == end) [[unlikely]] {
  470|       |                     ctx.error = error_code::unexpected_end;
  471|       |                     return;
  472|       |                  }
  473|       |               }
  474|       |               if (parse_ws_colon<Opts>(ctx, it, end)) {
  475|       |                  return;
  476|       |               }
  477|       |               parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  478|       |               return;
  479|       |            }
  480|  28.0k|         }
  481|       |
  482|       |         if constexpr (N == 2) {
  483|       |            if (index == 0) {
  484|       |               decode_index<Opts, T, 0>(value, ctx, it, end, selected_index...);
  485|       |            }
  486|       |            else {
  487|       |               decode_index<Opts, T, 1>(value, ctx, it, end, selected_index...);
  488|       |            }
  489|       |         }
  490|   298k|         else {
  491|   298k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
  492|   298k|         }
  493|   298k|      }
  494|   298k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm0EEEDav:
  491|  75.1k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  75.1k|   {
  314|  75.1k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  75.1k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  75.1k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  75.1k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 74.8k, False: 278]
  |  Branch (322:52): [True: 74.0k, False: 804]
  ------------------
  323|  74.0k|         it += Length;
  324|  74.0k|         if constexpr (not Opts.null_terminated) {
  325|  74.0k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 74.0k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  74.0k|         }
  330|       |
  331|  74.0k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 2, False: 74.0k]
  ------------------
  332|      2|            return;
  333|      2|         }
  334|  74.0k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 869, False: 73.2k]
  ------------------
  335|    869|            return;
  336|    869|         }
  337|  73.2k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 2, False: 73.2k]
  ------------------
  338|      2|            return;
  339|      2|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  73.2k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  73.2k|      }
  344|  1.08k|      else [[unlikely]] {
  345|  1.08k|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|  1.08k|      }
  347|  75.1k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm0ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  73.2k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  73.2k|      else {
  275|  73.2k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|  73.2k|         else if constexpr (glaze_object_t<T>) {
  295|  73.2k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|  73.2k|                                                                       ctx, it, end);
  297|       |         }
  298|       |         else {
  299|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|       |                                                                       it, end);
  301|       |         }
  302|  73.2k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  73.2k|   }
_ZN3glz4fromILj10ENSt3__18optionalINS1_17basic_string_viewIcNS1_11char_traitsIcEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 4898|   137k|      {
 4899|   137k|         constexpr auto Opts = ws_handled_off<Options>();
 4900|       |         if constexpr (!check_ws_handled(Options)) {
 4901|       |            if (skip_ws<Opts>(ctx, it, end)) {
 4902|       |               return;
 4903|       |            }
 4904|       |         }
 4905|       |
 4906|   137k|         if (*it == 'n') {
  ------------------
  |  Branch (4906:14): [True: 1.26k, False: 136k]
  ------------------
 4907|  1.26k|            ++it;
 4908|  1.26k|            if constexpr (not Opts.null_terminated) {
 4909|  1.26k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (4909:20): [True: 1, False: 1.26k]
  ------------------
 4910|      1|                  ctx.error = error_code::unexpected_end;
 4911|      1|                  return;
 4912|      1|               }
 4913|  1.26k|            }
 4914|  1.26k|            match<"ull", Opts>(ctx, it, end);
 4915|  1.26k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (4915:17): [True: 448, False: 815]
  ------------------
 4916|    448|               return;
 4917|    815|            if constexpr (requires { value.reset(); }) {
 4918|    815|               value.reset();
 4919|    815|            }
 4920|    815|         }
 4921|   136k|         else {
 4922|   136k|            if constexpr (nullable_value_t<T>) {
 4923|   136k|               if (not value.has_value()) {
  ------------------
  |  Branch (4923:20): [True: 134k, False: 2.07k]
  ------------------
 4924|       |                  if constexpr (constructible<T>) {
 4925|       |                     value = meta_construct_v<T>();
 4926|       |                  }
 4927|   134k|                  else if constexpr (requires { value.emplace(); }) {
 4928|   134k|                     value.emplace();
 4929|       |                  }
 4930|       |                  else {
 4931|       |                     static_assert(false_v<T>,
 4932|       |                                   "Your nullable type must have `emplace()` or be glz::meta constructible, or "
 4933|       |                                   "create a custom glz::from specialization");
 4934|       |                  }
 4935|   134k|               }
 4936|   136k|               parse<JSON>::op<Opts>(value.value(), ctx, it, end);
 4937|       |            }
 4938|       |            else {
 4939|       |               if (!value) {
 4940|       |                  if (!nullable_emplace<Opts>(value, ctx)) {
 4941|       |                     return;
 4942|       |                  }
 4943|       |               }
 4944|       |               parse<JSON>::op<Opts>(*value, ctx, it, end);
 4945|       |            }
 4946|   136k|         }
 4947|   137k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   50|   136k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|   136k|         else {
   61|   136k|            using V = std::remove_cvref_t<T>;
   62|   136k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|   136k|                                             end);
   64|   136k|         }
   65|   136k|      }
_ZN3glz4fromILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELb0ERPKcSA_S5_TkNS_10is_contextERNS_7contextEQntcl22check_string_as_numberTL0__EEEvRT3_OT4_OT1_T2_:
 1607|   136k|      {
 1608|   136k|         if constexpr (!check_opening_handled(Opts)) {
 1609|   136k|            if constexpr (!check_ws_handled(Opts)) {
 1610|   136k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1610:20): [True: 0, False: 136k]
  ------------------
 1611|      0|                  return;
 1612|      0|               }
 1613|   136k|            }
 1614|       |
 1615|   136k|            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1615:17): [True: 708, False: 135k]
  ------------------
 1616|    708|               return;
 1617|    708|            }
 1618|   136k|         }
 1619|       |
 1620|   135k|         auto start = it;
 1621|   136k|         skip_string_view(ctx, it, end);
 1622|   136k|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1622:14): [True: 9, False: 136k]
  ------------------
 1623|      9|            return;
 1624|       |
 1625|   136k|         if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
  ------------------
  |  Branch (1625:14): [True: 30, False: 136k]
  ------------------
 1626|     30|            return;
 1627|     30|         }
 1628|       |
 1629|   136k|         if constexpr (string_view_t<T>) {
 1630|   136k|            if constexpr (!Transient) {
 1631|   136k|               GLZ_ASSERT_OWNS_ITS_BYTES(decltype(ctx));
  ------------------
  |  |  242|   136k|   static_assert(!::glz::has_streaming_state<Ctx>,                                                              \
  |  |  243|   136k|                 "This read fills a non-owning view (std::string_view, glz::raw_json_view, glz::text_view, or " \
  |  |  244|   136k|                 "a std::span) that would point into the streaming window. A streaming read refills that "      \
  |  |  245|   136k|                 "window as it goes, so the view would address overwritten bytes by the time the read "         \
  |  |  246|   136k|                 "returns, and the read would report success while handing back silently wrong data. Read "     \
  |  |  247|   136k|                 "into the owning equivalent instead (std::string, glz::raw_json, glz::text, or an owning "     \
  |  |  248|   136k|                 "container), or read from a buffer that holds the whole document.")
  ------------------
 1632|   136k|            }
 1633|   136k|            using value_type = typename std::decay_t<T>::value_type;
 1634|       |            if constexpr (std::same_as<value_type, char8_t>) {
 1635|       |               value = {reinterpret_cast<const char8_t*>(start), size_t(it - start)};
 1636|       |            }
 1637|   136k|            else {
 1638|   136k|               value = {start, size_t(it - start)};
 1639|   136k|            }
 1640|       |         }
 1641|       |         else if constexpr (char_array_t<T>) {
 1642|       |            const size_t n = it - start;
 1643|       |            if ((n + 1) > sizeof(value)) {
 1644|       |               ctx.error = error_code::unexpected_end;
 1645|       |               return;
 1646|       |            }
 1647|       |            std::memcpy(value, start, n);
 1648|       |            value[n] = '\0';
 1649|       |         }
 1650|       |         else if constexpr (array_char_t<T>) {
 1651|       |            const size_t n = it - start;
 1652|       |            if ((n + 1) > value.size()) {
 1653|       |               ctx.error = error_code::unexpected_end;
 1654|       |               return;
 1655|       |            }
 1656|       |            std::memcpy(value.data(), start, n);
 1657|       |            value[n] = '\0';
 1658|       |         }
 1659|       |         else if constexpr (static_string_t<T>) {
 1660|       |            const size_t n = it - start;
 1661|       |            if (n > value.capacity()) {
 1662|       |               ctx.error = error_code::unexpected_end;
 1663|       |               return;
 1664|       |            }
 1665|       |            value.assign(start, n);
 1666|       |         }
 1667|   136k|         ++it; // skip closing quote
 1668|   136k|         if constexpr (not Opts.null_terminated) {
 1669|   136k|            if (it == end) {
  ------------------
  |  Branch (1669:17): [True: 9, False: 136k]
  ------------------
 1670|      9|               ctx.error = error_code::end_reached;
 1671|      9|               return;
 1672|      9|            }
 1673|   136k|         }
 1674|   136k|      }
_ZN3glz24decode_index_unknown_keyITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_TkNS_10is_contextERNS_7contextERPKcS8_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT2_OT3_T4_:
  178|  7.35k|   {
  179|  7.35k|      if constexpr (Opts.error_on_unknown_keys) {
  180|  7.35k|         ctx.error = error_code::unknown_key;
  181|       |      }
  182|       |      else {
  183|       |         auto* start = it;
  184|       |         uint64_t ascii_acc{};
  185|       |         skip_string_view(ctx, it, end, ascii_acc);
  186|       |         if (bool(ctx.error)) [[unlikely]]
  187|       |            return;
  188|       |         if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
  189|       |            return;
  190|       |         const sv key = {start, size_t(it - start)};
  191|       |         ++it;
  192|       |         if constexpr (not Opts.null_terminated) {
  193|       |            if (it == end) [[unlikely]] {
  194|       |               ctx.error = error_code::unexpected_end;
  195|       |               return;
  196|       |            }
  197|       |         }
  198|       |
  199|       |         if (parse_ws_colon<Opts>(ctx, it, end)) {
  200|       |            return;
  201|       |         }
  202|       |
  203|       |         parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
  204|       |      }
  205|  7.35k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm1EEEDav:
  491|  65.5k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  65.5k|   {
  314|  65.5k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  65.5k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  65.5k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  65.5k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 65.0k, False: 483]
  |  Branch (322:52): [True: 64.5k, False: 552]
  ------------------
  323|  64.5k|         it += Length;
  324|  64.5k|         if constexpr (not Opts.null_terminated) {
  325|  64.5k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 64.5k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  64.5k|         }
  330|       |
  331|  64.5k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 64.5k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  64.5k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 0, False: 64.5k]
  ------------------
  335|      0|            return;
  336|      0|         }
  337|  64.5k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 64.5k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  64.5k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  64.5k|      }
  344|  1.03k|      else [[unlikely]] {
  345|  1.03k|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|  1.03k|      }
  347|  65.5k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm1ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  64.5k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  64.5k|      else {
  275|  64.5k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|  64.5k|         else if constexpr (glaze_object_t<T>) {
  295|  64.5k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|  64.5k|                                                                       ctx, it, end);
  297|       |         }
  298|       |         else {
  299|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|       |                                                                       it, end);
  301|       |         }
  302|  64.5k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  64.5k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm2EEEDav:
  491|  47.2k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  47.2k|   {
  314|  47.2k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  47.2k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  47.2k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  47.2k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 46.9k, False: 306]
  |  Branch (322:52): [True: 46.0k, False: 853]
  ------------------
  323|  46.0k|         it += Length;
  324|  46.0k|         if constexpr (not Opts.null_terminated) {
  325|  46.0k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 46.0k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  46.0k|         }
  330|       |
  331|  46.0k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 0, False: 46.0k]
  ------------------
  332|      0|            return;
  333|      0|         }
  334|  46.0k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 0, False: 46.0k]
  ------------------
  335|      0|            return;
  336|      0|         }
  337|  46.0k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 0, False: 46.0k]
  ------------------
  338|      0|            return;
  339|      0|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  46.0k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  46.0k|      }
  344|  1.15k|      else [[unlikely]] {
  345|  1.15k|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|  1.15k|      }
  347|  47.2k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm2ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  46.0k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  46.0k|      else {
  275|  46.0k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|  46.0k|         else if constexpr (glaze_object_t<T>) {
  295|  46.0k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|  46.0k|                                                                       ctx, it, end);
  297|       |         }
  298|       |         else {
  299|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|       |                                                                       it, end);
  301|       |         }
  302|  46.0k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  46.0k|   }
_ZZN3glz16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT1_OT3_OT4_OT5_DpOT2_ENKUlTnmvE_clILm3EEEDav:
  491|  82.2k|            visit<N>([&]<size_t I>() { decode_index<Opts, T, I>(value, ctx, it, end, selected_index...); }, index);
_ZN3glz12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT0_E11reflectableISA_EEEvOT2_OT4_OT5_OT6_DpOT3_:
  313|  82.2k|   {
  314|  82.2k|      static constexpr auto Key = get<I>(reflect<T>::keys);
  315|  82.2k|      static constexpr auto KeyWithEndQuote = join_v<Key, chars<"\"">>;
  316|  82.2k|      static constexpr auto Length = KeyWithEndQuote.size();
  317|       |
  318|       |      // Compared as a count rather than by forming `it + Length` first: a pointer past one-past-the-end
  319|       |      // is undefined even when it is never dereferenced, and a key near the end of a short buffer
  320|       |      // reaches this with fewer than `Length` bytes left. Signed, so a cursor that has overshot
  321|       |      // `end` does not read as room.
  322|  82.2k|      if (((end - it) > std::ptrdiff_t(Length)) && comparitor<KeyWithEndQuote>(it)) [[likely]] {
  ------------------
  |  Branch (322:11): [True: 82.0k, False: 203]
  |  Branch (322:52): [True: 78.1k, False: 3.87k]
  ------------------
  323|  78.1k|         it += Length;
  324|  78.1k|         if constexpr (not Opts.null_terminated) {
  325|  78.1k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (325:17): [True: 0, False: 78.1k]
  ------------------
  326|      0|               ctx.error = error_code::unexpected_end;
  327|      0|               return;
  328|      0|            }
  329|  78.1k|         }
  330|       |
  331|  78.1k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (331:14): [True: 2, False: 78.1k]
  ------------------
  332|      2|            return;
  333|      2|         }
  334|  78.1k|         if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (334:14): [True: 790, False: 77.3k]
  ------------------
  335|    790|            return;
  336|    790|         }
  337|  77.3k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (337:14): [True: 3, False: 77.3k]
  ------------------
  338|      3|            return;
  339|      3|         }
  340|       |
  341|       |         // The hash path has already consumed the whitespace before the value
  342|  77.3k|         decode_field_value<Opts, ws_handled<Opts>(), T, I>(value, ctx, it, end, selected_index...);
  343|  77.3k|      }
  344|  4.08k|      else [[unlikely]] {
  345|  4.08k|         decode_index_unknown_key<Opts, T>(value, ctx, it, end);
  346|  4.08k|      }
  347|  82.2k|   }
_ZN3glz18decode_field_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETnDaXtlS1_Lj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEENS_3rpc18request_envelope_tELm3ERS3_JETkNS_10is_contextERNS_7contextERPKcS9_Qoo14glaze_object_tIT1_E11reflectableISA_EEEvOT3_OT5_OT6_OT7_DpOT4_:
  247|  77.3k|   {
  248|       |      // Check for null value skipping on read
  249|       |      if constexpr (check_skip_null_members_on_read(Opts)) {
  250|       |         if (*it == 'n') {
  251|       |            ++it;
  252|       |            if constexpr (not Opts.null_terminated) {
  253|       |               if (it == end) [[unlikely]] {
  254|       |                  ctx.error = error_code::unexpected_end;
  255|       |                  return;
  256|       |               }
  257|       |            }
  258|       |            match<"ull", Opts>(ctx, it, end);
  259|       |            if (bool(ctx.error)) [[unlikely]]
  260|       |               return;
  261|       |            // Successfully matched "null", skip it
  262|       |            if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  263|       |               ((selected_index = I), ...); // Mark as handled even if skipped
  264|       |            }
  265|       |            return;
  266|       |         }
  267|       |      }
  268|       |
  269|       |      if constexpr (skipped_by_meta<T, I, operation::parse>) {
  270|       |         skip_value<JSON>::op<Opts>(ctx, it, end);
  271|       |         if (bool(ctx.error)) [[unlikely]]
  272|       |            return; // Propagate error from skip_value
  273|       |      }
  274|  77.3k|      else {
  275|  77.3k|         using V = refl_t<T, I>;
  276|       |
  277|       |         if constexpr (const_value_v<V>) {
  278|       |            if constexpr (check_error_on_const_read(Opts)) {
  279|       |               ctx.error = error_code::attempt_const_read;
  280|       |            }
  281|       |            else {
  282|       |               // do not read anything into the const value
  283|       |               skip_value<JSON>::op<Opts>(ctx, it, end);
  284|       |            }
  285|       |         }
  286|       |         else if constexpr (is_function_ptr_or_ref<V>) {
  287|       |            // Function pointers cannot be deserialized from JSON.
  288|       |            // When write_function_pointers is enabled the writer emits a type-name string,
  289|       |            // but there is nothing meaningful to reconstruct on read — just skip the value.
  290|       |            // When write_function_pointers is off the key is never written, so this branch
  291|       |            // is unreachable in that case.
  292|       |            skip_value<JSON>::op<Opts>(ctx, it, end);
  293|       |         }
  294|  77.3k|         else if constexpr (glaze_object_t<T>) {
  295|  77.3k|            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(reflect<T>::values)),
  296|  77.3k|                                                                       ctx, it, end);
  297|       |         }
  298|       |         else {
  299|       |            from<JSON, std::remove_cvref_t<V>>::template op<FieldOpts>(get_member(value, get<I>(to_tie(value))), ctx,
  300|       |                                                                       it, end);
  301|       |         }
  302|  77.3k|      }
  303|       |
  304|       |      // The key was present and handled, even when the value itself was skipped
  305|       |      if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
  306|       |         ((selected_index = I), ...);
  307|       |      }
  308|  77.3k|   }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3863|  77.3k|      {
 3864|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3865|       |            read_adjacent<Options>(value, ctx, it, end);
 3866|       |         }
 3867|  77.3k|         else {
 3868|  77.3k|            read_deduced<Options>(value, ctx, it, end);
 3869|  77.3k|         }
 3870|  77.3k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3874|  77.3k|      {
 3875|       |         // In the reader rather than on the variant, because the choice only exists here: writing such
 3876|       |         // a variant is unambiguous, and code that only writes one has nothing to fix.
 3877|  77.3k|         using indistinguishable = variant_indistinguishable_alternatives<T>;
 3878|  77.3k|         static_assert(not indistinguishable::found ||
 3879|  77.3k|                          detail::variant_alternatives_are_indistinguishable<T, typename indistinguishable::first,
 3880|  77.3k|                                                                             typename indistinguishable::second>::value,
 3881|  77.3k|                       "Two alternatives of this variant have the same keys holding the same types and no "
 3882|  77.3k|                       "discriminator, so reading JSON into it cannot tell them apart: every read would silently "
 3883|  77.3k|                       "produce the first, whichever was written. Declare `tag` and `ids` in glz::meta for the "
 3884|  77.3k|                       "variant, or remove one of the two. They are the last two template arguments of "
 3885|  77.3k|                       "variant_alternatives_are_indistinguishable in the instantiation backtrace.");
 3886|       |
 3887|  77.3k|         constexpr auto Opts = ws_handled_off<Options>();
 3888|  77.3k|         if constexpr (variant_is_auto_deducible<T>()) {
 3889|       |            if constexpr (not check_ws_handled(Options)) {
 3890|       |               if (skip_ws<Opts>(ctx, it, end)) {
 3891|       |                  return;
 3892|       |               }
 3893|       |            }
 3894|       |
 3895|  77.3k|            switch (*it) {
 3896|    325|            case '\0':
  ------------------
  |  Branch (3896:13): [True: 325, False: 77.0k]
  ------------------
 3897|    325|               ctx.error = error_code::unexpected_end;
 3898|    325|               return;
 3899|  4.55k|            case '{': {
  ------------------
  |  Branch (3899:13): [True: 4.55k, False: 72.7k]
  ------------------
 3900|       |               // This branch consumes the brace itself and hands the object to a reader with
 3901|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3902|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3903|       |               // the reader below.
 3904|  4.55k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3904:20): [True: 0, False: 4.55k]
  ------------------
 3905|      0|                  return;
 3906|      0|               }
 3907|       |
 3908|  4.55k|               ++it;
 3909|  4.55k|               if constexpr (not Opts.null_terminated) {
 3910|  4.55k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3910:23): [True: 1, False: 4.55k]
  ------------------
 3911|      1|                     ctx.error = error_code::unexpected_end;
 3912|      1|                     return;
 3913|      1|                  }
 3914|  4.55k|               }
 3915|  4.55k|               using type_counts = variant_type_count<T>;
 3916|  4.55k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3917|  4.55k|               if constexpr (n_object_candidates < 1) {
 3918|  4.55k|                  ctx.error = error_code::no_matching_variant_type;
 3919|  4.55k|                  return;
 3920|       |               }
 3921|       |               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3922|       |                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3923|       |                  using V = std::variant_alternative_t<first_idx, T>;
 3924|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 3925|       |                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3926|       |                  return;
 3927|       |               }
 3928|       |               else {
 3929|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3930|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3931|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3932|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3933|       |
 3934|       |                  // Track if we've encountered a tag and what value it had
 3935|       |                  std::optional<size_t> tag_specified_index{};
 3936|       |
 3937|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3938|       |                     return;
 3939|       |                  }
 3940|       |                  // Once the reader knows which alternative this object holds it may have to read
 3941|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3942|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3943|       |                  // from under a raw pointer (see rewind_anchor).
 3944|       |                  auto start = make_rewind_anchor(ctx, it);
 3945|       |                  bool first_key = true;
 3946|       |                  // Parse bifurcation for tagged variants:
 3947|       |                  //
 3948|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3949|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3950|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3951|       |                  //
 3952|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3953|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3954|       |                  // it advances past the trailing comma so the object parser picks up at the
 3955|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3956|       |                  //
 3957|       |                  // One exception: if the tag name is also a field on the resolved struct
 3958|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3959|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3960|       |                  //
 3961|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3962|       |                  // much, and an object wider than it has no start left to return to.
 3963|       |                  auto position_after_tag = [&] {
 3964|       |                     if (first_key) {
 3965|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3966|       |                        return true;
 3967|       |                     }
 3968|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3969|       |                  };
 3970|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3971|       |                  // position_after_tag does for every key but the first.
 3972|       |                  for (; *it != '}'; first_key = false) {
 3973|       |                     if (!first_key) {
 3974|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3975|       |                           return;
 3976|       |                        }
 3977|       |                     }
 3978|       |
 3979|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3983|       |                        return;
 3984|       |                     }
 3985|       |
 3986|       |                     auto* key_start = it;
 3987|       |                     skip_string_view(ctx, it, end);
 3988|       |                     if (bool(ctx.error)) [[unlikely]]
 3989|       |                        return;
 3990|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3991|       |                        return;
 3992|       |                     const sv key = {key_start, size_t(it - key_start)};
 3993|       |
 3994|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3995|       |                        return;
 3996|       |                     }
 3997|       |
 3998|       |                     if constexpr (deduction_key_count > 0) {
 3999|       |                        // We first check if a tag is defined and see if the key matches the tag
 4000|       |                        if constexpr (not tag_v<T>.empty()) {
 4001|       |                           if (key == tag_v<T>) {
 4002|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 4003|       |                                 return;
 4004|       |                              }
 4005|       |
 4006|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 4007|       |
 4008|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 4009|       |                              if constexpr (std::integral<id_type>) {
 4010|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 4011|       |                              }
 4012|       |                              else {
 4013|       |                                 // The id is turned into an index below and never leaves this
 4014|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4015|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4016|       |                              }
 4017|       |                              if (bool(ctx.error)) [[unlikely]]
 4018|       |                                 return;
 4019|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4020|       |                                 return;
 4021|       |                              }
 4022|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4023|       |                                 ctx.error = error_code::syntax_error;
 4024|       |                                 return;
 4025|       |                              }
 4026|       |
 4027|       |                              size_t type_index;
 4028|       |                              if constexpr (std::integral<id_type>) {
 4029|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4030|       |                              }
 4031|       |                              else {
 4032|       |                                 type_index = variant_id_to_index<T>::op(
 4033|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4034|       |                              }
 4035|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4036|       |                                 // Check if the deduced types include the tag-specified type
 4037|       |                                 // If not, the tag doesn't match the fields
 4038|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4039|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4040|       |                                 // Check if the tag-specified type is still possible
 4041|       |                                 const bool type_is_possible = possible_types[type_index];
 4042|       |                                 if (!type_is_possible) {
 4043|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4044|       |                                    ctx.error = error_code::no_matching_variant_type;
 4045|       |                                    return;
 4046|       |                                 }
 4047|       |
 4048|       |                                 if (!position_after_tag()) return;
 4049|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4050|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4051|       |                                 std::visit(
 4052|       |                                    [&](auto&& v) {
 4053|       |                                       using V = std::decay_t<decltype(v)>;
 4054|       |                                       constexpr bool is_object =
 4055|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4056|       |                                       if constexpr (variant_unit_alternative<V>) {
 4057|       |                                          // A unit alternative carries no data; its object holds only the
 4058|       |                                          // discriminator. Consume that body through an empty reflected object so
 4059|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4060|       |                                          detail::variant_unit_body unit_body{};
 4061|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4062|       |                                                                                             tag_literal>(unit_body,
 4063|       |                                                                                                          ctx, it, end);
 4064|       |                                       }
 4065|       |                                       else if constexpr (is_object) {
 4066|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4067|       |                                             // tag is a struct field, must re-parse
 4068|       |                                             if (!start.rewind(ctx, it, end)) return;
 4069|       |                                          }
 4070|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4071|       |                                                                                                           end);
 4072|       |                                       }
 4073|       |                                       else if constexpr (is_memory_object<V>) {
 4074|       |                                          if (!v) {
 4075|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4076|       |                                                if constexpr (requires { v.emplace(); }) {
 4077|       |                                                   v.emplace();
 4078|       |                                                }
 4079|       |                                                else {
 4080|       |                                                   v = typename V::value_type{};
 4081|       |                                                }
 4082|       |                                             }
 4083|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4084|       |                                                v = std::make_unique<typename V::element_type>();
 4085|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4086|       |                                                v = std::make_shared<typename V::element_type>();
 4087|       |                                             else if constexpr (constructible<V>) {
 4088|       |                                                v = meta_construct_v<V>();
 4089|       |                                             }
 4090|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4091|       |                                                                can_allocate_raw_pointer<Opts,
 4092|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4093|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4094|       |                                                   return;
 4095|       |                                                }
 4096|       |                                             }
 4097|       |                                             else {
 4098|       |                                                ctx.error = error_code::invalid_nullable_read;
 4099|       |                                                return;
 4100|       |                                                // Cannot read into unset nullable that is not std::optional,
 4101|       |                                                // std::unique_ptr, or std::shared_ptr
 4102|       |                                             }
 4103|       |                                          }
 4104|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4105|       |                                             // tag is a struct field, must re-parse
 4106|       |                                             if (!start.rewind(ctx, it, end)) return;
 4107|       |                                          }
 4108|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4109|       |                                             *v, ctx, it, end);
 4110|       |                                       }
 4111|       |                                       else if constexpr (custom_read<V>) {
 4112|       |                                          // Custom handlers parse the remaining body themselves and do not
 4113|       |                                          // accept the tag template parameter; the tag was already consumed.
 4114|       |                                          // This only works when the tag was the first key. If it came later,
 4115|       |                                          // we were reset to the object start and the custom handler would
 4116|       |                                          // absorb the tag, so error rather than corrupt the value.
 4117|       |                                          if (!first_key) {
 4118|       |                                             ctx.error = error_code::feature_not_supported;
 4119|       |                                             ctx.custom_error_message =
 4120|       |                                                "the tag must be the first key for a custom variant alternative";
 4121|       |                                             return;
 4122|       |                                          }
 4123|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4124|       |                                       }
 4125|       |                                    },
 4126|       |                                    value);
 4127|       |
 4128|       |                                 return; // we've decoded our target type
 4129|       |                              }
 4130|       |                              else [[unlikely]] {
 4131|       |                                 // Check if we have a default type (ids array shorter than variant)
 4132|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4133|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4134|       |                                 if constexpr (ids_size < variant_size) {
 4135|       |                                    // Use the first unlabeled type as the default
 4136|       |                                    const auto default_type_index = ids_size;
 4137|       |
 4138|       |                                    if (!position_after_tag()) return;
 4139|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4140|       |                                    if (value.index() != default_type_index)
 4141|       |                                       emplace_runtime_variant(value, default_type_index);
 4142|       |                                    std::visit(
 4143|       |                                       [&](auto&& v) {
 4144|       |                                          using V = std::decay_t<decltype(v)>;
 4145|       |                                          constexpr bool is_object =
 4146|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4147|       |                                          if constexpr (variant_unit_alternative<V>) {
 4148|       |                                             // A unit alternative carries no data; its object holds only the
 4149|       |                                             // discriminator. Consume that body through an empty reflected object so
 4150|       |                                             // unknown-key policy and terminator handling match every other
 4151|       |                                             // alternative.
 4152|       |                                             detail::variant_unit_body unit_body{};
 4153|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4154|       |                                                                                                tag_literal>(
 4155|       |                                                unit_body, ctx, it, end);
 4156|       |                                          }
 4157|       |                                          else if constexpr (is_object) {
 4158|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4159|       |                                                // tag is a struct field, must re-parse
 4160|       |                                                if (!start.rewind(ctx, it, end)) return;
 4161|       |                                             }
 4162|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4163|       |                                          }
 4164|       |                                          else if constexpr (is_memory_object<V>) {
 4165|       |                                             if (!v) {
 4166|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4167|       |                                                   if constexpr (requires { v.emplace(); }) {
 4168|       |                                                      v.emplace();
 4169|       |                                                   }
 4170|       |                                                   else {
 4171|       |                                                      v = typename V::value_type{};
 4172|       |                                                   }
 4173|       |                                                }
 4174|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4175|       |                                                   v = std::make_unique<typename V::element_type>();
 4176|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4177|       |                                                   v = std::make_shared<typename V::element_type>();
 4178|       |                                                else if constexpr (constructible<V>) {
 4179|       |                                                   v = meta_construct_v<V>();
 4180|       |                                                }
 4181|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4182|       |                                                                   can_allocate_raw_pointer<
 4183|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4184|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4185|       |                                                      return;
 4186|       |                                                   }
 4187|       |                                                }
 4188|       |                                                else {
 4189|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4190|       |                                                   return;
 4191|       |                                                }
 4192|       |                                             }
 4193|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4194|       |                                                // tag is a struct field, must re-parse
 4195|       |                                                if (!start.rewind(ctx, it, end)) return;
 4196|       |                                             }
 4197|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4198|       |                                                                                                              it, end);
 4199|       |                                          }
 4200|       |                                          else if constexpr (custom_read<V>) {
 4201|       |                                             // Custom handlers parse the remaining body themselves; this only
 4202|       |                                             // works when the tag was the first key (see above). If it came
 4203|       |                                             // later we were reset to the object start, so error rather than
 4204|       |                                             // let the custom handler absorb the tag.
 4205|       |                                             if (!first_key) {
 4206|       |                                                ctx.error = error_code::feature_not_supported;
 4207|       |                                                ctx.custom_error_message =
 4208|       |                                                   "the tag must be the first key for a custom variant alternative";
 4209|       |                                                return;
 4210|       |                                             }
 4211|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4212|       |                                          }
 4213|       |                                       },
 4214|       |                                       value);
 4215|       |
 4216|       |                                    return;
 4217|       |                                 }
 4218|       |                                 else {
 4219|       |                                    ctx.error = error_code::no_matching_variant_type;
 4220|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4221|       |                                    return;
 4222|       |                                 }
 4223|       |                              }
 4224|       |                           }
 4225|       |                        }
 4226|       |
 4227|       |                        // Inline decode_hash lookup for variant deduction
 4228|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4229|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4230|       |                        const auto deduction_index =
 4231|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4232|       |                              key.data(), key.data() + key.size(), key.size());
 4233|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4234|       |                           [[likely]] {
 4235|       |                           possible_types &= deduction_bits[deduction_index];
 4236|       |                        }
 4237|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4238|       |                           ctx.error = error_code::unknown_key;
 4239|       |                           return;
 4240|       |                        }
 4241|       |                     }
 4242|       |                     else if constexpr (not tag_v<T>.empty()) {
 4243|       |                        // empty object case for variant, if there are no normal elements
 4244|       |                        if (key == tag_v<T>) {
 4245|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4246|       |                              return;
 4247|       |                           }
 4248|       |
 4249|       |                           // The id is turned into an index below and never leaves this reader,
 4250|       |                           // so the view of the window it borrows cannot outlive that window.
 4251|       |                           std::string_view type_id{};
 4252|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4253|       |                           if (bool(ctx.error)) [[unlikely]]
 4254|       |                              return;
 4255|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4256|       |                              return;
 4257|       |                           }
 4258|       |
 4259|       |                           const auto type_index = variant_id_to_index<T>::op(
 4260|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4261|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4262|       |                              if (!position_after_tag()) return;
 4263|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4264|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4265|       |                           }
 4266|       |                           else {
 4267|       |                              // Check if we have a default type (ids array shorter than variant)
 4268|       |                              constexpr auto ids_size = ids_v<T>.size();
 4269|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4270|       |                              if constexpr (ids_size < variant_size) {
 4271|       |                                 // Use the first unlabeled type as the default
 4272|       |                                 if (!position_after_tag()) return;
 4273|       |                                 const auto default_index = ids_size;
 4274|       |                                 tag_specified_index = default_index; // Store the default type index
 4275|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4276|       |                              }
 4277|       |                              else {
 4278|       |                                 ctx.error = error_code::no_matching_variant_type;
 4279|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4280|       |                                 return;
 4281|       |                              }
 4282|       |                           }
 4283|       |                           // Parse the type (handles tag skipping and unknown keys)
 4284|       |                           std::visit(
 4285|       |                              [&](auto&& v) {
 4286|       |                                 using V = std::decay_t<decltype(v)>;
 4287|       |                                 if constexpr (custom_read<V>) {
 4288|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4289|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4290|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4291|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4292|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4293|       |                                    // into its value, so error here rather than corrupt the result.
 4294|       |                                    if (!first_key) {
 4295|       |                                       ctx.error = error_code::feature_not_supported;
 4296|       |                                       ctx.custom_error_message =
 4297|       |                                          "the tag must be the first key for a custom variant alternative";
 4298|       |                                       return;
 4299|       |                                    }
 4300|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4301|       |                                 }
 4302|       |                                 else {
 4303|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4304|       |                                       // tag is a struct field, must re-parse
 4305|       |                                       if (!start.rewind(ctx, it, end)) return;
 4306|       |                                    }
 4307|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4308|       |                                 }
 4309|       |                              },
 4310|       |                              value);
 4311|       |                           return;
 4312|       |                        }
 4313|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4314|       |                           ctx.error = error_code::unknown_key;
 4315|       |                           return;
 4316|       |                        }
 4317|       |                        else {
 4318|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4319|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4320|       |                              return;
 4321|       |                           }
 4322|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4323|       |                           if (bool(ctx.error)) [[unlikely]]
 4324|       |                              return;
 4325|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4326|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4327|       |                              return;
 4328|       |                           }
 4329|       |                           continue; // Continue loop to find the tag
 4330|       |                        }
 4331|       |                     }
 4332|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4333|       |                        ctx.error = error_code::unknown_key;
 4334|       |                        return;
 4335|       |                     }
 4336|       |
 4337|       |                     auto matching_types = possible_types.popcount();
 4338|       |                     if (matching_types == 0) {
 4339|       |                        ctx.error = error_code::no_matching_variant_type;
 4340|       |                        return;
 4341|       |                     }
 4342|       |                     // Only short-circuit for variants without tags
 4343|       |                     else if constexpr (tag_v<T>.empty()) {
 4344|       |                        if (matching_types == 1) {
 4345|       |                           if (!start.rewind(ctx, it, end)) return;
 4346|       |                           const auto type_index = possible_types.countr_zero();
 4347|       |
 4348|       |                           if (value.index() != static_cast<size_t>(type_index))
 4349|       |                              emplace_runtime_variant(value, type_index);
 4350|       |                           std::visit(
 4351|       |                              [&](auto&& v) {
 4352|       |                                 using V = std::decay_t<decltype(v)>;
 4353|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4354|       |                                 if constexpr (variant_unit_alternative<V>) {
 4355|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4356|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4357|       |                                    // terminator handling match every other alternative.
 4358|       |                                    detail::variant_unit_body unit_body{};
 4359|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4360|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4361|       |                                                                                                    end);
 4362|       |                                 }
 4363|       |                                 else if constexpr (is_object) {
 4364|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4365|       |                                 }
 4366|       |                                 else if constexpr (is_memory_object<V>) {
 4367|       |                                    if (!v) {
 4368|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4369|       |                                          if constexpr (requires { v.emplace(); }) {
 4370|       |                                             v.emplace();
 4371|       |                                          }
 4372|       |                                          else {
 4373|       |                                             v = typename V::value_type{};
 4374|       |                                          }
 4375|       |                                       }
 4376|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4377|       |                                          v = std::make_unique<typename V::element_type>();
 4378|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4379|       |                                          v = std::make_shared<typename V::element_type>();
 4380|       |                                       else if constexpr (constructible<V>) {
 4381|       |                                          v = meta_construct_v<V>();
 4382|       |                                       }
 4383|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4384|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4385|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4386|       |                                             return;
 4387|       |                                          }
 4388|       |                                       }
 4389|       |                                       else {
 4390|       |                                          ctx.error = error_code::invalid_nullable_read;
 4391|       |                                          return;
 4392|       |                                          // Cannot read into unset nullable that is not std::optional,
 4393|       |                                          // std::unique_ptr, or std::shared_ptr
 4394|       |                                       }
 4395|       |                                    }
 4396|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4397|       |                                       *v, ctx, it, end);
 4398|       |                                 }
 4399|       |                                 else if constexpr (custom_read<V>) {
 4400|       |                                    // Custom handlers parse the remaining body themselves.
 4401|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4402|       |                                 }
 4403|       |                              },
 4404|       |                              value);
 4405|       |
 4406|       |                           return; // we've decoded our target type
 4407|       |                        }
 4408|       |                     }
 4409|       |                     // For tagged variants, continue processing to validate tags
 4410|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4411|       |                        return;
 4412|       |                     }
 4413|       |
 4414|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4415|       |                     if (bool(ctx.error)) [[unlikely]]
 4416|       |                        return;
 4417|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4418|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4419|       |                        return;
 4420|       |                     }
 4421|       |                  }
 4422|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4423|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4424|       |                     // After parsing all keys, check if we have multiple matching types
 4425|       |                     // If so, choose the one with the fewest fields
 4426|       |                     auto final_matching = possible_types.popcount();
 4427|       |                     if (final_matching == 0) {
 4428|       |                        ctx.error = error_code::no_matching_variant_type;
 4429|       |                     }
 4430|       |                     else if (final_matching == 1) {
 4431|       |                        // Single type remains after field deduction
 4432|       |                        const auto type_index = possible_types.countr_zero();
 4433|       |
 4434|       |                        // Validate against tag if one was specified
 4435|       |                        if (tag_specified_index.has_value() &&
 4436|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4437|       |                           ctx.error = error_code::no_matching_variant_type;
 4438|       |                           return;
 4439|       |                        }
 4440|       |
 4441|       |                        if (!start.rewind(ctx, it, end)) return;
 4442|       |                        if (value.index() != static_cast<size_t>(type_index))
 4443|       |                           emplace_runtime_variant(value, type_index);
 4444|       |                        std::visit(
 4445|       |                           [&](auto&& v) {
 4446|       |                              using V = std::decay_t<decltype(v)>;
 4447|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4448|       |                              if constexpr (variant_unit_alternative<V>) {
 4449|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4450|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4451|       |                                 // terminator handling match every other alternative.
 4452|       |                                 detail::variant_unit_body unit_body{};
 4453|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4454|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4455|       |                                                                                                 end);
 4456|       |                              }
 4457|       |                              else if constexpr (is_object) {
 4458|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4459|       |                              }
 4460|       |                              else if constexpr (is_memory_object<V>) {
 4461|       |                                 if (!v) {
 4462|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4463|       |                                       if constexpr (requires { v.emplace(); }) {
 4464|       |                                          v.emplace();
 4465|       |                                       }
 4466|       |                                       else {
 4467|       |                                          v = typename V::value_type{};
 4468|       |                                       }
 4469|       |                                    }
 4470|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4471|       |                                       v = std::make_unique<typename V::element_type>();
 4472|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4473|       |                                       v = std::make_shared<typename V::element_type>();
 4474|       |                                    else if constexpr (constructible<V>) {
 4475|       |                                       v = meta_construct_v<V>();
 4476|       |                                    }
 4477|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4478|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4479|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4480|       |                                          return;
 4481|       |                                       }
 4482|       |                                    }
 4483|       |                                    else {
 4484|       |                                       ctx.error = error_code::invalid_nullable_read;
 4485|       |                                       return;
 4486|       |                                    }
 4487|       |                                 }
 4488|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4489|       |                                                                                                               it, end);
 4490|       |                              }
 4491|       |                              else if constexpr (custom_read<V>) {
 4492|       |                                 // Custom handlers parse the remaining body themselves.
 4493|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4494|       |                              }
 4495|       |                           },
 4496|       |                           value);
 4497|       |                     }
 4498|       |                     else if (final_matching > 1) {
 4499|       |                        constexpr auto N = std::variant_size_v<T>;
 4500|       |
 4501|       |                        // Compile-time array of field counts for each variant type
 4502|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4503|       |                           return std::array<size_t, N> {
 4504|       |                              ([]<size_t J = I>() -> size_t {
 4505|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4506|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4507|       |                                    return reflect<V>::size;
 4508|       |                                 }
 4509|       |                                 else if constexpr (is_memory_object<V>) {
 4510|       |                                    using X = memory_type<V>;
 4511|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4512|       |                                       return reflect<X>::size;
 4513|       |                                    }
 4514|       |                                    else {
 4515|       |                                       return (std::numeric_limits<size_t>::max)();
 4516|       |                                    }
 4517|       |                                 }
 4518|       |                                 else {
 4519|       |                                    return (std::numeric_limits<size_t>::max)();
 4520|       |                                 }
 4521|       |                              }.template operator()<I>())...
 4522|       |                           };
 4523|       |                        }(std::make_index_sequence<N>{});
 4524|       |
 4525|       |                        // Find the type with minimum field count among the possible types
 4526|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4527|       |                        size_t chosen_index = N; // Invalid index initially
 4528|       |
 4529|       |                        for (size_t i = 0; i < N; ++i) {
 4530|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4531|       |                              min_fields = field_counts[i];
 4532|       |                              chosen_index = i;
 4533|       |                           }
 4534|       |                        }
 4535|       |
 4536|       |                        if (chosen_index < N) {
 4537|       |                           // Validate against tag if one was specified
 4538|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4539|       |                              ctx.error = error_code::no_matching_variant_type;
 4540|       |                              return;
 4541|       |                           }
 4542|       |
 4543|       |                           if (!start.rewind(ctx, it, end)) return;
 4544|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4545|       |                           std::visit(
 4546|       |                              [&](auto&& v) {
 4547|       |                                 using V = std::decay_t<decltype(v)>;
 4548|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4549|       |                                 if constexpr (variant_unit_alternative<V>) {
 4550|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4551|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4552|       |                                    // terminator handling match every other alternative.
 4553|       |                                    detail::variant_unit_body unit_body{};
 4554|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4555|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4556|       |                                                                                                    end);
 4557|       |                                 }
 4558|       |                                 else if constexpr (is_object) {
 4559|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4560|       |                                 }
 4561|       |                                 else if constexpr (is_memory_object<V>) {
 4562|       |                                    if (!v) {
 4563|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4564|       |                                          if constexpr (requires { v.emplace(); }) {
 4565|       |                                             v.emplace();
 4566|       |                                          }
 4567|       |                                          else {
 4568|       |                                             v = typename V::value_type{};
 4569|       |                                          }
 4570|       |                                       }
 4571|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4572|       |                                          v = std::make_unique<typename V::element_type>();
 4573|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4574|       |                                          v = std::make_shared<typename V::element_type>();
 4575|       |                                       else if constexpr (constructible<V>) {
 4576|       |                                          v = meta_construct_v<V>();
 4577|       |                                       }
 4578|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4579|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4580|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4581|       |                                             return;
 4582|       |                                          }
 4583|       |                                       }
 4584|       |                                       else {
 4585|       |                                          ctx.error = error_code::invalid_nullable_read;
 4586|       |                                          return;
 4587|       |                                       }
 4588|       |                                    }
 4589|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4590|       |                                       *v, ctx, it, end);
 4591|       |                                 }
 4592|       |                                 else if constexpr (custom_read<V>) {
 4593|       |                                    // Custom handlers parse the remaining body themselves.
 4594|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4595|       |                                 }
 4596|       |                              },
 4597|       |                              value);
 4598|       |                        }
 4599|       |                        else {
 4600|       |                           ctx.error = error_code::no_matching_variant_type;
 4601|       |                        }
 4602|       |                     }
 4603|       |                  }
 4604|       |                  else {
 4605|       |                     // For variants with 0 or 1 object types, use the original error handling
 4606|       |                     ctx.error = error_code::no_matching_variant_type;
 4607|       |                  }
 4608|       |               }
 4609|      0|               break;
 4610|  4.55k|            }
 4611|  3.45k|            case '[':
  ------------------
  |  Branch (4611:13): [True: 3.45k, False: 73.8k]
  ------------------
 4612|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4613|  3.45k|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4614|  3.45k|               break;
 4615|  5.52k|            case '"': {
  ------------------
  |  Branch (4615:13): [True: 5.52k, False: 71.8k]
  ------------------
 4616|  5.52k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4617|  5.52k|               break;
 4618|  4.55k|            }
 4619|    733|            case 't':
  ------------------
  |  Branch (4619:13): [True: 733, False: 76.6k]
  ------------------
 4620|  1.04k|            case 'f': {
  ------------------
  |  Branch (4620:13): [True: 307, False: 77.0k]
  ------------------
 4621|  1.04k|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4622|  1.04k|               break;
 4623|    733|            }
 4624|  1.23k|            case 'n':
  ------------------
  |  Branch (4624:13): [True: 1.23k, False: 76.1k]
  ------------------
 4625|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4626|       |                  ctx.error = error_code::no_matching_variant_type;
 4627|       |               }
 4628|  1.23k|               else {
 4629|  1.23k|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4630|  1.23k|                  using V = std::variant_alternative_t<first_idx, T>;
 4631|  1.23k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4631:23): [True: 278, False: 960]
  ------------------
 4632|  1.23k|                  match<"null", Opts>(ctx, it, end);
 4633|  1.23k|               }
 4634|  1.23k|               break;
 4635|  61.2k|            default: {
  ------------------
  |  Branch (4635:13): [True: 61.2k, False: 16.1k]
  ------------------
 4636|       |               // Not bool, string, object, or array so must be number or null
 4637|  61.2k|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4638|  61.2k|            }
 4639|  77.3k|            }
 4640|       |         }
 4641|       |         else {
 4642|       |            // For non-auto-deducible variants, try each type until one succeeds
 4643|       |            constexpr auto N = std::variant_size_v<T>;
 4644|       |            bool parsed = false;
 4645|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4646|       |
 4647|       |            for_each<N>([&]<size_t I>() {
 4648|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4649|       |
 4650|       |               auto copy_it = it;
 4651|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4652|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4653|       |               const auto copy_depth = ctx.depth;
 4654|       |
 4655|       |               // Try parsing as this type
 4656|       |               if (value.index() != I) {
 4657|       |                  emplace_runtime_variant(value, I);
 4658|       |               }
 4659|       |
 4660|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4661|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4662|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4663|       |               }
 4664|       |
 4665|       |               if (!bool(ctx.error)) {
 4666|       |                  parsed = true;
 4667|       |               }
 4668|       |               else if constexpr (not Options.null_terminated) {
 4669|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4670|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4671|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4672|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4673|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4674|       |                     parsed = true;
 4675|       |                     ctx.error = error_code::none;
 4676|       |                  }
 4677|       |                  else {
 4678|       |                     // Reset for next attempt (unless this is the last type)
 4679|       |                     it = copy_it;
 4680|       |                     rewind_depth<Options>(ctx, copy_depth);
 4681|       |                     if constexpr (I + 1 < N) {
 4682|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4683|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4684|       |                        }
 4685|       |                     }
 4686|       |                  }
 4687|       |               }
 4688|       |               else {
 4689|       |                  // Reset for next attempt (unless this is the last type)
 4690|       |                  it = copy_it;
 4691|       |                  rewind_depth<Options>(ctx, copy_depth);
 4692|       |                  if constexpr (I + 1 < N) {
 4693|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4694|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4695|       |                     }
 4696|       |                  }
 4697|       |               }
 4698|       |            });
 4699|       |         }
 4700|  77.3k|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3523|  6.06k|      {
 3524|  6.06k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|  6.06k|         if constexpr (category_count == 0) {
 3527|  6.06k|            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|       |         else {
 3530|       |            constexpr auto N = std::variant_size_v<Variant>;
 3531|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|       |            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|       |            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|       |            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|       |               size_t non_const_idx = 0;
 3591|       |
 3592|       |               for_each<N>([&]<size_t I>() {
 3593|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|       |                     return;
 3595|       |                  }
 3596|       |                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|       |               });
 3648|       |               if (!found_match) {
 3649|       |                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|       |               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|       |         }
 3662|  6.06k|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3523|  9.26k|      {
 3524|  9.26k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|       |         if constexpr (category_count == 0) {
 3527|       |            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|  9.26k|         else {
 3530|  9.26k|            constexpr auto N = std::variant_size_v<Variant>;
 3531|  9.26k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|  9.26k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|  9.26k|            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|  9.26k|            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|  9.26k|            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|  9.26k|               size_t non_const_idx = 0;
 3591|       |
 3592|  9.26k|               for_each<N>([&]<size_t I>() {
 3593|  9.26k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|  9.26k|                     return;
 3595|  9.26k|                  }
 3596|  9.26k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  9.26k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  9.26k|                     auto copy_it{it};
 3599|  9.26k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  9.26k|                     if (!std::holds_alternative<V>(value)) {
 3601|  9.26k|                        value = V{};
 3602|  9.26k|                     }
 3603|  9.26k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  9.26k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|  9.26k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|  9.26k|                     }
 3607|  9.26k|                     if (!bool(ctx.error)) {
 3608|  9.26k|                        found_match = true;
 3609|  9.26k|                     }
 3610|  9.26k|                     else if constexpr (not Options.null_terminated) {
 3611|  9.26k|                        constexpr bool is_complete_type =
 3612|  9.26k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|  9.26k|                        if constexpr (is_complete_type) {
 3615|  9.26k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|  9.26k|                              found_match = true;
 3617|  9.26k|                              ctx.error = error_code::none;
 3618|  9.26k|                           }
 3619|  9.26k|                           else {
 3620|  9.26k|                              it = copy_it;
 3621|  9.26k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|  9.26k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|  9.26k|                                  not variant_alternative_exhausted(ctx)) {
 3624|  9.26k|                                 ctx.error = error_code::none;
 3625|  9.26k|                              }
 3626|  9.26k|                           }
 3627|  9.26k|                        }
 3628|  9.26k|                        else {
 3629|  9.26k|                           it = copy_it;
 3630|  9.26k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|  9.26k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|  9.26k|                               not variant_alternative_exhausted(ctx)) {
 3633|  9.26k|                              ctx.error = error_code::none;
 3634|  9.26k|                           }
 3635|  9.26k|                        }
 3636|  9.26k|                     }
 3637|  9.26k|                     else {
 3638|  9.26k|                        it = copy_it;
 3639|  9.26k|                        rewind_depth<Options>(ctx, copy_depth);
 3640|  9.26k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|  9.26k|                            not variant_alternative_exhausted(ctx)) {
 3642|  9.26k|                           ctx.error = error_code::none;
 3643|  9.26k|                        }
 3644|  9.26k|                     }
 3645|  9.26k|                     ++non_const_idx;
 3646|  9.26k|                  }
 3647|  9.26k|               });
 3648|  9.26k|               if (!found_match) {
  ------------------
  |  Branch (3648:20): [True: 3.84k, False: 5.41k]
  ------------------
 3649|  3.84k|                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|  3.84k|               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|  9.26k|         }
 3662|  9.26k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3592|  9.26k|               for_each<N>([&]<size_t I>() {
 3593|  9.26k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 9.26k]
  |  Branch (3593:38): [True: 0, False: 9.26k]
  |  Branch (3593:51): [True: 0, False: 9.26k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  9.26k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  9.26k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3592|  9.26k|               for_each<N>([&]<size_t I>() {
 3593|  9.26k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 9.26k]
  |  Branch (3593:38): [True: 0, False: 9.26k]
  |  Branch (3593:51): [True: 0, False: 9.26k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  9.26k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  9.26k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  9.26k|                     auto copy_it{it};
 3599|  9.26k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  9.26k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3600:26): [True: 8.93k, False: 323]
  ------------------
 3601|  8.93k|                        value = V{};
 3602|  8.93k|                     }
 3603|  9.26k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  9.26k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3604:26): [True: 3.84k, False: 5.41k]
  |  Branch (3604:45): [True: 0, False: 3.84k]
  ------------------
 3605|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|      0|                     }
 3607|  9.26k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3607:26): [True: 5.41k, False: 3.84k]
  ------------------
 3608|  5.41k|                        found_match = true;
 3609|  5.41k|                     }
 3610|  3.84k|                     else if constexpr (not Options.null_terminated) {
 3611|  3.84k|                        constexpr bool is_complete_type =
 3612|  3.84k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3612:28): [Folded, False: 0]
  |  Branch (3612:40): [Folded, False: 0]
  |  Branch (3612:53): [Folded, False: 0]
  |  Branch (3612:68): [Folded, False: 0]
  |  Branch (3612:89): [Folded, False: 0]
  |  Branch (3612:103): [Folded, False: 0]
  ------------------
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|  3.84k|                        else {
 3629|  3.84k|                           it = copy_it;
 3630|  3.84k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|  3.84k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3631:32): [True: 0, False: 3.84k]
  |  Branch (3631:71): [True: 0, False: 0]
  ------------------
 3632|      0|                               not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3632:32): [True: 0, False: 0]
  ------------------
 3633|      0|                              ctx.error = error_code::none;
 3634|      0|                           }
 3635|  3.84k|                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|  9.26k|                     ++non_const_idx;
 3646|  9.26k|                  }
 3647|  9.26k|               });
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   50|  9.26k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  9.26k|         else {
   61|  9.26k|            using V = std::remove_cvref_t<T>;
   62|  9.26k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  9.26k|                                             end);
   64|  9.26k|         }
   65|  9.26k|      }
_ZN3glz4fromILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEELb0ERPKcSA_S5_TkNS_10is_contextERNS_7contextEQntcl22check_string_as_numberTL0__EEEvRT3_OT4_OT1_T2_:
 1607|  9.26k|      {
 1608|  9.26k|         if constexpr (!check_opening_handled(Opts)) {
 1609|       |            if constexpr (!check_ws_handled(Opts)) {
 1610|       |               if (skip_ws<Opts>(ctx, it, end)) {
 1611|       |                  return;
 1612|       |               }
 1613|       |            }
 1614|       |
 1615|  9.26k|            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (1615:17): [True: 3, False: 9.25k]
  ------------------
 1616|      3|               return;
 1617|      3|            }
 1618|  9.26k|         }
 1619|       |
 1620|  9.25k|         auto start = it;
 1621|  9.26k|         skip_string_view(ctx, it, end);
 1622|  9.26k|         if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (1622:14): [True: 18, False: 9.24k]
  ------------------
 1623|     18|            return;
 1624|       |
 1625|  9.24k|         if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]] {
  ------------------
  |  Branch (1625:14): [True: 85, False: 9.15k]
  ------------------
 1626|     85|            return;
 1627|     85|         }
 1628|       |
 1629|  9.15k|         if constexpr (string_view_t<T>) {
 1630|  9.15k|            if constexpr (!Transient) {
 1631|  9.15k|               GLZ_ASSERT_OWNS_ITS_BYTES(decltype(ctx));
  ------------------
  |  |  242|  9.15k|   static_assert(!::glz::has_streaming_state<Ctx>,                                                              \
  |  |  243|  9.15k|                 "This read fills a non-owning view (std::string_view, glz::raw_json_view, glz::text_view, or " \
  |  |  244|  9.15k|                 "a std::span) that would point into the streaming window. A streaming read refills that "      \
  |  |  245|  9.15k|                 "window as it goes, so the view would address overwritten bytes by the time the read "         \
  |  |  246|  9.15k|                 "returns, and the read would report success while handing back silently wrong data. Read "     \
  |  |  247|  9.15k|                 "into the owning equivalent instead (std::string, glz::raw_json, glz::text, or an owning "     \
  |  |  248|  9.15k|                 "container), or read from a buffer that holds the whole document.")
  ------------------
 1632|  9.15k|            }
 1633|  9.15k|            using value_type = typename std::decay_t<T>::value_type;
 1634|       |            if constexpr (std::same_as<value_type, char8_t>) {
 1635|       |               value = {reinterpret_cast<const char8_t*>(start), size_t(it - start)};
 1636|       |            }
 1637|  9.15k|            else {
 1638|  9.15k|               value = {start, size_t(it - start)};
 1639|  9.15k|            }
 1640|       |         }
 1641|       |         else if constexpr (char_array_t<T>) {
 1642|       |            const size_t n = it - start;
 1643|       |            if ((n + 1) > sizeof(value)) {
 1644|       |               ctx.error = error_code::unexpected_end;
 1645|       |               return;
 1646|       |            }
 1647|       |            std::memcpy(value, start, n);
 1648|       |            value[n] = '\0';
 1649|       |         }
 1650|       |         else if constexpr (array_char_t<T>) {
 1651|       |            const size_t n = it - start;
 1652|       |            if ((n + 1) > value.size()) {
 1653|       |               ctx.error = error_code::unexpected_end;
 1654|       |               return;
 1655|       |            }
 1656|       |            std::memcpy(value.data(), start, n);
 1657|       |            value[n] = '\0';
 1658|       |         }
 1659|       |         else if constexpr (static_string_t<T>) {
 1660|       |            const size_t n = it - start;
 1661|       |            if (n > value.capacity()) {
 1662|       |               ctx.error = error_code::unexpected_end;
 1663|       |               return;
 1664|       |            }
 1665|       |            value.assign(start, n);
 1666|       |         }
 1667|  9.15k|         ++it; // skip closing quote
 1668|  9.15k|         if constexpr (not Opts.null_terminated) {
 1669|  9.15k|            if (it == end) {
  ------------------
  |  Branch (1669:17): [True: 3.74k, False: 5.41k]
  ------------------
 1670|  3.74k|               ctx.error = error_code::end_reached;
 1671|  3.74k|               return;
 1672|  3.74k|            }
 1673|  9.15k|         }
 1674|  9.15k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3592|  9.26k|               for_each<N>([&]<size_t I>() {
 3593|  9.26k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 5.41k, False: 3.84k]
  |  Branch (3593:38): [True: 0, False: 3.84k]
  |  Branch (3593:51): [True: 0, False: 3.84k]
  ------------------
 3594|  5.41k|                     return;
 3595|  5.41k|                  }
 3596|  3.84k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  3.84k|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_15is_variant_boolEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3523|  1.71k|      {
 3524|  1.71k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|  1.71k|         if constexpr (category_count == 0) {
 3527|  1.71k|            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|       |         else {
 3530|       |            constexpr auto N = std::variant_size_v<Variant>;
 3531|       |            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|       |            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|       |            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|       |            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|       |            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|       |               size_t non_const_idx = 0;
 3591|       |
 3592|       |               for_each<N>([&]<size_t I>() {
 3593|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|       |                     return;
 3595|       |                  }
 3596|       |                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|       |               });
 3648|       |               if (!found_match) {
 3649|       |                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|       |               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|       |         }
 3662|  1.71k|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_:
 3523|  71.2k|      {
 3524|  71.2k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|       |         if constexpr (category_count == 0) {
 3527|       |            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|  71.2k|         else {
 3530|  71.2k|            constexpr auto N = std::variant_size_v<Variant>;
 3531|  71.2k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|  71.2k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|  71.2k|            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|  71.2k|            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|  71.2k|            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|  71.2k|               size_t non_const_idx = 0;
 3591|       |
 3592|  71.2k|               for_each<N>([&]<size_t I>() {
 3593|  71.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|  71.2k|                     return;
 3595|  71.2k|                  }
 3596|  71.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  71.2k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  71.2k|                     auto copy_it{it};
 3599|  71.2k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  71.2k|                     if (!std::holds_alternative<V>(value)) {
 3601|  71.2k|                        value = V{};
 3602|  71.2k|                     }
 3603|  71.2k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  71.2k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|  71.2k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|  71.2k|                     }
 3607|  71.2k|                     if (!bool(ctx.error)) {
 3608|  71.2k|                        found_match = true;
 3609|  71.2k|                     }
 3610|  71.2k|                     else if constexpr (not Options.null_terminated) {
 3611|  71.2k|                        constexpr bool is_complete_type =
 3612|  71.2k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|  71.2k|                        if constexpr (is_complete_type) {
 3615|  71.2k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|  71.2k|                              found_match = true;
 3617|  71.2k|                              ctx.error = error_code::none;
 3618|  71.2k|                           }
 3619|  71.2k|                           else {
 3620|  71.2k|                              it = copy_it;
 3621|  71.2k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|  71.2k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|  71.2k|                                  not variant_alternative_exhausted(ctx)) {
 3624|  71.2k|                                 ctx.error = error_code::none;
 3625|  71.2k|                              }
 3626|  71.2k|                           }
 3627|  71.2k|                        }
 3628|  71.2k|                        else {
 3629|  71.2k|                           it = copy_it;
 3630|  71.2k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|  71.2k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|  71.2k|                               not variant_alternative_exhausted(ctx)) {
 3633|  71.2k|                              ctx.error = error_code::none;
 3634|  71.2k|                           }
 3635|  71.2k|                        }
 3636|  71.2k|                     }
 3637|  71.2k|                     else {
 3638|  71.2k|                        it = copy_it;
 3639|  71.2k|                        rewind_depth<Options>(ctx, copy_depth);
 3640|  71.2k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|  71.2k|                            not variant_alternative_exhausted(ctx)) {
 3642|  71.2k|                           ctx.error = error_code::none;
 3643|  71.2k|                        }
 3644|  71.2k|                     }
 3645|  71.2k|                     ++non_const_idx;
 3646|  71.2k|                  }
 3647|  71.2k|               });
 3648|  71.2k|               if (!found_match) {
  ------------------
  |  Branch (3648:20): [True: 16.6k, False: 54.6k]
  ------------------
 3649|  16.6k|                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|  16.6k|               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|  71.2k|         }
 3662|  71.2k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3592|  71.2k|               for_each<N>([&]<size_t I>() {
 3593|  71.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 71.2k]
  |  Branch (3593:38): [True: 0, False: 71.2k]
  |  Branch (3593:51): [True: 0, False: 71.2k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  71.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  71.2k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3592|  71.2k|               for_each<N>([&]<size_t I>() {
 3593|  71.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 71.2k]
  |  Branch (3593:38): [True: 0, False: 71.2k]
  |  Branch (3593:51): [True: 0, False: 71.2k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  71.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  71.2k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSG_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3592|  71.2k|               for_each<N>([&]<size_t I>() {
 3593|  71.2k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 71.2k]
  |  Branch (3593:38): [True: 0, False: 71.2k]
  |  Branch (3593:51): [True: 0, False: 71.2k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  71.2k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  71.2k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  71.2k|                     auto copy_it{it};
 3599|  71.2k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  71.2k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3600:26): [True: 54.0k, False: 17.2k]
  ------------------
 3601|  54.0k|                        value = V{};
 3602|  54.0k|                     }
 3603|  71.2k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  71.2k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3604:26): [True: 19.6k, False: 51.6k]
  |  Branch (3604:45): [True: 0, False: 19.6k]
  ------------------
 3605|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|      0|                     }
 3607|  71.2k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3607:26): [True: 51.6k, False: 19.6k]
  ------------------
 3608|  51.6k|                        found_match = true;
 3609|  51.6k|                     }
 3610|  19.6k|                     else if constexpr (not Options.null_terminated) {
 3611|  19.6k|                        constexpr bool is_complete_type =
 3612|  19.6k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3612:28): [True: 19.6k, Folded]
  |  Branch (3612:40): [Folded, False: 0]
  |  Branch (3612:53): [Folded, False: 0]
  |  Branch (3612:68): [Folded, False: 0]
  |  Branch (3612:89): [Folded, False: 0]
  |  Branch (3612:103): [Folded, False: 0]
  ------------------
 3613|       |
 3614|  19.6k|                        if constexpr (is_complete_type) {
 3615|  19.6k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3615:32): [True: 2.94k, False: 16.6k]
  |  Branch (3615:72): [True: 2.94k, False: 0]
  |  Branch (3615:88): [True: 2.94k, False: 0]
  ------------------
 3616|  2.94k|                              found_match = true;
 3617|  2.94k|                              ctx.error = error_code::none;
 3618|  2.94k|                           }
 3619|  16.6k|                           else {
 3620|  16.6k|                              it = copy_it;
 3621|  16.6k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|  16.6k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3622:35): [True: 0, False: 16.6k]
  |  Branch (3622:74): [True: 0, False: 0]
  ------------------
 3623|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3623:35): [True: 0, False: 0]
  ------------------
 3624|      0|                                 ctx.error = error_code::none;
 3625|      0|                              }
 3626|  16.6k|                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|  71.2k|                     ++non_const_idx;
 3646|  71.2k|                  }
 3647|  71.2k|               });
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERlTkNS_10is_contextERNS_7contextERPKcS8_EEvOT0_OT1_OT2_T3_:
   50|  71.2k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  71.2k|         else {
   61|  71.2k|            using V = std::remove_cvref_t<T>;
   62|  71.2k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  71.2k|                                             end);
   64|  71.2k|         }
   65|  71.2k|      }
_ZN3glz4fromILj10ElE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERPKcRlTkNS_10is_contextERNS_7contextES5_EEvOT1_OT2_OT0_T3_:
  764|  71.2k|      {
  765|       |         if constexpr (check_quoted_num(Opts)) {
  766|       |            if (skip_ws<Opts>(ctx, it, end)) {
  767|       |               return;
  768|       |            }
  769|       |            if (match_invalid_end<'"', Opts>(ctx, it, end)) {
  770|       |               return;
  771|       |            }
  772|       |         }
  773|       |
  774|       |         if constexpr (!check_ws_handled(Opts)) {
  775|       |            if (skip_ws<Opts>(ctx, it, end)) {
  776|       |               return;
  777|       |            }
  778|       |         }
  779|       |
  780|  71.2k|         using V = std::decay_t<decltype(value)>;
  781|  71.2k|         if constexpr (int_t<V>) {
  782|  71.2k|            static_assert(sizeof(*it) == sizeof(char));
  783|       |
  784|       |            if constexpr (Opts.null_terminated) {
  785|       |               if (not glz::atoi(value, it)) [[unlikely]] {
  786|       |                  ctx.error = error_code::parse_number_failure;
  787|       |                  return;
  788|       |               }
  789|       |            }
  790|  71.2k|            else {
  791|  71.2k|               if (not glz::atoi(value, it, end)) [[unlikely]] {
  ------------------
  |  Branch (791:20): [True: 16.6k, False: 54.6k]
  ------------------
  792|  16.6k|                  ctx.error = error_code::parse_number_failure;
  793|  16.6k|                  return;
  794|  16.6k|               }
  795|  71.2k|            }
  796|       |         }
  797|       |         else {
  798|       |// float128_t requires std::from_chars for floating-point, unavailable on older Apple platforms (iOS < 16.3)
  799|       |#if !defined(_LIBCPP_VERSION) || defined(_LIBCPP_AVAILABILITY_HAS_TO_CHARS_FLOATING_POINT)
  800|       |            if constexpr (is_float128<V>) {
  801|       |               auto [ptr, ec] = std::from_chars(it, end, value);
  802|       |               if (ec != std::errc()) {
  803|       |                  ctx.error = error_code::parse_number_failure;
  804|       |                  return;
  805|       |               }
  806|       |               it = ptr;
  807|       |            }
  808|       |            else
  809|       |#endif
  810|       |            {
  811|       |               if constexpr (std::is_volatile_v<std::remove_reference_t<decltype(value)>>) {
  812|       |                  // Hardware may interact with value changes, so we parse into a temporary and assign in one
  813|       |                  // place
  814|       |                  V temp;
  815|       |                  if constexpr (is_size_optimized(Opts)) {
  816|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, temp);
  817|       |                     if (ec != std::errc{}) [[unlikely]] {
  818|       |                        ctx.error = error_code::parse_number_failure;
  819|       |                        return;
  820|       |                     }
  821|       |                     it = ptr;
  822|       |                  }
  823|       |                  else {
  824|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, temp);
  825|       |                     if (ec != std::errc()) [[unlikely]] {
  826|       |                        ctx.error = error_code::parse_number_failure;
  827|       |                        return;
  828|       |                     }
  829|       |                     it = ptr;
  830|       |                  }
  831|       |                  value = temp;
  832|       |               }
  833|       |               else {
  834|       |                  if constexpr (is_size_optimized(Opts)) {
  835|       |                     auto [ptr, ec] = simple_float::from_chars<Opts.null_terminated>(it, end, value);
  836|       |                     if (ec != std::errc{}) [[unlikely]] {
  837|       |                        ctx.error = error_code::parse_number_failure;
  838|       |                        return;
  839|       |                     }
  840|       |                     it = ptr;
  841|       |                  }
  842|       |                  else {
  843|       |                     auto [ptr, ec] = glz::from_chars<Opts.null_terminated>(it, end, value);
  844|       |                     if (ec != std::errc()) [[unlikely]] {
  845|       |                        ctx.error = error_code::parse_number_failure;
  846|       |                        return;
  847|       |                     }
  848|       |                     it = ptr;
  849|       |                  }
  850|       |               }
  851|       |            }
  852|       |         }
  853|       |
  854|       |         if constexpr (check_quoted_num(Opts)) {
  855|       |            if constexpr (not Opts.null_terminated) {
  856|       |               if (it == end) [[unlikely]] {
  857|       |                  ctx.error = error_code::unexpected_end;
  858|       |                  return;
  859|       |               }
  860|       |            }
  861|       |            if (match<'"'>(ctx, it)) {
  862|       |               return;
  863|       |            }
  864|       |            if constexpr (not Opts.null_terminated) {
  865|       |               if (it == end) {
  866|       |                  ctx.error = error_code::end_reached;
  867|       |                  return;
  868|       |               }
  869|       |            }
  870|       |         }
  871|  71.2k|         else {
  872|  71.2k|            if constexpr (not Opts.null_terminated) {
  873|  71.2k|               if (it == end) {
  ------------------
  |  Branch (873:20): [True: 2.94k, False: 68.3k]
  ------------------
  874|  2.94k|                  ctx.error = error_code::end_reached;
  875|  2.94k|                  return;
  876|  2.94k|               }
  877|  71.2k|            }
  878|  71.2k|         }
  879|  71.2k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS4_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEERNS_4skipETkNS_10is_contextERNS_7contextERPKcSB_EEvOT0_OT1_OT2_T3_:
   50|   225k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|   225k|         else {
   61|   225k|            using V = std::remove_cvref_t<T>;
   62|   225k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|   225k|                                             end);
   64|   225k|         }
   65|   225k|      }
_ZN3glz4fromILj10ENS_4skipEE2opITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEERS1_TkNS_10is_contextERNS_7contextEJRPKcSC_EEEvOT0_OT1_DpOT2_:
  571|   225k|      {
  572|   225k|         skip_value<JSON>::op<Opts>(ctx, args...);
  573|   225k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJDnNS4_17basic_string_viewIcNS4_11char_traitsIcEEEElEEETkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
   50|  21.5k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  21.5k|         else {
   61|  21.5k|            using V = std::remove_cvref_t<T>;
   62|  21.5k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  21.5k|                                             end);
   64|  21.5k|         }
   65|  21.5k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3863|  21.5k|      {
 3864|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3865|       |            read_adjacent<Options>(value, ctx, it, end);
 3866|       |         }
 3867|  21.5k|         else {
 3868|  21.5k|            read_deduced<Options>(value, ctx, it, end);
 3869|  21.5k|         }
 3870|  21.5k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT0_OT1_OT2_T3_:
 3874|  21.5k|      {
 3875|       |         // In the reader rather than on the variant, because the choice only exists here: writing such
 3876|       |         // a variant is unambiguous, and code that only writes one has nothing to fix.
 3877|  21.5k|         using indistinguishable = variant_indistinguishable_alternatives<T>;
 3878|  21.5k|         static_assert(not indistinguishable::found ||
 3879|  21.5k|                          detail::variant_alternatives_are_indistinguishable<T, typename indistinguishable::first,
 3880|  21.5k|                                                                             typename indistinguishable::second>::value,
 3881|  21.5k|                       "Two alternatives of this variant have the same keys holding the same types and no "
 3882|  21.5k|                       "discriminator, so reading JSON into it cannot tell them apart: every read would silently "
 3883|  21.5k|                       "produce the first, whichever was written. Declare `tag` and `ids` in glz::meta for the "
 3884|  21.5k|                       "variant, or remove one of the two. They are the last two template arguments of "
 3885|  21.5k|                       "variant_alternatives_are_indistinguishable in the instantiation backtrace.");
 3886|       |
 3887|  21.5k|         constexpr auto Opts = ws_handled_off<Options>();
 3888|  21.5k|         if constexpr (variant_is_auto_deducible<T>()) {
 3889|  21.5k|            if constexpr (not check_ws_handled(Options)) {
 3890|  21.5k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3890:20): [True: 0, False: 21.5k]
  ------------------
 3891|      0|                  return;
 3892|      0|               }
 3893|  21.5k|            }
 3894|       |
 3895|  21.5k|            switch (*it) {
 3896|      0|            case '\0':
  ------------------
  |  Branch (3896:13): [True: 0, False: 21.5k]
  ------------------
 3897|      0|               ctx.error = error_code::unexpected_end;
 3898|      0|               return;
 3899|  4.20k|            case '{': {
  ------------------
  |  Branch (3899:13): [True: 4.20k, False: 17.3k]
  ------------------
 3900|       |               // This branch consumes the brace itself and hands the object to a reader with
 3901|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3902|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3903|       |               // the reader below.
 3904|  4.20k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3904:20): [True: 0, False: 4.20k]
  ------------------
 3905|      0|                  return;
 3906|      0|               }
 3907|       |
 3908|  4.20k|               ++it;
 3909|  4.20k|               if constexpr (not Opts.null_terminated) {
 3910|  4.20k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3910:23): [True: 0, False: 4.20k]
  ------------------
 3911|      0|                     ctx.error = error_code::unexpected_end;
 3912|      0|                     return;
 3913|      0|                  }
 3914|  4.20k|               }
 3915|  4.20k|               using type_counts = variant_type_count<T>;
 3916|  4.20k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3917|  4.20k|               if constexpr (n_object_candidates < 1) {
 3918|  4.20k|                  ctx.error = error_code::no_matching_variant_type;
 3919|  4.20k|                  return;
 3920|       |               }
 3921|       |               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3922|       |                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3923|       |                  using V = std::variant_alternative_t<first_idx, T>;
 3924|       |                  if (!std::holds_alternative<V>(value)) value = V{};
 3925|       |                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3926|       |                  return;
 3927|       |               }
 3928|       |               else {
 3929|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3930|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3931|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3932|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3933|       |
 3934|       |                  // Track if we've encountered a tag and what value it had
 3935|       |                  std::optional<size_t> tag_specified_index{};
 3936|       |
 3937|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3938|       |                     return;
 3939|       |                  }
 3940|       |                  // Once the reader knows which alternative this object holds it may have to read
 3941|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3942|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3943|       |                  // from under a raw pointer (see rewind_anchor).
 3944|       |                  auto start = make_rewind_anchor(ctx, it);
 3945|       |                  bool first_key = true;
 3946|       |                  // Parse bifurcation for tagged variants:
 3947|       |                  //
 3948|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3949|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3950|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3951|       |                  //
 3952|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3953|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3954|       |                  // it advances past the trailing comma so the object parser picks up at the
 3955|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3956|       |                  //
 3957|       |                  // One exception: if the tag name is also a field on the resolved struct
 3958|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3959|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3960|       |                  //
 3961|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3962|       |                  // much, and an object wider than it has no start left to return to.
 3963|       |                  auto position_after_tag = [&] {
 3964|       |                     if (first_key) {
 3965|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3966|       |                        return true;
 3967|       |                     }
 3968|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3969|       |                  };
 3970|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3971|       |                  // position_after_tag does for every key but the first.
 3972|       |                  for (; *it != '}'; first_key = false) {
 3973|       |                     if (!first_key) {
 3974|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3975|       |                           return;
 3976|       |                        }
 3977|       |                     }
 3978|       |
 3979|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3983|       |                        return;
 3984|       |                     }
 3985|       |
 3986|       |                     auto* key_start = it;
 3987|       |                     skip_string_view(ctx, it, end);
 3988|       |                     if (bool(ctx.error)) [[unlikely]]
 3989|       |                        return;
 3990|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3991|       |                        return;
 3992|       |                     const sv key = {key_start, size_t(it - key_start)};
 3993|       |
 3994|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3995|       |                        return;
 3996|       |                     }
 3997|       |
 3998|       |                     if constexpr (deduction_key_count > 0) {
 3999|       |                        // We first check if a tag is defined and see if the key matches the tag
 4000|       |                        if constexpr (not tag_v<T>.empty()) {
 4001|       |                           if (key == tag_v<T>) {
 4002|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 4003|       |                                 return;
 4004|       |                              }
 4005|       |
 4006|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 4007|       |
 4008|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 4009|       |                              if constexpr (std::integral<id_type>) {
 4010|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 4011|       |                              }
 4012|       |                              else {
 4013|       |                                 // The id is turned into an index below and never leaves this
 4014|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4015|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4016|       |                              }
 4017|       |                              if (bool(ctx.error)) [[unlikely]]
 4018|       |                                 return;
 4019|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4020|       |                                 return;
 4021|       |                              }
 4022|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4023|       |                                 ctx.error = error_code::syntax_error;
 4024|       |                                 return;
 4025|       |                              }
 4026|       |
 4027|       |                              size_t type_index;
 4028|       |                              if constexpr (std::integral<id_type>) {
 4029|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4030|       |                              }
 4031|       |                              else {
 4032|       |                                 type_index = variant_id_to_index<T>::op(
 4033|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4034|       |                              }
 4035|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4036|       |                                 // Check if the deduced types include the tag-specified type
 4037|       |                                 // If not, the tag doesn't match the fields
 4038|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4039|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4040|       |                                 // Check if the tag-specified type is still possible
 4041|       |                                 const bool type_is_possible = possible_types[type_index];
 4042|       |                                 if (!type_is_possible) {
 4043|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4044|       |                                    ctx.error = error_code::no_matching_variant_type;
 4045|       |                                    return;
 4046|       |                                 }
 4047|       |
 4048|       |                                 if (!position_after_tag()) return;
 4049|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4050|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4051|       |                                 std::visit(
 4052|       |                                    [&](auto&& v) {
 4053|       |                                       using V = std::decay_t<decltype(v)>;
 4054|       |                                       constexpr bool is_object =
 4055|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4056|       |                                       if constexpr (variant_unit_alternative<V>) {
 4057|       |                                          // A unit alternative carries no data; its object holds only the
 4058|       |                                          // discriminator. Consume that body through an empty reflected object so
 4059|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4060|       |                                          detail::variant_unit_body unit_body{};
 4061|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4062|       |                                                                                             tag_literal>(unit_body,
 4063|       |                                                                                                          ctx, it, end);
 4064|       |                                       }
 4065|       |                                       else if constexpr (is_object) {
 4066|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4067|       |                                             // tag is a struct field, must re-parse
 4068|       |                                             if (!start.rewind(ctx, it, end)) return;
 4069|       |                                          }
 4070|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4071|       |                                                                                                           end);
 4072|       |                                       }
 4073|       |                                       else if constexpr (is_memory_object<V>) {
 4074|       |                                          if (!v) {
 4075|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4076|       |                                                if constexpr (requires { v.emplace(); }) {
 4077|       |                                                   v.emplace();
 4078|       |                                                }
 4079|       |                                                else {
 4080|       |                                                   v = typename V::value_type{};
 4081|       |                                                }
 4082|       |                                             }
 4083|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4084|       |                                                v = std::make_unique<typename V::element_type>();
 4085|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4086|       |                                                v = std::make_shared<typename V::element_type>();
 4087|       |                                             else if constexpr (constructible<V>) {
 4088|       |                                                v = meta_construct_v<V>();
 4089|       |                                             }
 4090|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4091|       |                                                                can_allocate_raw_pointer<Opts,
 4092|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4093|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4094|       |                                                   return;
 4095|       |                                                }
 4096|       |                                             }
 4097|       |                                             else {
 4098|       |                                                ctx.error = error_code::invalid_nullable_read;
 4099|       |                                                return;
 4100|       |                                                // Cannot read into unset nullable that is not std::optional,
 4101|       |                                                // std::unique_ptr, or std::shared_ptr
 4102|       |                                             }
 4103|       |                                          }
 4104|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4105|       |                                             // tag is a struct field, must re-parse
 4106|       |                                             if (!start.rewind(ctx, it, end)) return;
 4107|       |                                          }
 4108|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4109|       |                                             *v, ctx, it, end);
 4110|       |                                       }
 4111|       |                                       else if constexpr (custom_read<V>) {
 4112|       |                                          // Custom handlers parse the remaining body themselves and do not
 4113|       |                                          // accept the tag template parameter; the tag was already consumed.
 4114|       |                                          // This only works when the tag was the first key. If it came later,
 4115|       |                                          // we were reset to the object start and the custom handler would
 4116|       |                                          // absorb the tag, so error rather than corrupt the value.
 4117|       |                                          if (!first_key) {
 4118|       |                                             ctx.error = error_code::feature_not_supported;
 4119|       |                                             ctx.custom_error_message =
 4120|       |                                                "the tag must be the first key for a custom variant alternative";
 4121|       |                                             return;
 4122|       |                                          }
 4123|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4124|       |                                       }
 4125|       |                                    },
 4126|       |                                    value);
 4127|       |
 4128|       |                                 return; // we've decoded our target type
 4129|       |                              }
 4130|       |                              else [[unlikely]] {
 4131|       |                                 // Check if we have a default type (ids array shorter than variant)
 4132|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4133|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4134|       |                                 if constexpr (ids_size < variant_size) {
 4135|       |                                    // Use the first unlabeled type as the default
 4136|       |                                    const auto default_type_index = ids_size;
 4137|       |
 4138|       |                                    if (!position_after_tag()) return;
 4139|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4140|       |                                    if (value.index() != default_type_index)
 4141|       |                                       emplace_runtime_variant(value, default_type_index);
 4142|       |                                    std::visit(
 4143|       |                                       [&](auto&& v) {
 4144|       |                                          using V = std::decay_t<decltype(v)>;
 4145|       |                                          constexpr bool is_object =
 4146|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4147|       |                                          if constexpr (variant_unit_alternative<V>) {
 4148|       |                                             // A unit alternative carries no data; its object holds only the
 4149|       |                                             // discriminator. Consume that body through an empty reflected object so
 4150|       |                                             // unknown-key policy and terminator handling match every other
 4151|       |                                             // alternative.
 4152|       |                                             detail::variant_unit_body unit_body{};
 4153|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4154|       |                                                                                                tag_literal>(
 4155|       |                                                unit_body, ctx, it, end);
 4156|       |                                          }
 4157|       |                                          else if constexpr (is_object) {
 4158|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4159|       |                                                // tag is a struct field, must re-parse
 4160|       |                                                if (!start.rewind(ctx, it, end)) return;
 4161|       |                                             }
 4162|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4163|       |                                          }
 4164|       |                                          else if constexpr (is_memory_object<V>) {
 4165|       |                                             if (!v) {
 4166|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4167|       |                                                   if constexpr (requires { v.emplace(); }) {
 4168|       |                                                      v.emplace();
 4169|       |                                                   }
 4170|       |                                                   else {
 4171|       |                                                      v = typename V::value_type{};
 4172|       |                                                   }
 4173|       |                                                }
 4174|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4175|       |                                                   v = std::make_unique<typename V::element_type>();
 4176|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4177|       |                                                   v = std::make_shared<typename V::element_type>();
 4178|       |                                                else if constexpr (constructible<V>) {
 4179|       |                                                   v = meta_construct_v<V>();
 4180|       |                                                }
 4181|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4182|       |                                                                   can_allocate_raw_pointer<
 4183|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4184|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4185|       |                                                      return;
 4186|       |                                                   }
 4187|       |                                                }
 4188|       |                                                else {
 4189|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4190|       |                                                   return;
 4191|       |                                                }
 4192|       |                                             }
 4193|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4194|       |                                                // tag is a struct field, must re-parse
 4195|       |                                                if (!start.rewind(ctx, it, end)) return;
 4196|       |                                             }
 4197|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4198|       |                                                                                                              it, end);
 4199|       |                                          }
 4200|       |                                          else if constexpr (custom_read<V>) {
 4201|       |                                             // Custom handlers parse the remaining body themselves; this only
 4202|       |                                             // works when the tag was the first key (see above). If it came
 4203|       |                                             // later we were reset to the object start, so error rather than
 4204|       |                                             // let the custom handler absorb the tag.
 4205|       |                                             if (!first_key) {
 4206|       |                                                ctx.error = error_code::feature_not_supported;
 4207|       |                                                ctx.custom_error_message =
 4208|       |                                                   "the tag must be the first key for a custom variant alternative";
 4209|       |                                                return;
 4210|       |                                             }
 4211|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4212|       |                                          }
 4213|       |                                       },
 4214|       |                                       value);
 4215|       |
 4216|       |                                    return;
 4217|       |                                 }
 4218|       |                                 else {
 4219|       |                                    ctx.error = error_code::no_matching_variant_type;
 4220|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4221|       |                                    return;
 4222|       |                                 }
 4223|       |                              }
 4224|       |                           }
 4225|       |                        }
 4226|       |
 4227|       |                        // Inline decode_hash lookup for variant deduction
 4228|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4229|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4230|       |                        const auto deduction_index =
 4231|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4232|       |                              key.data(), key.data() + key.size(), key.size());
 4233|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4234|       |                           [[likely]] {
 4235|       |                           possible_types &= deduction_bits[deduction_index];
 4236|       |                        }
 4237|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4238|       |                           ctx.error = error_code::unknown_key;
 4239|       |                           return;
 4240|       |                        }
 4241|       |                     }
 4242|       |                     else if constexpr (not tag_v<T>.empty()) {
 4243|       |                        // empty object case for variant, if there are no normal elements
 4244|       |                        if (key == tag_v<T>) {
 4245|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4246|       |                              return;
 4247|       |                           }
 4248|       |
 4249|       |                           // The id is turned into an index below and never leaves this reader,
 4250|       |                           // so the view of the window it borrows cannot outlive that window.
 4251|       |                           std::string_view type_id{};
 4252|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4253|       |                           if (bool(ctx.error)) [[unlikely]]
 4254|       |                              return;
 4255|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4256|       |                              return;
 4257|       |                           }
 4258|       |
 4259|       |                           const auto type_index = variant_id_to_index<T>::op(
 4260|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4261|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4262|       |                              if (!position_after_tag()) return;
 4263|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4264|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4265|       |                           }
 4266|       |                           else {
 4267|       |                              // Check if we have a default type (ids array shorter than variant)
 4268|       |                              constexpr auto ids_size = ids_v<T>.size();
 4269|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4270|       |                              if constexpr (ids_size < variant_size) {
 4271|       |                                 // Use the first unlabeled type as the default
 4272|       |                                 if (!position_after_tag()) return;
 4273|       |                                 const auto default_index = ids_size;
 4274|       |                                 tag_specified_index = default_index; // Store the default type index
 4275|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4276|       |                              }
 4277|       |                              else {
 4278|       |                                 ctx.error = error_code::no_matching_variant_type;
 4279|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4280|       |                                 return;
 4281|       |                              }
 4282|       |                           }
 4283|       |                           // Parse the type (handles tag skipping and unknown keys)
 4284|       |                           std::visit(
 4285|       |                              [&](auto&& v) {
 4286|       |                                 using V = std::decay_t<decltype(v)>;
 4287|       |                                 if constexpr (custom_read<V>) {
 4288|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4289|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4290|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4291|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4292|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4293|       |                                    // into its value, so error here rather than corrupt the result.
 4294|       |                                    if (!first_key) {
 4295|       |                                       ctx.error = error_code::feature_not_supported;
 4296|       |                                       ctx.custom_error_message =
 4297|       |                                          "the tag must be the first key for a custom variant alternative";
 4298|       |                                       return;
 4299|       |                                    }
 4300|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4301|       |                                 }
 4302|       |                                 else {
 4303|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4304|       |                                       // tag is a struct field, must re-parse
 4305|       |                                       if (!start.rewind(ctx, it, end)) return;
 4306|       |                                    }
 4307|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4308|       |                                 }
 4309|       |                              },
 4310|       |                              value);
 4311|       |                           return;
 4312|       |                        }
 4313|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4314|       |                           ctx.error = error_code::unknown_key;
 4315|       |                           return;
 4316|       |                        }
 4317|       |                        else {
 4318|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4319|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4320|       |                              return;
 4321|       |                           }
 4322|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4323|       |                           if (bool(ctx.error)) [[unlikely]]
 4324|       |                              return;
 4325|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4326|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4327|       |                              return;
 4328|       |                           }
 4329|       |                           continue; // Continue loop to find the tag
 4330|       |                        }
 4331|       |                     }
 4332|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4333|       |                        ctx.error = error_code::unknown_key;
 4334|       |                        return;
 4335|       |                     }
 4336|       |
 4337|       |                     auto matching_types = possible_types.popcount();
 4338|       |                     if (matching_types == 0) {
 4339|       |                        ctx.error = error_code::no_matching_variant_type;
 4340|       |                        return;
 4341|       |                     }
 4342|       |                     // Only short-circuit for variants without tags
 4343|       |                     else if constexpr (tag_v<T>.empty()) {
 4344|       |                        if (matching_types == 1) {
 4345|       |                           if (!start.rewind(ctx, it, end)) return;
 4346|       |                           const auto type_index = possible_types.countr_zero();
 4347|       |
 4348|       |                           if (value.index() != static_cast<size_t>(type_index))
 4349|       |                              emplace_runtime_variant(value, type_index);
 4350|       |                           std::visit(
 4351|       |                              [&](auto&& v) {
 4352|       |                                 using V = std::decay_t<decltype(v)>;
 4353|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4354|       |                                 if constexpr (variant_unit_alternative<V>) {
 4355|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4356|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4357|       |                                    // terminator handling match every other alternative.
 4358|       |                                    detail::variant_unit_body unit_body{};
 4359|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4360|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4361|       |                                                                                                    end);
 4362|       |                                 }
 4363|       |                                 else if constexpr (is_object) {
 4364|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4365|       |                                 }
 4366|       |                                 else if constexpr (is_memory_object<V>) {
 4367|       |                                    if (!v) {
 4368|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4369|       |                                          if constexpr (requires { v.emplace(); }) {
 4370|       |                                             v.emplace();
 4371|       |                                          }
 4372|       |                                          else {
 4373|       |                                             v = typename V::value_type{};
 4374|       |                                          }
 4375|       |                                       }
 4376|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4377|       |                                          v = std::make_unique<typename V::element_type>();
 4378|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4379|       |                                          v = std::make_shared<typename V::element_type>();
 4380|       |                                       else if constexpr (constructible<V>) {
 4381|       |                                          v = meta_construct_v<V>();
 4382|       |                                       }
 4383|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4384|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4385|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4386|       |                                             return;
 4387|       |                                          }
 4388|       |                                       }
 4389|       |                                       else {
 4390|       |                                          ctx.error = error_code::invalid_nullable_read;
 4391|       |                                          return;
 4392|       |                                          // Cannot read into unset nullable that is not std::optional,
 4393|       |                                          // std::unique_ptr, or std::shared_ptr
 4394|       |                                       }
 4395|       |                                    }
 4396|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4397|       |                                       *v, ctx, it, end);
 4398|       |                                 }
 4399|       |                                 else if constexpr (custom_read<V>) {
 4400|       |                                    // Custom handlers parse the remaining body themselves.
 4401|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4402|       |                                 }
 4403|       |                              },
 4404|       |                              value);
 4405|       |
 4406|       |                           return; // we've decoded our target type
 4407|       |                        }
 4408|       |                     }
 4409|       |                     // For tagged variants, continue processing to validate tags
 4410|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4411|       |                        return;
 4412|       |                     }
 4413|       |
 4414|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4415|       |                     if (bool(ctx.error)) [[unlikely]]
 4416|       |                        return;
 4417|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4418|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4419|       |                        return;
 4420|       |                     }
 4421|       |                  }
 4422|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4423|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4424|       |                     // After parsing all keys, check if we have multiple matching types
 4425|       |                     // If so, choose the one with the fewest fields
 4426|       |                     auto final_matching = possible_types.popcount();
 4427|       |                     if (final_matching == 0) {
 4428|       |                        ctx.error = error_code::no_matching_variant_type;
 4429|       |                     }
 4430|       |                     else if (final_matching == 1) {
 4431|       |                        // Single type remains after field deduction
 4432|       |                        const auto type_index = possible_types.countr_zero();
 4433|       |
 4434|       |                        // Validate against tag if one was specified
 4435|       |                        if (tag_specified_index.has_value() &&
 4436|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4437|       |                           ctx.error = error_code::no_matching_variant_type;
 4438|       |                           return;
 4439|       |                        }
 4440|       |
 4441|       |                        if (!start.rewind(ctx, it, end)) return;
 4442|       |                        if (value.index() != static_cast<size_t>(type_index))
 4443|       |                           emplace_runtime_variant(value, type_index);
 4444|       |                        std::visit(
 4445|       |                           [&](auto&& v) {
 4446|       |                              using V = std::decay_t<decltype(v)>;
 4447|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4448|       |                              if constexpr (variant_unit_alternative<V>) {
 4449|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4450|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4451|       |                                 // terminator handling match every other alternative.
 4452|       |                                 detail::variant_unit_body unit_body{};
 4453|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4454|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4455|       |                                                                                                 end);
 4456|       |                              }
 4457|       |                              else if constexpr (is_object) {
 4458|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4459|       |                              }
 4460|       |                              else if constexpr (is_memory_object<V>) {
 4461|       |                                 if (!v) {
 4462|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4463|       |                                       if constexpr (requires { v.emplace(); }) {
 4464|       |                                          v.emplace();
 4465|       |                                       }
 4466|       |                                       else {
 4467|       |                                          v = typename V::value_type{};
 4468|       |                                       }
 4469|       |                                    }
 4470|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4471|       |                                       v = std::make_unique<typename V::element_type>();
 4472|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4473|       |                                       v = std::make_shared<typename V::element_type>();
 4474|       |                                    else if constexpr (constructible<V>) {
 4475|       |                                       v = meta_construct_v<V>();
 4476|       |                                    }
 4477|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4478|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4479|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4480|       |                                          return;
 4481|       |                                       }
 4482|       |                                    }
 4483|       |                                    else {
 4484|       |                                       ctx.error = error_code::invalid_nullable_read;
 4485|       |                                       return;
 4486|       |                                    }
 4487|       |                                 }
 4488|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4489|       |                                                                                                               it, end);
 4490|       |                              }
 4491|       |                              else if constexpr (custom_read<V>) {
 4492|       |                                 // Custom handlers parse the remaining body themselves.
 4493|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4494|       |                              }
 4495|       |                           },
 4496|       |                           value);
 4497|       |                     }
 4498|       |                     else if (final_matching > 1) {
 4499|       |                        constexpr auto N = std::variant_size_v<T>;
 4500|       |
 4501|       |                        // Compile-time array of field counts for each variant type
 4502|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4503|       |                           return std::array<size_t, N> {
 4504|       |                              ([]<size_t J = I>() -> size_t {
 4505|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4506|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4507|       |                                    return reflect<V>::size;
 4508|       |                                 }
 4509|       |                                 else if constexpr (is_memory_object<V>) {
 4510|       |                                    using X = memory_type<V>;
 4511|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4512|       |                                       return reflect<X>::size;
 4513|       |                                    }
 4514|       |                                    else {
 4515|       |                                       return (std::numeric_limits<size_t>::max)();
 4516|       |                                    }
 4517|       |                                 }
 4518|       |                                 else {
 4519|       |                                    return (std::numeric_limits<size_t>::max)();
 4520|       |                                 }
 4521|       |                              }.template operator()<I>())...
 4522|       |                           };
 4523|       |                        }(std::make_index_sequence<N>{});
 4524|       |
 4525|       |                        // Find the type with minimum field count among the possible types
 4526|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4527|       |                        size_t chosen_index = N; // Invalid index initially
 4528|       |
 4529|       |                        for (size_t i = 0; i < N; ++i) {
 4530|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4531|       |                              min_fields = field_counts[i];
 4532|       |                              chosen_index = i;
 4533|       |                           }
 4534|       |                        }
 4535|       |
 4536|       |                        if (chosen_index < N) {
 4537|       |                           // Validate against tag if one was specified
 4538|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4539|       |                              ctx.error = error_code::no_matching_variant_type;
 4540|       |                              return;
 4541|       |                           }
 4542|       |
 4543|       |                           if (!start.rewind(ctx, it, end)) return;
 4544|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4545|       |                           std::visit(
 4546|       |                              [&](auto&& v) {
 4547|       |                                 using V = std::decay_t<decltype(v)>;
 4548|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4549|       |                                 if constexpr (variant_unit_alternative<V>) {
 4550|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4551|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4552|       |                                    // terminator handling match every other alternative.
 4553|       |                                    detail::variant_unit_body unit_body{};
 4554|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4555|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4556|       |                                                                                                    end);
 4557|       |                                 }
 4558|       |                                 else if constexpr (is_object) {
 4559|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4560|       |                                 }
 4561|       |                                 else if constexpr (is_memory_object<V>) {
 4562|       |                                    if (!v) {
 4563|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4564|       |                                          if constexpr (requires { v.emplace(); }) {
 4565|       |                                             v.emplace();
 4566|       |                                          }
 4567|       |                                          else {
 4568|       |                                             v = typename V::value_type{};
 4569|       |                                          }
 4570|       |                                       }
 4571|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4572|       |                                          v = std::make_unique<typename V::element_type>();
 4573|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4574|       |                                          v = std::make_shared<typename V::element_type>();
 4575|       |                                       else if constexpr (constructible<V>) {
 4576|       |                                          v = meta_construct_v<V>();
 4577|       |                                       }
 4578|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4579|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4580|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4581|       |                                             return;
 4582|       |                                          }
 4583|       |                                       }
 4584|       |                                       else {
 4585|       |                                          ctx.error = error_code::invalid_nullable_read;
 4586|       |                                          return;
 4587|       |                                       }
 4588|       |                                    }
 4589|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4590|       |                                       *v, ctx, it, end);
 4591|       |                                 }
 4592|       |                                 else if constexpr (custom_read<V>) {
 4593|       |                                    // Custom handlers parse the remaining body themselves.
 4594|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4595|       |                                 }
 4596|       |                              },
 4597|       |                              value);
 4598|       |                        }
 4599|       |                        else {
 4600|       |                           ctx.error = error_code::no_matching_variant_type;
 4601|       |                        }
 4602|       |                     }
 4603|       |                  }
 4604|       |                  else {
 4605|       |                     // For variants with 0 or 1 object types, use the original error handling
 4606|       |                     ctx.error = error_code::no_matching_variant_type;
 4607|       |                  }
 4608|       |               }
 4609|      0|               break;
 4610|  4.20k|            }
 4611|  2.60k|            case '[':
  ------------------
  |  Branch (4611:13): [True: 2.60k, False: 18.8k]
  ------------------
 4612|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4613|  2.60k|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4614|  2.60k|               break;
 4615|  3.73k|            case '"': {
  ------------------
  |  Branch (4615:13): [True: 3.73k, False: 17.7k]
  ------------------
 4616|  3.73k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4617|  3.73k|               break;
 4618|  4.20k|            }
 4619|    470|            case 't':
  ------------------
  |  Branch (4619:13): [True: 470, False: 21.0k]
  ------------------
 4620|    676|            case 'f': {
  ------------------
  |  Branch (4620:13): [True: 206, False: 21.3k]
  ------------------
 4621|    676|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4622|    676|               break;
 4623|    470|            }
 4624|    205|            case 'n':
  ------------------
  |  Branch (4624:13): [True: 205, False: 21.3k]
  ------------------
 4625|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4626|       |                  ctx.error = error_code::no_matching_variant_type;
 4627|       |               }
 4628|    205|               else {
 4629|    205|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4630|    205|                  using V = std::variant_alternative_t<first_idx, T>;
 4631|    205|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4631:23): [True: 0, False: 205]
  ------------------
 4632|    205|                  match<"null", Opts>(ctx, it, end);
 4633|    205|               }
 4634|    205|               break;
 4635|  10.0k|            default: {
  ------------------
  |  Branch (4635:13): [True: 10.0k, False: 11.4k]
  ------------------
 4636|       |               // Not bool, string, object, or array so must be number or null
 4637|  10.0k|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4638|  10.0k|            }
 4639|  21.5k|            }
 4640|       |         }
 4641|       |         else {
 4642|       |            // For non-auto-deducible variants, try each type until one succeeds
 4643|       |            constexpr auto N = std::variant_size_v<T>;
 4644|       |            bool parsed = false;
 4645|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4646|       |
 4647|       |            for_each<N>([&]<size_t I>() {
 4648|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4649|       |
 4650|       |               auto copy_it = it;
 4651|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4652|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4653|       |               const auto copy_depth = ctx.depth;
 4654|       |
 4655|       |               // Try parsing as this type
 4656|       |               if (value.index() != I) {
 4657|       |                  emplace_runtime_variant(value, I);
 4658|       |               }
 4659|       |
 4660|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4661|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4662|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4663|       |               }
 4664|       |
 4665|       |               if (!bool(ctx.error)) {
 4666|       |                  parsed = true;
 4667|       |               }
 4668|       |               else if constexpr (not Options.null_terminated) {
 4669|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4670|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4671|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4672|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4673|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4674|       |                     parsed = true;
 4675|       |                     ctx.error = error_code::none;
 4676|       |                  }
 4677|       |                  else {
 4678|       |                     // Reset for next attempt (unless this is the last type)
 4679|       |                     it = copy_it;
 4680|       |                     rewind_depth<Options>(ctx, copy_depth);
 4681|       |                     if constexpr (I + 1 < N) {
 4682|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4683|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4684|       |                        }
 4685|       |                     }
 4686|       |                  }
 4687|       |               }
 4688|       |               else {
 4689|       |                  // Reset for next attempt (unless this is the last type)
 4690|       |                  it = copy_it;
 4691|       |                  rewind_depth<Options>(ctx, copy_depth);
 4692|       |                  if constexpr (I + 1 < N) {
 4693|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4694|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4695|       |                     }
 4696|       |                  }
 4697|       |               }
 4698|       |            });
 4699|       |         }
 4700|  21.5k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
   50|  75.9k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  75.9k|         else {
   61|  75.9k|            using V = std::remove_cvref_t<T>;
   62|  75.9k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  75.9k|                                             end);
   64|  75.9k|         }
   65|  75.9k|      }
_ZN3glz4fromILj10ENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS4_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
  151|  75.9k|      {
  152|  75.9k|         using V = std::decay_t<decltype(get_member(std::declval<Value>(), meta_wrapper_v<T>))>;
  153|  75.9k|         from<JSON, V>::template op<Opts>(get_member(std::forward<Value>(value), meta_wrapper_v<T>),
  154|  75.9k|                                          std::forward<Ctx>(ctx), std::forward<It0>(it), end);
  155|  75.9k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3863|  75.9k|      {
 3864|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3865|       |            read_adjacent<Options>(value, ctx, it, end);
 3866|       |         }
 3867|  75.9k|         else {
 3868|  75.9k|            read_deduced<Options>(value, ctx, it, end);
 3869|  75.9k|         }
 3870|  75.9k|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3874|  75.9k|      {
 3875|       |         // In the reader rather than on the variant, because the choice only exists here: writing such
 3876|       |         // a variant is unambiguous, and code that only writes one has nothing to fix.
 3877|  75.9k|         using indistinguishable = variant_indistinguishable_alternatives<T>;
 3878|  75.9k|         static_assert(not indistinguishable::found ||
 3879|  75.9k|                          detail::variant_alternatives_are_indistinguishable<T, typename indistinguishable::first,
 3880|  75.9k|                                                                             typename indistinguishable::second>::value,
 3881|  75.9k|                       "Two alternatives of this variant have the same keys holding the same types and no "
 3882|  75.9k|                       "discriminator, so reading JSON into it cannot tell them apart: every read would silently "
 3883|  75.9k|                       "produce the first, whichever was written. Declare `tag` and `ids` in glz::meta for the "
 3884|  75.9k|                       "variant, or remove one of the two. They are the last two template arguments of "
 3885|  75.9k|                       "variant_alternatives_are_indistinguishable in the instantiation backtrace.");
 3886|       |
 3887|  75.9k|         constexpr auto Opts = ws_handled_off<Options>();
 3888|  75.9k|         if constexpr (variant_is_auto_deducible<T>()) {
 3889|  75.9k|            if constexpr (not check_ws_handled(Options)) {
 3890|  75.9k|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3890:20): [True: 0, False: 75.9k]
  ------------------
 3891|      0|                  return;
 3892|      0|               }
 3893|  75.9k|            }
 3894|       |
 3895|  75.9k|            switch (*it) {
 3896|      0|            case '\0':
  ------------------
  |  Branch (3896:13): [True: 0, False: 75.9k]
  ------------------
 3897|      0|               ctx.error = error_code::unexpected_end;
 3898|      0|               return;
 3899|  55.3k|            case '{': {
  ------------------
  |  Branch (3899:13): [True: 55.3k, False: 20.6k]
  ------------------
 3900|       |               // This branch consumes the brace itself and hands the object to a reader with
 3901|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3902|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3903|       |               // the reader below.
 3904|  55.3k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3904:20): [True: 0, False: 55.3k]
  ------------------
 3905|      0|                  return;
 3906|      0|               }
 3907|       |
 3908|  55.3k|               ++it;
 3909|  55.3k|               if constexpr (not Opts.null_terminated) {
 3910|  55.3k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3910:23): [True: 0, False: 55.3k]
  ------------------
 3911|      0|                     ctx.error = error_code::unexpected_end;
 3912|      0|                     return;
 3913|      0|                  }
 3914|  55.3k|               }
 3915|  55.3k|               using type_counts = variant_type_count<T>;
 3916|  55.3k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3917|       |               if constexpr (n_object_candidates < 1) {
 3918|       |                  ctx.error = error_code::no_matching_variant_type;
 3919|       |                  return;
 3920|       |               }
 3921|  55.3k|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3922|  55.3k|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3923|  55.3k|                  using V = std::variant_alternative_t<first_idx, T>;
 3924|  55.3k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3924:23): [True: 55.3k, False: 0]
  ------------------
 3925|  55.3k|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3926|  55.3k|                  return;
 3927|       |               }
 3928|       |               else {
 3929|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3930|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3931|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3932|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3933|       |
 3934|       |                  // Track if we've encountered a tag and what value it had
 3935|       |                  std::optional<size_t> tag_specified_index{};
 3936|       |
 3937|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3938|       |                     return;
 3939|       |                  }
 3940|       |                  // Once the reader knows which alternative this object holds it may have to read
 3941|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3942|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3943|       |                  // from under a raw pointer (see rewind_anchor).
 3944|       |                  auto start = make_rewind_anchor(ctx, it);
 3945|       |                  bool first_key = true;
 3946|       |                  // Parse bifurcation for tagged variants:
 3947|       |                  //
 3948|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3949|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3950|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3951|       |                  //
 3952|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3953|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3954|       |                  // it advances past the trailing comma so the object parser picks up at the
 3955|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3956|       |                  //
 3957|       |                  // One exception: if the tag name is also a field on the resolved struct
 3958|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3959|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3960|       |                  //
 3961|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3962|       |                  // much, and an object wider than it has no start left to return to.
 3963|       |                  auto position_after_tag = [&] {
 3964|       |                     if (first_key) {
 3965|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3966|       |                        return true;
 3967|       |                     }
 3968|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3969|       |                  };
 3970|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3971|       |                  // position_after_tag does for every key but the first.
 3972|       |                  for (; *it != '}'; first_key = false) {
 3973|       |                     if (!first_key) {
 3974|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3975|       |                           return;
 3976|       |                        }
 3977|       |                     }
 3978|       |
 3979|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3983|       |                        return;
 3984|       |                     }
 3985|       |
 3986|       |                     auto* key_start = it;
 3987|       |                     skip_string_view(ctx, it, end);
 3988|       |                     if (bool(ctx.error)) [[unlikely]]
 3989|       |                        return;
 3990|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3991|       |                        return;
 3992|       |                     const sv key = {key_start, size_t(it - key_start)};
 3993|       |
 3994|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3995|       |                        return;
 3996|       |                     }
 3997|       |
 3998|       |                     if constexpr (deduction_key_count > 0) {
 3999|       |                        // We first check if a tag is defined and see if the key matches the tag
 4000|       |                        if constexpr (not tag_v<T>.empty()) {
 4001|       |                           if (key == tag_v<T>) {
 4002|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 4003|       |                                 return;
 4004|       |                              }
 4005|       |
 4006|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 4007|       |
 4008|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 4009|       |                              if constexpr (std::integral<id_type>) {
 4010|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 4011|       |                              }
 4012|       |                              else {
 4013|       |                                 // The id is turned into an index below and never leaves this
 4014|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4015|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4016|       |                              }
 4017|       |                              if (bool(ctx.error)) [[unlikely]]
 4018|       |                                 return;
 4019|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4020|       |                                 return;
 4021|       |                              }
 4022|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4023|       |                                 ctx.error = error_code::syntax_error;
 4024|       |                                 return;
 4025|       |                              }
 4026|       |
 4027|       |                              size_t type_index;
 4028|       |                              if constexpr (std::integral<id_type>) {
 4029|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4030|       |                              }
 4031|       |                              else {
 4032|       |                                 type_index = variant_id_to_index<T>::op(
 4033|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4034|       |                              }
 4035|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4036|       |                                 // Check if the deduced types include the tag-specified type
 4037|       |                                 // If not, the tag doesn't match the fields
 4038|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4039|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4040|       |                                 // Check if the tag-specified type is still possible
 4041|       |                                 const bool type_is_possible = possible_types[type_index];
 4042|       |                                 if (!type_is_possible) {
 4043|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4044|       |                                    ctx.error = error_code::no_matching_variant_type;
 4045|       |                                    return;
 4046|       |                                 }
 4047|       |
 4048|       |                                 if (!position_after_tag()) return;
 4049|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4050|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4051|       |                                 std::visit(
 4052|       |                                    [&](auto&& v) {
 4053|       |                                       using V = std::decay_t<decltype(v)>;
 4054|       |                                       constexpr bool is_object =
 4055|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4056|       |                                       if constexpr (variant_unit_alternative<V>) {
 4057|       |                                          // A unit alternative carries no data; its object holds only the
 4058|       |                                          // discriminator. Consume that body through an empty reflected object so
 4059|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4060|       |                                          detail::variant_unit_body unit_body{};
 4061|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4062|       |                                                                                             tag_literal>(unit_body,
 4063|       |                                                                                                          ctx, it, end);
 4064|       |                                       }
 4065|       |                                       else if constexpr (is_object) {
 4066|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4067|       |                                             // tag is a struct field, must re-parse
 4068|       |                                             if (!start.rewind(ctx, it, end)) return;
 4069|       |                                          }
 4070|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4071|       |                                                                                                           end);
 4072|       |                                       }
 4073|       |                                       else if constexpr (is_memory_object<V>) {
 4074|       |                                          if (!v) {
 4075|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4076|       |                                                if constexpr (requires { v.emplace(); }) {
 4077|       |                                                   v.emplace();
 4078|       |                                                }
 4079|       |                                                else {
 4080|       |                                                   v = typename V::value_type{};
 4081|       |                                                }
 4082|       |                                             }
 4083|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4084|       |                                                v = std::make_unique<typename V::element_type>();
 4085|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4086|       |                                                v = std::make_shared<typename V::element_type>();
 4087|       |                                             else if constexpr (constructible<V>) {
 4088|       |                                                v = meta_construct_v<V>();
 4089|       |                                             }
 4090|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4091|       |                                                                can_allocate_raw_pointer<Opts,
 4092|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4093|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4094|       |                                                   return;
 4095|       |                                                }
 4096|       |                                             }
 4097|       |                                             else {
 4098|       |                                                ctx.error = error_code::invalid_nullable_read;
 4099|       |                                                return;
 4100|       |                                                // Cannot read into unset nullable that is not std::optional,
 4101|       |                                                // std::unique_ptr, or std::shared_ptr
 4102|       |                                             }
 4103|       |                                          }
 4104|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4105|       |                                             // tag is a struct field, must re-parse
 4106|       |                                             if (!start.rewind(ctx, it, end)) return;
 4107|       |                                          }
 4108|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4109|       |                                             *v, ctx, it, end);
 4110|       |                                       }
 4111|       |                                       else if constexpr (custom_read<V>) {
 4112|       |                                          // Custom handlers parse the remaining body themselves and do not
 4113|       |                                          // accept the tag template parameter; the tag was already consumed.
 4114|       |                                          // This only works when the tag was the first key. If it came later,
 4115|       |                                          // we were reset to the object start and the custom handler would
 4116|       |                                          // absorb the tag, so error rather than corrupt the value.
 4117|       |                                          if (!first_key) {
 4118|       |                                             ctx.error = error_code::feature_not_supported;
 4119|       |                                             ctx.custom_error_message =
 4120|       |                                                "the tag must be the first key for a custom variant alternative";
 4121|       |                                             return;
 4122|       |                                          }
 4123|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4124|       |                                       }
 4125|       |                                    },
 4126|       |                                    value);
 4127|       |
 4128|       |                                 return; // we've decoded our target type
 4129|       |                              }
 4130|       |                              else [[unlikely]] {
 4131|       |                                 // Check if we have a default type (ids array shorter than variant)
 4132|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4133|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4134|       |                                 if constexpr (ids_size < variant_size) {
 4135|       |                                    // Use the first unlabeled type as the default
 4136|       |                                    const auto default_type_index = ids_size;
 4137|       |
 4138|       |                                    if (!position_after_tag()) return;
 4139|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4140|       |                                    if (value.index() != default_type_index)
 4141|       |                                       emplace_runtime_variant(value, default_type_index);
 4142|       |                                    std::visit(
 4143|       |                                       [&](auto&& v) {
 4144|       |                                          using V = std::decay_t<decltype(v)>;
 4145|       |                                          constexpr bool is_object =
 4146|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4147|       |                                          if constexpr (variant_unit_alternative<V>) {
 4148|       |                                             // A unit alternative carries no data; its object holds only the
 4149|       |                                             // discriminator. Consume that body through an empty reflected object so
 4150|       |                                             // unknown-key policy and terminator handling match every other
 4151|       |                                             // alternative.
 4152|       |                                             detail::variant_unit_body unit_body{};
 4153|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4154|       |                                                                                                tag_literal>(
 4155|       |                                                unit_body, ctx, it, end);
 4156|       |                                          }
 4157|       |                                          else if constexpr (is_object) {
 4158|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4159|       |                                                // tag is a struct field, must re-parse
 4160|       |                                                if (!start.rewind(ctx, it, end)) return;
 4161|       |                                             }
 4162|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4163|       |                                          }
 4164|       |                                          else if constexpr (is_memory_object<V>) {
 4165|       |                                             if (!v) {
 4166|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4167|       |                                                   if constexpr (requires { v.emplace(); }) {
 4168|       |                                                      v.emplace();
 4169|       |                                                   }
 4170|       |                                                   else {
 4171|       |                                                      v = typename V::value_type{};
 4172|       |                                                   }
 4173|       |                                                }
 4174|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4175|       |                                                   v = std::make_unique<typename V::element_type>();
 4176|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4177|       |                                                   v = std::make_shared<typename V::element_type>();
 4178|       |                                                else if constexpr (constructible<V>) {
 4179|       |                                                   v = meta_construct_v<V>();
 4180|       |                                                }
 4181|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4182|       |                                                                   can_allocate_raw_pointer<
 4183|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4184|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4185|       |                                                      return;
 4186|       |                                                   }
 4187|       |                                                }
 4188|       |                                                else {
 4189|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4190|       |                                                   return;
 4191|       |                                                }
 4192|       |                                             }
 4193|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4194|       |                                                // tag is a struct field, must re-parse
 4195|       |                                                if (!start.rewind(ctx, it, end)) return;
 4196|       |                                             }
 4197|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4198|       |                                                                                                              it, end);
 4199|       |                                          }
 4200|       |                                          else if constexpr (custom_read<V>) {
 4201|       |                                             // Custom handlers parse the remaining body themselves; this only
 4202|       |                                             // works when the tag was the first key (see above). If it came
 4203|       |                                             // later we were reset to the object start, so error rather than
 4204|       |                                             // let the custom handler absorb the tag.
 4205|       |                                             if (!first_key) {
 4206|       |                                                ctx.error = error_code::feature_not_supported;
 4207|       |                                                ctx.custom_error_message =
 4208|       |                                                   "the tag must be the first key for a custom variant alternative";
 4209|       |                                                return;
 4210|       |                                             }
 4211|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4212|       |                                          }
 4213|       |                                       },
 4214|       |                                       value);
 4215|       |
 4216|       |                                    return;
 4217|       |                                 }
 4218|       |                                 else {
 4219|       |                                    ctx.error = error_code::no_matching_variant_type;
 4220|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4221|       |                                    return;
 4222|       |                                 }
 4223|       |                              }
 4224|       |                           }
 4225|       |                        }
 4226|       |
 4227|       |                        // Inline decode_hash lookup for variant deduction
 4228|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4229|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4230|       |                        const auto deduction_index =
 4231|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4232|       |                              key.data(), key.data() + key.size(), key.size());
 4233|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4234|       |                           [[likely]] {
 4235|       |                           possible_types &= deduction_bits[deduction_index];
 4236|       |                        }
 4237|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4238|       |                           ctx.error = error_code::unknown_key;
 4239|       |                           return;
 4240|       |                        }
 4241|       |                     }
 4242|       |                     else if constexpr (not tag_v<T>.empty()) {
 4243|       |                        // empty object case for variant, if there are no normal elements
 4244|       |                        if (key == tag_v<T>) {
 4245|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4246|       |                              return;
 4247|       |                           }
 4248|       |
 4249|       |                           // The id is turned into an index below and never leaves this reader,
 4250|       |                           // so the view of the window it borrows cannot outlive that window.
 4251|       |                           std::string_view type_id{};
 4252|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4253|       |                           if (bool(ctx.error)) [[unlikely]]
 4254|       |                              return;
 4255|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4256|       |                              return;
 4257|       |                           }
 4258|       |
 4259|       |                           const auto type_index = variant_id_to_index<T>::op(
 4260|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4261|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4262|       |                              if (!position_after_tag()) return;
 4263|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4264|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4265|       |                           }
 4266|       |                           else {
 4267|       |                              // Check if we have a default type (ids array shorter than variant)
 4268|       |                              constexpr auto ids_size = ids_v<T>.size();
 4269|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4270|       |                              if constexpr (ids_size < variant_size) {
 4271|       |                                 // Use the first unlabeled type as the default
 4272|       |                                 if (!position_after_tag()) return;
 4273|       |                                 const auto default_index = ids_size;
 4274|       |                                 tag_specified_index = default_index; // Store the default type index
 4275|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4276|       |                              }
 4277|       |                              else {
 4278|       |                                 ctx.error = error_code::no_matching_variant_type;
 4279|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4280|       |                                 return;
 4281|       |                              }
 4282|       |                           }
 4283|       |                           // Parse the type (handles tag skipping and unknown keys)
 4284|       |                           std::visit(
 4285|       |                              [&](auto&& v) {
 4286|       |                                 using V = std::decay_t<decltype(v)>;
 4287|       |                                 if constexpr (custom_read<V>) {
 4288|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4289|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4290|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4291|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4292|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4293|       |                                    // into its value, so error here rather than corrupt the result.
 4294|       |                                    if (!first_key) {
 4295|       |                                       ctx.error = error_code::feature_not_supported;
 4296|       |                                       ctx.custom_error_message =
 4297|       |                                          "the tag must be the first key for a custom variant alternative";
 4298|       |                                       return;
 4299|       |                                    }
 4300|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4301|       |                                 }
 4302|       |                                 else {
 4303|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4304|       |                                       // tag is a struct field, must re-parse
 4305|       |                                       if (!start.rewind(ctx, it, end)) return;
 4306|       |                                    }
 4307|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4308|       |                                 }
 4309|       |                              },
 4310|       |                              value);
 4311|       |                           return;
 4312|       |                        }
 4313|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4314|       |                           ctx.error = error_code::unknown_key;
 4315|       |                           return;
 4316|       |                        }
 4317|       |                        else {
 4318|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4319|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4320|       |                              return;
 4321|       |                           }
 4322|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4323|       |                           if (bool(ctx.error)) [[unlikely]]
 4324|       |                              return;
 4325|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4326|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4327|       |                              return;
 4328|       |                           }
 4329|       |                           continue; // Continue loop to find the tag
 4330|       |                        }
 4331|       |                     }
 4332|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4333|       |                        ctx.error = error_code::unknown_key;
 4334|       |                        return;
 4335|       |                     }
 4336|       |
 4337|       |                     auto matching_types = possible_types.popcount();
 4338|       |                     if (matching_types == 0) {
 4339|       |                        ctx.error = error_code::no_matching_variant_type;
 4340|       |                        return;
 4341|       |                     }
 4342|       |                     // Only short-circuit for variants without tags
 4343|       |                     else if constexpr (tag_v<T>.empty()) {
 4344|       |                        if (matching_types == 1) {
 4345|       |                           if (!start.rewind(ctx, it, end)) return;
 4346|       |                           const auto type_index = possible_types.countr_zero();
 4347|       |
 4348|       |                           if (value.index() != static_cast<size_t>(type_index))
 4349|       |                              emplace_runtime_variant(value, type_index);
 4350|       |                           std::visit(
 4351|       |                              [&](auto&& v) {
 4352|       |                                 using V = std::decay_t<decltype(v)>;
 4353|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4354|       |                                 if constexpr (variant_unit_alternative<V>) {
 4355|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4356|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4357|       |                                    // terminator handling match every other alternative.
 4358|       |                                    detail::variant_unit_body unit_body{};
 4359|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4360|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4361|       |                                                                                                    end);
 4362|       |                                 }
 4363|       |                                 else if constexpr (is_object) {
 4364|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4365|       |                                 }
 4366|       |                                 else if constexpr (is_memory_object<V>) {
 4367|       |                                    if (!v) {
 4368|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4369|       |                                          if constexpr (requires { v.emplace(); }) {
 4370|       |                                             v.emplace();
 4371|       |                                          }
 4372|       |                                          else {
 4373|       |                                             v = typename V::value_type{};
 4374|       |                                          }
 4375|       |                                       }
 4376|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4377|       |                                          v = std::make_unique<typename V::element_type>();
 4378|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4379|       |                                          v = std::make_shared<typename V::element_type>();
 4380|       |                                       else if constexpr (constructible<V>) {
 4381|       |                                          v = meta_construct_v<V>();
 4382|       |                                       }
 4383|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4384|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4385|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4386|       |                                             return;
 4387|       |                                          }
 4388|       |                                       }
 4389|       |                                       else {
 4390|       |                                          ctx.error = error_code::invalid_nullable_read;
 4391|       |                                          return;
 4392|       |                                          // Cannot read into unset nullable that is not std::optional,
 4393|       |                                          // std::unique_ptr, or std::shared_ptr
 4394|       |                                       }
 4395|       |                                    }
 4396|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4397|       |                                       *v, ctx, it, end);
 4398|       |                                 }
 4399|       |                                 else if constexpr (custom_read<V>) {
 4400|       |                                    // Custom handlers parse the remaining body themselves.
 4401|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4402|       |                                 }
 4403|       |                              },
 4404|       |                              value);
 4405|       |
 4406|       |                           return; // we've decoded our target type
 4407|       |                        }
 4408|       |                     }
 4409|       |                     // For tagged variants, continue processing to validate tags
 4410|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4411|       |                        return;
 4412|       |                     }
 4413|       |
 4414|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4415|       |                     if (bool(ctx.error)) [[unlikely]]
 4416|       |                        return;
 4417|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4418|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4419|       |                        return;
 4420|       |                     }
 4421|       |                  }
 4422|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4423|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4424|       |                     // After parsing all keys, check if we have multiple matching types
 4425|       |                     // If so, choose the one with the fewest fields
 4426|       |                     auto final_matching = possible_types.popcount();
 4427|       |                     if (final_matching == 0) {
 4428|       |                        ctx.error = error_code::no_matching_variant_type;
 4429|       |                     }
 4430|       |                     else if (final_matching == 1) {
 4431|       |                        // Single type remains after field deduction
 4432|       |                        const auto type_index = possible_types.countr_zero();
 4433|       |
 4434|       |                        // Validate against tag if one was specified
 4435|       |                        if (tag_specified_index.has_value() &&
 4436|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4437|       |                           ctx.error = error_code::no_matching_variant_type;
 4438|       |                           return;
 4439|       |                        }
 4440|       |
 4441|       |                        if (!start.rewind(ctx, it, end)) return;
 4442|       |                        if (value.index() != static_cast<size_t>(type_index))
 4443|       |                           emplace_runtime_variant(value, type_index);
 4444|       |                        std::visit(
 4445|       |                           [&](auto&& v) {
 4446|       |                              using V = std::decay_t<decltype(v)>;
 4447|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4448|       |                              if constexpr (variant_unit_alternative<V>) {
 4449|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4450|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4451|       |                                 // terminator handling match every other alternative.
 4452|       |                                 detail::variant_unit_body unit_body{};
 4453|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4454|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4455|       |                                                                                                 end);
 4456|       |                              }
 4457|       |                              else if constexpr (is_object) {
 4458|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4459|       |                              }
 4460|       |                              else if constexpr (is_memory_object<V>) {
 4461|       |                                 if (!v) {
 4462|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4463|       |                                       if constexpr (requires { v.emplace(); }) {
 4464|       |                                          v.emplace();
 4465|       |                                       }
 4466|       |                                       else {
 4467|       |                                          v = typename V::value_type{};
 4468|       |                                       }
 4469|       |                                    }
 4470|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4471|       |                                       v = std::make_unique<typename V::element_type>();
 4472|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4473|       |                                       v = std::make_shared<typename V::element_type>();
 4474|       |                                    else if constexpr (constructible<V>) {
 4475|       |                                       v = meta_construct_v<V>();
 4476|       |                                    }
 4477|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4478|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4479|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4480|       |                                          return;
 4481|       |                                       }
 4482|       |                                    }
 4483|       |                                    else {
 4484|       |                                       ctx.error = error_code::invalid_nullable_read;
 4485|       |                                       return;
 4486|       |                                    }
 4487|       |                                 }
 4488|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4489|       |                                                                                                               it, end);
 4490|       |                              }
 4491|       |                              else if constexpr (custom_read<V>) {
 4492|       |                                 // Custom handlers parse the remaining body themselves.
 4493|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4494|       |                              }
 4495|       |                           },
 4496|       |                           value);
 4497|       |                     }
 4498|       |                     else if (final_matching > 1) {
 4499|       |                        constexpr auto N = std::variant_size_v<T>;
 4500|       |
 4501|       |                        // Compile-time array of field counts for each variant type
 4502|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4503|       |                           return std::array<size_t, N> {
 4504|       |                              ([]<size_t J = I>() -> size_t {
 4505|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4506|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4507|       |                                    return reflect<V>::size;
 4508|       |                                 }
 4509|       |                                 else if constexpr (is_memory_object<V>) {
 4510|       |                                    using X = memory_type<V>;
 4511|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4512|       |                                       return reflect<X>::size;
 4513|       |                                    }
 4514|       |                                    else {
 4515|       |                                       return (std::numeric_limits<size_t>::max)();
 4516|       |                                    }
 4517|       |                                 }
 4518|       |                                 else {
 4519|       |                                    return (std::numeric_limits<size_t>::max)();
 4520|       |                                 }
 4521|       |                              }.template operator()<I>())...
 4522|       |                           };
 4523|       |                        }(std::make_index_sequence<N>{});
 4524|       |
 4525|       |                        // Find the type with minimum field count among the possible types
 4526|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4527|       |                        size_t chosen_index = N; // Invalid index initially
 4528|       |
 4529|       |                        for (size_t i = 0; i < N; ++i) {
 4530|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4531|       |                              min_fields = field_counts[i];
 4532|       |                              chosen_index = i;
 4533|       |                           }
 4534|       |                        }
 4535|       |
 4536|       |                        if (chosen_index < N) {
 4537|       |                           // Validate against tag if one was specified
 4538|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4539|       |                              ctx.error = error_code::no_matching_variant_type;
 4540|       |                              return;
 4541|       |                           }
 4542|       |
 4543|       |                           if (!start.rewind(ctx, it, end)) return;
 4544|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4545|       |                           std::visit(
 4546|       |                              [&](auto&& v) {
 4547|       |                                 using V = std::decay_t<decltype(v)>;
 4548|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4549|       |                                 if constexpr (variant_unit_alternative<V>) {
 4550|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4551|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4552|       |                                    // terminator handling match every other alternative.
 4553|       |                                    detail::variant_unit_body unit_body{};
 4554|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4555|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4556|       |                                                                                                    end);
 4557|       |                                 }
 4558|       |                                 else if constexpr (is_object) {
 4559|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4560|       |                                 }
 4561|       |                                 else if constexpr (is_memory_object<V>) {
 4562|       |                                    if (!v) {
 4563|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4564|       |                                          if constexpr (requires { v.emplace(); }) {
 4565|       |                                             v.emplace();
 4566|       |                                          }
 4567|       |                                          else {
 4568|       |                                             v = typename V::value_type{};
 4569|       |                                          }
 4570|       |                                       }
 4571|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4572|       |                                          v = std::make_unique<typename V::element_type>();
 4573|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4574|       |                                          v = std::make_shared<typename V::element_type>();
 4575|       |                                       else if constexpr (constructible<V>) {
 4576|       |                                          v = meta_construct_v<V>();
 4577|       |                                       }
 4578|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4579|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4580|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4581|       |                                             return;
 4582|       |                                          }
 4583|       |                                       }
 4584|       |                                       else {
 4585|       |                                          ctx.error = error_code::invalid_nullable_read;
 4586|       |                                          return;
 4587|       |                                       }
 4588|       |                                    }
 4589|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4590|       |                                       *v, ctx, it, end);
 4591|       |                                 }
 4592|       |                                 else if constexpr (custom_read<V>) {
 4593|       |                                    // Custom handlers parse the remaining body themselves.
 4594|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4595|       |                                 }
 4596|       |                              },
 4597|       |                              value);
 4598|       |                        }
 4599|       |                        else {
 4600|       |                           ctx.error = error_code::no_matching_variant_type;
 4601|       |                        }
 4602|       |                     }
 4603|       |                  }
 4604|       |                  else {
 4605|       |                     // For variants with 0 or 1 object types, use the original error handling
 4606|       |                     ctx.error = error_code::no_matching_variant_type;
 4607|       |                  }
 4608|       |               }
 4609|      0|               break;
 4610|  55.3k|            }
 4611|  20.6k|            case '[':
  ------------------
  |  Branch (4611:13): [True: 20.6k, False: 55.3k]
  ------------------
 4612|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4613|  20.6k|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4614|  20.6k|               break;
 4615|      0|            case '"': {
  ------------------
  |  Branch (4615:13): [True: 0, False: 75.9k]
  ------------------
 4616|      0|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4617|      0|               break;
 4618|  55.3k|            }
 4619|      0|            case 't':
  ------------------
  |  Branch (4619:13): [True: 0, False: 75.9k]
  ------------------
 4620|      0|            case 'f': {
  ------------------
  |  Branch (4620:13): [True: 0, False: 75.9k]
  ------------------
 4621|      0|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4622|      0|               break;
 4623|      0|            }
 4624|      0|            case 'n':
  ------------------
  |  Branch (4624:13): [True: 0, False: 75.9k]
  ------------------
 4625|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4626|       |                  ctx.error = error_code::no_matching_variant_type;
 4627|       |               }
 4628|      0|               else {
 4629|      0|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4630|      0|                  using V = std::variant_alternative_t<first_idx, T>;
 4631|      0|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4631:23): [True: 0, False: 0]
  ------------------
 4632|      0|                  match<"null", Opts>(ctx, it, end);
 4633|      0|               }
 4634|      0|               break;
 4635|      0|            default: {
  ------------------
  |  Branch (4635:13): [True: 0, False: 75.9k]
  ------------------
 4636|       |               // Not bool, string, object, or array so must be number or null
 4637|      0|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4638|      0|            }
 4639|  75.9k|            }
 4640|       |         }
 4641|       |         else {
 4642|       |            // For non-auto-deducible variants, try each type until one succeeds
 4643|       |            constexpr auto N = std::variant_size_v<T>;
 4644|       |            bool parsed = false;
 4645|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4646|       |
 4647|       |            for_each<N>([&]<size_t I>() {
 4648|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4649|       |
 4650|       |               auto copy_it = it;
 4651|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4652|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4653|       |               const auto copy_depth = ctx.depth;
 4654|       |
 4655|       |               // Try parsing as this type
 4656|       |               if (value.index() != I) {
 4657|       |                  emplace_runtime_variant(value, I);
 4658|       |               }
 4659|       |
 4660|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4661|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4662|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4663|       |               }
 4664|       |
 4665|       |               if (!bool(ctx.error)) {
 4666|       |                  parsed = true;
 4667|       |               }
 4668|       |               else if constexpr (not Options.null_terminated) {
 4669|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4670|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4671|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4672|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4673|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4674|       |                     parsed = true;
 4675|       |                     ctx.error = error_code::none;
 4676|       |                  }
 4677|       |                  else {
 4678|       |                     // Reset for next attempt (unless this is the last type)
 4679|       |                     it = copy_it;
 4680|       |                     rewind_depth<Options>(ctx, copy_depth);
 4681|       |                     if constexpr (I + 1 < N) {
 4682|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4683|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4684|       |                        }
 4685|       |                     }
 4686|       |                  }
 4687|       |               }
 4688|       |               else {
 4689|       |                  // Reset for next attempt (unless this is the last type)
 4690|       |                  it = copy_it;
 4691|       |                  rewind_depth<Options>(ctx, copy_depth);
 4692|       |                  if constexpr (I + 1 < N) {
 4693|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4694|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4695|       |                     }
 4696|       |                  }
 4697|       |               }
 4698|       |            });
 4699|       |         }
 4700|  75.9k|      }
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEERNS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES4_EEEETkNS_10is_contextERNS_7contextERPKcSD_EEvOT0_OT1_OT2_T3_:
   50|   518k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|   518k|         else {
   61|   518k|            using V = std::remove_cvref_t<T>;
   62|   518k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|   518k|                                             end);
   64|   518k|         }
   65|   518k|      }
_ZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_:
 2794|   518k|      {
 2795|   518k|         static constexpr auto num_members = reflect<T>::size;
 2796|       |
 2797|   518k|         static constexpr auto Opts = opening_handled_off<ws_handled_off<Options>()>();
 2798|       |         if constexpr (!check_opening_handled(Options)) {
 2799|       |            if constexpr (!check_ws_handled(Options)) {
 2800|       |               if (skip_ws<Opts>(ctx, it, end)) {
 2801|       |                  return;
 2802|       |               }
 2803|       |            }
 2804|       |            if (match_invalid_end<'{', Opts>(ctx, it, end)) {
 2805|       |               return;
 2806|       |            }
 2807|       |            if constexpr (not Opts.null_terminated) {
 2808|       |               if (it == end) [[unlikely]] {
 2809|       |                  ctx.error = error_code::unexpected_end;
 2810|       |                  return;
 2811|       |               }
 2812|       |            }
 2813|       |            // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2814|       |            // released at each syntactic close below
 2815|       |            if (enter_depth(ctx)) [[unlikely]] {
 2816|       |               return;
 2817|       |            }
 2818|       |         }
 2819|   518k|         const auto ws_start = it;
 2820|   518k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2820:14): [True: 0, False: 518k]
  ------------------
 2821|      0|            return;
 2822|      0|         }
 2823|   518k|         const size_t ws_size = size_t(it - ws_start);
 2824|       |
 2825|       |         if constexpr ((glaze_object_t<T> || reflectable<T>) && num_members == 0 && Opts.error_on_unknown_keys) {
 2826|       |            if constexpr (not tag.sv().empty()) {
 2827|       |               if (*it == '"') {
 2828|       |                  ++it;
 2829|       |                  if constexpr (not Opts.null_terminated) {
 2830|       |                     if (it == end) [[unlikely]] {
 2831|       |                        ctx.error = error_code::unexpected_end;
 2832|       |                        return;
 2833|       |                     }
 2834|       |                  }
 2835|       |
 2836|       |                  const auto start = it;
 2837|       |                  skip_string_view(ctx, it, end);
 2838|       |                  if (bool(ctx.error)) [[unlikely]]
 2839|       |                     return;
 2840|       |                  if (validate_utf8_span<Opts>(ctx, start, it)) [[unlikely]]
 2841|       |                     return;
 2842|       |                  const sv key{start, size_t(it - start)};
 2843|       |                  ++it;
 2844|       |                  if constexpr (not Opts.null_terminated) {
 2845|       |                     if (it == end) [[unlikely]] {
 2846|       |                        ctx.error = error_code::unexpected_end;
 2847|       |                        return;
 2848|       |                     }
 2849|       |                  }
 2850|       |
 2851|       |                  if (key == tag.sv()) {
 2852|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 2853|       |                        return;
 2854|       |                     }
 2855|       |
 2856|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 2857|       |                     if (bool(ctx.error)) [[unlikely]]
 2858|       |                        return;
 2859|       |
 2860|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 2861|       |                        return;
 2862|       |                     }
 2863|       |                  }
 2864|       |                  else {
 2865|       |                     ctx.error = error_code::unknown_key;
 2866|       |                     return;
 2867|       |                  }
 2868|       |               }
 2869|       |            }
 2870|       |
 2871|       |            if (*it == '}') [[likely]] {
 2872|       |               --ctx.depth;
 2873|       |               if constexpr (glaze_object_t<T> || reflectable<T>) {
 2874|       |                  if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 2875|       |                     auto wrapper = self_constraint_v<T>(value);
 2876|       |                     from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 2877|       |                     if (bool(ctx.error)) {
 2878|       |                        return;
 2879|       |                     }
 2880|       |                  }
 2881|       |               }
 2882|       |               ++it;
 2883|       |               if constexpr (not Opts.null_terminated) {
 2884|       |                  if (it == end) {
 2885|       |                     ctx.error = error_code::end_reached;
 2886|       |                     return;
 2887|       |                  }
 2888|       |               }
 2889|       |               if constexpr (Opts.partial_read) {
 2890|       |                  ctx.error = error_code::partial_read_complete;
 2891|       |               }
 2892|       |               return;
 2893|       |            }
 2894|       |            ctx.error = error_code::unknown_key;
 2895|       |            return;
 2896|       |         }
 2897|   518k|         else {
 2898|   518k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|   518k|               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|   518k|                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|   518k|                  return bit_array<num_members>{};
 2902|   518k|               }
 2903|   518k|               else {
 2904|   518k|                  return nullptr;
 2905|   518k|               }
 2906|   518k|            }();
 2907|       |
 2908|       |            // A file include merges an external document into this object, so with
 2909|       |            // error_on_missing_keys the keys have to be counted across both documents (see
 2910|       |            // context::key_bits). While this object parses, its bits are published for its
 2911|       |            // includer members to hand down; and if this parse is itself an included document,
 2912|       |            // it claims the bits of the object that included us and merges into them at the
 2913|       |            // closing brace instead of running a check of its own.
 2914|   518k|            static constexpr bool tracks_include_keys = [] {
 2915|       |               // Nested so that reflecting over the members is only asked for when it can matter
 2916|   518k|               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2917|   518k|                  return has_includer_member<T>;
 2918|   518k|               }
 2919|   518k|               else {
 2920|   518k|                  return false;
 2921|   518k|               }
 2922|   518k|            }();
 2923|   518k|            [[maybe_unused]] bit_array<num_members>* include_bits{};
 2924|       |            if constexpr (tracks_include_keys) {
 2925|       |               if (ctx.include_key_type == &include_key_tag<T>) {
 2926|       |                  include_bits = static_cast<bit_array<num_members>*>(ctx.include_key_bits);
 2927|       |                  ctx.include_key_bits = nullptr;
 2928|       |                  ctx.include_key_type = nullptr;
 2929|       |               }
 2930|       |            }
 2931|   518k|            [[maybe_unused]] const std::conditional_t<tracks_include_keys,
 2932|   518k|                                                      key_bits_scope<std::remove_reference_t<decltype(ctx)>>,
 2933|   518k|                                                      inert_key_bits_scope> published_bits{
 2934|   518k|               ctx, [&]() -> void* {
 2935|   518k|                  if constexpr (tracks_include_keys) {
 2936|   518k|                     return &fields;
 2937|   518k|                  }
 2938|   518k|                  else {
 2939|   518k|                     return nullptr;
 2940|   518k|                  }
 2941|   518k|               }()};
 2942|       |
 2943|   518k|            size_t read_count{}; // for partial_read
 2944|       |
 2945|   518k|            bool first = true;
 2946|  2.06M|            while (true) {
  ------------------
  |  Branch (2946:20): [True: 2.03M, Folded]
  ------------------
 2947|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.partial_read) {
 2948|       |                  static constexpr bit_array<num_members> all_fields = [] {
 2949|       |                     bit_array<num_members> arr{};
 2950|       |                     for (size_t i = 0; i < num_members; ++i) {
 2951|       |                        arr[i] = true;
 2952|       |                     }
 2953|       |                     return arr;
 2954|       |                  }();
 2955|       |
 2956|       |                  if ((all_fields & fields) == all_fields) {
 2957|       |                     ctx.error = error_code::partial_read_complete;
 2958|       |                     --ctx.depth; // as above: an early success still closes this level
 2959|       |                     return;
 2960|       |                  }
 2961|       |               }
 2962|       |
 2963|       |               // Streaming refill point: at start of each iteration, ensure buffer has data
 2964|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 2965|       |                  if (ctx.stream.enabled()) {
 2966|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2967|       |                     const size_t remaining = ctx.stream.size() - consumed;
 2968|       |                     // Refill when less than half of buffer remains to ensure space for next key-value pair
 2969|       |                     if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2970|       |                        const char* new_it;
 2971|       |                        const char* new_end;
 2972|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2973|       |                        it = new_it;
 2974|       |                        end = new_end;
 2975|       |                        if (it >= end && ctx.stream.at_eof()) {
 2976|       |                           ctx.error = error_code::unexpected_end;
 2977|       |                           return;
 2978|       |                        }
 2979|       |                     }
 2980|       |                  }
 2981|       |               }
 2982|       |
 2983|  2.03M|               if (*it == '}') {
  ------------------
  |  Branch (2983:20): [True: 496k, False: 1.54M]
  ------------------
 2984|   496k|                  --ctx.depth;
 2985|       |                  if constexpr ((glaze_object_t<T> || reflectable<T>) && Opts.error_on_missing_keys) {
 2986|       |                     const bool defer_to_includer = [&] {
 2987|       |                        if constexpr (tracks_include_keys) {
 2988|       |                           if (include_bits) {
 2989|       |                              // An included document is a fragment: hand the keys it supplied to
 2990|       |                              // the object that included it, which checks the union of both.
 2991|       |                              *include_bits |= fields;
 2992|       |                              return true;
 2993|       |                           }
 2994|       |                        }
 2995|       |                        return false;
 2996|       |                     }();
 2997|       |                     constexpr auto req_fields = required_fields<T, Opts>();
 2998|       |                     if (not defer_to_includer && (req_fields & fields) != req_fields) {
 2999|       |                        for (size_t i = 0; i < num_members; ++i) {
 3000|       |                           if (not fields[i] && req_fields[i]) {
 3001|       |                              ctx.custom_error_message = reflect<T>::keys[i];
 3002|       |                              // We just return the first missing key in order to avoid heap allocations
 3003|       |                              break;
 3004|       |                           }
 3005|       |                        }
 3006|       |
 3007|       |                        ctx.error = error_code::missing_key;
 3008|       |                        return;
 3009|       |                     }
 3010|       |                  }
 3011|       |                  if constexpr (glaze_object_t<T> || reflectable<T>) {
 3012|       |                     if constexpr (has_self_constraint_v<T> && !check_skip_self_constraint(Opts)) {
 3013|       |                        auto wrapper = self_constraint_v<T>(value);
 3014|       |                        from<JSON, decltype(wrapper)>::template op<ws_handled<Opts>()>(wrapper, ctx, it, end);
 3015|       |                        if (bool(ctx.error)) {
 3016|       |                           return;
 3017|       |                        }
 3018|       |                     }
 3019|       |                  }
 3020|   496k|                  ++it; // Increment after checking for missing keys so errors are within buffer bounds
 3021|   496k|                  if constexpr (not Opts.null_terminated) {
 3022|   496k|                     if (it == end) {
  ------------------
  |  Branch (3022:26): [True: 46.9k, False: 449k]
  ------------------
 3023|  46.9k|                        ctx.error = error_code::end_reached;
 3024|  46.9k|                        return;
 3025|  46.9k|                     }
 3026|   496k|                  }
 3027|   449k|                  return;
 3028|   496k|               }
 3029|  1.54M|               else if (first) {
  ------------------
  |  Branch (3029:25): [True: 517k, False: 1.02M]
  ------------------
 3030|   517k|                  first = false;
 3031|   517k|               }
 3032|  1.02M|               else {
 3033|  1.02M|                  if (match_invalid_end<',', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3033:23): [True: 0, False: 1.02M]
  ------------------
 3034|      0|                     return;
 3035|      0|                  }
 3036|  1.02M|                  if constexpr (not Opts.null_terminated) {
 3037|  1.02M|                     if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3037:26): [True: 0, False: 1.02M]
  ------------------
 3038|      0|                        ctx.error = error_code::unexpected_end;
 3039|      0|                        return;
 3040|      0|                     }
 3041|  1.02M|                  }
 3042|       |
 3043|       |                  if constexpr ((not Opts.minified) && (num_members > 1 || not Opts.error_on_unknown_keys) &&
 3044|       |                                (!Opts.comments)) {
 3045|       |                     if (ws_size && ws_size < size_t(end - it)) {
 3046|       |                        skip_matching_ws(ws_start, it, ws_size);
 3047|       |                     }
 3048|       |                  }
 3049|       |
 3050|  1.02M|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3050:23): [True: 0, False: 1.02M]
  ------------------
 3051|      0|                     return;
 3052|      0|                  }
 3053|  1.02M|               }
 3054|       |
 3055|  1.54M|               constexpr auto reflection_type = glaze_object_t<T> || reflectable<T>;
  ------------------
  |  Branch (3055:49): [Folded, False: 0]
  |  Branch (3055:70): [Folded, False: 0]
  ------------------
 3056|       |
 3057|       |               if constexpr (reflection_type && (num_members == 0)) {
 3058|       |                  if constexpr (Opts.error_on_unknown_keys) {
 3059|       |                     static_assert(false_v<T>, "This should be unreachable");
 3060|       |                  }
 3061|       |                  else {
 3062|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3063|       |                        return;
 3064|       |                     }
 3065|       |
 3066|       |                     // parsing to an empty object, but at this point the JSON presents keys
 3067|       |
 3068|       |                     // Unknown key handler does not unescape keys. Unknown escaped keys are
 3069|       |                     // handled by the user.
 3070|       |
 3071|       |                     const auto start = it;
 3072|       |                     uint64_t ascii_acc{};
 3073|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3074|       |                     if (bool(ctx.error)) [[unlikely]]
 3075|       |                        return;
 3076|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3077|       |                        return;
 3078|       |                     const sv key{start, size_t(it - start)};
 3079|       |                     ++it;
 3080|       |                     if constexpr (not Opts.null_terminated) {
 3081|       |                        if (it == end) [[unlikely]] {
 3082|       |                           ctx.error = error_code::unexpected_end;
 3083|       |                           return;
 3084|       |                        }
 3085|       |                     }
 3086|       |
 3087|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3088|       |                        return;
 3089|       |                     }
 3090|       |
 3091|       |                     // Check if this key is the variant tag that should be skipped
 3092|       |                     if constexpr (not tag.sv().empty()) {
 3093|       |                        if (key == tag.sv()) {
 3094|       |                           // Skip the tag value
 3095|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3096|       |                           if (bool(ctx.error)) [[unlikely]]
 3097|       |                              return;
 3098|       |                           resync_window_end(ctx, end); // a streaming skip refills
 3099|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 3100|       |                              return;
 3101|       |                           }
 3102|       |                           continue;
 3103|       |                        }
 3104|       |                     }
 3105|       |
 3106|       |                     parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3107|       |                     if (bool(ctx.error)) [[unlikely]]
 3108|       |                        return;
 3109|       |                     if constexpr (not Opts.null_terminated) {
 3110|       |                        if (it == end) [[unlikely]] {
 3111|       |                           ctx.error = error_code::unexpected_end;
 3112|       |                           return;
 3113|       |                        }
 3114|       |                     }
 3115|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3116|       |                        return;
 3117|       |                     }
 3118|       |                  }
 3119|       |               }
 3120|       |               else if constexpr (reflection_type) {
 3121|       |                  static_assert(bool(hash_info<T>.type));
 3122|       |
 3123|       |                  if (*it != '"') [[unlikely]] {
 3124|       |                     ctx.error = error_code::expected_quote;
 3125|       |                     return;
 3126|       |                  }
 3127|       |                  ++it;
 3128|       |                  if constexpr (not Opts.null_terminated) {
 3129|       |                     if (it == end) [[unlikely]] {
 3130|       |                        ctx.error = error_code::unexpected_end;
 3131|       |                        return;
 3132|       |                     }
 3133|       |                  }
 3134|       |
 3135|       |                  if constexpr (not tag.sv().empty() && not contains_tag<T, tag>()) {
 3136|       |                     // For tagged variants we first check to see if the key matches the tag
 3137|       |                     // We only need to do this if the tag is not part of the keys
 3138|       |
 3139|       |                     const auto start = it;
 3140|       |                     uint64_t ascii_acc{};
 3141|       |                     skip_string_view(ctx, it, end, ascii_acc);
 3142|       |                     if (bool(ctx.error)) [[unlikely]]
 3143|       |                        return;
 3144|       |                     if (validate_utf8_span<Opts>(ctx, start, it, ascii_acc)) [[unlikely]]
 3145|       |                        return;
 3146|       |                     const sv key{start, size_t(it - start)};
 3147|       |                     ++it;
 3148|       |                     if constexpr (not Opts.null_terminated) {
 3149|       |                        if (it == end) [[unlikely]] {
 3150|       |                           ctx.error = error_code::unexpected_end;
 3151|       |                           return;
 3152|       |                        }
 3153|       |                     }
 3154|       |
 3155|       |                     if (key == tag.sv()) {
 3156|       |                        if (parse_ws_colon<Opts>(ctx, it, end)) {
 3157|       |                           return;
 3158|       |                        }
 3159|       |
 3160|       |                        parse<JSON>::handle_unknown<Opts>(key, value, ctx, it, end);
 3161|       |                        if (bool(ctx.error)) [[unlikely]]
 3162|       |                           return;
 3163|       |
 3164|       |                        if (skip_ws<Opts>(ctx, it, end)) {
 3165|       |                           return;
 3166|       |                        }
 3167|       |                        continue;
 3168|       |                     }
 3169|       |                     else {
 3170|       |                        it = start; // reset the iterator
 3171|       |                     }
 3172|       |                  }
 3173|       |
 3174|       |                  if constexpr (Opts.error_on_missing_keys || Opts.partial_read) {
 3175|       |                     size_t index = num_members;
 3176|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end, index);
 3177|       |                     if (bool(ctx.error)) [[unlikely]]
 3178|       |                        return;
 3179|       |                     if (index < num_members) {
 3180|       |                        fields[index] = true;
 3181|       |                     }
 3182|       |                  }
 3183|       |                  else {
 3184|       |                     parse_and_invoke<Opts, T>(value, ctx, it, end);
 3185|       |                     if (bool(ctx.error)) [[unlikely]]
 3186|       |                        return;
 3187|       |                  }
 3188|       |               }
 3189|  1.54M|               else {
 3190|       |                  // For types like std::map, std::unordered_map
 3191|       |
 3192|  1.54M|                  auto reading = [&](auto&& key) {
 3193|  1.54M|                     if constexpr (Opts.partial_read) {
 3194|  1.54M|                        if (auto element = value.find(key); element != value.end()) {
 3195|  1.54M|                           ++read_count;
 3196|  1.54M|                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|  1.54M|                        }
 3198|  1.54M|                        else {
 3199|  1.54M|                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|  1.54M|                        }
 3201|  1.54M|                     }
 3202|  1.54M|                     else {
 3203|  1.54M|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|  1.54M|                     }
 3205|  1.54M|                  };
 3206|       |
 3207|       |                  // using Key = std::conditional_t<heterogeneous_map<T>, sv, typename T::key_type>;
 3208|  1.54M|                  using Key = typename T::key_type;
 3209|  1.54M|                  if constexpr (std::is_same_v<Key, std::string>) {
 3210|  1.54M|                     ctx.scratch.clear();
 3211|  1.54M|                     parse<JSON>::op<Opts>(ctx.scratch, ctx, it, end);
 3212|  1.54M|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3212:26): [True: 0, False: 1.54M]
  ------------------
 3213|      0|                        return;
 3214|       |
 3215|  1.54M|                     if (parse_ws_colon<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3215:26): [True: 0, False: 1.54M]
  ------------------
 3216|      0|                        return;
 3217|      0|                     }
 3218|       |
 3219|  1.54M|                     reading(ctx.scratch);
 3220|       |                     if constexpr (Opts.partial_read) {
 3221|       |                        if (read_count == value.size()) {
 3222|       |                           return;
 3223|       |                        }
 3224|       |                     }
 3225|  1.54M|                     if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (3225:26): [True: 21.9k, False: 1.52M]
  ------------------
 3226|  21.9k|                        return;
 3227|       |                  }
 3228|       |                  else if constexpr (str_t<Key>) {
 3229|       |                     Key key;
 3230|       |                     parse<JSON>::op<Opts>(key, ctx, it, end);
 3231|       |                     if (bool(ctx.error)) [[unlikely]]
 3232|       |                        return;
 3233|       |
 3234|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3235|       |                        return;
 3236|       |                     }
 3237|       |
 3238|       |                     reading(key);
 3239|       |                     if constexpr (Opts.partial_read) {
 3240|       |                        if (read_count == value.size()) {
 3241|       |                           return;
 3242|       |                        }
 3243|       |                     }
 3244|       |                     if (bool(ctx.error)) [[unlikely]]
 3245|       |                        return;
 3246|       |                  }
 3247|       |                  else {
 3248|       |                     Key key_value{};
 3249|       |                     if constexpr (is_named_enum<Key> || mimics_str_t<Key>) {
 3250|       |                        parse<JSON>::op<Opts>(key_value, ctx, it, end);
 3251|       |                     }
 3252|       |                     else if constexpr (std::is_arithmetic_v<Key>) {
 3253|       |                        // prefer over quoted_t below to avoid double parsing of quoted_t
 3254|       |                        parse<JSON>::op<opt_true<Opts, quoted_num_opt_tag{}>>(key_value, ctx, it, end);
 3255|       |                     }
 3256|       |                     else {
 3257|       |                        parse<JSON>::op<opt_false<Opts, raw_string_opt_tag{}>>(quoted_t<Key>{key_value}, ctx, it, end);
 3258|       |                     }
 3259|       |                     if (bool(ctx.error)) [[unlikely]]
 3260|       |                        return;
 3261|       |
 3262|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 3263|       |                        return;
 3264|       |                     }
 3265|       |
 3266|       |                     reading(key_value);
 3267|       |                     if constexpr (Opts.partial_read) {
 3268|       |                        if (read_count == value.size()) {
 3269|       |                           return;
 3270|       |                        }
 3271|       |                     }
 3272|       |                     if (bool(ctx.error)) [[unlikely]]
 3273|       |                        return;
 3274|       |                  }
 3275|  1.54M|               }
 3276|       |
 3277|       |               // Streaming refill point: after parsing each key-value pair, refill if buffer is low
 3278|       |               if constexpr (has_streaming_state<decltype(ctx)>) {
 3279|       |                  if (ctx.stream.enabled()) {
 3280|       |                     const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 3281|       |                     // Refill when less than 25% of buffer remains to ensure enough space for next element
 3282|       |                     if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 3283|       |                        const char* new_it;
 3284|       |                        const char* new_end;
 3285|       |                        ctx.stream.consume_and_refill(consumed, new_it, new_end);
 3286|       |                        it = new_it;
 3287|       |                        end = new_end;
 3288|       |                        if (it >= end && ctx.stream.at_eof()) {
 3289|       |                           ctx.error = error_code::unexpected_end;
 3290|       |                           return;
 3291|       |                        }
 3292|       |                     }
 3293|       |                  }
 3294|       |               }
 3295|       |
 3296|  1.54M|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (3296:20): [True: 0, False: 1.54M]
  ------------------
 3297|      0|                  return;
 3298|      0|               }
 3299|  1.54M|            }
 3300|   518k|         }
 3301|   518k|      }
_ZZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_ENKUlvE_clEv:
 2898|   518k|            decltype(auto) fields = [&]() -> decltype(auto) {
 2899|       |               if constexpr ((glaze_object_t<T> || reflectable<T>) &&
 2900|       |                             (Opts.error_on_missing_keys || Opts.partial_read)) {
 2901|       |                  return bit_array<num_members>{};
 2902|       |               }
 2903|   518k|               else {
 2904|   518k|                  return nullptr;
 2905|   518k|               }
 2906|   518k|            }();
_ZZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_ENKUlvE1_clEv:
 2934|   518k|               ctx, [&]() -> void* {
 2935|       |                  if constexpr (tracks_include_keys) {
 2936|       |                     return &fields;
 2937|       |                  }
 2938|   518k|                  else {
 2939|   518k|                     return nullptr;
 2940|   518k|                  }
 2941|   518k|               }()};
_ZZN3glz4fromILj10ENS_17ordered_small_mapINS_12generic_jsonILNS_8num_modeE0ES1_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj1EEETnNS_14string_literalEXtlNS9_ILm1EEEEERS5_TkNS_10is_contextERNS_7contextERPKcSF_EEvOT1_OT2_OT3_T4_ENKUlOT_E_clIRNSt3__112basic_stringIcNSS_11char_traitsIcEENSS_9allocatorIcEEEEEEDaSP_:
 3192|  1.54M|                  auto reading = [&](auto&& key) {
 3193|       |                     if constexpr (Opts.partial_read) {
 3194|       |                        if (auto element = value.find(key); element != value.end()) {
 3195|       |                           ++read_count;
 3196|       |                           parse<JSON>::op<ws_handled<Opts>()>(element->second, ctx, it, end);
 3197|       |                        }
 3198|       |                        else {
 3199|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 3200|       |                        }
 3201|       |                     }
 3202|  1.54M|                     else {
 3203|  1.54M|                        parse<JSON>::op<ws_handled<Opts>()>(value[key], ctx, it, end);
 3204|  1.54M|                     }
 3205|  1.54M|                  };
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEETkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
   50|  1.75M|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  1.75M|         else {
   61|  1.75M|            using V = std::remove_cvref_t<T>;
   62|  1.75M|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  1.75M|                                             end);
   64|  1.75M|         }
   65|  1.75M|      }
_ZN3glz4fromILj10ENS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS4_TkNS_10is_contextERNS_7contextERPKcSC_EEvOT0_OT1_OT2_T3_:
  151|  1.75M|      {
  152|  1.75M|         using V = std::decay_t<decltype(get_member(std::declval<Value>(), meta_wrapper_v<T>))>;
  153|  1.75M|         from<JSON, V>::template op<Opts>(get_member(std::forward<Value>(value), meta_wrapper_v<T>),
  154|  1.75M|                                          std::forward<Ctx>(ctx), std::forward<It0>(it), end);
  155|  1.75M|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3863|  1.75M|      {
 3864|       |         if constexpr (tagging == variant_tagging_kind::adjacent) {
 3865|       |            read_adjacent<Options>(value, ctx, it, end);
 3866|       |         }
 3867|  1.75M|         else {
 3868|  1.75M|            read_deduced<Options>(value, ctx, it, end);
 3869|  1.75M|         }
 3870|  1.75M|      }
_ZN3glz4fromILj10ENSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEEE12read_deducedITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERSH_TkNS_10is_contextERNS_7contextERPKcSP_EEvOT0_OT1_OT2_T3_:
 3874|  1.75M|      {
 3875|       |         // In the reader rather than on the variant, because the choice only exists here: writing such
 3876|       |         // a variant is unambiguous, and code that only writes one has nothing to fix.
 3877|  1.75M|         using indistinguishable = variant_indistinguishable_alternatives<T>;
 3878|  1.75M|         static_assert(not indistinguishable::found ||
 3879|  1.75M|                          detail::variant_alternatives_are_indistinguishable<T, typename indistinguishable::first,
 3880|  1.75M|                                                                             typename indistinguishable::second>::value,
 3881|  1.75M|                       "Two alternatives of this variant have the same keys holding the same types and no "
 3882|  1.75M|                       "discriminator, so reading JSON into it cannot tell them apart: every read would silently "
 3883|  1.75M|                       "produce the first, whichever was written. Declare `tag` and `ids` in glz::meta for the "
 3884|  1.75M|                       "variant, or remove one of the two. They are the last two template arguments of "
 3885|  1.75M|                       "variant_alternatives_are_indistinguishable in the instantiation backtrace.");
 3886|       |
 3887|  1.75M|         constexpr auto Opts = ws_handled_off<Options>();
 3888|  1.75M|         if constexpr (variant_is_auto_deducible<T>()) {
 3889|       |            if constexpr (not check_ws_handled(Options)) {
 3890|       |               if (skip_ws<Opts>(ctx, it, end)) {
 3891|       |                  return;
 3892|       |               }
 3893|       |            }
 3894|       |
 3895|  1.75M|            switch (*it) {
 3896|      0|            case '\0':
  ------------------
  |  Branch (3896:13): [True: 0, False: 1.75M]
  ------------------
 3897|      0|               ctx.error = error_code::unexpected_end;
 3898|      0|               return;
 3899|   462k|            case '{': {
  ------------------
  |  Branch (3899:13): [True: 462k, False: 1.28M]
  ------------------
 3900|       |               // This branch consumes the brace itself and hands the object to a reader with
 3901|       |               // `opening_handled`, which therefore does not count the level -- but does release it at
 3902|       |               // the closing brace. So the level is taken here, in both buffer modes, and paid back by
 3903|       |               // the reader below.
 3904|   462k|               if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (3904:20): [True: 0, False: 462k]
  ------------------
 3905|      0|                  return;
 3906|      0|               }
 3907|       |
 3908|   462k|               ++it;
 3909|   462k|               if constexpr (not Opts.null_terminated) {
 3910|   462k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (3910:23): [True: 0, False: 462k]
  ------------------
 3911|      0|                     ctx.error = error_code::unexpected_end;
 3912|      0|                     return;
 3913|      0|                  }
 3914|   462k|               }
 3915|   462k|               using type_counts = variant_type_count<T>;
 3916|   462k|               constexpr auto n_object_candidates = variant_object_candidate_count_v<Opts, T>;
 3917|       |               if constexpr (n_object_candidates < 1) {
 3918|       |                  ctx.error = error_code::no_matching_variant_type;
 3919|       |                  return;
 3920|       |               }
 3921|   462k|               else if constexpr (n_object_candidates == 1 && tag_v<T>.empty()) {
 3922|   462k|                  constexpr auto first_idx = variant_first_object_candidate_v<Opts, T>;
 3923|   462k|                  using V = std::variant_alternative_t<first_idx, T>;
 3924|   462k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (3924:23): [True: 462k, False: 0]
  ------------------
 3925|   462k|                  parse<JSON>::op<opening_handled<Opts>()>(std::get<V>(value), ctx, it, end);
 3926|   462k|                  return;
 3927|       |               }
 3928|       |               else {
 3929|       |                  auto possible_types = bit_array<std::variant_size_v<T>>{}.flip();
 3930|       |                  static constexpr auto& deduction_bits = variant_deduction_bits<T>;
 3931|       |                  static constexpr size_t deduction_key_count = variant_deduction_key_count<T>;
 3932|       |                  static constexpr auto tag_literal = string_literal_from_view<tag_v<T>.size()>(tag_v<T>);
 3933|       |
 3934|       |                  // Track if we've encountered a tag and what value it had
 3935|       |                  std::optional<size_t> tag_specified_index{};
 3936|       |
 3937|       |                  if (skip_ws<Opts>(ctx, it, end)) {
 3938|       |                     return;
 3939|       |                  }
 3940|       |                  // Once the reader knows which alternative this object holds it may have to read
 3941|       |                  // it again from here. Anchor the position rather than keep the pointer: the scan
 3942|       |                  // below skips values, and a streaming skip refills, which moves the window out
 3943|       |                  // from under a raw pointer (see rewind_anchor).
 3944|       |                  auto start = make_rewind_anchor(ctx, it);
 3945|       |                  bool first_key = true;
 3946|       |                  // Parse bifurcation for tagged variants:
 3947|       |                  //
 3948|       |                  // Without this optimization, tagged variant parsing always uses two passes:
 3949|       |                  //   1. Scan all keys to find the tag (e.g. "type"), skipping values
 3950|       |                  //   2. Reset `it = start` and re-parse the entire object into the resolved type
 3951|       |                  //
 3952|       |                  // When the tag is the first key, the second pass redundantly re-reads every
 3953|       |                  // field that follows it. This lambda avoids that: if the tag was the first key,
 3954|       |                  // it advances past the trailing comma so the object parser picks up at the
 3955|       |                  // second field. If the tag was found later, it falls back to the full re-parse.
 3956|       |                  //
 3957|       |                  // One exception: if the tag name is also a field on the resolved struct
 3958|       |                  // (contains_tag), we must re-parse regardless so the value is stored in
 3959|       |                  // the struct field. This override is applied inside each std::visit lambda.
 3960|       |                  //
 3961|       |                  // Either way the rewind can fail under a streaming read: the window only holds so
 3962|       |                  // much, and an object wider than it has no start left to return to.
 3963|       |                  auto position_after_tag = [&] {
 3964|       |                     if (first_key) {
 3965|       |                        if (*it == ',') ++it; // skip comma; handles tag-only objects where *it == '}'
 3966|       |                        return true;
 3967|       |                     }
 3968|       |                     return start.rewind(ctx, it, end); // tag came later, re-parse from the beginning
 3969|       |                  };
 3970|       |                  // `first_key` also answers "were we reset to the object start", which is what
 3971|       |                  // position_after_tag does for every key but the first.
 3972|       |                  for (; *it != '}'; first_key = false) {
 3973|       |                     if (!first_key) {
 3974|       |                        if (match_invalid_end<',', Opts>(ctx, it, end)) {
 3975|       |                           return;
 3976|       |                        }
 3977|       |                     }
 3978|       |
 3979|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 3980|       |                        return;
 3981|       |                     }
 3982|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3983|       |                        return;
 3984|       |                     }
 3985|       |
 3986|       |                     auto* key_start = it;
 3987|       |                     skip_string_view(ctx, it, end);
 3988|       |                     if (bool(ctx.error)) [[unlikely]]
 3989|       |                        return;
 3990|       |                     if (validate_utf8_span<Opts>(ctx, key_start, it)) [[unlikely]]
 3991|       |                        return;
 3992|       |                     const sv key = {key_start, size_t(it - key_start)};
 3993|       |
 3994|       |                     if (match_invalid_end<'"', Opts>(ctx, it, end)) {
 3995|       |                        return;
 3996|       |                     }
 3997|       |
 3998|       |                     if constexpr (deduction_key_count > 0) {
 3999|       |                        // We first check if a tag is defined and see if the key matches the tag
 4000|       |                        if constexpr (not tag_v<T>.empty()) {
 4001|       |                           if (key == tag_v<T>) {
 4002|       |                              if (parse_ws_colon<Opts>(ctx, it, end)) {
 4003|       |                                 return;
 4004|       |                              }
 4005|       |
 4006|       |                              using id_type = std::decay_t<decltype(ids_v<T>[0])>;
 4007|       |
 4008|       |                              std::conditional_t<std::integral<id_type>, id_type, sv> type_id{};
 4009|       |                              if constexpr (std::integral<id_type>) {
 4010|       |                                 from<JSON, id_type>::template op<ws_handled<Opts>()>(type_id, ctx, it, end);
 4011|       |                              }
 4012|       |                              else {
 4013|       |                                 // The id is turned into an index below and never leaves this
 4014|       |                                 // reader, so the view of the window it borrows cannot outlive it.
 4015|       |                                 parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4016|       |                              }
 4017|       |                              if (bool(ctx.error)) [[unlikely]]
 4018|       |                                 return;
 4019|       |                              if (skip_ws<Opts>(ctx, it, end)) {
 4020|       |                                 return;
 4021|       |                              }
 4022|       |                              if (!(*it == ',' || *it == '}')) [[unlikely]] {
 4023|       |                                 ctx.error = error_code::syntax_error;
 4024|       |                                 return;
 4025|       |                              }
 4026|       |
 4027|       |                              size_t type_index;
 4028|       |                              if constexpr (std::integral<id_type>) {
 4029|       |                                 type_index = variant_id_to_index<T>::op(type_id);
 4030|       |                              }
 4031|       |                              else {
 4032|       |                                 type_index = variant_id_to_index<T>::op(
 4033|       |                                    type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4034|       |                              }
 4035|       |                              if (type_index < ids_v<T>.size()) [[likely]] {
 4036|       |                                 // Check if the deduced types include the tag-specified type
 4037|       |                                 // If not, the tag doesn't match the fields
 4038|       |                                 // We're already inside if constexpr (deduction_registry.size()), so we know deduction
 4039|       |                                 // is happening. At this point, possible_types has been narrowed by field deduction.
 4040|       |                                 // Check if the tag-specified type is still possible
 4041|       |                                 const bool type_is_possible = possible_types[type_index];
 4042|       |                                 if (!type_is_possible) {
 4043|       |                                    // Tag specifies a type that doesn't match the fields seen so far
 4044|       |                                    ctx.error = error_code::no_matching_variant_type;
 4045|       |                                    return;
 4046|       |                                 }
 4047|       |
 4048|       |                                 if (!position_after_tag()) return;
 4049|       |                                 tag_specified_index = type_index; // Store the tag-specified type
 4050|       |                                 if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4051|       |                                 std::visit(
 4052|       |                                    [&](auto&& v) {
 4053|       |                                       using V = std::decay_t<decltype(v)>;
 4054|       |                                       constexpr bool is_object =
 4055|       |                                          (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4056|       |                                       if constexpr (variant_unit_alternative<V>) {
 4057|       |                                          // A unit alternative carries no data; its object holds only the
 4058|       |                                          // discriminator. Consume that body through an empty reflected object so
 4059|       |                                          // unknown-key policy and terminator handling match every other alternative.
 4060|       |                                          detail::variant_unit_body unit_body{};
 4061|       |                                          from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4062|       |                                                                                             tag_literal>(unit_body,
 4063|       |                                                                                                          ctx, it, end);
 4064|       |                                       }
 4065|       |                                       else if constexpr (is_object) {
 4066|       |                                          if constexpr (contains_tag<V, tag_literal>()) {
 4067|       |                                             // tag is a struct field, must re-parse
 4068|       |                                             if (!start.rewind(ctx, it, end)) return;
 4069|       |                                          }
 4070|       |                                          from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it,
 4071|       |                                                                                                           end);
 4072|       |                                       }
 4073|       |                                       else if constexpr (is_memory_object<V>) {
 4074|       |                                          if (!v) {
 4075|       |                                             if constexpr (is_specialization_v<V, std::optional>) {
 4076|       |                                                if constexpr (requires { v.emplace(); }) {
 4077|       |                                                   v.emplace();
 4078|       |                                                }
 4079|       |                                                else {
 4080|       |                                                   v = typename V::value_type{};
 4081|       |                                                }
 4082|       |                                             }
 4083|       |                                             else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4084|       |                                                v = std::make_unique<typename V::element_type>();
 4085|       |                                             else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4086|       |                                                v = std::make_shared<typename V::element_type>();
 4087|       |                                             else if constexpr (constructible<V>) {
 4088|       |                                                v = meta_construct_v<V>();
 4089|       |                                             }
 4090|       |                                             else if constexpr (std::is_pointer_v<V> &&
 4091|       |                                                                can_allocate_raw_pointer<Opts,
 4092|       |                                                                                         std::decay_t<decltype(ctx)>>) {
 4093|       |                                                if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4094|       |                                                   return;
 4095|       |                                                }
 4096|       |                                             }
 4097|       |                                             else {
 4098|       |                                                ctx.error = error_code::invalid_nullable_read;
 4099|       |                                                return;
 4100|       |                                                // Cannot read into unset nullable that is not std::optional,
 4101|       |                                                // std::unique_ptr, or std::shared_ptr
 4102|       |                                             }
 4103|       |                                          }
 4104|       |                                          if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4105|       |                                             // tag is a struct field, must re-parse
 4106|       |                                             if (!start.rewind(ctx, it, end)) return;
 4107|       |                                          }
 4108|       |                                          from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4109|       |                                             *v, ctx, it, end);
 4110|       |                                       }
 4111|       |                                       else if constexpr (custom_read<V>) {
 4112|       |                                          // Custom handlers parse the remaining body themselves and do not
 4113|       |                                          // accept the tag template parameter; the tag was already consumed.
 4114|       |                                          // This only works when the tag was the first key. If it came later,
 4115|       |                                          // we were reset to the object start and the custom handler would
 4116|       |                                          // absorb the tag, so error rather than corrupt the value.
 4117|       |                                          if (!first_key) {
 4118|       |                                             ctx.error = error_code::feature_not_supported;
 4119|       |                                             ctx.custom_error_message =
 4120|       |                                                "the tag must be the first key for a custom variant alternative";
 4121|       |                                             return;
 4122|       |                                          }
 4123|       |                                          from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4124|       |                                       }
 4125|       |                                    },
 4126|       |                                    value);
 4127|       |
 4128|       |                                 return; // we've decoded our target type
 4129|       |                              }
 4130|       |                              else [[unlikely]] {
 4131|       |                                 // Check if we have a default type (ids array shorter than variant)
 4132|       |                                 constexpr auto ids_size = ids_v<T>.size();
 4133|       |                                 constexpr auto variant_size = std::variant_size_v<T>;
 4134|       |                                 if constexpr (ids_size < variant_size) {
 4135|       |                                    // Use the first unlabeled type as the default
 4136|       |                                    const auto default_type_index = ids_size;
 4137|       |
 4138|       |                                    if (!position_after_tag()) return;
 4139|       |                                    tag_specified_index = default_type_index; // Store the default type index
 4140|       |                                    if (value.index() != default_type_index)
 4141|       |                                       emplace_runtime_variant(value, default_type_index);
 4142|       |                                    std::visit(
 4143|       |                                       [&](auto&& v) {
 4144|       |                                          using V = std::decay_t<decltype(v)>;
 4145|       |                                          constexpr bool is_object =
 4146|       |                                             (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4147|       |                                          if constexpr (variant_unit_alternative<V>) {
 4148|       |                                             // A unit alternative carries no data; its object holds only the
 4149|       |                                             // discriminator. Consume that body through an empty reflected object so
 4150|       |                                             // unknown-key policy and terminator handling match every other
 4151|       |                                             // alternative.
 4152|       |                                             detail::variant_unit_body unit_body{};
 4153|       |                                             from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4154|       |                                                                                                tag_literal>(
 4155|       |                                                unit_body, ctx, it, end);
 4156|       |                                          }
 4157|       |                                          else if constexpr (is_object) {
 4158|       |                                             if constexpr (contains_tag<V, tag_literal>()) {
 4159|       |                                                // tag is a struct field, must re-parse
 4160|       |                                                if (!start.rewind(ctx, it, end)) return;
 4161|       |                                             }
 4162|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4163|       |                                          }
 4164|       |                                          else if constexpr (is_memory_object<V>) {
 4165|       |                                             if (!v) {
 4166|       |                                                if constexpr (is_specialization_v<V, std::optional>) {
 4167|       |                                                   if constexpr (requires { v.emplace(); }) {
 4168|       |                                                      v.emplace();
 4169|       |                                                   }
 4170|       |                                                   else {
 4171|       |                                                      v = typename V::value_type{};
 4172|       |                                                   }
 4173|       |                                                }
 4174|       |                                                else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4175|       |                                                   v = std::make_unique<typename V::element_type>();
 4176|       |                                                else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4177|       |                                                   v = std::make_shared<typename V::element_type>();
 4178|       |                                                else if constexpr (constructible<V>) {
 4179|       |                                                   v = meta_construct_v<V>();
 4180|       |                                                }
 4181|       |                                                else if constexpr (std::is_pointer_v<V> &&
 4182|       |                                                                   can_allocate_raw_pointer<
 4183|       |                                                                      Opts, std::decay_t<decltype(ctx)>>) {
 4184|       |                                                   if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4185|       |                                                      return;
 4186|       |                                                   }
 4187|       |                                                }
 4188|       |                                                else {
 4189|       |                                                   ctx.error = error_code::invalid_nullable_read;
 4190|       |                                                   return;
 4191|       |                                                }
 4192|       |                                             }
 4193|       |                                             if constexpr (contains_tag<memory_type<V>, tag_literal>()) {
 4194|       |                                                // tag is a struct field, must re-parse
 4195|       |                                                if (!start.rewind(ctx, it, end)) return;
 4196|       |                                             }
 4197|       |                                             from<JSON, memory_type<V>>::template op<opening_handled<Opts>()>(*v, ctx,
 4198|       |                                                                                                              it, end);
 4199|       |                                          }
 4200|       |                                          else if constexpr (custom_read<V>) {
 4201|       |                                             // Custom handlers parse the remaining body themselves; this only
 4202|       |                                             // works when the tag was the first key (see above). If it came
 4203|       |                                             // later we were reset to the object start, so error rather than
 4204|       |                                             // let the custom handler absorb the tag.
 4205|       |                                             if (!first_key) {
 4206|       |                                                ctx.error = error_code::feature_not_supported;
 4207|       |                                                ctx.custom_error_message =
 4208|       |                                                   "the tag must be the first key for a custom variant alternative";
 4209|       |                                                return;
 4210|       |                                             }
 4211|       |                                             from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4212|       |                                          }
 4213|       |                                       },
 4214|       |                                       value);
 4215|       |
 4216|       |                                    return;
 4217|       |                                 }
 4218|       |                                 else {
 4219|       |                                    ctx.error = error_code::no_matching_variant_type;
 4220|       |                                    ctx.custom_error_message = variant_ids_string_v<T>;
 4221|       |                                    return;
 4222|       |                                 }
 4223|       |                              }
 4224|       |                           }
 4225|       |                        }
 4226|       |
 4227|       |                        // Inline decode_hash lookup for variant deduction
 4228|       |                        using deduction_keys_t = keys_wrapper<variant_deduction_keys<T>>;
 4229|       |                        constexpr auto& DeductionHashInfo = hash_info<deduction_keys_t>;
 4230|       |                        const auto deduction_index =
 4231|       |                           decode_hash_with_size<JSON, deduction_keys_t, DeductionHashInfo, DeductionHashInfo.type>::op(
 4232|       |                              key.data(), key.data() + key.size(), key.size());
 4233|       |                        if (deduction_index < deduction_key_count && variant_deduction_keys<T>[deduction_index] == key)
 4234|       |                           [[likely]] {
 4235|       |                           possible_types &= deduction_bits[deduction_index];
 4236|       |                        }
 4237|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4238|       |                           ctx.error = error_code::unknown_key;
 4239|       |                           return;
 4240|       |                        }
 4241|       |                     }
 4242|       |                     else if constexpr (not tag_v<T>.empty()) {
 4243|       |                        // empty object case for variant, if there are no normal elements
 4244|       |                        if (key == tag_v<T>) {
 4245|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4246|       |                              return;
 4247|       |                           }
 4248|       |
 4249|       |                           // The id is turned into an index below and never leaves this reader,
 4250|       |                           // so the view of the window it borrows cannot outlive that window.
 4251|       |                           std::string_view type_id{};
 4252|       |                           parse_transient_string_view<ws_handled<Opts>()>(type_id, ctx, it, end);
 4253|       |                           if (bool(ctx.error)) [[unlikely]]
 4254|       |                              return;
 4255|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4256|       |                              return;
 4257|       |                           }
 4258|       |
 4259|       |                           const auto type_index = variant_id_to_index<T>::op(
 4260|       |                              type_id.data(), type_id.data() + type_id.size(), type_id.size());
 4261|       |                           if (type_index < ids_v<T>.size()) [[likely]] {
 4262|       |                              if (!position_after_tag()) return;
 4263|       |                              tag_specified_index = type_index; // Store the tag-specified type
 4264|       |                              if (value.index() != type_index) emplace_runtime_variant(value, type_index);
 4265|       |                           }
 4266|       |                           else {
 4267|       |                              // Check if we have a default type (ids array shorter than variant)
 4268|       |                              constexpr auto ids_size = ids_v<T>.size();
 4269|       |                              constexpr auto variant_size = std::variant_size_v<T>;
 4270|       |                              if constexpr (ids_size < variant_size) {
 4271|       |                                 // Use the first unlabeled type as the default
 4272|       |                                 if (!position_after_tag()) return;
 4273|       |                                 const auto default_index = ids_size;
 4274|       |                                 tag_specified_index = default_index; // Store the default type index
 4275|       |                                 if (value.index() != default_index) emplace_runtime_variant(value, default_index);
 4276|       |                              }
 4277|       |                              else {
 4278|       |                                 ctx.error = error_code::no_matching_variant_type;
 4279|       |                                 ctx.custom_error_message = variant_ids_string_v<T>;
 4280|       |                                 return;
 4281|       |                              }
 4282|       |                           }
 4283|       |                           // Parse the type (handles tag skipping and unknown keys)
 4284|       |                           std::visit(
 4285|       |                              [&](auto&& v) {
 4286|       |                                 using V = std::decay_t<decltype(v)>;
 4287|       |                                 if constexpr (custom_read<V>) {
 4288|       |                                    // Custom handlers parse the remaining object body themselves and do not
 4289|       |                                    // accept the tag template parameter that reflected objects use to skip an
 4290|       |                                    // interior tag key. That only works when the tag is the first key (it was
 4291|       |                                    // just consumed). If the tag came after other keys, position_after_tag()
 4292|       |                                    // reset us to the object start and the custom handler would absorb the tag
 4293|       |                                    // into its value, so error here rather than corrupt the result.
 4294|       |                                    if (!first_key) {
 4295|       |                                       ctx.error = error_code::feature_not_supported;
 4296|       |                                       ctx.custom_error_message =
 4297|       |                                          "the tag must be the first key for a custom variant alternative";
 4298|       |                                       return;
 4299|       |                                    }
 4300|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4301|       |                                 }
 4302|       |                                 else {
 4303|       |                                    if constexpr (contains_tag<V, tag_literal>()) {
 4304|       |                                       // tag is a struct field, must re-parse
 4305|       |                                       if (!start.rewind(ctx, it, end)) return;
 4306|       |                                    }
 4307|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4308|       |                                 }
 4309|       |                              },
 4310|       |                              value);
 4311|       |                           return;
 4312|       |                        }
 4313|       |                        else if constexpr (Opts.error_on_unknown_keys) {
 4314|       |                           ctx.error = error_code::unknown_key;
 4315|       |                           return;
 4316|       |                        }
 4317|       |                        else {
 4318|       |                           // Skip unknown key's value (non-tag key in empty variant)
 4319|       |                           if (parse_ws_colon<Opts>(ctx, it, end)) {
 4320|       |                              return;
 4321|       |                           }
 4322|       |                           skip_value<JSON>::op<Opts>(ctx, it, end);
 4323|       |                           if (bool(ctx.error)) [[unlikely]]
 4324|       |                              return;
 4325|       |                           resync_window_end(ctx, end); // a streaming skip refills
 4326|       |                           if (skip_ws<Opts>(ctx, it, end)) {
 4327|       |                              return;
 4328|       |                           }
 4329|       |                           continue; // Continue loop to find the tag
 4330|       |                        }
 4331|       |                     }
 4332|       |                     else if constexpr (Opts.error_on_unknown_keys) {
 4333|       |                        ctx.error = error_code::unknown_key;
 4334|       |                        return;
 4335|       |                     }
 4336|       |
 4337|       |                     auto matching_types = possible_types.popcount();
 4338|       |                     if (matching_types == 0) {
 4339|       |                        ctx.error = error_code::no_matching_variant_type;
 4340|       |                        return;
 4341|       |                     }
 4342|       |                     // Only short-circuit for variants without tags
 4343|       |                     else if constexpr (tag_v<T>.empty()) {
 4344|       |                        if (matching_types == 1) {
 4345|       |                           if (!start.rewind(ctx, it, end)) return;
 4346|       |                           const auto type_index = possible_types.countr_zero();
 4347|       |
 4348|       |                           if (value.index() != static_cast<size_t>(type_index))
 4349|       |                              emplace_runtime_variant(value, type_index);
 4350|       |                           std::visit(
 4351|       |                              [&](auto&& v) {
 4352|       |                                 using V = std::decay_t<decltype(v)>;
 4353|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4354|       |                                 if constexpr (variant_unit_alternative<V>) {
 4355|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4356|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4357|       |                                    // terminator handling match every other alternative.
 4358|       |                                    detail::variant_unit_body unit_body{};
 4359|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4360|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4361|       |                                                                                                    end);
 4362|       |                                 }
 4363|       |                                 else if constexpr (is_object) {
 4364|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4365|       |                                 }
 4366|       |                                 else if constexpr (is_memory_object<V>) {
 4367|       |                                    if (!v) {
 4368|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4369|       |                                          if constexpr (requires { v.emplace(); }) {
 4370|       |                                             v.emplace();
 4371|       |                                          }
 4372|       |                                          else {
 4373|       |                                             v = typename V::value_type{};
 4374|       |                                          }
 4375|       |                                       }
 4376|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4377|       |                                          v = std::make_unique<typename V::element_type>();
 4378|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4379|       |                                          v = std::make_shared<typename V::element_type>();
 4380|       |                                       else if constexpr (constructible<V>) {
 4381|       |                                          v = meta_construct_v<V>();
 4382|       |                                       }
 4383|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4384|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4385|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4386|       |                                             return;
 4387|       |                                          }
 4388|       |                                       }
 4389|       |                                       else {
 4390|       |                                          ctx.error = error_code::invalid_nullable_read;
 4391|       |                                          return;
 4392|       |                                          // Cannot read into unset nullable that is not std::optional,
 4393|       |                                          // std::unique_ptr, or std::shared_ptr
 4394|       |                                       }
 4395|       |                                    }
 4396|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4397|       |                                       *v, ctx, it, end);
 4398|       |                                 }
 4399|       |                                 else if constexpr (custom_read<V>) {
 4400|       |                                    // Custom handlers parse the remaining body themselves.
 4401|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4402|       |                                 }
 4403|       |                              },
 4404|       |                              value);
 4405|       |
 4406|       |                           return; // we've decoded our target type
 4407|       |                        }
 4408|       |                     }
 4409|       |                     // For tagged variants, continue processing to validate tags
 4410|       |                     if (parse_ws_colon<Opts>(ctx, it, end)) {
 4411|       |                        return;
 4412|       |                     }
 4413|       |
 4414|       |                     skip_value<JSON>::op<Opts>(ctx, it, end);
 4415|       |                     if (bool(ctx.error)) [[unlikely]]
 4416|       |                        return;
 4417|       |                     resync_window_end(ctx, end); // a streaming skip refills
 4418|       |                     if (skip_ws<Opts>(ctx, it, end)) {
 4419|       |                        return;
 4420|       |                     }
 4421|       |                  }
 4422|       |                  // Only apply ambiguous variant resolution if we have multiple object types
 4423|       |                  if constexpr ((type_counts::n_object + type_counts::n_nullable_object) > 1) {
 4424|       |                     // After parsing all keys, check if we have multiple matching types
 4425|       |                     // If so, choose the one with the fewest fields
 4426|       |                     auto final_matching = possible_types.popcount();
 4427|       |                     if (final_matching == 0) {
 4428|       |                        ctx.error = error_code::no_matching_variant_type;
 4429|       |                     }
 4430|       |                     else if (final_matching == 1) {
 4431|       |                        // Single type remains after field deduction
 4432|       |                        const auto type_index = possible_types.countr_zero();
 4433|       |
 4434|       |                        // Validate against tag if one was specified
 4435|       |                        if (tag_specified_index.has_value() &&
 4436|       |                            tag_specified_index.value() != static_cast<size_t>(type_index)) {
 4437|       |                           ctx.error = error_code::no_matching_variant_type;
 4438|       |                           return;
 4439|       |                        }
 4440|       |
 4441|       |                        if (!start.rewind(ctx, it, end)) return;
 4442|       |                        if (value.index() != static_cast<size_t>(type_index))
 4443|       |                           emplace_runtime_variant(value, type_index);
 4444|       |                        std::visit(
 4445|       |                           [&](auto&& v) {
 4446|       |                              using V = std::decay_t<decltype(v)>;
 4447|       |                              constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4448|       |                              if constexpr (variant_unit_alternative<V>) {
 4449|       |                                 // A unit alternative carries no data; its object holds only the discriminator.
 4450|       |                                 // Consume that body through an empty reflected object so unknown-key policy and
 4451|       |                                 // terminator handling match every other alternative.
 4452|       |                                 detail::variant_unit_body unit_body{};
 4453|       |                                 from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4454|       |                                                                                    tag_literal>(unit_body, ctx, it,
 4455|       |                                                                                                 end);
 4456|       |                              }
 4457|       |                              else if constexpr (is_object) {
 4458|       |                                 from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4459|       |                              }
 4460|       |                              else if constexpr (is_memory_object<V>) {
 4461|       |                                 if (!v) {
 4462|       |                                    if constexpr (is_specialization_v<V, std::optional>) {
 4463|       |                                       if constexpr (requires { v.emplace(); }) {
 4464|       |                                          v.emplace();
 4465|       |                                       }
 4466|       |                                       else {
 4467|       |                                          v = typename V::value_type{};
 4468|       |                                       }
 4469|       |                                    }
 4470|       |                                    else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4471|       |                                       v = std::make_unique<typename V::element_type>();
 4472|       |                                    else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4473|       |                                       v = std::make_shared<typename V::element_type>();
 4474|       |                                    else if constexpr (constructible<V>) {
 4475|       |                                       v = meta_construct_v<V>();
 4476|       |                                    }
 4477|       |                                    else if constexpr (std::is_pointer_v<V> &&
 4478|       |                                                       can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4479|       |                                       if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4480|       |                                          return;
 4481|       |                                       }
 4482|       |                                    }
 4483|       |                                    else {
 4484|       |                                       ctx.error = error_code::invalid_nullable_read;
 4485|       |                                       return;
 4486|       |                                    }
 4487|       |                                 }
 4488|       |                                 from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(*v, ctx,
 4489|       |                                                                                                               it, end);
 4490|       |                              }
 4491|       |                              else if constexpr (custom_read<V>) {
 4492|       |                                 // Custom handlers parse the remaining body themselves.
 4493|       |                                 from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4494|       |                              }
 4495|       |                           },
 4496|       |                           value);
 4497|       |                     }
 4498|       |                     else if (final_matching > 1) {
 4499|       |                        constexpr auto N = std::variant_size_v<T>;
 4500|       |
 4501|       |                        // Compile-time array of field counts for each variant type
 4502|       |                        constexpr auto field_counts = []<size_t... I>(std::index_sequence<I...>) {
 4503|       |                           return std::array<size_t, N> {
 4504|       |                              ([]<size_t J = I>() -> size_t {
 4505|       |                                 using V = std::decay_t<std::variant_alternative_t<J, T>>;
 4506|       |                                 if constexpr (glaze_object_t<V> || reflectable<V>) {
 4507|       |                                    return reflect<V>::size;
 4508|       |                                 }
 4509|       |                                 else if constexpr (is_memory_object<V>) {
 4510|       |                                    using X = memory_type<V>;
 4511|       |                                    if constexpr (glaze_object_t<X> || reflectable<X>) {
 4512|       |                                       return reflect<X>::size;
 4513|       |                                    }
 4514|       |                                    else {
 4515|       |                                       return (std::numeric_limits<size_t>::max)();
 4516|       |                                    }
 4517|       |                                 }
 4518|       |                                 else {
 4519|       |                                    return (std::numeric_limits<size_t>::max)();
 4520|       |                                 }
 4521|       |                              }.template operator()<I>())...
 4522|       |                           };
 4523|       |                        }(std::make_index_sequence<N>{});
 4524|       |
 4525|       |                        // Find the type with minimum field count among the possible types
 4526|       |                        size_t min_fields = (std::numeric_limits<size_t>::max)();
 4527|       |                        size_t chosen_index = N; // Invalid index initially
 4528|       |
 4529|       |                        for (size_t i = 0; i < N; ++i) {
 4530|       |                           if (possible_types[i] && field_counts[i] < min_fields) {
 4531|       |                              min_fields = field_counts[i];
 4532|       |                              chosen_index = i;
 4533|       |                           }
 4534|       |                        }
 4535|       |
 4536|       |                        if (chosen_index < N) {
 4537|       |                           // Validate against tag if one was specified
 4538|       |                           if (tag_specified_index.has_value() && tag_specified_index.value() != chosen_index) {
 4539|       |                              ctx.error = error_code::no_matching_variant_type;
 4540|       |                              return;
 4541|       |                           }
 4542|       |
 4543|       |                           if (!start.rewind(ctx, it, end)) return;
 4544|       |                           if (value.index() != chosen_index) emplace_runtime_variant(value, chosen_index);
 4545|       |                           std::visit(
 4546|       |                              [&](auto&& v) {
 4547|       |                                 using V = std::decay_t<decltype(v)>;
 4548|       |                                 constexpr bool is_object = (glaze_object_t<V> || reflectable<V>) && not custom_read<V>;
 4549|       |                                 if constexpr (variant_unit_alternative<V>) {
 4550|       |                                    // A unit alternative carries no data; its object holds only the discriminator.
 4551|       |                                    // Consume that body through an empty reflected object so unknown-key policy and
 4552|       |                                    // terminator handling match every other alternative.
 4553|       |                                    detail::variant_unit_body unit_body{};
 4554|       |                                    from<JSON, detail::variant_unit_body>::template op<opening_handled<Opts>(),
 4555|       |                                                                                       tag_literal>(unit_body, ctx, it,
 4556|       |                                                                                                    end);
 4557|       |                                 }
 4558|       |                                 else if constexpr (is_object) {
 4559|       |                                    from<JSON, V>::template op<opening_handled<Opts>(), tag_literal>(v, ctx, it, end);
 4560|       |                                 }
 4561|       |                                 else if constexpr (is_memory_object<V>) {
 4562|       |                                    if (!v) {
 4563|       |                                       if constexpr (is_specialization_v<V, std::optional>) {
 4564|       |                                          if constexpr (requires { v.emplace(); }) {
 4565|       |                                             v.emplace();
 4566|       |                                          }
 4567|       |                                          else {
 4568|       |                                             v = typename V::value_type{};
 4569|       |                                          }
 4570|       |                                       }
 4571|       |                                       else if constexpr (is_specialization_v<V, std::unique_ptr>)
 4572|       |                                          v = std::make_unique<typename V::element_type>();
 4573|       |                                       else if constexpr (is_specialization_v<V, std::shared_ptr>)
 4574|       |                                          v = std::make_shared<typename V::element_type>();
 4575|       |                                       else if constexpr (constructible<V>) {
 4576|       |                                          v = meta_construct_v<V>();
 4577|       |                                       }
 4578|       |                                       else if constexpr (std::is_pointer_v<V> &&
 4579|       |                                                          can_allocate_raw_pointer<Opts, std::decay_t<decltype(ctx)>>) {
 4580|       |                                          if (!try_allocate_raw_pointer<Opts>(v, ctx)) {
 4581|       |                                             return;
 4582|       |                                          }
 4583|       |                                       }
 4584|       |                                       else {
 4585|       |                                          ctx.error = error_code::invalid_nullable_read;
 4586|       |                                          return;
 4587|       |                                       }
 4588|       |                                    }
 4589|       |                                    from<JSON, memory_type<V>>::template op<opening_handled<Opts>(), tag_literal>(
 4590|       |                                       *v, ctx, it, end);
 4591|       |                                 }
 4592|       |                                 else if constexpr (custom_read<V>) {
 4593|       |                                    // Custom handlers parse the remaining body themselves.
 4594|       |                                    from<JSON, V>::template op<opening_handled<Opts>()>(v, ctx, it, end);
 4595|       |                                 }
 4596|       |                              },
 4597|       |                              value);
 4598|       |                        }
 4599|       |                        else {
 4600|       |                           ctx.error = error_code::no_matching_variant_type;
 4601|       |                        }
 4602|       |                     }
 4603|       |                  }
 4604|       |                  else {
 4605|       |                     // For variants with 0 or 1 object types, use the original error handling
 4606|       |                     ctx.error = error_code::no_matching_variant_type;
 4607|       |                  }
 4608|       |               }
 4609|      0|               break;
 4610|   462k|            }
 4611|    125|            case '[':
  ------------------
  |  Branch (4611:13): [True: 125, False: 1.75M]
  ------------------
 4612|       |               // As with '{' above: the array reader each alternative goes through counts the level.
 4613|    125|               process_variant_alternatives<T, is_variant_array>::template op<Opts>(value, ctx, it, end);
 4614|    125|               break;
 4615|   777k|            case '"': {
  ------------------
  |  Branch (4615:13): [True: 777k, False: 973k]
  ------------------
 4616|   777k|               process_variant_alternatives<T, is_variant_str>::template op<Opts>(value, ctx, it, end);
 4617|   777k|               break;
 4618|   462k|            }
 4619|      0|            case 't':
  ------------------
  |  Branch (4619:13): [True: 0, False: 1.75M]
  ------------------
 4620|      0|            case 'f': {
  ------------------
  |  Branch (4620:13): [True: 0, False: 1.75M]
  ------------------
 4621|      0|               process_variant_alternatives<T, is_variant_bool>::template op<Opts>(value, ctx, it, end);
 4622|      0|               break;
 4623|      0|            }
 4624|   227k|            case 'n':
  ------------------
  |  Branch (4624:13): [True: 227k, False: 1.52M]
  ------------------
 4625|       |               if constexpr (variant_count_v<T, is_variant_null> == 0) {
 4626|       |                  ctx.error = error_code::no_matching_variant_type;
 4627|       |               }
 4628|   227k|               else {
 4629|   227k|                  constexpr auto first_idx = variant_first_index_v<T, is_variant_null>;
 4630|   227k|                  using V = std::variant_alternative_t<first_idx, T>;
 4631|   227k|                  if (!std::holds_alternative<V>(value)) value = V{};
  ------------------
  |  Branch (4631:23): [True: 0, False: 227k]
  ------------------
 4632|   227k|                  match<"null", Opts>(ctx, it, end);
 4633|   227k|               }
 4634|   227k|               break;
 4635|   283k|            default: {
  ------------------
  |  Branch (4635:13): [True: 283k, False: 1.46M]
  ------------------
 4636|       |               // Not bool, string, object, or array so must be number or null
 4637|   283k|               process_variant_alternatives<T, is_variant_num>::template op<Opts>(value, ctx, it, end);
 4638|   283k|            }
 4639|  1.75M|            }
 4640|       |         }
 4641|       |         else {
 4642|       |            // For non-auto-deducible variants, try each type until one succeeds
 4643|       |            constexpr auto N = std::variant_size_v<T>;
 4644|       |            bool parsed = false;
 4645|       |            bool exhausted = false; // speculation budget spent; see charge_speculation
 4646|       |
 4647|       |            for_each<N>([&]<size_t I>() {
 4648|       |               if (parsed || exhausted || variant_alternative_exhausted(ctx)) return;
 4649|       |
 4650|       |               auto copy_it = it;
 4651|       |               // A rejected alternative may have bailed out inside a container, which leaves its
 4652|       |               // nesting level counted (see enter_depth), so the depth rewinds with the iterator.
 4653|       |               const auto copy_depth = ctx.depth;
 4654|       |
 4655|       |               // Try parsing as this type
 4656|       |               if (value.index() != I) {
 4657|       |                  emplace_runtime_variant(value, I);
 4658|       |               }
 4659|       |
 4660|       |               std::visit([&](auto&& v) { parse<JSON>::op<Options>(v, ctx, it, end); }, value);
 4661|       |               if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 4662|       |                  exhausted = true; // only rejected attempts are charged; see charge_speculation
 4663|       |               }
 4664|       |
 4665|       |               if (!bool(ctx.error)) {
 4666|       |                  parsed = true;
 4667|       |               }
 4668|       |               else if constexpr (not Options.null_terminated) {
 4669|       |                  // In non-null-terminated mode, if we hit end_reached after advancing the iterator,
 4670|       |                  // it means we successfully parsed the value but couldn't skip trailing whitespace
 4671|       |                  if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 4672|       |                     // We advanced the iterator, so we did parse something -- unless what advanced it
 4673|       |                     // was an abandoned attempt, which is what a spent speculation budget means.
 4674|       |                     parsed = true;
 4675|       |                     ctx.error = error_code::none;
 4676|       |                  }
 4677|       |                  else {
 4678|       |                     // Reset for next attempt (unless this is the last type)
 4679|       |                     it = copy_it;
 4680|       |                     rewind_depth<Options>(ctx, copy_depth);
 4681|       |                     if constexpr (I + 1 < N) {
 4682|       |                        if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4683|       |                           ctx.error = error_code::none; // Clear error for next attempt
 4684|       |                        }
 4685|       |                     }
 4686|       |                  }
 4687|       |               }
 4688|       |               else {
 4689|       |                  // Reset for next attempt (unless this is the last type)
 4690|       |                  it = copy_it;
 4691|       |                  rewind_depth<Options>(ctx, copy_depth);
 4692|       |                  if constexpr (I + 1 < N) {
 4693|       |                     if (not exhausted && not variant_alternative_exhausted(ctx)) {
 4694|       |                        ctx.error = error_code::none; // Clear error for next attempt
 4695|       |                     }
 4696|       |                  }
 4697|       |               }
 4698|       |            });
 4699|       |         }
 4700|  1.75M|      }
_ZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_:
 3523|  20.7k|      {
 3524|  20.7k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|       |         if constexpr (category_count == 0) {
 3527|       |            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|  20.7k|         else {
 3530|  20.7k|            constexpr auto N = std::variant_size_v<Variant>;
 3531|  20.7k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|  20.7k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|  20.7k|            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|  20.7k|            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|  20.7k|            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|  20.7k|               size_t non_const_idx = 0;
 3591|       |
 3592|  20.7k|               for_each<N>([&]<size_t I>() {
 3593|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|  20.7k|                     return;
 3595|  20.7k|                  }
 3596|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  20.7k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  20.7k|                     auto copy_it{it};
 3599|  20.7k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  20.7k|                     if (!std::holds_alternative<V>(value)) {
 3601|  20.7k|                        value = V{};
 3602|  20.7k|                     }
 3603|  20.7k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  20.7k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|  20.7k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|  20.7k|                     }
 3607|  20.7k|                     if (!bool(ctx.error)) {
 3608|  20.7k|                        found_match = true;
 3609|  20.7k|                     }
 3610|  20.7k|                     else if constexpr (not Options.null_terminated) {
 3611|  20.7k|                        constexpr bool is_complete_type =
 3612|  20.7k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|  20.7k|                        if constexpr (is_complete_type) {
 3615|  20.7k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|  20.7k|                              found_match = true;
 3617|  20.7k|                              ctx.error = error_code::none;
 3618|  20.7k|                           }
 3619|  20.7k|                           else {
 3620|  20.7k|                              it = copy_it;
 3621|  20.7k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|  20.7k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|  20.7k|                                  not variant_alternative_exhausted(ctx)) {
 3624|  20.7k|                                 ctx.error = error_code::none;
 3625|  20.7k|                              }
 3626|  20.7k|                           }
 3627|  20.7k|                        }
 3628|  20.7k|                        else {
 3629|  20.7k|                           it = copy_it;
 3630|  20.7k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|  20.7k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|  20.7k|                               not variant_alternative_exhausted(ctx)) {
 3633|  20.7k|                              ctx.error = error_code::none;
 3634|  20.7k|                           }
 3635|  20.7k|                        }
 3636|  20.7k|                     }
 3637|  20.7k|                     else {
 3638|  20.7k|                        it = copy_it;
 3639|  20.7k|                        rewind_depth<Options>(ctx, copy_depth);
 3640|  20.7k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|  20.7k|                            not variant_alternative_exhausted(ctx)) {
 3642|  20.7k|                           ctx.error = error_code::none;
 3643|  20.7k|                        }
 3644|  20.7k|                     }
 3645|  20.7k|                     ++non_const_idx;
 3646|  20.7k|                  }
 3647|  20.7k|               });
 3648|  20.7k|               if (!found_match) {
  ------------------
  |  Branch (3648:20): [True: 2.80k, False: 17.9k]
  ------------------
 3649|  2.80k|                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|  2.80k|               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|  20.7k|         }
 3662|  20.7k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3592|  20.7k|               for_each<N>([&]<size_t I>() {
 3593|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 20.7k]
  |  Branch (3593:38): [True: 0, False: 20.7k]
  |  Branch (3593:51): [True: 0, False: 20.7k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3592|  20.7k|               for_each<N>([&]<size_t I>() {
 3593|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 20.7k]
  |  Branch (3593:38): [True: 0, False: 20.7k]
  |  Branch (3593:51): [True: 0, False: 20.7k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3592|  20.7k|               for_each<N>([&]<size_t I>() {
 3593|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 20.7k]
  |  Branch (3593:38): [True: 0, False: 20.7k]
  |  Branch (3593:51): [True: 0, False: 20.7k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm3EEEDav:
 3592|  20.7k|               for_each<N>([&]<size_t I>() {
 3593|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 20.7k]
  |  Branch (3593:38): [True: 0, False: 20.7k]
  |  Branch (3593:51): [True: 0, False: 20.7k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  20.7k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm4EEEDav:
 3592|  20.7k|               for_each<N>([&]<size_t I>() {
 3593|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 20.7k]
  |  Branch (3593:38): [True: 0, False: 20.7k]
  |  Branch (3593:51): [True: 0, False: 20.7k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|  20.7k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|  20.7k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|  20.7k|                     auto copy_it{it};
 3599|  20.7k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|  20.7k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3600:26): [True: 20.7k, False: 0]
  ------------------
 3601|  20.7k|                        value = V{};
 3602|  20.7k|                     }
 3603|  20.7k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|  20.7k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3604:26): [True: 2.80k, False: 17.9k]
  |  Branch (3604:45): [True: 0, False: 2.80k]
  ------------------
 3605|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|      0|                     }
 3607|  20.7k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3607:26): [True: 17.9k, False: 2.80k]
  ------------------
 3608|  17.9k|                        found_match = true;
 3609|  17.9k|                     }
 3610|  2.80k|                     else if constexpr (not Options.null_terminated) {
 3611|  2.80k|                        constexpr bool is_complete_type =
 3612|  2.80k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3612:28): [Folded, False: 0]
  |  Branch (3612:40): [Folded, False: 0]
  |  Branch (3612:53): [Folded, False: 0]
  |  Branch (3612:68): [Folded, False: 0]
  |  Branch (3612:89): [Folded, False: 0]
  |  Branch (3612:103): [Folded, False: 0]
  ------------------
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|  2.80k|                        else {
 3629|  2.80k|                           it = copy_it;
 3630|  2.80k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|  2.80k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3631:32): [True: 0, False: 2.80k]
  |  Branch (3631:71): [True: 0, False: 0]
  ------------------
 3632|      0|                               not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3632:32): [True: 0, False: 0]
  ------------------
 3633|      0|                              ctx.error = error_code::none;
 3634|      0|                           }
 3635|  2.80k|                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|  20.7k|                     ++non_const_idx;
 3646|  20.7k|                  }
 3647|  20.7k|               });
_ZN3glz5parseILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERNSt3__16vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS4_9allocatorIS9_EEEETkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_:
   50|  20.7k|      {
   51|       |         if constexpr (const_value_v<T>) {
   52|       |            if constexpr (check_error_on_const_read(Opts)) {
   53|       |               ctx.error = error_code::attempt_const_read;
   54|       |            }
   55|       |            else {
   56|       |               // do not read anything into the const value
   57|       |               skip_value<JSON>::op<Opts>(std::forward<Ctx>(ctx), std::forward<It0>(it), end);
   58|       |            }
   59|       |         }
   60|  20.7k|         else {
   61|  20.7k|            using V = std::remove_cvref_t<T>;
   62|  20.7k|            from<JSON, V>::template op<Opts>(std::forward<T>(value), std::forward<Ctx>(ctx), std::forward<It0>(it),
   63|  20.7k|                                             end);
   64|  20.7k|         }
   65|  20.7k|      }
_ZN3glz4fromILj10ENSt3__16vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS1_9allocatorIS6_EEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEERS9_TkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_:
 2051|  20.7k|      {
 2052|  20.7k|         constexpr auto Opts = ws_handled_off<Options>();
 2053|       |         if constexpr (!check_ws_handled(Options)) {
 2054|       |            if (skip_ws<Opts>(ctx, it, end)) {
 2055|       |               return;
 2056|       |            }
 2057|       |         }
 2058|       |
 2059|  20.7k|         if (match_invalid_end<'[', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2059:14): [True: 0, False: 20.7k]
  ------------------
 2060|      0|            return;
 2061|      0|         }
 2062|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
 2063|       |         // released at each syntactic close below
 2064|  20.7k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (2064:14): [True: 0, False: 20.7k]
  ------------------
 2065|      0|            return;
 2066|      0|         }
 2067|       |
 2068|  20.7k|         const auto ws_start = it;
 2069|  20.7k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2069:14): [True: 0, False: 20.7k]
  ------------------
 2070|      0|            return;
 2071|      0|         }
 2072|       |
 2073|  20.7k|         if (*it == ']') {
  ------------------
  |  Branch (2073:14): [True: 125, False: 20.6k]
  ------------------
 2074|    125|            --ctx.depth;
 2075|    125|            ++it;
 2076|    125|            if constexpr ((resizable<T> || is_inplace_vector<T>) && not check_append_arrays(Opts)) {
 2077|    125|               value.clear();
 2078|       |
 2079|       |               if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2080|       |                  value.shrink_to_fit();
 2081|       |               }
 2082|    125|            }
 2083|    125|            return;
 2084|    125|         }
 2085|       |
 2086|  20.6k|         const size_t ws_size = size_t(it - ws_start);
 2087|       |
 2088|  20.6k|         static constexpr bool should_append = (resizable<T> || is_inplace_vector<T>) && check_append_arrays(Opts);
  ------------------
  |  Branch (2088:49): [True: 20.6k, Folded]
  |  Branch (2088:65): [Folded, False: 0]
  |  Branch (2088:90): [Folded, False: 0]
  ------------------
 2089|  20.6k|         if constexpr (not should_append) {
 2090|  20.6k|            const auto n = value.size();
 2091|       |
 2092|  20.6k|            auto value_it = value.begin();
 2093|       |
 2094|  20.6k|            for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (2094:32): [True: 0, False: 20.6k]
  ------------------
 2095|      0|               parse<JSON>::op<ws_handled<Opts>()>(*value_it++, ctx, it, end);
 2096|      0|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2096:20): [True: 0, False: 0]
  ------------------
 2097|      0|                  return;
 2098|      0|               if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2098:20): [True: 0, False: 0]
  ------------------
 2099|      0|                  return;
 2100|      0|               }
 2101|      0|               if (*it == ',') {
  ------------------
  |  Branch (2101:20): [True: 0, False: 0]
  ------------------
 2102|      0|                  ++it;
 2103|       |
 2104|      0|                  if constexpr (!Opts.minified && !Opts.comments) {
 2105|      0|                     if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2105:26): [True: 0, False: 0]
  |  Branch (2105:37): [True: 0, False: 0]
  ------------------
 2106|      0|                        skip_matching_ws(ws_start, it, ws_size);
 2107|      0|                     }
 2108|      0|                  }
 2109|       |
 2110|      0|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2110:23): [True: 0, False: 0]
  ------------------
 2111|      0|                     return;
 2112|      0|                  }
 2113|      0|               }
 2114|      0|               else if (*it == ']') {
  ------------------
  |  Branch (2114:25): [True: 0, False: 0]
  ------------------
 2115|      0|                  --ctx.depth;
 2116|      0|                  ++it;
 2117|      0|                  if constexpr (erasable<T>) {
 2118|      0|                     value.erase(value_it,
 2119|      0|                                 value.end()); // use erase rather than resize for non-default constructible elements
 2120|       |
 2121|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2122|       |                        value.shrink_to_fit();
 2123|       |                     }
 2124|      0|                  }
 2125|      0|                  return;
 2126|      0|               }
 2127|      0|               else [[unlikely]] {
 2128|      0|                  ctx.error = error_code::expected_bracket;
 2129|      0|                  return;
 2130|      0|               }
 2131|      0|            }
 2132|  20.6k|         }
 2133|       |
 2134|       |         if constexpr (Opts.partial_read) {
 2135|       |            // partial_read stops early on a success path, so give the level back like the
 2136|       |            // syntactic-close paths do; otherwise it accumulates across reads sharing a context.
 2137|       |            --ctx.depth;
 2138|       |            return;
 2139|       |         }
 2140|  20.6k|         else {
 2141|       |            // growing
 2142|  20.6k|            if constexpr (emplace_backable<T> || has_try_emplace_back<T>) {
 2143|   207k|               while (it < end) {
  ------------------
  |  Branch (2143:23): [True: 207k, False: 0]
  ------------------
 2144|       |                  // Streaming refill point: at start of each iteration, ensure buffer has data
 2145|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2146|       |                     if (ctx.stream.enabled()) {
 2147|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2148|       |                        const size_t remaining = ctx.stream.size() - consumed;
 2149|       |                        // Refill when less than half of buffer remains to ensure space for next element
 2150|       |                        if (remaining <= ctx.stream.size() / 2 || it >= end) {
 2151|       |                           const char* new_it;
 2152|       |                           const char* new_end;
 2153|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2154|       |                           it = new_it;
 2155|       |                           end = new_end;
 2156|       |                           if (it >= end && ctx.stream.at_eof()) {
 2157|       |                              break; // No more data, exit loop normally
 2158|       |                           }
 2159|       |                        }
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (has_try_emplace_back<T>) {
 2164|       |                     if (value.try_emplace_back())
 2165|       |                        parse<JSON>::op<ws_handled<Opts>()>(value.back(), ctx, it, end);
 2166|       |                     else
 2167|       |                        ctx.error = error_code::exceeded_static_array_size;
 2168|       |                  }
 2169|   207k|                  else {
 2170|   207k|                     parse<JSON>::op<ws_handled<Opts>()>(value.emplace_back(), ctx, it, end);
 2171|   207k|                  }
 2172|       |
 2173|   207k|                  if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (2173:23): [True: 2.80k, False: 205k]
  ------------------
 2174|  2.80k|                     return;
 2175|       |
 2176|       |                  // Streaming refill point: after parsing each element, refill if buffer is low
 2177|       |                  if constexpr (has_streaming_state<decltype(ctx)>) {
 2178|       |                     if (ctx.stream.enabled()) {
 2179|       |                        const size_t consumed = static_cast<size_t>(it - ctx.stream.data());
 2180|       |                        // Refill when less than 25% of buffer remains to ensure enough space for next element
 2181|       |                        if (ctx.stream.size() - consumed <= ctx.stream.size() / 4 || it >= end) {
 2182|       |                           const char* new_it;
 2183|       |                           const char* new_end;
 2184|       |                           ctx.stream.consume_and_refill(consumed, new_it, new_end);
 2185|       |                           it = new_it;
 2186|       |                           end = new_end;
 2187|       |                           if (it >= end && ctx.stream.at_eof()) {
 2188|       |                              ctx.error = error_code::unexpected_end;
 2189|       |                              return;
 2190|       |                           }
 2191|       |                        }
 2192|       |                     }
 2193|       |                  }
 2194|       |
 2195|   205k|                  if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2195:23): [True: 0, False: 205k]
  ------------------
 2196|      0|                     return;
 2197|      0|                  }
 2198|   205k|                  if (*it == ',') [[likely]] {
  ------------------
  |  Branch (2198:23): [True: 187k, False: 17.7k]
  ------------------
 2199|   187k|                     ++it;
 2200|       |
 2201|   187k|                     if constexpr (!Opts.minified && !Opts.comments) {
 2202|   187k|                        if (ws_size && ws_size < size_t(end - it)) {
  ------------------
  |  Branch (2202:29): [True: 0, False: 187k]
  |  Branch (2202:40): [True: 0, False: 0]
  ------------------
 2203|      0|                           skip_matching_ws(ws_start, it, ws_size);
 2204|      0|                        }
 2205|   187k|                     }
 2206|       |
 2207|   187k|                     if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (2207:26): [True: 0, False: 187k]
  ------------------
 2208|      0|                        return;
 2209|      0|                     }
 2210|   187k|                  }
 2211|  17.7k|                  else if (*it == ']') {
  ------------------
  |  Branch (2211:28): [True: 17.7k, False: 0]
  ------------------
 2212|  17.7k|                     --ctx.depth;
 2213|  17.7k|                     ++it;
 2214|       |                     if constexpr (check_shrink_to_fit(Opts) && has_shrink_to_fit<T>) {
 2215|       |                        value.shrink_to_fit();
 2216|       |                     }
 2217|  17.7k|                     return;
 2218|  17.7k|                  }
 2219|      0|                  else [[unlikely]] {
 2220|      0|                     ctx.error = error_code::expected_bracket;
 2221|      0|                     return;
 2222|      0|                  }
 2223|   205k|               }
 2224|       |
 2225|       |               // A valid array always returns from inside the loop upon reaching ']'.
 2226|       |               // For a null-terminated buffer the loop can only exit here by falling
 2227|       |               // through when `it` reaches the terminator without a closing bracket,
 2228|       |               // which means the input was truncated (e.g. "[", "[1," or "[1,2,").
 2229|       |               // Non-null-terminated buffers surface this through skip_ws/depth
 2230|       |               // tracking (or the streaming refill break), so this guard is limited
 2231|       |               // to the null-terminated case.
 2232|       |               if constexpr (Opts.null_terminated) {
 2233|       |                  ctx.error = error_code::unexpected_end;
 2234|       |               }
 2235|       |            }
 2236|       |            else {
 2237|       |               ctx.error = error_code::exceeded_static_array_size;
 2238|       |            }
 2239|  20.6k|         }
 2240|  20.6k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm5EEEDav:
 3592|  20.7k|               for_each<N>([&]<size_t I>() {
 3593|  20.7k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 17.9k, False: 2.80k]
  |  Branch (3593:38): [True: 0, False: 2.80k]
  |  Branch (3593:51): [True: 0, False: 2.80k]
  ------------------
 3594|  17.9k|                     return;
 3595|  17.9k|                  }
 3596|  2.80k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  2.80k|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_:
 3523|   777k|      {
 3524|   777k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|       |         if constexpr (category_count == 0) {
 3527|       |            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|   777k|         else {
 3530|   777k|            constexpr auto N = std::variant_size_v<Variant>;
 3531|   777k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|   777k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|   777k|            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|   777k|            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|   777k|            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|   777k|               size_t non_const_idx = 0;
 3591|       |
 3592|   777k|               for_each<N>([&]<size_t I>() {
 3593|   777k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|   777k|                     return;
 3595|   777k|                  }
 3596|   777k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|   777k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|   777k|                     auto copy_it{it};
 3599|   777k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|   777k|                     if (!std::holds_alternative<V>(value)) {
 3601|   777k|                        value = V{};
 3602|   777k|                     }
 3603|   777k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|   777k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|   777k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|   777k|                     }
 3607|   777k|                     if (!bool(ctx.error)) {
 3608|   777k|                        found_match = true;
 3609|   777k|                     }
 3610|   777k|                     else if constexpr (not Options.null_terminated) {
 3611|   777k|                        constexpr bool is_complete_type =
 3612|   777k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|   777k|                        if constexpr (is_complete_type) {
 3615|   777k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|   777k|                              found_match = true;
 3617|   777k|                              ctx.error = error_code::none;
 3618|   777k|                           }
 3619|   777k|                           else {
 3620|   777k|                              it = copy_it;
 3621|   777k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|   777k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|   777k|                                  not variant_alternative_exhausted(ctx)) {
 3624|   777k|                                 ctx.error = error_code::none;
 3625|   777k|                              }
 3626|   777k|                           }
 3627|   777k|                        }
 3628|   777k|                        else {
 3629|   777k|                           it = copy_it;
 3630|   777k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|   777k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|   777k|                               not variant_alternative_exhausted(ctx)) {
 3633|   777k|                              ctx.error = error_code::none;
 3634|   777k|                           }
 3635|   777k|                        }
 3636|   777k|                     }
 3637|   777k|                     else {
 3638|   777k|                        it = copy_it;
 3639|   777k|                        rewind_depth<Options>(ctx, copy_depth);
 3640|   777k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|   777k|                            not variant_alternative_exhausted(ctx)) {
 3642|   777k|                           ctx.error = error_code::none;
 3643|   777k|                        }
 3644|   777k|                     }
 3645|   777k|                     ++non_const_idx;
 3646|   777k|                  }
 3647|   777k|               });
 3648|   777k|               if (!found_match) {
  ------------------
  |  Branch (3648:20): [True: 11.1k, False: 765k]
  ------------------
 3649|  11.1k|                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|  11.1k|               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|   777k|         }
 3662|   777k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3592|   777k|               for_each<N>([&]<size_t I>() {
 3593|   777k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 777k]
  |  Branch (3593:38): [True: 0, False: 777k]
  |  Branch (3593:51): [True: 0, False: 777k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|   777k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|   777k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3592|   777k|               for_each<N>([&]<size_t I>() {
 3593|   777k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 777k]
  |  Branch (3593:38): [True: 0, False: 777k]
  |  Branch (3593:51): [True: 0, False: 777k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|   777k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|   777k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3592|   777k|               for_each<N>([&]<size_t I>() {
 3593|   777k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 777k]
  |  Branch (3593:38): [True: 0, False: 777k]
  |  Branch (3593:51): [True: 0, False: 777k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|   777k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|   777k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|   777k|                     auto copy_it{it};
 3599|   777k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|   777k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3600:26): [True: 777k, False: 0]
  ------------------
 3601|   777k|                        value = V{};
 3602|   777k|                     }
 3603|   777k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|   777k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3604:26): [True: 11.1k, False: 765k]
  |  Branch (3604:45): [True: 0, False: 11.1k]
  ------------------
 3605|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|      0|                     }
 3607|   777k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3607:26): [True: 765k, False: 11.1k]
  ------------------
 3608|   765k|                        found_match = true;
 3609|   765k|                     }
 3610|  11.1k|                     else if constexpr (not Options.null_terminated) {
 3611|  11.1k|                        constexpr bool is_complete_type =
 3612|  11.1k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3612:28): [Folded, False: 0]
  |  Branch (3612:40): [Folded, False: 0]
  |  Branch (3612:53): [True: 0, Folded]
  |  Branch (3612:68): [Folded, False: 0]
  |  Branch (3612:89): [Folded, False: 0]
  |  Branch (3612:103): [Folded, False: 0]
  ------------------
 3613|       |
 3614|  11.1k|                        if constexpr (is_complete_type) {
 3615|  11.1k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3615:32): [True: 0, False: 11.1k]
  |  Branch (3615:72): [True: 0, False: 0]
  |  Branch (3615:88): [True: 0, False: 0]
  ------------------
 3616|      0|                              found_match = true;
 3617|      0|                              ctx.error = error_code::none;
 3618|      0|                           }
 3619|  11.1k|                           else {
 3620|  11.1k|                              it = copy_it;
 3621|  11.1k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|  11.1k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3622:35): [True: 0, False: 11.1k]
  |  Branch (3622:74): [True: 0, False: 0]
  ------------------
 3623|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3623:35): [True: 0, False: 0]
  ------------------
 3624|      0|                                 ctx.error = error_code::none;
 3625|      0|                              }
 3626|  11.1k|                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|   777k|                     ++non_const_idx;
 3646|   777k|                  }
 3647|   777k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm3EEEDav:
 3592|   777k|               for_each<N>([&]<size_t I>() {
 3593|   777k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 765k, False: 11.1k]
  |  Branch (3593:38): [True: 0, False: 11.1k]
  |  Branch (3593:51): [True: 0, False: 11.1k]
  ------------------
 3594|   765k|                     return;
 3595|   765k|                  }
 3596|  11.1k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  11.1k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm4EEEDav:
 3592|   777k|               for_each<N>([&]<size_t I>() {
 3593|   777k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 765k, False: 11.1k]
  |  Branch (3593:38): [True: 0, False: 11.1k]
  |  Branch (3593:51): [True: 0, False: 11.1k]
  ------------------
 3594|   765k|                     return;
 3595|   765k|                  }
 3596|  11.1k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  11.1k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm5EEEDav:
 3592|   777k|               for_each<N>([&]<size_t I>() {
 3593|   777k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 765k, False: 11.1k]
  |  Branch (3593:38): [True: 0, False: 11.1k]
  |  Branch (3593:51): [True: 0, False: 11.1k]
  ------------------
 3594|   765k|                     return;
 3595|   765k|                  }
 3596|  11.1k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|  11.1k|               });
_ZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_:
 3523|   283k|      {
 3524|   283k|         constexpr auto category_count = variant_count_v<Variant, Trait>;
 3525|       |
 3526|       |         if constexpr (category_count == 0) {
 3527|       |            ctx.error = error_code::no_matching_variant_type;
 3528|       |         }
 3529|   283k|         else {
 3530|   283k|            constexpr auto N = std::variant_size_v<Variant>;
 3531|   283k|            constexpr auto const_count = variant_filtered_count_v<Variant, Trait, true>;
 3532|   283k|            constexpr auto non_const_count = variant_filtered_count_v<Variant, Trait, false>;
 3533|       |
 3534|   283k|            bool found_match{};
 3535|       |            // Set when the speculative parsing budget runs out; see charge_speculation. An ambiguous
 3536|       |            // nest re-parses the same subtree per alternative at every level, which is exponential,
 3537|       |            // so the budget stops it and the failure already in hand is reported.
 3538|   283k|            bool exhausted{};
 3539|       |
 3540|       |            // First pass: const glaze types in this category
 3541|       |            if constexpr (const_count > 0) {
 3542|       |               for_each<N>([&]<size_t I>() {
 3543|       |                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3544|       |                     return;
 3545|       |                  }
 3546|       |                  using V = std::variant_alternative_t<I, Variant>;
 3547|       |                  if constexpr (Trait<V>::value && glaze_const_value_t<V>) {
 3548|       |                     // run time substitute to compare to const value
 3549|       |                     std::remove_const_t<std::remove_pointer_t<std::remove_const_t<meta_wrapper_t<V>>>> substitute{};
 3550|       |                     auto copy_it{it};
 3551|       |                     // A rejected alternative may have bailed out inside a container, which leaves its
 3552|       |                     // nesting level counted (see enter_depth). Rewind the depth with the iterator so
 3553|       |                     // trying N alternatives cannot spend N levels of the recursion budget.
 3554|       |                     const auto copy_depth{ctx.depth};
 3555|       |                     parse<JSON>::op<ws_handled<Options>()>(substitute, ctx, it, end);
 3556|       |                     static constexpr auto const_value{*meta_wrapper_v<V>};
 3557|       |                     if (substitute == const_value) {
 3558|       |                        found_match = true;
 3559|       |                        if (!std::holds_alternative<V>(value)) {
 3560|       |                           value = V{};
 3561|       |                        }
 3562|       |                     }
 3563|       |                     else {
 3564|       |                        // Rejected: charge the bytes it parsed before we rewind. See charge_speculation.
 3565|       |                        if (!charge_speculation(ctx, size_t(it - copy_it))) {
 3566|       |                           exhausted = true;
 3567|       |                        }
 3568|       |                        if constexpr (not Options.null_terminated) {
 3569|       |                           if (ctx.error == error_code::end_reached && not exhausted) {
 3570|       |                              ctx.error = error_code::none;
 3571|       |                           }
 3572|       |                        }
 3573|       |                        it = copy_it;
 3574|       |                        rewind_depth<Options>(ctx, copy_depth);
 3575|       |                     }
 3576|       |                  }
 3577|       |               });
 3578|       |               if (found_match) {
 3579|       |                  return;
 3580|       |               }
 3581|       |            }
 3582|       |
 3583|       |            // Second pass: non-const types in this category
 3584|   283k|            if constexpr (non_const_count > 0) {
 3585|       |               // Track position within matching types for "is last" check.
 3586|       |               // We iterate over all variant indices but only process matching types,
 3587|       |               // so we need runtime tracking (vs the old tuple-based approach where
 3588|       |               // the loop index directly corresponded to position in filtered set).
 3589|       |               // This has negligible cost: one increment per matching type.
 3590|   283k|               size_t non_const_idx = 0;
 3591|       |
 3592|   283k|               for_each<N>([&]<size_t I>() {
 3593|   283k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
 3594|   283k|                     return;
 3595|   283k|                  }
 3596|   283k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|   283k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|   283k|                     auto copy_it{it};
 3599|   283k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|   283k|                     if (!std::holds_alternative<V>(value)) {
 3601|   283k|                        value = V{};
 3602|   283k|                     }
 3603|   283k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|   283k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|   283k|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|   283k|                     }
 3607|   283k|                     if (!bool(ctx.error)) {
 3608|   283k|                        found_match = true;
 3609|   283k|                     }
 3610|   283k|                     else if constexpr (not Options.null_terminated) {
 3611|   283k|                        constexpr bool is_complete_type =
 3612|   283k|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|   283k|                        if constexpr (is_complete_type) {
 3615|   283k|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|   283k|                              found_match = true;
 3617|   283k|                              ctx.error = error_code::none;
 3618|   283k|                           }
 3619|   283k|                           else {
 3620|   283k|                              it = copy_it;
 3621|   283k|                              rewind_depth<Options>(ctx, copy_depth);
 3622|   283k|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|   283k|                                  not variant_alternative_exhausted(ctx)) {
 3624|   283k|                                 ctx.error = error_code::none;
 3625|   283k|                              }
 3626|   283k|                           }
 3627|   283k|                        }
 3628|   283k|                        else {
 3629|   283k|                           it = copy_it;
 3630|   283k|                           rewind_depth<Options>(ctx, copy_depth);
 3631|   283k|                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|   283k|                               not variant_alternative_exhausted(ctx)) {
 3633|   283k|                              ctx.error = error_code::none;
 3634|   283k|                           }
 3635|   283k|                        }
 3636|   283k|                     }
 3637|   283k|                     else {
 3638|   283k|                        it = copy_it;
 3639|   283k|                        rewind_depth<Options>(ctx, copy_depth);
 3640|   283k|                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|   283k|                            not variant_alternative_exhausted(ctx)) {
 3642|   283k|                           ctx.error = error_code::none;
 3643|   283k|                        }
 3644|   283k|                     }
 3645|   283k|                     ++non_const_idx;
 3646|   283k|                  }
 3647|   283k|               });
 3648|   283k|               if (!found_match) {
  ------------------
  |  Branch (3648:20): [True: 0, False: 283k]
  ------------------
 3649|      0|                  if constexpr (non_const_count == 1) {
 3650|       |                     // Keep the specific error from the single type we tried
 3651|       |                  }
 3652|       |                  else if (not exhausted && not variant_alternative_exhausted(ctx)) {
 3653|       |                     // Over-nested input is not a failure of the alternative set; keep saying so.
 3654|       |                     ctx.error = error_code::no_matching_variant_type;
 3655|       |                  }
 3656|      0|               }
 3657|       |            }
 3658|       |            else {
 3659|       |               ctx.error = error_code::no_matching_variant_type;
 3660|       |            }
 3661|   283k|         }
 3662|   283k|      }
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm0EEEDav:
 3592|   283k|               for_each<N>([&]<size_t I>() {
 3593|   283k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 283k]
  |  Branch (3593:38): [True: 0, False: 283k]
  |  Branch (3593:51): [True: 0, False: 283k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|   283k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|   283k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm1EEEDav:
 3592|   283k|               for_each<N>([&]<size_t I>() {
 3593|   283k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 0, False: 283k]
  |  Branch (3593:38): [True: 0, False: 283k]
  |  Branch (3593:51): [True: 0, False: 283k]
  ------------------
 3594|      0|                     return;
 3595|      0|                  }
 3596|   283k|                  using V = std::variant_alternative_t<I, Variant>;
 3597|   283k|                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|   283k|                     auto copy_it{it};
 3599|   283k|                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|   283k|                     if (!std::holds_alternative<V>(value)) {
  ------------------
  |  Branch (3600:26): [True: 283k, False: 0]
  ------------------
 3601|   283k|                        value = V{};
 3602|   283k|                     }
 3603|   283k|                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|   283k|                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
  ------------------
  |  Branch (3604:26): [True: 0, False: 283k]
  |  Branch (3604:45): [True: 0, False: 0]
  ------------------
 3605|      0|                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|      0|                     }
 3607|   283k|                     if (!bool(ctx.error)) {
  ------------------
  |  Branch (3607:26): [True: 283k, False: 0]
  ------------------
 3608|   283k|                        found_match = true;
 3609|   283k|                     }
 3610|      0|                     else if constexpr (not Options.null_terminated) {
 3611|      0|                        constexpr bool is_complete_type =
 3612|      0|                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
  ------------------
  |  Branch (3612:28): [True: 0, Folded]
  |  Branch (3612:40): [Folded, False: 0]
  |  Branch (3612:53): [Folded, False: 0]
  |  Branch (3612:68): [Folded, False: 0]
  |  Branch (3612:89): [Folded, False: 0]
  |  Branch (3612:103): [Folded, False: 0]
  ------------------
 3613|       |
 3614|      0|                        if constexpr (is_complete_type) {
 3615|      0|                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
  ------------------
  |  Branch (3615:32): [True: 0, False: 0]
  |  Branch (3615:72): [True: 0, False: 0]
  |  Branch (3615:88): [True: 0, False: 0]
  ------------------
 3616|      0|                              found_match = true;
 3617|      0|                              ctx.error = error_code::none;
 3618|      0|                           }
 3619|      0|                           else {
 3620|      0|                              it = copy_it;
 3621|      0|                              rewind_depth<Options>(ctx, copy_depth);
 3622|      0|                              if (non_const_idx + 1 < non_const_count && not exhausted &&
  ------------------
  |  Branch (3622:35): [True: 0, False: 0]
  |  Branch (3622:74): [True: 0, False: 0]
  ------------------
 3623|      0|                                  not variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3623:35): [True: 0, False: 0]
  ------------------
 3624|      0|                                 ctx.error = error_code::none;
 3625|      0|                              }
 3626|      0|                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|   283k|                     ++non_const_idx;
 3646|   283k|                  }
 3647|   283k|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm2EEEDav:
 3592|   283k|               for_each<N>([&]<size_t I>() {
 3593|   283k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 283k, False: 0]
  |  Branch (3593:38): [True: 0, False: 0]
  |  Branch (3593:51): [True: 0, False: 0]
  ------------------
 3594|   283k|                     return;
 3595|   283k|                  }
 3596|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|      0|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm3EEEDav:
 3592|   283k|               for_each<N>([&]<size_t I>() {
 3593|   283k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 283k, False: 0]
  |  Branch (3593:38): [True: 0, False: 0]
  |  Branch (3593:51): [True: 0, False: 0]
  ------------------
 3594|   283k|                     return;
 3595|   283k|                  }
 3596|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|      0|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm4EEEDav:
 3592|   283k|               for_each<N>([&]<size_t I>() {
 3593|   283k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 283k, False: 0]
  |  Branch (3593:38): [True: 0, False: 0]
  |  Branch (3593:51): [True: 0, False: 0]
  ------------------
 3594|   283k|                     return;
 3595|   283k|                  }
 3596|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|      0|               });
_ZZN3glz28process_variant_alternativesINSt3__17variantIJDndNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEbNS1_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS6_ISD_EEEENSC_ISD_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSH_TkNS_10is_contextERNS_7contextERPKcSQ_EEvOT0_OT1_OT2_T3_ENKUlTnmvE_clILm5EEEDav:
 3592|   283k|               for_each<N>([&]<size_t I>() {
 3593|   283k|                  if (found_match || exhausted || variant_alternative_exhausted(ctx)) {
  ------------------
  |  Branch (3593:23): [True: 283k, False: 0]
  |  Branch (3593:38): [True: 0, False: 0]
  |  Branch (3593:51): [True: 0, False: 0]
  ------------------
 3594|   283k|                     return;
 3595|   283k|                  }
 3596|      0|                  using V = std::variant_alternative_t<I, Variant>;
 3597|       |                  if constexpr (Trait<V>::value && !glaze_const_value_t<V>) {
 3598|       |                     auto copy_it{it};
 3599|       |                     const auto copy_depth{ctx.depth}; // rewound with `it`; see the note above
 3600|       |                     if (!std::holds_alternative<V>(value)) {
 3601|       |                        value = V{};
 3602|       |                     }
 3603|       |                     parse<JSON>::op<ws_handled<Options>()>(std::get<V>(value), ctx, it, end);
 3604|       |                     if (bool(ctx.error) && !charge_speculation(ctx, size_t(it - copy_it))) {
 3605|       |                        exhausted = true; // only rejected attempts are charged; see charge_speculation
 3606|       |                     }
 3607|       |                     if (!bool(ctx.error)) {
 3608|       |                        found_match = true;
 3609|       |                     }
 3610|       |                     else if constexpr (not Options.null_terminated) {
 3611|       |                        constexpr bool is_complete_type =
 3612|       |                           num_t<V> || bool_t<V> || string_t<V> || std::is_enum_v<V> || tuple_t<V> || is_std_tuple<V>;
 3613|       |
 3614|       |                        if constexpr (is_complete_type) {
 3615|       |                           if (ctx.error == error_code::end_reached && it > copy_it && not speculation_exhausted(ctx)) {
 3616|       |                              found_match = true;
 3617|       |                              ctx.error = error_code::none;
 3618|       |                           }
 3619|       |                           else {
 3620|       |                              it = copy_it;
 3621|       |                              rewind_depth<Options>(ctx, copy_depth);
 3622|       |                              if (non_const_idx + 1 < non_const_count && not exhausted &&
 3623|       |                                  not variant_alternative_exhausted(ctx)) {
 3624|       |                                 ctx.error = error_code::none;
 3625|       |                              }
 3626|       |                           }
 3627|       |                        }
 3628|       |                        else {
 3629|       |                           it = copy_it;
 3630|       |                           rewind_depth<Options>(ctx, copy_depth);
 3631|       |                           if (non_const_idx + 1 < non_const_count && not exhausted &&
 3632|       |                               not variant_alternative_exhausted(ctx)) {
 3633|       |                              ctx.error = error_code::none;
 3634|       |                           }
 3635|       |                        }
 3636|       |                     }
 3637|       |                     else {
 3638|       |                        it = copy_it;
 3639|       |                        rewind_depth<Options>(ctx, copy_depth);
 3640|       |                        if (non_const_idx + 1 < non_const_count && not exhausted &&
 3641|       |                            not variant_alternative_exhausted(ctx)) {
 3642|       |                           ctx.error = error_code::none;
 3643|       |                        }
 3644|       |                     }
 3645|       |                     ++non_const_idx;
 3646|       |                  }
 3647|      0|               });

_ZN3glz10skip_valueILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS7_QntdtT_8commentsEEvOT0_OT1_T2_:
  325|  30.7k|   {
  326|  30.7k|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|  30.7k|      if constexpr (not check_validate_skipped(Opts)) {
  338|  30.7k|         if constexpr (not check_ws_handled(Opts)) {
  339|  30.7k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (339:17): [True: 0, False: 30.7k]
  ------------------
  340|      0|               return;
  341|      0|            }
  342|  30.7k|         }
  343|  81.9k|         while (true) {
  ------------------
  |  Branch (343:17): [True: 81.9k, Folded]
  ------------------
  344|  81.9k|            switch (*it) {
  345|  5.00k|            case '{':
  ------------------
  |  Branch (345:13): [True: 5.00k, False: 76.9k]
  ------------------
  346|  5.00k|               ++it;
  347|  5.00k|               if constexpr (not Opts.null_terminated) {
  348|  5.00k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (348:23): [True: 0, False: 5.00k]
  ------------------
  349|      0|                     ctx.error = error_code::unexpected_end;
  350|      0|                     return;
  351|      0|                  }
  352|  5.00k|               }
  353|  5.00k|               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|  5.00k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (354:20): [True: 0, False: 5.00k]
  ------------------
  355|      0|                  return;
  356|  5.00k|               break;
  357|  7.02k|            case '[':
  ------------------
  |  Branch (357:13): [True: 7.02k, False: 74.9k]
  ------------------
  358|  7.02k|               ++it;
  359|  7.02k|               if constexpr (not Opts.null_terminated) {
  360|  7.02k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (360:23): [True: 0, False: 7.02k]
  ------------------
  361|      0|                     ctx.error = error_code::unexpected_end;
  362|      0|                     return;
  363|      0|                  }
  364|  7.02k|               }
  365|  7.02k|               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|  7.02k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (366:20): [True: 0, False: 7.02k]
  ------------------
  367|      0|                  return;
  368|  7.02k|               break;
  369|  10.2k|            case '"':
  ------------------
  |  Branch (369:13): [True: 10.2k, False: 71.7k]
  ------------------
  370|  10.2k|               skip_string<Opts>(ctx, it, end);
  371|  10.2k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (371:20): [True: 0, False: 10.2k]
  ------------------
  372|      0|                  return;
  373|  10.2k|               break;
  374|  10.2k|            case ',':
  ------------------
  |  Branch (374:13): [True: 7.45k, False: 74.5k]
  ------------------
  375|  8.49k|            case '}':
  ------------------
  |  Branch (375:13): [True: 1.03k, False: 80.9k]
  ------------------
  376|  8.49k|            case ']':
  ------------------
  |  Branch (376:13): [True: 0, False: 81.9k]
  ------------------
  377|  8.49k|               break;
  378|      0|            case '\0':
  ------------------
  |  Branch (378:13): [True: 0, False: 81.9k]
  ------------------
  379|      0|               ctx.error = error_code::unexpected_end;
  380|      0|               return;
  381|  51.2k|            default: {
  ------------------
  |  Branch (381:13): [True: 51.2k, False: 30.7k]
  ------------------
  382|  51.2k|               ++it;
  383|  51.2k|               if constexpr (not Opts.null_terminated) {
  384|  51.2k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (384:23): [True: 0, False: 51.2k]
  ------------------
  385|      0|                     ctx.error = error_code::unexpected_end;
  386|      0|                     return;
  387|      0|                  }
  388|  51.2k|               }
  389|  51.2k|               continue;
  390|  8.49k|            }
  391|  81.9k|            }
  392|       |
  393|  30.7k|            break;
  394|  81.9k|         }
  395|       |      }
  396|       |      else {
  397|       |         if constexpr (not check_ws_handled(Opts)) {
  398|       |            if (skip_ws<Opts>(ctx, it, end)) {
  399|       |               return;
  400|       |            }
  401|       |         }
  402|       |         switch (*it) {
  403|       |         case '{': {
  404|       |            skip_object<Opts>(ctx, it, end);
  405|       |            break;
  406|       |         }
  407|       |         case '[': {
  408|       |            skip_array<Opts>(ctx, it, end);
  409|       |            break;
  410|       |         }
  411|       |         case '"': {
  412|       |            skip_string<Opts>(ctx, it, end);
  413|       |            break;
  414|       |         }
  415|       |         case 'n': {
  416|       |            ++it;
  417|       |            match<"ull", Opts>(ctx, it, end);
  418|       |            break;
  419|       |         }
  420|       |         case 'f': {
  421|       |            ++it;
  422|       |            match<"alse", Opts>(ctx, it, end);
  423|       |            break;
  424|       |         }
  425|       |         case 't': {
  426|       |            ++it;
  427|       |            match<"rue", Opts>(ctx, it, end);
  428|       |            break;
  429|       |         }
  430|       |         case '\0': {
  431|       |            ctx.error = error_code::unexpected_end;
  432|       |            break;
  433|       |         }
  434|       |         default: {
  435|       |            skip_number<Opts>(ctx, it, end);
  436|       |         }
  437|       |         }
  438|       |      }
  439|  30.7k|   }
_ZN3glz10skip_valueILj10EE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextERPKcS7_QntdtT_8commentsEEvOT0_OT1_T2_:
  325|  4.95M|   {
  326|  4.95M|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|  4.95M|      if constexpr (not check_validate_skipped(Opts)) {
  338|       |         if constexpr (not check_ws_handled(Opts)) {
  339|       |            if (skip_ws<Opts>(ctx, it, end)) {
  340|       |               return;
  341|       |            }
  342|       |         }
  343|  18.8M|         while (true) {
  ------------------
  |  Branch (343:17): [True: 18.8M, Folded]
  ------------------
  344|  18.8M|            switch (*it) {
  345|   158k|            case '{':
  ------------------
  |  Branch (345:13): [True: 158k, False: 18.6M]
  ------------------
  346|   158k|               ++it;
  347|   158k|               if constexpr (not Opts.null_terminated) {
  348|   158k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (348:23): [True: 5, False: 158k]
  ------------------
  349|      5|                     ctx.error = error_code::unexpected_end;
  350|      5|                     return;
  351|      5|                  }
  352|   158k|               }
  353|   158k|               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|   158k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (354:20): [True: 3.89k, False: 154k]
  ------------------
  355|  3.89k|                  return;
  356|   154k|               break;
  357|   154k|            case '[':
  ------------------
  |  Branch (357:13): [True: 16.8k, False: 18.8M]
  ------------------
  358|  16.8k|               ++it;
  359|  16.8k|               if constexpr (not Opts.null_terminated) {
  360|  16.8k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (360:23): [True: 4, False: 16.8k]
  ------------------
  361|      4|                     ctx.error = error_code::unexpected_end;
  362|      4|                     return;
  363|      4|                  }
  364|  16.8k|               }
  365|  16.8k|               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|  16.8k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (366:20): [True: 3.52k, False: 13.3k]
  ------------------
  367|  3.52k|                  return;
  368|  13.3k|               break;
  369|  19.1k|            case '"':
  ------------------
  |  Branch (369:13): [True: 19.1k, False: 18.8M]
  ------------------
  370|  19.1k|               skip_string<Opts>(ctx, it, end);
  371|  19.1k|               if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (371:20): [True: 420, False: 18.7k]
  ------------------
  372|    420|                  return;
  373|  18.7k|               break;
  374|  4.75M|            case ',':
  ------------------
  |  Branch (374:13): [True: 4.75M, False: 14.0M]
  ------------------
  375|  4.75M|            case '}':
  ------------------
  |  Branch (375:13): [True: 2.63k, False: 18.8M]
  ------------------
  376|  4.75M|            case ']':
  ------------------
  |  Branch (376:13): [True: 702, False: 18.8M]
  ------------------
  377|  4.75M|               break;
  378|    546|            case '\0':
  ------------------
  |  Branch (378:13): [True: 546, False: 18.8M]
  ------------------
  379|    546|               ctx.error = error_code::unexpected_end;
  380|    546|               return;
  381|  13.8M|            default: {
  ------------------
  |  Branch (381:13): [True: 13.8M, False: 4.95M]
  ------------------
  382|  13.8M|               ++it;
  383|  13.8M|               if constexpr (not Opts.null_terminated) {
  384|  13.8M|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (384:23): [True: 123, False: 13.8M]
  ------------------
  385|    123|                     ctx.error = error_code::unexpected_end;
  386|    123|                     return;
  387|    123|                  }
  388|  13.8M|               }
  389|  13.8M|               continue;
  390|  4.75M|            }
  391|  18.8M|            }
  392|       |
  393|  4.94M|            break;
  394|  18.8M|         }
  395|       |      }
  396|       |      else {
  397|       |         if constexpr (not check_ws_handled(Opts)) {
  398|       |            if (skip_ws<Opts>(ctx, it, end)) {
  399|       |               return;
  400|       |            }
  401|       |         }
  402|       |         switch (*it) {
  403|       |         case '{': {
  404|       |            skip_object<Opts>(ctx, it, end);
  405|       |            break;
  406|       |         }
  407|       |         case '[': {
  408|       |            skip_array<Opts>(ctx, it, end);
  409|       |            break;
  410|       |         }
  411|       |         case '"': {
  412|       |            skip_string<Opts>(ctx, it, end);
  413|       |            break;
  414|       |         }
  415|       |         case 'n': {
  416|       |            ++it;
  417|       |            match<"ull", Opts>(ctx, it, end);
  418|       |            break;
  419|       |         }
  420|       |         case 'f': {
  421|       |            ++it;
  422|       |            match<"alse", Opts>(ctx, it, end);
  423|       |            break;
  424|       |         }
  425|       |         case 't': {
  426|       |            ++it;
  427|       |            match<"rue", Opts>(ctx, it, end);
  428|       |            break;
  429|       |         }
  430|       |         case '\0': {
  431|       |            ctx.error = error_code::unexpected_end;
  432|       |            break;
  433|       |         }
  434|       |         default: {
  435|       |            skip_number<Opts>(ctx, it, end);
  436|       |         }
  437|       |         }
  438|       |      }
  439|  4.95M|   }
_ZN3glz10skip_valueILj10EE2opITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS4_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_QntdtT_8commentsEEvOT0_OT1_T2_:
  325|   707k|   {
  326|   707k|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|       |      if constexpr (not check_validate_skipped(Opts)) {
  338|       |         if constexpr (not check_ws_handled(Opts)) {
  339|       |            if (skip_ws<Opts>(ctx, it, end)) {
  340|       |               return;
  341|       |            }
  342|       |         }
  343|       |         while (true) {
  344|       |            switch (*it) {
  345|       |            case '{':
  346|       |               ++it;
  347|       |               if constexpr (not Opts.null_terminated) {
  348|       |                  if (it == end) [[unlikely]] {
  349|       |                     ctx.error = error_code::unexpected_end;
  350|       |                     return;
  351|       |                  }
  352|       |               }
  353|       |               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|       |               if (bool(ctx.error)) [[unlikely]]
  355|       |                  return;
  356|       |               break;
  357|       |            case '[':
  358|       |               ++it;
  359|       |               if constexpr (not Opts.null_terminated) {
  360|       |                  if (it == end) [[unlikely]] {
  361|       |                     ctx.error = error_code::unexpected_end;
  362|       |                     return;
  363|       |                  }
  364|       |               }
  365|       |               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|       |               if (bool(ctx.error)) [[unlikely]]
  367|       |                  return;
  368|       |               break;
  369|       |            case '"':
  370|       |               skip_string<Opts>(ctx, it, end);
  371|       |               if (bool(ctx.error)) [[unlikely]]
  372|       |                  return;
  373|       |               break;
  374|       |            case ',':
  375|       |            case '}':
  376|       |            case ']':
  377|       |               break;
  378|       |            case '\0':
  379|       |               ctx.error = error_code::unexpected_end;
  380|       |               return;
  381|       |            default: {
  382|       |               ++it;
  383|       |               if constexpr (not Opts.null_terminated) {
  384|       |                  if (it == end) [[unlikely]] {
  385|       |                     ctx.error = error_code::unexpected_end;
  386|       |                     return;
  387|       |                  }
  388|       |               }
  389|       |               continue;
  390|       |            }
  391|       |            }
  392|       |
  393|       |            break;
  394|       |         }
  395|       |      }
  396|   707k|      else {
  397|   707k|         if constexpr (not check_ws_handled(Opts)) {
  398|   707k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (398:17): [True: 15, False: 707k]
  ------------------
  399|     15|               return;
  400|     15|            }
  401|   707k|         }
  402|   707k|         switch (*it) {
  403|   106k|         case '{': {
  ------------------
  |  Branch (403:10): [True: 106k, False: 600k]
  ------------------
  404|   106k|            skip_object<Opts>(ctx, it, end);
  405|   106k|            break;
  406|      0|         }
  407|   222k|         case '[': {
  ------------------
  |  Branch (407:10): [True: 222k, False: 484k]
  ------------------
  408|   222k|            skip_array<Opts>(ctx, it, end);
  409|   222k|            break;
  410|      0|         }
  411|  81.3k|         case '"': {
  ------------------
  |  Branch (411:10): [True: 81.3k, False: 625k]
  ------------------
  412|  81.3k|            skip_string<Opts>(ctx, it, end);
  413|  81.3k|            break;
  414|      0|         }
  415|  4.57k|         case 'n': {
  ------------------
  |  Branch (415:10): [True: 4.57k, False: 702k]
  ------------------
  416|  4.57k|            ++it;
  417|  4.57k|            match<"ull", Opts>(ctx, it, end);
  418|  4.57k|            break;
  419|      0|         }
  420|  3.02k|         case 'f': {
  ------------------
  |  Branch (420:10): [True: 3.02k, False: 704k]
  ------------------
  421|  3.02k|            ++it;
  422|  3.02k|            match<"alse", Opts>(ctx, it, end);
  423|  3.02k|            break;
  424|      0|         }
  425|  3.07k|         case 't': {
  ------------------
  |  Branch (425:10): [True: 3.07k, False: 704k]
  ------------------
  426|  3.07k|            ++it;
  427|  3.07k|            match<"rue", Opts>(ctx, it, end);
  428|  3.07k|            break;
  429|      0|         }
  430|  1.22k|         case '\0': {
  ------------------
  |  Branch (430:10): [True: 1.22k, False: 706k]
  ------------------
  431|  1.22k|            ctx.error = error_code::unexpected_end;
  432|  1.22k|            break;
  433|      0|         }
  434|   284k|         default: {
  ------------------
  |  Branch (434:10): [True: 284k, False: 422k]
  ------------------
  435|   284k|            skip_number<Opts>(ctx, it, end);
  436|   284k|         }
  437|   707k|         }
  438|   707k|      }
  439|   707k|   }
_ZN3glz11skip_objectITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS7_EEvOT0_OT1_T2_:
   29|   106k|   {
   30|       |      if constexpr (!check_validate_skipped(Opts)) {
   31|       |         ++it;
   32|       |         if constexpr (not Opts.null_terminated) {
   33|       |            if (it == end) [[unlikely]] {
   34|       |               ctx.error = error_code::unexpected_end;
   35|       |               return;
   36|       |            }
   37|       |         }
   38|       |         skip_until_closed<Opts, '{', '}'>(ctx, it, end);
   39|       |      }
   40|   106k|      else {
   41|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
   42|       |         // released at each syntactic close below
   43|   106k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (43:14): [True: 320, False: 106k]
  ------------------
   44|    320|            return;
   45|    320|         }
   46|   106k|         ++it;
   47|   106k|         if constexpr (not Opts.null_terminated) {
   48|   106k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (48:17): [True: 5, False: 106k]
  ------------------
   49|      5|               ctx.error = error_code::unexpected_end;
   50|      5|               return;
   51|      5|            }
   52|   106k|         }
   53|   106k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (53:14): [True: 18, False: 106k]
  ------------------
   54|     18|            return;
   55|     18|         }
   56|   106k|         if (*it == '}') {
  ------------------
  |  Branch (56:14): [True: 2.71k, False: 103k]
  ------------------
   57|  2.71k|            --ctx.depth;
   58|  2.71k|            ++it;
   59|  2.71k|            if constexpr (not Opts.null_terminated) {
   60|  2.71k|               if (it == end) {
  ------------------
  |  Branch (60:20): [True: 2, False: 2.71k]
  ------------------
   61|      2|                  ctx.error = error_code::end_reached;
   62|      2|                  return;
   63|      2|               }
   64|  2.71k|            }
   65|  2.71k|            return;
   66|  2.71k|         }
   67|   185k|         while (true) {
  ------------------
  |  Branch (67:17): [True: 185k, Folded]
  ------------------
   68|   185k|            if (*it != '"') {
  ------------------
  |  Branch (68:17): [True: 17.6k, False: 168k]
  ------------------
   69|  17.6k|               ctx.error = error_code::syntax_error;
   70|  17.6k|               return;
   71|  17.6k|            }
   72|   168k|            skip_string<Opts>(ctx, it, end);
   73|   168k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (73:17): [True: 5.02k, False: 163k]
  ------------------
   74|  5.02k|               return;
   75|   163k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (75:17): [True: 66, False: 163k]
  ------------------
   76|     66|               return;
   77|     66|            }
   78|   163k|            if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (78:17): [True: 5.79k, False: 157k]
  ------------------
   79|  5.79k|               return;
   80|  5.79k|            }
   81|   157k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (81:17): [True: 6, False: 157k]
  ------------------
   82|      6|               return;
   83|      6|            }
   84|   157k|            skip_value<JSON>::op<Opts>(ctx, it, end);
   85|   157k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (85:17): [True: 25.8k, False: 131k]
  ------------------
   86|  25.8k|               return;
   87|   131k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (87:17): [True: 167, False: 131k]
  ------------------
   88|    167|               return;
   89|    167|            }
   90|   131k|            if (*it != ',') break;
  ------------------
  |  Branch (90:17): [True: 49.0k, False: 82.2k]
  ------------------
   91|  82.2k|            ++it;
   92|  82.2k|            if constexpr (not Opts.null_terminated) {
   93|  82.2k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (93:20): [True: 2, False: 82.2k]
  ------------------
   94|      2|                  ctx.error = error_code::unexpected_end;
   95|      2|                  return;
   96|      2|               }
   97|  82.2k|            }
   98|  82.2k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (98:17): [True: 11, False: 82.1k]
  ------------------
   99|     11|               return;
  100|     11|            }
  101|  82.2k|         }
  102|  49.0k|         match<'}'>(ctx, it);
  103|  49.0k|         --ctx.depth;
  104|  49.0k|         if constexpr (not Opts.null_terminated) {
  105|  49.0k|            if (it == end) {
  ------------------
  |  Branch (105:17): [True: 29.1k, False: 19.8k]
  ------------------
  106|  29.1k|               ctx.error = error_code::end_reached;
  107|  29.1k|               return;
  108|  29.1k|            }
  109|  49.0k|         }
  110|  49.0k|      }
  111|   106k|   }
_ZN3glz10skip_arrayITnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS2_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS7_QooeqdtT_6formatL_ZNS_4JSONEEeqdtT_6formatL_ZNS_6NDJSONEEEEvOT0_OT1_T2_:
  116|   222k|   {
  117|       |      if constexpr (!check_validate_skipped(Opts)) {
  118|       |         ++it;
  119|       |         if constexpr (not Opts.null_terminated) {
  120|       |            if (it == end) [[unlikely]] {
  121|       |               ctx.error = error_code::unexpected_end;
  122|       |               return;
  123|       |            }
  124|       |         }
  125|       |         skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  126|       |      }
  127|   222k|      else {
  128|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
  129|       |         // released at each syntactic close below
  130|   222k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (130:14): [True: 256, False: 222k]
  ------------------
  131|    256|            return;
  132|    256|         }
  133|   222k|         ++it;
  134|   222k|         if constexpr (not Opts.null_terminated) {
  135|   222k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (135:17): [True: 3, False: 222k]
  ------------------
  136|      3|               ctx.error = error_code::unexpected_end;
  137|      3|               return;
  138|      3|            }
  139|   222k|         }
  140|   222k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (140:14): [True: 1, False: 222k]
  ------------------
  141|      1|            return;
  142|      1|         }
  143|   222k|         if (*it == ']') {
  ------------------
  |  Branch (143:14): [True: 2.29k, False: 220k]
  ------------------
  144|  2.29k|            --ctx.depth;
  145|  2.29k|            ++it;
  146|  2.29k|            if constexpr (not Opts.null_terminated) {
  147|  2.29k|               if (it == end) {
  ------------------
  |  Branch (147:20): [True: 664, False: 1.62k]
  ------------------
  148|    664|                  ctx.error = error_code::end_reached;
  149|    664|                  return;
  150|    664|               }
  151|  2.29k|            }
  152|  1.62k|            return;
  153|  2.29k|         }
  154|   324k|         while (true) {
  ------------------
  |  Branch (154:17): [True: 324k, Folded]
  ------------------
  155|   324k|            skip_value<JSON>::op<Opts>(ctx, it, end);
  156|   324k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (156:17): [True: 205k, False: 119k]
  ------------------
  157|   205k|               return;
  158|   119k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (158:17): [True: 9, False: 119k]
  ------------------
  159|      9|               return;
  160|      9|            }
  161|   119k|            if (*it != ',') break;
  ------------------
  |  Branch (161:17): [True: 14.5k, False: 104k]
  ------------------
  162|   104k|            ++it;
  163|   104k|            if constexpr (not Opts.null_terminated) {
  164|   104k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (164:20): [True: 1, False: 104k]
  ------------------
  165|      1|                  ctx.error = error_code::unexpected_end;
  166|      1|                  return;
  167|      1|               }
  168|   104k|            }
  169|   104k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (169:17): [True: 1, False: 104k]
  ------------------
  170|      1|               return;
  171|      1|            }
  172|   104k|         }
  173|  14.5k|         match<']'>(ctx, it);
  174|  14.5k|         --ctx.depth;
  175|  14.5k|         if constexpr (not Opts.null_terminated) {
  176|  14.5k|            if (it == end) {
  ------------------
  |  Branch (176:17): [True: 494, False: 14.0k]
  ------------------
  177|    494|               ctx.error = error_code::end_reached;
  178|    494|               return;
  179|    494|            }
  180|  14.5k|         }
  181|  14.5k|      }
  182|   222k|   }
_ZN3glz11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEDaOT0_OT1_T2_:
  312|  21.5k|   {
  313|  21.5k|      auto start = it;
  314|  21.5k|      struct opts_validate_skipped : std::decay_t<decltype(Opts)>
  315|  21.5k|      {
  316|  21.5k|         bool validate_skipped = true;
  317|  21.5k|      };
  318|  21.5k|      skip_value<JSON>::op<opts_validate_skipped{{Opts}}>(ctx, it, end);
  319|  21.5k|      return std::span{start, size_t(it - start)};
  320|  21.5k|   }
_ZN3glz10skip_valueILj10EE2opITnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS8_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS4_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES6_S9_S8_QntdtT_8commentsEEvSB_SD_SE_:
  325|  44.7k|   {
  326|  44.7k|      using namespace glz::detail;
  327|       |
  328|       |      // Validating skips (parse_value/JSON pointer) require the full value in a
  329|       |      // contiguous buffer, so streaming refill is not applied there.
  330|       |      if constexpr (has_streaming_state<decltype(ctx)> && not check_validate_skipped(Opts)) {
  331|       |         if (ctx.stream.enabled()) {
  332|       |            skip_value_streaming<Opts>(ctx, it, end);
  333|       |            return;
  334|       |         }
  335|       |      }
  336|       |
  337|       |      if constexpr (not check_validate_skipped(Opts)) {
  338|       |         if constexpr (not check_ws_handled(Opts)) {
  339|       |            if (skip_ws<Opts>(ctx, it, end)) {
  340|       |               return;
  341|       |            }
  342|       |         }
  343|       |         while (true) {
  344|       |            switch (*it) {
  345|       |            case '{':
  346|       |               ++it;
  347|       |               if constexpr (not Opts.null_terminated) {
  348|       |                  if (it == end) [[unlikely]] {
  349|       |                     ctx.error = error_code::unexpected_end;
  350|       |                     return;
  351|       |                  }
  352|       |               }
  353|       |               skip_until_closed<Opts, '{', '}'>(ctx, it, end);
  354|       |               if (bool(ctx.error)) [[unlikely]]
  355|       |                  return;
  356|       |               break;
  357|       |            case '[':
  358|       |               ++it;
  359|       |               if constexpr (not Opts.null_terminated) {
  360|       |                  if (it == end) [[unlikely]] {
  361|       |                     ctx.error = error_code::unexpected_end;
  362|       |                     return;
  363|       |                  }
  364|       |               }
  365|       |               skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  366|       |               if (bool(ctx.error)) [[unlikely]]
  367|       |                  return;
  368|       |               break;
  369|       |            case '"':
  370|       |               skip_string<Opts>(ctx, it, end);
  371|       |               if (bool(ctx.error)) [[unlikely]]
  372|       |                  return;
  373|       |               break;
  374|       |            case ',':
  375|       |            case '}':
  376|       |            case ']':
  377|       |               break;
  378|       |            case '\0':
  379|       |               ctx.error = error_code::unexpected_end;
  380|       |               return;
  381|       |            default: {
  382|       |               ++it;
  383|       |               if constexpr (not Opts.null_terminated) {
  384|       |                  if (it == end) [[unlikely]] {
  385|       |                     ctx.error = error_code::unexpected_end;
  386|       |                     return;
  387|       |                  }
  388|       |               }
  389|       |               continue;
  390|       |            }
  391|       |            }
  392|       |
  393|       |            break;
  394|       |         }
  395|       |      }
  396|  44.7k|      else {
  397|  44.7k|         if constexpr (not check_ws_handled(Opts)) {
  398|  44.7k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (398:17): [True: 0, False: 44.7k]
  ------------------
  399|      0|               return;
  400|      0|            }
  401|  44.7k|         }
  402|  44.7k|         switch (*it) {
  403|  5.56k|         case '{': {
  ------------------
  |  Branch (403:10): [True: 5.56k, False: 39.2k]
  ------------------
  404|  5.56k|            skip_object<Opts>(ctx, it, end);
  405|  5.56k|            break;
  406|      0|         }
  407|  3.41k|         case '[': {
  ------------------
  |  Branch (407:10): [True: 3.41k, False: 41.3k]
  ------------------
  408|  3.41k|            skip_array<Opts>(ctx, it, end);
  409|  3.41k|            break;
  410|      0|         }
  411|  10.6k|         case '"': {
  ------------------
  |  Branch (411:10): [True: 10.6k, False: 34.1k]
  ------------------
  412|  10.6k|            skip_string<Opts>(ctx, it, end);
  413|  10.6k|            break;
  414|      0|         }
  415|    593|         case 'n': {
  ------------------
  |  Branch (415:10): [True: 593, False: 44.1k]
  ------------------
  416|    593|            ++it;
  417|    593|            match<"ull", Opts>(ctx, it, end);
  418|    593|            break;
  419|      0|         }
  420|    594|         case 'f': {
  ------------------
  |  Branch (420:10): [True: 594, False: 44.1k]
  ------------------
  421|    594|            ++it;
  422|    594|            match<"alse", Opts>(ctx, it, end);
  423|    594|            break;
  424|      0|         }
  425|  1.01k|         case 't': {
  ------------------
  |  Branch (425:10): [True: 1.01k, False: 43.7k]
  ------------------
  426|  1.01k|            ++it;
  427|  1.01k|            match<"rue", Opts>(ctx, it, end);
  428|  1.01k|            break;
  429|      0|         }
  430|      0|         case '\0': {
  ------------------
  |  Branch (430:10): [True: 0, False: 44.7k]
  ------------------
  431|      0|            ctx.error = error_code::unexpected_end;
  432|      0|            break;
  433|      0|         }
  434|  22.9k|         default: {
  ------------------
  |  Branch (434:10): [True: 22.9k, False: 21.7k]
  ------------------
  435|  22.9k|            skip_number<Opts>(ctx, it, end);
  436|  22.9k|         }
  437|  44.7k|         }
  438|  44.7k|      }
  439|  44.7k|   }
_ZN3glz11skip_objectITnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS6_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS2_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES4_S7_S6_EEvS9_SB_SC_:
   29|  5.56k|   {
   30|       |      if constexpr (!check_validate_skipped(Opts)) {
   31|       |         ++it;
   32|       |         if constexpr (not Opts.null_terminated) {
   33|       |            if (it == end) [[unlikely]] {
   34|       |               ctx.error = error_code::unexpected_end;
   35|       |               return;
   36|       |            }
   37|       |         }
   38|       |         skip_until_closed<Opts, '{', '}'>(ctx, it, end);
   39|       |      }
   40|  5.56k|      else {
   41|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
   42|       |         // released at each syntactic close below
   43|  5.56k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (43:14): [True: 0, False: 5.56k]
  ------------------
   44|      0|            return;
   45|      0|         }
   46|  5.56k|         ++it;
   47|  5.56k|         if constexpr (not Opts.null_terminated) {
   48|  5.56k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (48:17): [True: 0, False: 5.56k]
  ------------------
   49|      0|               ctx.error = error_code::unexpected_end;
   50|      0|               return;
   51|      0|            }
   52|  5.56k|         }
   53|  5.56k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (53:14): [True: 0, False: 5.56k]
  ------------------
   54|      0|            return;
   55|      0|         }
   56|  5.56k|         if (*it == '}') {
  ------------------
  |  Branch (56:14): [True: 623, False: 4.94k]
  ------------------
   57|    623|            --ctx.depth;
   58|    623|            ++it;
   59|    623|            if constexpr (not Opts.null_terminated) {
   60|    623|               if (it == end) {
  ------------------
  |  Branch (60:20): [True: 0, False: 623]
  ------------------
   61|      0|                  ctx.error = error_code::end_reached;
   62|      0|                  return;
   63|      0|               }
   64|    623|            }
   65|    623|            return;
   66|    623|         }
   67|  15.7k|         while (true) {
  ------------------
  |  Branch (67:17): [True: 15.7k, Folded]
  ------------------
   68|  15.7k|            if (*it != '"') {
  ------------------
  |  Branch (68:17): [True: 0, False: 15.7k]
  ------------------
   69|      0|               ctx.error = error_code::syntax_error;
   70|      0|               return;
   71|      0|            }
   72|  15.7k|            skip_string<Opts>(ctx, it, end);
   73|  15.7k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (73:17): [True: 0, False: 15.7k]
  ------------------
   74|      0|               return;
   75|  15.7k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (75:17): [True: 0, False: 15.7k]
  ------------------
   76|      0|               return;
   77|      0|            }
   78|  15.7k|            if (match_invalid_end<':', Opts>(ctx, it, end)) {
  ------------------
  |  Branch (78:17): [True: 0, False: 15.7k]
  ------------------
   79|      0|               return;
   80|      0|            }
   81|  15.7k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (81:17): [True: 0, False: 15.7k]
  ------------------
   82|      0|               return;
   83|      0|            }
   84|  15.7k|            skip_value<JSON>::op<Opts>(ctx, it, end);
   85|  15.7k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (85:17): [True: 0, False: 15.7k]
  ------------------
   86|      0|               return;
   87|  15.7k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (87:17): [True: 0, False: 15.7k]
  ------------------
   88|      0|               return;
   89|      0|            }
   90|  15.7k|            if (*it != ',') break;
  ------------------
  |  Branch (90:17): [True: 4.94k, False: 10.8k]
  ------------------
   91|  10.8k|            ++it;
   92|  10.8k|            if constexpr (not Opts.null_terminated) {
   93|  10.8k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (93:20): [True: 0, False: 10.8k]
  ------------------
   94|      0|                  ctx.error = error_code::unexpected_end;
   95|      0|                  return;
   96|      0|               }
   97|  10.8k|            }
   98|  10.8k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (98:17): [True: 0, False: 10.8k]
  ------------------
   99|      0|               return;
  100|      0|            }
  101|  10.8k|         }
  102|  4.94k|         match<'}'>(ctx, it);
  103|  4.94k|         --ctx.depth;
  104|  4.94k|         if constexpr (not Opts.null_terminated) {
  105|  4.94k|            if (it == end) {
  ------------------
  |  Branch (105:17): [True: 0, False: 4.94k]
  ------------------
  106|      0|               ctx.error = error_code::end_reached;
  107|      0|               return;
  108|      0|            }
  109|  4.94k|         }
  110|  4.94k|      }
  111|  5.56k|   }
_ZN3glz10skip_arrayITnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS6_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS2_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES4_S7_S6_QooeqdtT_6formatL_ZNS_4JSONEEeqdtT_6formatL_ZNS_6NDJSONEEEEvS9_SB_SC_:
  116|  3.41k|   {
  117|       |      if constexpr (!check_validate_skipped(Opts)) {
  118|       |         ++it;
  119|       |         if constexpr (not Opts.null_terminated) {
  120|       |            if (it == end) [[unlikely]] {
  121|       |               ctx.error = error_code::unexpected_end;
  122|       |               return;
  123|       |            }
  124|       |         }
  125|       |         skip_until_closed<Opts, '[', ']'>(ctx, it, end);
  126|       |      }
  127|  3.41k|      else {
  128|       |         // one nesting level (see enter_depth): counted in both modes so the limit binds,
  129|       |         // released at each syntactic close below
  130|  3.41k|         if (enter_depth(ctx)) [[unlikely]] {
  ------------------
  |  Branch (130:14): [True: 0, False: 3.41k]
  ------------------
  131|      0|            return;
  132|      0|         }
  133|  3.41k|         ++it;
  134|  3.41k|         if constexpr (not Opts.null_terminated) {
  135|  3.41k|            if (it == end) [[unlikely]] {
  ------------------
  |  Branch (135:17): [True: 0, False: 3.41k]
  ------------------
  136|      0|               ctx.error = error_code::unexpected_end;
  137|      0|               return;
  138|      0|            }
  139|  3.41k|         }
  140|  3.41k|         if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (140:14): [True: 0, False: 3.41k]
  ------------------
  141|      0|            return;
  142|      0|         }
  143|  3.41k|         if (*it == ']') {
  ------------------
  |  Branch (143:14): [True: 391, False: 3.02k]
  ------------------
  144|    391|            --ctx.depth;
  145|    391|            ++it;
  146|    391|            if constexpr (not Opts.null_terminated) {
  147|    391|               if (it == end) {
  ------------------
  |  Branch (147:20): [True: 0, False: 391]
  ------------------
  148|      0|                  ctx.error = error_code::end_reached;
  149|      0|                  return;
  150|      0|               }
  151|    391|            }
  152|    391|            return;
  153|    391|         }
  154|  7.49k|         while (true) {
  ------------------
  |  Branch (154:17): [True: 7.49k, Folded]
  ------------------
  155|  7.49k|            skip_value<JSON>::op<Opts>(ctx, it, end);
  156|  7.49k|            if (bool(ctx.error)) [[unlikely]]
  ------------------
  |  Branch (156:17): [True: 0, False: 7.49k]
  ------------------
  157|      0|               return;
  158|  7.49k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (158:17): [True: 0, False: 7.49k]
  ------------------
  159|      0|               return;
  160|      0|            }
  161|  7.49k|            if (*it != ',') break;
  ------------------
  |  Branch (161:17): [True: 3.02k, False: 4.46k]
  ------------------
  162|  4.46k|            ++it;
  163|  4.46k|            if constexpr (not Opts.null_terminated) {
  164|  4.46k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (164:20): [True: 0, False: 4.46k]
  ------------------
  165|      0|                  ctx.error = error_code::unexpected_end;
  166|      0|                  return;
  167|      0|               }
  168|  4.46k|            }
  169|  4.46k|            if (skip_ws<Opts>(ctx, it, end)) {
  ------------------
  |  Branch (169:17): [True: 0, False: 4.46k]
  ------------------
  170|      0|               return;
  171|      0|            }
  172|  4.46k|         }
  173|  3.02k|         match<']'>(ctx, it);
  174|  3.02k|         --ctx.depth;
  175|  3.02k|         if constexpr (not Opts.null_terminated) {
  176|  3.02k|            if (it == end) {
  ------------------
  |  Branch (176:17): [True: 0, False: 3.02k]
  ------------------
  177|      0|               ctx.error = error_code::end_reached;
  178|      0|               return;
  179|      0|            }
  180|  3.02k|         }
  181|  3.02k|      }
  182|  3.41k|   }

_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_8expectedIS8_NS_9error_ctxEEEOT_:
 2916|  46.0k|   {
 2917|  46.0k|      return write<opts{}>(std::forward<T>(value));
 2918|  46.0k|   }
_ZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_RKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  46.0k|      {
  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|  46.0k|         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|  46.0k|            else {
  945|  46.0k|               const sv str = [&]() -> const sv {
  946|  46.0k|                  if constexpr (array_char_t<T>) {
  947|  46.0k|                     return sv{value.data(), value.size()};
  948|  46.0k|                  }
  949|  46.0k|                  else if constexpr (u8str_t<T>) {
  950|  46.0k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  46.0k|                  }
  952|  46.0k|                  else {
  953|  46.0k|                     return str_view<T>(value);
  954|  46.0k|                  }
  955|  46.0k|               }();
  956|  46.0k|               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|  46.0k|               else {
  988|       |                  // Using the original sizing
  989|  46.0k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 46.0k]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  46.0k|               }
  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|  46.0k|               else {
 1002|  46.0k|                  std::memcpy(&b[ix], "\"", 1);
 1003|  46.0k|                  ++ix;
 1004|       |
 1005|  46.0k|                  const auto* c = str.data();
 1006|  46.0k|                  const auto* const e = c + n;
 1007|  46.0k|                  const auto start = &b[ix];
 1008|  46.0k|                  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|  46.0k|                  auto write_escape = [&]() {
 1017|  46.0k|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  46.0k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  46.0k|                           std::memcpy(data, &escaped, 2);
 1020|  46.0k|                           data += 2;
 1021|  46.0k|                        }
 1022|  46.0k|                        else {
 1023|  46.0k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  46.0k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  46.0k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  46.0k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  46.0k|                           std::memcpy(data, unicode_escape, 6);
 1028|  46.0k|                           data += 6;
 1029|  46.0k|                        }
 1030|  46.0k|                     }
 1031|  46.0k|                     else {
 1032|  46.0k|                        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|  46.0k|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  46.0k|                              ctx.error = error_code::invalid_control_character;
 1040|  46.0k|                           }
 1041|  46.0k|                        }
 1042|  46.0k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  46.0k|                        data += 2;
 1044|  46.0k|                     }
 1045|  46.0k|                     ++c;
 1046|  46.0k|                  };
 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|  46.0k|#if defined(GLZ_USE_SSE2)
 1055|  46.0k|                  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|  46.0k|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 46.0k, False: 0]
  ------------------
 1062|  89.4k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 43.4k, False: 46.0k]
  ------------------
 1063|  43.4k|                        std::memcpy(data, c, 8);
 1064|  43.4k|                        uint64_t swar;
 1065|  43.4k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  43.4k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  43.4k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  43.4k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  43.4k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  43.4k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  43.4k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  43.4k|                        next &= repeat_byte8(0b10000000);
 1078|  43.4k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 33.3k, False: 10.1k]
  ------------------
 1079|  33.3k|                           data += 8;
 1080|  33.3k|                           c += 8;
 1081|  33.3k|                           continue;
 1082|  33.3k|                        }
 1083|       |
 1084|  10.1k|                        const auto length = (countr_zero(next) >> 3);
 1085|  10.1k|                        c += length;
 1086|  10.1k|                        data += length;
 1087|  10.1k|                        write_escape();
 1088|  10.1k|                     }
 1089|  46.0k|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|   209k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 163k, False: 46.0k]
  ------------------
 1093|   163k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 1.59k, False: 161k]
  ------------------
 1094|  1.59k|                        std::memcpy(data, &escaped, 2);
 1095|  1.59k|                        data += 2;
 1096|  1.59k|                     }
 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|   161k|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|   161k|                        std::memcpy(data, c, 1);
 1118|   161k|                        ++data;
 1119|   161k|                     }
 1120|   163k|                  }
 1121|       |
 1122|  46.0k|                  ix += size_t(data - start);
 1123|       |
 1124|  46.0k|                  std::memcpy(&b[ix], "\"", 1);
 1125|  46.0k|                  ++ix;
 1126|  46.0k|               }
 1127|  46.0k|            }
 1128|  46.0k|         }
 1129|  46.0k|      }
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_RKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  46.0k|               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|  46.0k|                  else {
  953|  46.0k|                     return str_view<T>(value);
  954|  46.0k|                  }
  955|  46.0k|               }();
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_RKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  23.5M|                  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|  23.5M|                     else {
 1032|       |                        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|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  23.5M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  23.5M|                        data += 2;
 1044|  23.5M|                     }
 1045|  23.5M|                     ++c;
 1046|  23.5M|                  };
_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEERNSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEEEENS2_8expectedINS2_12basic_stringIcS6_NS2_9allocatorIcEEEENS_9error_ctxEEEOT_:
 2916|  46.7k|   {
 2917|  46.7k|      return write<opts{}>(std::forward<T>(value));
 2918|  46.7k|   }
_ZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1955|  46.7k|      {
 1956|       |         // Adjacent tagging needs no per-alternative dispatch: the discriminator and the value are
 1957|       |         // written side by side whatever the alternative is. The visit below still instantiates in
 1958|       |         // that mode (`if constexpr` does not discard the statements after it), but both of its
 1959|       |         // tagged branches are compile-time dead there and the runtime `return` keeps it unreached.
 1960|       |         if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::adjacent) {
 1961|       |            write_adjacent<Opts>(value, ctx, b, ix);
 1962|       |            return;
 1963|       |         }
 1964|  46.7k|         std::visit(
 1965|  46.7k|            [&](auto&& val) {
 1966|  46.7k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|  46.7k|               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|  46.7k|                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|  46.7k|                  if (missing_id(value, ctx)) {
 1980|  46.7k|                     return;
 1981|  46.7k|                  }
 1982|  46.7k|                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|  46.7k|                  if constexpr (Opts.prettify) {
 1984|  46.7k|                     dump("{\n", b, ix);
 1985|  46.7k|                     ctx.depth += check_indentation_width(Opts);
 1986|  46.7k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|  46.7k|                     dump('"', b, ix);
 1988|  46.7k|                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|  46.7k|                     if constexpr (std::integral<id_type>) {
 1990|  46.7k|                        dump("\": ", b, ix);
 1991|  46.7k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|  46.7k|                     }
 1993|  46.7k|                     else {
 1994|  46.7k|                        dump("\": \"", b, ix);
 1995|  46.7k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|  46.7k|                        dump('"', b, ix);
 1997|  46.7k|                     }
 1998|  46.7k|                     const auto pos_after_tag = ix;
 1999|  46.7k|                     dump(",\n", b, ix);
 2000|  46.7k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|  46.7k|                     const auto pos_body_start = ix;
 2002|  46.7k|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|  46.7k|                     if (ix == pos_body_start) {
 2004|  46.7k|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|  46.7k|                     }
 2006|  46.7k|                     ctx.depth -= check_indentation_width(Opts);
 2007|  46.7k|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|  46.7k|                        return;
 2009|  46.7k|                     }
 2010|  46.7k|                     std::memcpy(&b[ix], "\n", 1);
 2011|  46.7k|                     ++ix;
 2012|  46.7k|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|  46.7k|                     ix += ctx.depth;
 2014|  46.7k|                     std::memcpy(&b[ix], "}", 1);
 2015|  46.7k|                     ++ix;
 2016|  46.7k|                  }
 2017|  46.7k|                  else {
 2018|  46.7k|                     dump("{\"", b, ix);
 2019|  46.7k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|  46.7k|                     if constexpr (std::integral<id_type>) {
 2021|  46.7k|                        dump("\":", b, ix);
 2022|  46.7k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|  46.7k|                     }
 2024|  46.7k|                     else {
 2025|  46.7k|                        dump("\":\"", b, ix);
 2026|  46.7k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|  46.7k|                        dump('"', b, ix);
 2028|  46.7k|                     }
 2029|  46.7k|                     const auto pos_after_tag = ix;
 2030|  46.7k|                     dump(',', b, ix);
 2031|  46.7k|                     const auto pos_body_start = ix;
 2032|  46.7k|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|  46.7k|                     if (ix == pos_body_start) {
 2034|  46.7k|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|  46.7k|                     }
 2036|  46.7k|                     dump('}', b, ix);
 2037|  46.7k|                  }
 2038|  46.7k|               }
 2039|  46.7k|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|  46.7k|                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|  46.7k|                  if (missing_id(value, ctx)) {
 2044|  46.7k|                     return;
 2045|  46.7k|                  }
 2046|  46.7k|                  if constexpr (Opts.prettify) {
 2047|  46.7k|                     dump("{\n", b, ix);
 2048|  46.7k|                     ctx.depth += check_indentation_width(Opts);
 2049|  46.7k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|  46.7k|                     dump('"', b, ix);
 2051|  46.7k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|  46.7k|                     dump("\": ", b, ix);
 2053|  46.7k|                     write_id<Opts>(value, ctx, b, ix);
 2054|  46.7k|                     ctx.depth -= check_indentation_width(Opts);
 2055|  46.7k|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|  46.7k|                        return;
 2057|  46.7k|                     }
 2058|  46.7k|                     std::memcpy(&b[ix], "\n", 1);
 2059|  46.7k|                     ++ix;
 2060|  46.7k|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|  46.7k|                     ix += ctx.depth;
 2062|  46.7k|                     std::memcpy(&b[ix], "}", 1);
 2063|  46.7k|                     ++ix;
 2064|  46.7k|                  }
 2065|  46.7k|                  else {
 2066|  46.7k|                     dump("{\"", b, ix);
 2067|  46.7k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|  46.7k|                     dump("\":", b, ix);
 2069|  46.7k|                     write_id<Opts>(value, ctx, b, ix);
 2070|  46.7k|                     dump('}', b, ix);
 2071|  46.7k|                  }
 2072|  46.7k|               }
 2073|  46.7k|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|  46.7k|                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|  46.7k|                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|  46.7k|                  if (missing_id(value, ctx)) {
 2081|  46.7k|                     return;
 2082|  46.7k|                  }
 2083|  46.7k|                  constexpr auto N = []() {
 2084|  46.7k|                     if constexpr (is_memory_object<V>) {
 2085|  46.7k|                        return reflect<memory_type<V>>::size;
 2086|  46.7k|                     }
 2087|  46.7k|                     else {
 2088|  46.7k|                        return reflect<V>::size;
 2089|  46.7k|                     }
 2090|  46.7k|                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|  46.7k|                  if constexpr (Opts.prettify) {
 2094|  46.7k|                     dump("{\n", b, ix);
 2095|  46.7k|                     ctx.depth += check_indentation_width(Opts);
 2096|  46.7k|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|  46.7k|                     dump('"', b, ix);
 2098|  46.7k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|  46.7k|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|  46.7k|                     if constexpr (std::integral<id_type>) {
 2103|  46.7k|                        dump("\": ", b, ix);
 2104|  46.7k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|  46.7k|                        if constexpr (N > 0) {
 2106|  46.7k|                           dump(",\n", b, ix);
 2107|  46.7k|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|  46.7k|                        }
 2109|  46.7k|                     }
 2110|  46.7k|                     else {
 2111|  46.7k|                        dump("\": \"", b, ix);
 2112|  46.7k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|  46.7k|                        if constexpr (N == 0) {
 2114|  46.7k|                           dump('"', b, ix);
 2115|  46.7k|                        }
 2116|  46.7k|                        else {
 2117|  46.7k|                           dump("\",\n", b, ix);
 2118|  46.7k|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|  46.7k|                        }
 2120|  46.7k|                     }
 2121|  46.7k|                  }
 2122|  46.7k|                  else {
 2123|  46.7k|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|  46.7k|                     dump("{\"", b, ix);
 2126|  46.7k|                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|  46.7k|                     if constexpr (std::integral<id_type>) {
 2129|  46.7k|                        dump("\":", b, ix);
 2130|  46.7k|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|  46.7k|                        if constexpr (N > 0) {
 2132|  46.7k|                           dump(',', b, ix);
 2133|  46.7k|                        }
 2134|  46.7k|                     }
 2135|  46.7k|                     else {
 2136|  46.7k|                        dump("\":\"", b, ix);
 2137|  46.7k|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|  46.7k|                        if constexpr (N == 0) {
 2139|  46.7k|                           dump('"', b, ix);
 2140|  46.7k|                        }
 2141|  46.7k|                        else {
 2142|  46.7k|                           dump("\",", b, ix);
 2143|  46.7k|                        }
 2144|  46.7k|                     }
 2145|  46.7k|                  }
 2146|  46.7k|                  if constexpr (is_memory_object<V>) {
 2147|  46.7k|                     if (!val) [[unlikely]] {
 2148|  46.7k|                        ctx.error = error_code::invalid_variant_object;
 2149|  46.7k|                        return;
 2150|  46.7k|                     }
 2151|  46.7k|                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|  46.7k|                  }
 2153|  46.7k|                  else {
 2154|  46.7k|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|  46.7k|                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|  46.7k|                  if constexpr (Opts.skip_null_members) {
 2158|  46.7k|                     if (b[ix - 1] == ',') {
 2159|  46.7k|                        --ix;
 2160|  46.7k|                     }
 2161|  46.7k|                  }
 2162|       |
 2163|  46.7k|                  if constexpr (Opts.prettify) {
 2164|  46.7k|                     ctx.depth -= check_indentation_width(Opts);
 2165|  46.7k|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|  46.7k|                        return;
 2167|  46.7k|                     }
 2168|  46.7k|                     std::memcpy(&b[ix], "\n", 1);
 2169|  46.7k|                     ++ix;
 2170|  46.7k|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|  46.7k|                     ix += ctx.depth;
 2172|  46.7k|                     std::memcpy(&b[ix], "}", 1);
 2173|  46.7k|                     ++ix;
 2174|  46.7k|                  }
 2175|  46.7k|                  else {
 2176|  46.7k|                     dump('}', b, ix);
 2177|  46.7k|                  }
 2178|  46.7k|               }
 2179|  46.7k|               else {
 2180|  46.7k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  46.7k|               }
 2182|  46.7k|            },
 2183|  46.7k|            value);
 2184|  46.7k|      }
_ZZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clIRDnEEDaSS_:
 1965|  5.82k|            [&](auto&& val) {
 1966|  5.82k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|  5.82k|               else {
 2180|  5.82k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  5.82k|               }
 2182|  5.82k|            },
_ZN3glz2toILj10EDnE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERDnTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1849|  5.82k|      {
 1850|  5.82k|         if constexpr (not check_write_unchecked(Opts)) {
 1851|  5.82k|            if (!ensure_space(ctx, b, ix + 4)) [[unlikely]] {
  ------------------
  |  Branch (1851:17): [True: 0, False: 5.82k]
  ------------------
 1852|      0|               return;
 1853|      0|            }
 1854|  5.82k|         }
 1855|       |         if constexpr (std::endian::native == std::endian::big) {
 1856|       |            static constexpr char null_v[] = "null";
 1857|       |            std::memcpy(&b[ix], null_v, 4);
 1858|       |         }
 1859|  5.82k|         else {
 1860|  5.82k|            static constexpr uint32_t null_v = 1819047278;
 1861|  5.82k|            std::memcpy(&b[ix], &null_v, 4);
 1862|  5.82k|         }
 1863|  5.82k|         ix += 4;
 1864|  5.82k|      }
_ZZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clIRS6_EEDaSS_:
 1965|  6.71k|            [&](auto&& val) {
 1966|  6.71k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|  6.71k|               else {
 2180|  6.71k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  6.71k|               }
 2182|  6.71k|            },
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  6.71k|      {
  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|  6.71k|         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|  6.71k|            else {
  945|  6.71k|               const sv str = [&]() -> const sv {
  946|  6.71k|                  if constexpr (array_char_t<T>) {
  947|  6.71k|                     return sv{value.data(), value.size()};
  948|  6.71k|                  }
  949|  6.71k|                  else if constexpr (u8str_t<T>) {
  950|  6.71k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  6.71k|                  }
  952|  6.71k|                  else {
  953|  6.71k|                     return str_view<T>(value);
  954|  6.71k|                  }
  955|  6.71k|               }();
  956|  6.71k|               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|  6.71k|               else {
  988|       |                  // Using the original sizing
  989|  6.71k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 6.71k]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  6.71k|               }
  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|  6.71k|               else {
 1002|  6.71k|                  std::memcpy(&b[ix], "\"", 1);
 1003|  6.71k|                  ++ix;
 1004|       |
 1005|  6.71k|                  const auto* c = str.data();
 1006|  6.71k|                  const auto* const e = c + n;
 1007|  6.71k|                  const auto start = &b[ix];
 1008|  6.71k|                  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|  6.71k|                  auto write_escape = [&]() {
 1017|  6.71k|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  6.71k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  6.71k|                           std::memcpy(data, &escaped, 2);
 1020|  6.71k|                           data += 2;
 1021|  6.71k|                        }
 1022|  6.71k|                        else {
 1023|  6.71k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  6.71k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  6.71k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  6.71k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  6.71k|                           std::memcpy(data, unicode_escape, 6);
 1028|  6.71k|                           data += 6;
 1029|  6.71k|                        }
 1030|  6.71k|                     }
 1031|  6.71k|                     else {
 1032|  6.71k|                        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|  6.71k|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  6.71k|                              ctx.error = error_code::invalid_control_character;
 1040|  6.71k|                           }
 1041|  6.71k|                        }
 1042|  6.71k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  6.71k|                        data += 2;
 1044|  6.71k|                     }
 1045|  6.71k|                     ++c;
 1046|  6.71k|                  };
 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|  6.71k|#if defined(GLZ_USE_SSE2)
 1055|  6.71k|                  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|  6.71k|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 4.78k, False: 1.92k]
  ------------------
 1062|  14.5k|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 9.81k, False: 4.78k]
  ------------------
 1063|  9.81k|                        std::memcpy(data, c, 8);
 1064|  9.81k|                        uint64_t swar;
 1065|  9.81k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|  9.81k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|  9.81k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|  9.81k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|  9.81k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|  9.81k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|  9.81k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|  9.81k|                        next &= repeat_byte8(0b10000000);
 1078|  9.81k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 1.23k, False: 8.57k]
  ------------------
 1079|  1.23k|                           data += 8;
 1080|  1.23k|                           c += 8;
 1081|  1.23k|                           continue;
 1082|  1.23k|                        }
 1083|       |
 1084|  8.57k|                        const auto length = (countr_zero(next) >> 3);
 1085|  8.57k|                        c += length;
 1086|  8.57k|                        data += length;
 1087|  8.57k|                        write_escape();
 1088|  8.57k|                     }
 1089|  4.78k|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  32.5k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 25.8k, False: 6.71k]
  ------------------
 1093|  25.8k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 4.31k, False: 21.5k]
  ------------------
 1094|  4.31k|                        std::memcpy(data, &escaped, 2);
 1095|  4.31k|                        data += 2;
 1096|  4.31k|                     }
 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|  21.5k|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|  21.5k|                        std::memcpy(data, c, 1);
 1118|  21.5k|                        ++data;
 1119|  21.5k|                     }
 1120|  25.8k|                  }
 1121|       |
 1122|  6.71k|                  ix += size_t(data - start);
 1123|       |
 1124|  6.71k|                  std::memcpy(&b[ix], "\"", 1);
 1125|  6.71k|                  ++ix;
 1126|  6.71k|               }
 1127|  6.71k|            }
 1128|  6.71k|         }
 1129|  6.71k|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  6.71k|               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|  6.71k|                  else {
  953|  6.71k|                     return str_view<T>(value);
  954|  6.71k|                  }
  955|  6.71k|               }();
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  24.6M|                  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|  24.6M|                     else {
 1032|       |                        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|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  24.6M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  24.6M|                        data += 2;
 1044|  24.6M|                     }
 1045|  24.6M|                     ++c;
 1046|  24.6M|                  };
_ZZN3glz2toILj10ENSt3__17variantIJDnNS1_17basic_string_viewIcNS1_11char_traitsIcEEEElEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS5_NS1_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clIRlEEDaSS_:
 1965|  34.2k|            [&](auto&& val) {
 1966|  34.2k|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|  34.2k|               else {
 2180|  34.2k|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|  34.2k|               }
 2182|  34.2k|            },
_ZN3glz2toILj10ElE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERlTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  34.2k|      {
  815|  34.2k|         if constexpr (not check_write_unchecked(Opts)) {
  816|  34.2k|            static_assert(required_padding<T>());
  817|  34.2k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 34.2k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  34.2k|         }
  821|       |
  822|  34.2k|         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|  34.2k|         else {
  832|  34.2k|            write_chars::op<O>(value, ctx, b, ix);
  833|  34.2k|         }
  834|  34.2k|      }
_ZN3glz16required_paddingIlEEmv:
  538|  34.2k|   {
  539|  34.2k|      constexpr auto value = []() -> size_t {
  540|  34.2k|         if constexpr (boolean_like<T>) {
  541|  34.2k|            return 8;
  542|  34.2k|         }
  543|  34.2k|         else if constexpr (num_t<T>) {
  544|  34.2k|            if constexpr (std::floating_point<T>) {
  545|  34.2k|               if constexpr (sizeof(T) > 8) {
  546|  34.2k|                  return 64;
  547|  34.2k|               }
  548|  34.2k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  34.2k|                  return zmij::double_buffer_size + 4;
  551|  34.2k|               }
  552|  34.2k|               else {
  553|  34.2k|                  return zmij::float_buffer_size + 4;
  554|  34.2k|               }
  555|  34.2k|            }
  556|  34.2k|            else if constexpr (sizeof(T) > 4) {
  557|  34.2k|               return 24;
  558|  34.2k|            }
  559|  34.2k|            else if constexpr (sizeof(T) > 2) {
  560|  34.2k|               return 16;
  561|  34.2k|            }
  562|  34.2k|            else {
  563|  34.2k|               return 8;
  564|  34.2k|            }
  565|  34.2k|         }
  566|  34.2k|         else if constexpr (nullable_like<T>) {
  567|  34.2k|            if constexpr (has_value_type<T>) {
  568|  34.2k|               return required_padding<typename T::value_type>();
  569|  34.2k|            }
  570|  34.2k|            else if constexpr (has_element_type<T>) {
  571|  34.2k|               return required_padding<typename T::element_type>();
  572|  34.2k|            }
  573|  34.2k|            else {
  574|  34.2k|               return 0;
  575|  34.2k|            }
  576|  34.2k|         }
  577|  34.2k|         else if constexpr (always_null_t<T>) {
  578|  34.2k|            return 8;
  579|  34.2k|         }
  580|  34.2k|         else {
  581|  34.2k|            return 0;
  582|  34.2k|         }
  583|  34.2k|      }();
  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|  34.2k|      return value;
  591|  34.2k|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    196|      {
  815|       |         if constexpr (not check_write_unchecked(Opts)) {
  816|       |            static_assert(required_padding<T>());
  817|       |            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  818|       |               return;
  819|       |            }
  820|       |         }
  821|       |
  822|    196|         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|    196|         else {
  832|    196|            write_chars::op<O>(value, ctx, b, ix);
  833|    196|         }
  834|    196|      }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    427|      {
  815|    427|         if constexpr (not check_write_unchecked(Opts)) {
  816|    427|            static_assert(required_padding<T>());
  817|    427|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 427]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|    427|         }
  821|       |
  822|    427|         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|    427|         else {
  832|    427|            write_chars::op<O>(value, ctx, b, ix);
  833|    427|         }
  834|    427|      }
_ZN3glz16required_paddingIiEEmv:
  538|    719|   {
  539|    719|      constexpr auto value = []() -> size_t {
  540|    719|         if constexpr (boolean_like<T>) {
  541|    719|            return 8;
  542|    719|         }
  543|    719|         else if constexpr (num_t<T>) {
  544|    719|            if constexpr (std::floating_point<T>) {
  545|    719|               if constexpr (sizeof(T) > 8) {
  546|    719|                  return 64;
  547|    719|               }
  548|    719|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|    719|                  return zmij::double_buffer_size + 4;
  551|    719|               }
  552|    719|               else {
  553|    719|                  return zmij::float_buffer_size + 4;
  554|    719|               }
  555|    719|            }
  556|    719|            else if constexpr (sizeof(T) > 4) {
  557|    719|               return 24;
  558|    719|            }
  559|    719|            else if constexpr (sizeof(T) > 2) {
  560|    719|               return 16;
  561|    719|            }
  562|    719|            else {
  563|    719|               return 8;
  564|    719|            }
  565|    719|         }
  566|    719|         else if constexpr (nullable_like<T>) {
  567|    719|            if constexpr (has_value_type<T>) {
  568|    719|               return required_padding<typename T::value_type>();
  569|    719|            }
  570|    719|            else if constexpr (has_element_type<T>) {
  571|    719|               return required_padding<typename T::element_type>();
  572|    719|            }
  573|    719|            else {
  574|    719|               return 0;
  575|    719|            }
  576|    719|         }
  577|    719|         else if constexpr (always_null_t<T>) {
  578|    719|            return 8;
  579|    719|         }
  580|    719|         else {
  581|    719|            return 0;
  582|    719|         }
  583|    719|      }();
  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|    719|      return value;
  591|    719|   }
_ZN3glz2toILj10EiE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    292|      {
  815|    292|         if constexpr (not check_write_unchecked(Opts)) {
  816|    292|            static_assert(required_padding<T>());
  817|    292|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 292]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|    292|         }
  821|       |
  822|    292|         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|    292|         else {
  832|    292|            write_chars::op<O>(value, ctx, b, ix);
  833|    292|         }
  834|    292|      }
_ZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2536|    107|      {
 2537|    107|         using ValueType = std::decay_t<V>;
 2538|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2539|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2540|       |
 2541|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2542|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2543|       |               decltype(auto) unknown_writer = value.*writer;
 2544|       |               if (unknown_writer.size() > 0) {
 2545|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2546|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2547|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2548|       |               }
 2549|       |               else {
 2550|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2551|       |               }
 2552|       |            }
 2553|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2554|       |               decltype(auto) unknown_writer = (value.*writer)();
 2555|       |               if (unknown_writer.size() > 0) {
 2556|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2557|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2558|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2559|       |               }
 2560|       |               else {
 2561|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2562|       |               }
 2563|       |            }
 2564|       |            else {
 2565|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2566|       |            }
 2567|       |         }
 2568|    107|         else {
 2569|       |            // handles glaze_object_t without extra unknown fields
 2570|    107|            static constexpr auto Opts =
 2571|    107|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2572|       |
 2573|    107|            if constexpr (not check_opening_handled(Options)) {
 2574|       |               if constexpr (Options.prettify) {
 2575|       |                  ctx.depth += check_indentation_width(Options);
 2576|       |                  if constexpr (not check_write_unchecked(Options)) {
 2577|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2578|       |                        return;
 2579|       |                     }
 2580|       |                  }
 2581|       |                  std::memcpy(&b[ix], "{\n", 2);
 2582|       |                  ix += 2;
 2583|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2584|       |                  ix += ctx.depth;
 2585|       |               }
 2586|    107|               else {
 2587|    107|                  if constexpr (not check_write_unchecked(Options)) {
 2588|    107|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2588:26): [True: 0, False: 107]
  ------------------
 2589|      0|                        return;
 2590|      0|                     }
 2591|    107|                  }
 2592|    107|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2593|    107|               }
 2594|    107|            }
 2595|       |
 2596|      0|            static constexpr auto N = reflect<T>::size;
 2597|       |
 2598|    107|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|    107|               if constexpr (reflectable<T>) {
 2600|    107|                  return to_tie(value);
 2601|    107|               }
 2602|    107|               else {
 2603|    107|                  return nullptr;
 2604|    107|               }
 2605|    107|            }();
 2606|       |
 2607|    107|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2608|       |            if constexpr (maybe_skipped<Opts, T>) {
 2609|       |               bool first = true;
 2610|       |               for_each<N>([&]<size_t I>() {
 2611|       |                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|       |                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|       |                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|       |                     else {
 2686|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2687|       |                           return;
 2688|       |                        }
 2689|       |                     }
 2690|       |
 2691|       |                     if (first) {
 2692|       |                        first = false;
 2693|       |                     }
 2694|       |                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|       |                        else {
 2703|       |                           std::memcpy(&b[ix], ",", 1);
 2704|       |                           ++ix;
 2705|       |                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|       |                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|       |                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|       |                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|       |                     static constexpr auto n = quoted_key.size();
 2715|       |                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|       |                     ix += n;
 2717|       |
 2718|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2719|       |                     if constexpr (reflectable<T>) {
 2720|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|       |                  }
 2727|       |               });
 2728|       |            }
 2729|    107|            else {
 2730|    107|               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
  ------------------
  |  Branch (2730:57): [Folded, False: 107]
  ------------------
 2731|    107|               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2732|    107|                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
  ------------------
  |  Branch (2732:23): [True: 0, False: 107]
  ------------------
 2733|      0|                     return;
 2734|      0|                  }
 2735|    107|               }
 2736|       |
 2737|    107|               for_each<N>([&]<size_t I>() {
 2738|    107|                  if constexpr (write_can_error<T>()) {
 2739|    107|                     if (bool(ctx.error)) [[unlikely]] {
 2740|    107|                        return;
 2741|    107|                     }
 2742|    107|                  }
 2743|    107|                  if constexpr (not fixed_max_size) {
 2744|    107|                     if constexpr (Opts.prettify) {
 2745|    107|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|    107|                           return;
 2747|    107|                        }
 2748|    107|                     }
 2749|    107|                     else {
 2750|    107|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|    107|                           return;
 2752|    107|                        }
 2753|    107|                     }
 2754|    107|                  }
 2755|       |
 2756|    107|                  if constexpr (I != 0 && Opts.prettify) {
 2757|    107|                     std::memcpy(&b[ix], ",\n", 2);
 2758|    107|                     ix += 2;
 2759|    107|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|    107|                     ix += ctx.depth;
 2761|    107|                  }
 2762|       |
 2763|    107|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    107|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|    107|                  if constexpr (always_null_t<val_t>) {
 2768|    107|                     if constexpr (I == 0 || Opts.prettify) {
 2769|    107|                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|    107|                        static constexpr auto n = quoted_key.size();
 2771|    107|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|    107|                        ix += n;
 2773|    107|                     }
 2774|    107|                     else {
 2775|    107|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|    107|                        static constexpr auto n = quoted_key.size();
 2777|    107|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|    107|                        ix += n;
 2779|    107|                     }
 2780|    107|                  }
 2781|    107|                  else {
 2782|    107|                     if constexpr (I == 0 || Opts.prettify) {
 2783|    107|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|    107|                        static constexpr auto n = quoted_key.size();
 2785|    107|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|    107|                        ix += n;
 2787|    107|                     }
 2788|    107|                     else {
 2789|    107|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|    107|                        static constexpr auto n = quoted_key.size();
 2791|    107|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|    107|                        ix += n;
 2793|    107|                     }
 2794|       |
 2795|    107|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2796|    107|                     if constexpr (reflectable<T>) {
 2797|    107|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|    107|                     }
 2799|    107|                     else {
 2800|    107|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|    107|                                                                 ix);
 2802|    107|                     }
 2803|    107|                  }
 2804|    107|               });
 2805|    107|            }
 2806|       |
 2807|       |            // Options is required here, because it must be the top level
 2808|    107|            if constexpr (not check_closing_handled(Options)) {
 2809|    107|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2809:20): [True: 0, False: 107]
  ------------------
 2810|      0|                  return;
 2811|      0|               }
 2812|       |               if constexpr (Options.prettify) {
 2813|       |                  ctx.depth -= check_indentation_width(Options);
 2814|       |                  if constexpr (not check_write_unchecked(Options)) {
 2815|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2816|       |                        return;
 2817|       |                     }
 2818|       |                  }
 2819|       |                  std::memcpy(&b[ix], "\n", 1);
 2820|       |                  ++ix;
 2821|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2822|       |                  ix += ctx.depth;
 2823|       |                  std::memcpy(&b[ix], "}", 1);
 2824|       |                  ++ix;
 2825|       |               }
 2826|    107|               else {
 2827|       |                  if constexpr (has_bounded_capacity<B> && not check_write_unchecked(Options)) {
 2828|       |                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|    107|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2833|    107|               }
 2834|    107|            }
 2835|    107|         }
 2836|    107|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2598|    107|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|    107|               if constexpr (reflectable<T>) {
 2600|    107|                  return to_tie(value);
 2601|       |               }
 2602|       |               else {
 2603|       |                  return nullptr;
 2604|       |               }
 2605|    107|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2737|    107|               for_each<N>([&]<size_t I>() {
 2738|       |                  if constexpr (write_can_error<T>()) {
 2739|       |                     if (bool(ctx.error)) [[unlikely]] {
 2740|       |                        return;
 2741|       |                     }
 2742|       |                  }
 2743|       |                  if constexpr (not fixed_max_size) {
 2744|       |                     if constexpr (Opts.prettify) {
 2745|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|       |                           return;
 2747|       |                        }
 2748|       |                     }
 2749|       |                     else {
 2750|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|       |                           return;
 2752|       |                        }
 2753|       |                     }
 2754|       |                  }
 2755|       |
 2756|       |                  if constexpr (I != 0 && Opts.prettify) {
 2757|       |                     std::memcpy(&b[ix], ",\n", 2);
 2758|       |                     ix += 2;
 2759|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|       |                     ix += ctx.depth;
 2761|       |                  }
 2762|       |
 2763|    107|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    107|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|       |                  if constexpr (always_null_t<val_t>) {
 2768|       |                     if constexpr (I == 0 || Opts.prettify) {
 2769|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|       |                        static constexpr auto n = quoted_key.size();
 2771|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|       |                        ix += n;
 2773|       |                     }
 2774|       |                     else {
 2775|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|       |                        static constexpr auto n = quoted_key.size();
 2777|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|       |                        ix += n;
 2779|       |                     }
 2780|       |                  }
 2781|    107|                  else {
 2782|    107|                     if constexpr (I == 0 || Opts.prettify) {
 2783|    107|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|    107|                        static constexpr auto n = quoted_key.size();
 2785|    107|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|    107|                        ix += n;
 2787|       |                     }
 2788|       |                     else {
 2789|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|       |                        static constexpr auto n = quoted_key.size();
 2791|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|       |                        ix += n;
 2793|       |                     }
 2794|       |
 2795|    107|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2795:57): [True: 0, Folded]
  ------------------
 2796|    107|                     if constexpr (reflectable<T>) {
 2797|    107|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|       |                     }
 2799|       |                     else {
 2800|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|       |                                                                 ix);
 2802|       |                     }
 2803|    107|                  }
 2804|    107|               });
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj128EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|    900|      {
  815|       |         if constexpr (not check_write_unchecked(Opts)) {
  816|       |            static_assert(required_padding<T>());
  817|       |            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  818|       |               return;
  819|       |            }
  820|       |         }
  821|       |
  822|    900|         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|    900|         else {
  832|    900|            write_chars::op<O>(value, ctx, b, ix);
  833|    900|         }
  834|    900|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES2_RNSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2737|    107|               for_each<N>([&]<size_t I>() {
 2738|       |                  if constexpr (write_can_error<T>()) {
 2739|       |                     if (bool(ctx.error)) [[unlikely]] {
 2740|       |                        return;
 2741|       |                     }
 2742|       |                  }
 2743|       |                  if constexpr (not fixed_max_size) {
 2744|       |                     if constexpr (Opts.prettify) {
 2745|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|       |                           return;
 2747|       |                        }
 2748|       |                     }
 2749|       |                     else {
 2750|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|       |                           return;
 2752|       |                        }
 2753|       |                     }
 2754|       |                  }
 2755|       |
 2756|       |                  if constexpr (I != 0 && Opts.prettify) {
 2757|       |                     std::memcpy(&b[ix], ",\n", 2);
 2758|       |                     ix += 2;
 2759|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|       |                     ix += ctx.depth;
 2761|       |                  }
 2762|       |
 2763|    107|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    107|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|       |                  if constexpr (always_null_t<val_t>) {
 2768|       |                     if constexpr (I == 0 || Opts.prettify) {
 2769|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|       |                        static constexpr auto n = quoted_key.size();
 2771|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|       |                        ix += n;
 2773|       |                     }
 2774|       |                     else {
 2775|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|       |                        static constexpr auto n = quoted_key.size();
 2777|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|       |                        ix += n;
 2779|       |                     }
 2780|       |                  }
 2781|    107|                  else {
 2782|       |                     if constexpr (I == 0 || Opts.prettify) {
 2783|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|       |                        static constexpr auto n = quoted_key.size();
 2785|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|       |                        ix += n;
 2787|       |                     }
 2788|    107|                     else {
 2789|    107|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|    107|                        static constexpr auto n = quoted_key.size();
 2791|    107|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|    107|                        ix += n;
 2793|    107|                     }
 2794|       |
 2795|    107|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2795:57): [True: 0, Folded]
  ------------------
 2796|    107|                     if constexpr (reflectable<T>) {
 2797|    107|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|       |                     }
 2799|       |                     else {
 2800|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|       |                                                                 ix);
 2802|       |                     }
 2803|    107|                  }
 2804|    107|               });
_ZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2536|     65|      {
 2537|     65|         using ValueType = std::decay_t<V>;
 2538|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2539|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2540|       |
 2541|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2542|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2543|       |               decltype(auto) unknown_writer = value.*writer;
 2544|       |               if (unknown_writer.size() > 0) {
 2545|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2546|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2547|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2548|       |               }
 2549|       |               else {
 2550|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2551|       |               }
 2552|       |            }
 2553|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2554|       |               decltype(auto) unknown_writer = (value.*writer)();
 2555|       |               if (unknown_writer.size() > 0) {
 2556|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2557|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2558|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2559|       |               }
 2560|       |               else {
 2561|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2562|       |               }
 2563|       |            }
 2564|       |            else {
 2565|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2566|       |            }
 2567|       |         }
 2568|     65|         else {
 2569|       |            // handles glaze_object_t without extra unknown fields
 2570|     65|            static constexpr auto Opts =
 2571|     65|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2572|       |
 2573|     65|            if constexpr (not check_opening_handled(Options)) {
 2574|       |               if constexpr (Options.prettify) {
 2575|       |                  ctx.depth += check_indentation_width(Options);
 2576|       |                  if constexpr (not check_write_unchecked(Options)) {
 2577|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2578|       |                        return;
 2579|       |                     }
 2580|       |                  }
 2581|       |                  std::memcpy(&b[ix], "{\n", 2);
 2582|       |                  ix += 2;
 2583|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2584|       |                  ix += ctx.depth;
 2585|       |               }
 2586|     65|               else {
 2587|     65|                  if constexpr (not check_write_unchecked(Options)) {
 2588|     65|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2588:26): [True: 0, False: 65]
  ------------------
 2589|      0|                        return;
 2590|      0|                     }
 2591|     65|                  }
 2592|     65|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2593|     65|               }
 2594|     65|            }
 2595|       |
 2596|      0|            static constexpr auto N = reflect<T>::size;
 2597|       |
 2598|     65|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|     65|               if constexpr (reflectable<T>) {
 2600|     65|                  return to_tie(value);
 2601|     65|               }
 2602|     65|               else {
 2603|     65|                  return nullptr;
 2604|     65|               }
 2605|     65|            }();
 2606|       |
 2607|     65|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2608|     65|            if constexpr (maybe_skipped<Opts, T>) {
 2609|     65|               bool first = true;
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|     65|                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|     65|                     return;
 2617|     65|                  }
 2618|     65|                  else {
 2619|     65|                     if constexpr (meta_has_skip_if<T>) {
 2620|     65|                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|     65|                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|     65|                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|     65|                           if constexpr (reflectable<T>) {
 2624|     65|                              return get<I>(t);
 2625|     65|                           }
 2626|     65|                           else {
 2627|     65|                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|     65|                           }
 2629|     65|                        }();
 2630|     65|                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|     65|                     }
 2632|       |
 2633|     65|                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|     65|                        if constexpr (always_null_t<val_t>)
 2635|     65|                           return;
 2636|     65|                        else {
 2637|     65|                           const auto is_null = [&]() {
 2638|     65|                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|     65|                                 if constexpr (reflectable<T>) {
 2640|     65|                                    return get<I>(t);
 2641|     65|                                 }
 2642|     65|                                 else {
 2643|     65|                                    return get<I>(reflect<T>::values);
 2644|     65|                                 }
 2645|     65|                              };
 2646|       |
 2647|     65|                              if constexpr (nullable_wrapper<val_t>) {
 2648|     65|                                 return !bool(element()(value).val);
 2649|     65|                              }
 2650|     65|                              else if constexpr (nullable_value_t<val_t>) {
 2651|     65|                                 return !get_member(value, element()).has_value();
 2652|     65|                              }
 2653|     65|                              else {
 2654|     65|                                 return !bool(get_member(value, element()));
 2655|     65|                              }
 2656|     65|                           }();
 2657|     65|                           if (is_null) return;
 2658|     65|                        }
 2659|     65|                     }
 2660|     65|                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|     65|                                        custom_getter_returns_nullable<val_t>()) {
 2662|     65|                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|     65|                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|     65|                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|     65|                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|     65|                           if constexpr (reflectable<T>) {
 2671|     65|                              return get_member(value, get<I>(t));
 2672|     65|                           }
 2673|     65|                           else {
 2674|     65|                              return get_member(value, get<I>(reflect<T>::values));
 2675|     65|                           }
 2676|     65|                        }();
 2677|     65|                        if (is_default_value(member)) return;
 2678|     65|                     }
 2679|       |
 2680|     65|                     if constexpr (Opts.prettify) {
 2681|     65|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|     65|                           return;
 2683|     65|                        }
 2684|     65|                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2687|     65|                           return;
 2688|     65|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
 2692|     65|                        first = false;
 2693|     65|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|     65|                        if constexpr (Opts.prettify) {
 2697|     65|                           std::memcpy(&b[ix], ",\n", 2);
 2698|     65|                           ix += 2;
 2699|     65|                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|     65|                           ix += ctx.depth;
 2701|     65|                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|     65|                        if constexpr (is_output_streaming<B>) {
 2707|     65|                           flush_buffer(b, ix);
 2708|     65|                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|     65|                     }
 2722|     65|                     else {
 2723|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|     65|                                                                 ix);
 2725|     65|                     }
 2726|     65|                  }
 2727|     65|               });
 2728|       |            }
 2729|       |            else {
 2730|       |               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
 2731|       |               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2732|       |                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
 2733|       |                     return;
 2734|       |                  }
 2735|       |               }
 2736|       |
 2737|       |               for_each<N>([&]<size_t I>() {
 2738|       |                  if constexpr (write_can_error<T>()) {
 2739|       |                     if (bool(ctx.error)) [[unlikely]] {
 2740|       |                        return;
 2741|       |                     }
 2742|       |                  }
 2743|       |                  if constexpr (not fixed_max_size) {
 2744|       |                     if constexpr (Opts.prettify) {
 2745|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|       |                           return;
 2747|       |                        }
 2748|       |                     }
 2749|       |                     else {
 2750|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|       |                           return;
 2752|       |                        }
 2753|       |                     }
 2754|       |                  }
 2755|       |
 2756|       |                  if constexpr (I != 0 && Opts.prettify) {
 2757|       |                     std::memcpy(&b[ix], ",\n", 2);
 2758|       |                     ix += 2;
 2759|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|       |                     ix += ctx.depth;
 2761|       |                  }
 2762|       |
 2763|       |                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|       |                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|       |                  if constexpr (always_null_t<val_t>) {
 2768|       |                     if constexpr (I == 0 || Opts.prettify) {
 2769|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|       |                        static constexpr auto n = quoted_key.size();
 2771|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|       |                        ix += n;
 2773|       |                     }
 2774|       |                     else {
 2775|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|       |                        static constexpr auto n = quoted_key.size();
 2777|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|       |                        ix += n;
 2779|       |                     }
 2780|       |                  }
 2781|       |                  else {
 2782|       |                     if constexpr (I == 0 || Opts.prettify) {
 2783|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|       |                        static constexpr auto n = quoted_key.size();
 2785|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|       |                        ix += n;
 2787|       |                     }
 2788|       |                     else {
 2789|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|       |                        static constexpr auto n = quoted_key.size();
 2791|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|       |                        ix += n;
 2793|       |                     }
 2794|       |
 2795|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2796|       |                     if constexpr (reflectable<T>) {
 2797|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|       |                     }
 2799|       |                     else {
 2800|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|       |                                                                 ix);
 2802|       |                     }
 2803|       |                  }
 2804|       |               });
 2805|       |            }
 2806|       |
 2807|       |            // Options is required here, because it must be the top level
 2808|     65|            if constexpr (not check_closing_handled(Options)) {
 2809|     65|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2809:20): [True: 0, False: 65]
  ------------------
 2810|      0|                  return;
 2811|      0|               }
 2812|       |               if constexpr (Options.prettify) {
 2813|       |                  ctx.depth -= check_indentation_width(Options);
 2814|       |                  if constexpr (not check_write_unchecked(Options)) {
 2815|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2816|       |                        return;
 2817|       |                     }
 2818|       |                  }
 2819|       |                  std::memcpy(&b[ix], "\n", 1);
 2820|       |                  ++ix;
 2821|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2822|       |                  ix += ctx.depth;
 2823|       |                  std::memcpy(&b[ix], "}", 1);
 2824|       |                  ++ix;
 2825|       |               }
 2826|     65|               else {
 2827|       |                  if constexpr (has_bounded_capacity<B> && not check_write_unchecked(Options)) {
 2828|       |                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|     65|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2833|     65|               }
 2834|     65|            }
 2835|     65|         }
 2836|     65|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2598|     65|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|     65|               if constexpr (reflectable<T>) {
 2600|     65|                  return to_tie(value);
 2601|       |               }
 2602|       |               else {
 2603|       |                  return nullptr;
 2604|       |               }
 2605|     65|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 65, False: 0]
  ------------------
 2692|     65|                        first = false;
 2693|     65|                     }
 2694|      0|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|      0|                        else {
 2703|      0|                           std::memcpy(&b[ix], ",", 1);
 2704|      0|                           ++ix;
 2705|      0|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|      0|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [True: 0, Folded]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_SB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  1.11k|      {
  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.11k|         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.11k|            else {
  945|  1.11k|               const sv str = [&]() -> const sv {
  946|  1.11k|                  if constexpr (array_char_t<T>) {
  947|  1.11k|                     return sv{value.data(), value.size()};
  948|  1.11k|                  }
  949|  1.11k|                  else if constexpr (u8str_t<T>) {
  950|  1.11k|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  1.11k|                  }
  952|  1.11k|                  else {
  953|  1.11k|                     return str_view<T>(value);
  954|  1.11k|                  }
  955|  1.11k|               }();
  956|  1.11k|               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.11k|               else {
  988|       |                  // Using the original sizing
  989|  1.11k|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 1.11k]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  1.11k|               }
  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.11k|               else {
 1002|  1.11k|                  std::memcpy(&b[ix], "\"", 1);
 1003|  1.11k|                  ++ix;
 1004|       |
 1005|  1.11k|                  const auto* c = str.data();
 1006|  1.11k|                  const auto* const e = c + n;
 1007|  1.11k|                  const auto start = &b[ix];
 1008|  1.11k|                  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.11k|                  auto write_escape = [&]() {
 1017|  1.11k|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  1.11k|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  1.11k|                           std::memcpy(data, &escaped, 2);
 1020|  1.11k|                           data += 2;
 1021|  1.11k|                        }
 1022|  1.11k|                        else {
 1023|  1.11k|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  1.11k|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  1.11k|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  1.11k|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  1.11k|                           std::memcpy(data, unicode_escape, 6);
 1028|  1.11k|                           data += 6;
 1029|  1.11k|                        }
 1030|  1.11k|                     }
 1031|  1.11k|                     else {
 1032|  1.11k|                        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.11k|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  1.11k|                              ctx.error = error_code::invalid_control_character;
 1040|  1.11k|                           }
 1041|  1.11k|                        }
 1042|  1.11k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  1.11k|                        data += 2;
 1044|  1.11k|                     }
 1045|  1.11k|                     ++c;
 1046|  1.11k|                  };
 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.11k|#if defined(GLZ_USE_SSE2)
 1055|  1.11k|                  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.11k|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 425, False: 689]
  ------------------
 1062|    885|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 460, False: 425]
  ------------------
 1063|    460|                        std::memcpy(data, c, 8);
 1064|    460|                        uint64_t swar;
 1065|    460|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|    460|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|    460|                        const uint64_t lo7 = swar & lo7_mask;
 1072|    460|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|    460|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|    460|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|    460|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|    460|                        next &= repeat_byte8(0b10000000);
 1078|    460|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 200, False: 260]
  ------------------
 1079|    200|                           data += 8;
 1080|    200|                           c += 8;
 1081|    200|                           continue;
 1082|    200|                        }
 1083|       |
 1084|    260|                        const auto length = (countr_zero(next) >> 3);
 1085|    260|                        c += length;
 1086|    260|                        data += length;
 1087|    260|                        write_escape();
 1088|    260|                     }
 1089|    425|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  4.26k|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 3.15k, False: 1.11k]
  ------------------
 1093|  3.15k|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 252, False: 2.90k]
  ------------------
 1094|    252|                        std::memcpy(data, &escaped, 2);
 1095|    252|                        data += 2;
 1096|    252|                     }
 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|  2.90k|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|  2.90k|                        std::memcpy(data, c, 1);
 1118|  2.90k|                        ++data;
 1119|  2.90k|                     }
 1120|  3.15k|                  }
 1121|       |
 1122|  1.11k|                  ix += size_t(data - start);
 1123|       |
 1124|  1.11k|                  std::memcpy(&b[ix], "\"", 1);
 1125|  1.11k|                  ++ix;
 1126|  1.11k|               }
 1127|  1.11k|            }
 1128|  1.11k|         }
 1129|  1.11k|      }
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_SB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  1.11k|               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.11k|                  else {
  953|  1.11k|                     return str_view<T>(value);
  954|  1.11k|                  }
  955|  1.11k|               }();
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS7_SB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  2.18k|                  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.18k|                     else {
 1032|       |                        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|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  2.18k|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  2.18k|                        data += 2;
 1044|  2.18k|                     }
 1045|  2.18k|                     ++c;
 1046|  2.18k|                  };
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm2EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2536|    343|      {
 2537|    343|         using ValueType = std::decay_t<V>;
 2538|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2539|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2540|       |
 2541|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2542|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2543|       |               decltype(auto) unknown_writer = value.*writer;
 2544|       |               if (unknown_writer.size() > 0) {
 2545|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2546|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2547|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2548|       |               }
 2549|       |               else {
 2550|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2551|       |               }
 2552|       |            }
 2553|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2554|       |               decltype(auto) unknown_writer = (value.*writer)();
 2555|       |               if (unknown_writer.size() > 0) {
 2556|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2557|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2558|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2559|       |               }
 2560|       |               else {
 2561|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2562|       |               }
 2563|       |            }
 2564|       |            else {
 2565|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2566|       |            }
 2567|       |         }
 2568|    343|         else {
 2569|       |            // handles glaze_object_t without extra unknown fields
 2570|    343|            static constexpr auto Opts =
 2571|    343|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2572|       |
 2573|    343|            if constexpr (not check_opening_handled(Options)) {
 2574|       |               if constexpr (Options.prettify) {
 2575|       |                  ctx.depth += check_indentation_width(Options);
 2576|       |                  if constexpr (not check_write_unchecked(Options)) {
 2577|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2578|       |                        return;
 2579|       |                     }
 2580|       |                  }
 2581|       |                  std::memcpy(&b[ix], "{\n", 2);
 2582|       |                  ix += 2;
 2583|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2584|       |                  ix += ctx.depth;
 2585|       |               }
 2586|    343|               else {
 2587|    343|                  if constexpr (not check_write_unchecked(Options)) {
 2588|    343|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2588:26): [True: 0, False: 343]
  ------------------
 2589|      0|                        return;
 2590|      0|                     }
 2591|    343|                  }
 2592|    343|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2593|    343|               }
 2594|    343|            }
 2595|       |
 2596|      0|            static constexpr auto N = reflect<T>::size;
 2597|       |
 2598|    343|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|    343|               if constexpr (reflectable<T>) {
 2600|    343|                  return to_tie(value);
 2601|    343|               }
 2602|    343|               else {
 2603|    343|                  return nullptr;
 2604|    343|               }
 2605|    343|            }();
 2606|       |
 2607|    343|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2608|       |            if constexpr (maybe_skipped<Opts, T>) {
 2609|       |               bool first = true;
 2610|       |               for_each<N>([&]<size_t I>() {
 2611|       |                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|       |                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|       |                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|       |                     else {
 2686|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2687|       |                           return;
 2688|       |                        }
 2689|       |                     }
 2690|       |
 2691|       |                     if (first) {
 2692|       |                        first = false;
 2693|       |                     }
 2694|       |                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|       |                        else {
 2703|       |                           std::memcpy(&b[ix], ",", 1);
 2704|       |                           ++ix;
 2705|       |                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|       |                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|       |                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|       |                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|       |                     static constexpr auto n = quoted_key.size();
 2715|       |                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|       |                     ix += n;
 2717|       |
 2718|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2719|       |                     if constexpr (reflectable<T>) {
 2720|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|       |                  }
 2727|       |               });
 2728|       |            }
 2729|    343|            else {
 2730|    343|               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
  ------------------
  |  Branch (2730:57): [Folded, False: 343]
  ------------------
 2731|    343|               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2732|    343|                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
  ------------------
  |  Branch (2732:23): [True: 0, False: 343]
  ------------------
 2733|      0|                     return;
 2734|      0|                  }
 2735|    343|               }
 2736|       |
 2737|    343|               for_each<N>([&]<size_t I>() {
 2738|    343|                  if constexpr (write_can_error<T>()) {
 2739|    343|                     if (bool(ctx.error)) [[unlikely]] {
 2740|    343|                        return;
 2741|    343|                     }
 2742|    343|                  }
 2743|    343|                  if constexpr (not fixed_max_size) {
 2744|    343|                     if constexpr (Opts.prettify) {
 2745|    343|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|    343|                           return;
 2747|    343|                        }
 2748|    343|                     }
 2749|    343|                     else {
 2750|    343|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|    343|                           return;
 2752|    343|                        }
 2753|    343|                     }
 2754|    343|                  }
 2755|       |
 2756|    343|                  if constexpr (I != 0 && Opts.prettify) {
 2757|    343|                     std::memcpy(&b[ix], ",\n", 2);
 2758|    343|                     ix += 2;
 2759|    343|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|    343|                     ix += ctx.depth;
 2761|    343|                  }
 2762|       |
 2763|    343|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    343|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|    343|                  if constexpr (always_null_t<val_t>) {
 2768|    343|                     if constexpr (I == 0 || Opts.prettify) {
 2769|    343|                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|    343|                        static constexpr auto n = quoted_key.size();
 2771|    343|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|    343|                        ix += n;
 2773|    343|                     }
 2774|    343|                     else {
 2775|    343|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|    343|                        static constexpr auto n = quoted_key.size();
 2777|    343|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|    343|                        ix += n;
 2779|    343|                     }
 2780|    343|                  }
 2781|    343|                  else {
 2782|    343|                     if constexpr (I == 0 || Opts.prettify) {
 2783|    343|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|    343|                        static constexpr auto n = quoted_key.size();
 2785|    343|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|    343|                        ix += n;
 2787|    343|                     }
 2788|    343|                     else {
 2789|    343|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|    343|                        static constexpr auto n = quoted_key.size();
 2791|    343|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|    343|                        ix += n;
 2793|    343|                     }
 2794|       |
 2795|    343|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2796|    343|                     if constexpr (reflectable<T>) {
 2797|    343|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|    343|                     }
 2799|    343|                     else {
 2800|    343|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|    343|                                                                 ix);
 2802|    343|                     }
 2803|    343|                  }
 2804|    343|               });
 2805|    343|            }
 2806|       |
 2807|       |            // Options is required here, because it must be the top level
 2808|    343|            if constexpr (not check_closing_handled(Options)) {
 2809|    343|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2809:20): [True: 0, False: 343]
  ------------------
 2810|      0|                  return;
 2811|      0|               }
 2812|       |               if constexpr (Options.prettify) {
 2813|       |                  ctx.depth -= check_indentation_width(Options);
 2814|       |                  if constexpr (not check_write_unchecked(Options)) {
 2815|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2816|       |                        return;
 2817|       |                     }
 2818|       |                  }
 2819|       |                  std::memcpy(&b[ix], "\n", 1);
 2820|       |                  ++ix;
 2821|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2822|       |                  ix += ctx.depth;
 2823|       |                  std::memcpy(&b[ix], "}", 1);
 2824|       |                  ++ix;
 2825|       |               }
 2826|    343|               else {
 2827|       |                  if constexpr (has_bounded_capacity<B> && not check_write_unchecked(Options)) {
 2828|       |                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|    343|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2833|    343|               }
 2834|    343|            }
 2835|    343|         }
 2836|    343|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2598|    343|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|    343|               if constexpr (reflectable<T>) {
 2600|    343|                  return to_tie(value);
 2601|       |               }
 2602|       |               else {
 2603|       |                  return nullptr;
 2604|       |               }
 2605|    343|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2737|    343|               for_each<N>([&]<size_t I>() {
 2738|       |                  if constexpr (write_can_error<T>()) {
 2739|       |                     if (bool(ctx.error)) [[unlikely]] {
 2740|       |                        return;
 2741|       |                     }
 2742|       |                  }
 2743|       |                  if constexpr (not fixed_max_size) {
 2744|       |                     if constexpr (Opts.prettify) {
 2745|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|       |                           return;
 2747|       |                        }
 2748|       |                     }
 2749|       |                     else {
 2750|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|       |                           return;
 2752|       |                        }
 2753|       |                     }
 2754|       |                  }
 2755|       |
 2756|       |                  if constexpr (I != 0 && Opts.prettify) {
 2757|       |                     std::memcpy(&b[ix], ",\n", 2);
 2758|       |                     ix += 2;
 2759|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|       |                     ix += ctx.depth;
 2761|       |                  }
 2762|       |
 2763|    343|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    343|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|       |                  if constexpr (always_null_t<val_t>) {
 2768|       |                     if constexpr (I == 0 || Opts.prettify) {
 2769|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|       |                        static constexpr auto n = quoted_key.size();
 2771|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|       |                        ix += n;
 2773|       |                     }
 2774|       |                     else {
 2775|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|       |                        static constexpr auto n = quoted_key.size();
 2777|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|       |                        ix += n;
 2779|       |                     }
 2780|       |                  }
 2781|    343|                  else {
 2782|    343|                     if constexpr (I == 0 || Opts.prettify) {
 2783|    343|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|    343|                        static constexpr auto n = quoted_key.size();
 2785|    343|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|    343|                        ix += n;
 2787|       |                     }
 2788|       |                     else {
 2789|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|       |                        static constexpr auto n = quoted_key.size();
 2791|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|       |                        ix += n;
 2793|       |                     }
 2794|       |
 2795|    343|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2795:57): [True: 0, Folded]
  ------------------
 2796|    343|                     if constexpr (reflectable<T>) {
 2797|    343|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|       |                     }
 2799|       |                     else {
 2800|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|       |                                                                 ix);
 2802|       |                     }
 2803|    343|                  }
 2804|    343|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2737|    343|               for_each<N>([&]<size_t I>() {
 2738|       |                  if constexpr (write_can_error<T>()) {
 2739|       |                     if (bool(ctx.error)) [[unlikely]] {
 2740|       |                        return;
 2741|       |                     }
 2742|       |                  }
 2743|       |                  if constexpr (not fixed_max_size) {
 2744|       |                     if constexpr (Opts.prettify) {
 2745|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|       |                           return;
 2747|       |                        }
 2748|       |                     }
 2749|       |                     else {
 2750|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|       |                           return;
 2752|       |                        }
 2753|       |                     }
 2754|       |                  }
 2755|       |
 2756|       |                  if constexpr (I != 0 && Opts.prettify) {
 2757|       |                     std::memcpy(&b[ix], ",\n", 2);
 2758|       |                     ix += 2;
 2759|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|       |                     ix += ctx.depth;
 2761|       |                  }
 2762|       |
 2763|    343|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    343|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|       |                  if constexpr (always_null_t<val_t>) {
 2768|       |                     if constexpr (I == 0 || Opts.prettify) {
 2769|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|       |                        static constexpr auto n = quoted_key.size();
 2771|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|       |                        ix += n;
 2773|       |                     }
 2774|       |                     else {
 2775|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|       |                        static constexpr auto n = quoted_key.size();
 2777|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|       |                        ix += n;
 2779|       |                     }
 2780|       |                  }
 2781|    343|                  else {
 2782|       |                     if constexpr (I == 0 || Opts.prettify) {
 2783|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|       |                        static constexpr auto n = quoted_key.size();
 2785|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|       |                        ix += n;
 2787|       |                     }
 2788|    343|                     else {
 2789|    343|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|    343|                        static constexpr auto n = quoted_key.size();
 2791|    343|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|    343|                        ix += n;
 2793|    343|                     }
 2794|       |
 2795|    343|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2795:57): [True: 0, Folded]
  ------------------
 2796|    343|                     if constexpr (reflectable<T>) {
 2797|    343|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|       |                     }
 2799|       |                     else {
 2800|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|       |                                                                 ix);
 2802|       |                     }
 2803|    343|                  }
 2804|    343|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm3EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_:
 2536|    131|      {
 2537|    131|         using ValueType = std::decay_t<V>;
 2538|       |         if constexpr (has_unknown_writer<ValueType> && not check_disable_write_unknown(Options)) {
 2539|       |            constexpr auto& writer = meta_unknown_write_v<ValueType>;
 2540|       |
 2541|       |            using WriterType = meta_unknown_write_t<ValueType>;
 2542|       |            if constexpr (std::is_member_object_pointer_v<WriterType>) {
 2543|       |               decltype(auto) unknown_writer = value.*writer;
 2544|       |               if (unknown_writer.size() > 0) {
 2545|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2546|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2547|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2548|       |               }
 2549|       |               else {
 2550|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2551|       |               }
 2552|       |            }
 2553|       |            else if constexpr (std::is_member_function_pointer_v<WriterType>) {
 2554|       |               decltype(auto) unknown_writer = (value.*writer)();
 2555|       |               if (unknown_writer.size() > 0) {
 2556|       |                  // TODO: This intermediate is added to get GCC 14 to build
 2557|       |                  decltype(auto) merged = glz::merge{value, unknown_writer};
 2558|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(std::move(merged), ctx, b, ix);
 2559|       |               }
 2560|       |               else {
 2561|       |                  serialize<JSON>::op<disable_write_unknown_on<Options>()>(value, ctx, b, ix);
 2562|       |               }
 2563|       |            }
 2564|       |            else {
 2565|       |               static_assert(false_v<T>, "unknown_write type not handled");
 2566|       |            }
 2567|       |         }
 2568|    131|         else {
 2569|       |            // handles glaze_object_t without extra unknown fields
 2570|    131|            static constexpr auto Opts =
 2571|    131|               disable_write_unknown_off<opening_and_closing_handled_off<ws_handled_off<Options>()>()>();
 2572|       |
 2573|    131|            if constexpr (not check_opening_handled(Options)) {
 2574|       |               if constexpr (Options.prettify) {
 2575|       |                  ctx.depth += check_indentation_width(Options);
 2576|       |                  if constexpr (not check_write_unchecked(Options)) {
 2577|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2578|       |                        return;
 2579|       |                     }
 2580|       |                  }
 2581|       |                  std::memcpy(&b[ix], "{\n", 2);
 2582|       |                  ix += 2;
 2583|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2584|       |                  ix += ctx.depth;
 2585|       |               }
 2586|    131|               else {
 2587|    131|                  if constexpr (not check_write_unchecked(Options)) {
 2588|    131|                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
  ------------------
  |  Branch (2588:26): [True: 0, False: 131]
  ------------------
 2589|      0|                        return;
 2590|      0|                     }
 2591|    131|                  }
 2592|    131|                  dump<not check_write_unchecked(Options)>('{', b, ix);
 2593|    131|               }
 2594|    131|            }
 2595|       |
 2596|      0|            static constexpr auto N = reflect<T>::size;
 2597|       |
 2598|    131|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|    131|               if constexpr (reflectable<T>) {
 2600|    131|                  return to_tie(value);
 2601|    131|               }
 2602|    131|               else {
 2603|    131|                  return nullptr;
 2604|    131|               }
 2605|    131|            }();
 2606|       |
 2607|    131|            static constexpr auto padding = round_up_to_nearest_16(maximum_key_size<T> + write_padding_bytes);
 2608|       |            if constexpr (maybe_skipped<Opts, T>) {
 2609|       |               bool first = true;
 2610|       |               for_each<N>([&]<size_t I>() {
 2611|       |                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|       |                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|       |                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|       |                     else {
 2686|       |                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2687|       |                           return;
 2688|       |                        }
 2689|       |                     }
 2690|       |
 2691|       |                     if (first) {
 2692|       |                        first = false;
 2693|       |                     }
 2694|       |                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|       |                        else {
 2703|       |                           std::memcpy(&b[ix], ",", 1);
 2704|       |                           ++ix;
 2705|       |                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|       |                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|       |                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|       |                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|       |                     static constexpr auto n = quoted_key.size();
 2715|       |                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|       |                     ix += n;
 2717|       |
 2718|       |                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2719|       |                     if constexpr (reflectable<T>) {
 2720|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|       |                  }
 2727|       |               });
 2728|       |            }
 2729|    131|            else {
 2730|    131|               static constexpr size_t fixed_max_size = Opts.prettify ? 0 : fixed_padding<T>;
  ------------------
  |  Branch (2730:57): [Folded, False: 131]
  ------------------
 2731|       |               if constexpr (fixed_max_size && not check_write_unchecked(Options)) {
 2732|       |                  if (!ensure_space(ctx, b, ix + fixed_max_size)) [[unlikely]] {
 2733|       |                     return;
 2734|       |                  }
 2735|       |               }
 2736|       |
 2737|    131|               for_each<N>([&]<size_t I>() {
 2738|    131|                  if constexpr (write_can_error<T>()) {
 2739|    131|                     if (bool(ctx.error)) [[unlikely]] {
 2740|    131|                        return;
 2741|    131|                     }
 2742|    131|                  }
 2743|    131|                  if constexpr (not fixed_max_size) {
 2744|    131|                     if constexpr (Opts.prettify) {
 2745|    131|                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|    131|                           return;
 2747|    131|                        }
 2748|    131|                     }
 2749|    131|                     else {
 2750|    131|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
 2751|    131|                           return;
 2752|    131|                        }
 2753|    131|                     }
 2754|    131|                  }
 2755|       |
 2756|    131|                  if constexpr (I != 0 && Opts.prettify) {
 2757|    131|                     std::memcpy(&b[ix], ",\n", 2);
 2758|    131|                     ix += 2;
 2759|    131|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|    131|                     ix += ctx.depth;
 2761|    131|                  }
 2762|       |
 2763|    131|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    131|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|    131|                  if constexpr (always_null_t<val_t>) {
 2768|    131|                     if constexpr (I == 0 || Opts.prettify) {
 2769|    131|                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|    131|                        static constexpr auto n = quoted_key.size();
 2771|    131|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|    131|                        ix += n;
 2773|    131|                     }
 2774|    131|                     else {
 2775|    131|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|    131|                        static constexpr auto n = quoted_key.size();
 2777|    131|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|    131|                        ix += n;
 2779|    131|                     }
 2780|    131|                  }
 2781|    131|                  else {
 2782|    131|                     if constexpr (I == 0 || Opts.prettify) {
 2783|    131|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|    131|                        static constexpr auto n = quoted_key.size();
 2785|    131|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|    131|                        ix += n;
 2787|    131|                     }
 2788|    131|                     else {
 2789|    131|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|    131|                        static constexpr auto n = quoted_key.size();
 2791|    131|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|    131|                        ix += n;
 2793|    131|                     }
 2794|       |
 2795|    131|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
 2796|    131|                     if constexpr (reflectable<T>) {
 2797|    131|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|    131|                     }
 2799|    131|                     else {
 2800|    131|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|    131|                                                                 ix);
 2802|    131|                     }
 2803|    131|                  }
 2804|    131|               });
 2805|    131|            }
 2806|       |
 2807|       |            // Options is required here, because it must be the top level
 2808|    131|            if constexpr (not check_closing_handled(Options)) {
 2809|    131|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (2809:20): [True: 0, False: 131]
  ------------------
 2810|      0|                  return;
 2811|      0|               }
 2812|       |               if constexpr (Options.prettify) {
 2813|       |                  ctx.depth -= check_indentation_width(Options);
 2814|       |                  if constexpr (not check_write_unchecked(Options)) {
 2815|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2816|       |                        return;
 2817|       |                     }
 2818|       |                  }
 2819|       |                  std::memcpy(&b[ix], "\n", 1);
 2820|       |                  ++ix;
 2821|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2822|       |                  ix += ctx.depth;
 2823|       |                  std::memcpy(&b[ix], "}", 1);
 2824|       |                  ++ix;
 2825|       |               }
 2826|    131|               else {
 2827|       |                  if constexpr (has_bounded_capacity<B> && not check_write_unchecked(Options)) {
 2828|       |                     if (!ensure_space(ctx, b, ix + 1)) [[unlikely]] {
 2829|       |                        return;
 2830|       |                     }
 2831|       |                  }
 2832|    131|                  dump<not(fixed_padding<T> || check_write_unchecked(Options))>('}', b, ix);
 2833|    131|               }
 2834|    131|            }
 2835|    131|         }
 2836|    131|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlvE_clEv:
 2598|    131|            decltype(auto) t = [&]() -> decltype(auto) {
 2599|    131|               if constexpr (reflectable<T>) {
 2600|    131|                  return to_tie(value);
 2601|       |               }
 2602|       |               else {
 2603|       |                  return nullptr;
 2604|       |               }
 2605|    131|            }();
_ZZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm0EEEDav:
 2737|    131|               for_each<N>([&]<size_t I>() {
 2738|       |                  if constexpr (write_can_error<T>()) {
 2739|       |                     if (bool(ctx.error)) [[unlikely]] {
 2740|       |                        return;
 2741|       |                     }
 2742|       |                  }
 2743|    131|                  if constexpr (not fixed_max_size) {
 2744|       |                     if constexpr (Opts.prettify) {
 2745|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|       |                           return;
 2747|       |                        }
 2748|       |                     }
 2749|    131|                     else {
 2750|    131|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2750:29): [True: 0, False: 131]
  ------------------
 2751|      0|                           return;
 2752|      0|                        }
 2753|    131|                     }
 2754|    131|                  }
 2755|       |
 2756|       |                  if constexpr (I != 0 && Opts.prettify) {
 2757|       |                     std::memcpy(&b[ix], ",\n", 2);
 2758|       |                     ix += 2;
 2759|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|       |                     ix += ctx.depth;
 2761|       |                  }
 2762|       |
 2763|    131|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    131|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|       |                  if constexpr (always_null_t<val_t>) {
 2768|       |                     if constexpr (I == 0 || Opts.prettify) {
 2769|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|       |                        static constexpr auto n = quoted_key.size();
 2771|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|       |                        ix += n;
 2773|       |                     }
 2774|       |                     else {
 2775|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|       |                        static constexpr auto n = quoted_key.size();
 2777|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|       |                        ix += n;
 2779|       |                     }
 2780|       |                  }
 2781|    131|                  else {
 2782|    131|                     if constexpr (I == 0 || Opts.prettify) {
 2783|    131|                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|    131|                        static constexpr auto n = quoted_key.size();
 2785|    131|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|    131|                        ix += n;
 2787|       |                     }
 2788|       |                     else {
 2789|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|       |                        static constexpr auto n = quoted_key.size();
 2791|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|       |                        ix += n;
 2793|       |                     }
 2794|       |
 2795|    131|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2795:57): [True: 0, Folded]
  ------------------
 2796|    131|                     if constexpr (reflectable<T>) {
 2797|    131|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|       |                     }
 2799|       |                     else {
 2800|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|       |                                                                 ix);
 2802|       |                     }
 2803|    131|                  }
 2804|    131|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm1EEEDav:
 2737|    131|               for_each<N>([&]<size_t I>() {
 2738|       |                  if constexpr (write_can_error<T>()) {
 2739|       |                     if (bool(ctx.error)) [[unlikely]] {
 2740|       |                        return;
 2741|       |                     }
 2742|       |                  }
 2743|    131|                  if constexpr (not fixed_max_size) {
 2744|       |                     if constexpr (Opts.prettify) {
 2745|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2746|       |                           return;
 2747|       |                        }
 2748|       |                     }
 2749|    131|                     else {
 2750|    131|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2750:29): [True: 0, False: 131]
  ------------------
 2751|      0|                           return;
 2752|      0|                        }
 2753|    131|                     }
 2754|    131|                  }
 2755|       |
 2756|       |                  if constexpr (I != 0 && Opts.prettify) {
 2757|       |                     std::memcpy(&b[ix], ",\n", 2);
 2758|       |                     ix += 2;
 2759|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2760|       |                     ix += ctx.depth;
 2761|       |                  }
 2762|       |
 2763|    131|                  using val_t = field_t<T, I>;
 2764|       |
 2765|       |                  // MSVC requires get<I> rather than keys[I]
 2766|    131|                  static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2767|       |                  if constexpr (always_null_t<val_t>) {
 2768|       |                     if constexpr (I == 0 || Opts.prettify) {
 2769|       |                        static constexpr auto quoted_key = join_v<quoted_key_v<key, Opts.prettify>, chars<"null">>;
 2770|       |                        static constexpr auto n = quoted_key.size();
 2771|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2772|       |                        ix += n;
 2773|       |                     }
 2774|       |                     else {
 2775|       |                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>, chars<"null">>;
 2776|       |                        static constexpr auto n = quoted_key.size();
 2777|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2778|       |                        ix += n;
 2779|       |                     }
 2780|       |                  }
 2781|    131|                  else {
 2782|       |                     if constexpr (I == 0 || Opts.prettify) {
 2783|       |                        static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2784|       |                        static constexpr auto n = quoted_key.size();
 2785|       |                        std::memcpy(&b[ix], quoted_key.data(), n);
 2786|       |                        ix += n;
 2787|       |                     }
 2788|    131|                     else {
 2789|    131|                        static constexpr auto quoted_key = join_v<chars<",">, quoted_key_v<key>>;
 2790|    131|                        static constexpr auto n = quoted_key.size();
 2791|    131|                        std::memcpy(&b[ix], quoted_key.data(), n);
 2792|    131|                        ix += n;
 2793|    131|                     }
 2794|       |
 2795|    131|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2795:57): [Folded, False: 131]
  ------------------
 2796|    131|                     if constexpr (reflectable<T>) {
 2797|    131|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2798|       |                     }
 2799|       |                     else {
 2800|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2801|       |                                                                 ix);
 2802|       |                     }
 2803|    131|                  }
 2804|    131|               });
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm4EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__16vectorIiNS1_9allocatorIiEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS3_IcEEEERS5_TkNS_10is_contextERNS_7contextEmQaa16writable_array_tIT_EquL_ZNS0_ILj10ESI_E14map_like_arrayEEeqcl17check_concatenateTL0__ELb0ELb1EEEvOT1_OT2_OT0_RT3_:
 1435|    125|      {
 1436|    125|         if (empty_range(value)) {
  ------------------
  |  Branch (1436:14): [True: 125, False: 0]
  ------------------
 1437|    125|            dump("[]", b, ix);
 1438|    125|         }
 1439|      0|         else {
 1440|       |            // For bounded buffers, skip pre-allocation path since value_padding is for SIMD, not actual size
 1441|      0|            if constexpr (has_size<T> && array_padding_known<T> && !has_bounded_capacity<B>) {
 1442|      0|               const auto n = value.size();
 1443|       |
 1444|      0|               static constexpr auto value_padding = []() -> size_t {
 1445|      0|                  if constexpr (required_padding<typename T::value_type>() > 0)
 1446|      0|                     return required_padding<typename T::value_type>();
 1447|      0|                  else
 1448|      0|                     return fixed_padding<typename T::value_type>;
 1449|      0|               }();
 1450|       |
 1451|       |               if constexpr (Opts.prettify) {
 1452|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1453|       |                     ctx.depth += check_indentation_width(Opts);
 1454|       |                  }
 1455|       |
 1456|       |                  // add space for '\n' and ',' characters for each element, hence `+ 2`
 1457|       |                  // use n + 1 because we put the end array character after the last element with whitespace
 1458|       |                  if (!ensure_space(ctx, b, ix + (n + 1) * (value_padding + ctx.depth + 2) + write_padding_bytes))
 1459|       |                     [[unlikely]] {
 1460|       |                     return;
 1461|       |                  }
 1462|       |
 1463|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1464|       |                     std::memcpy(&b[ix], "[\n", 2);
 1465|       |                     ix += 2;
 1466|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1467|       |                     ix += ctx.depth;
 1468|       |                  }
 1469|       |                  else {
 1470|       |                     std::memcpy(&b[ix], "[", 1);
 1471|       |                     ++ix;
 1472|       |                  }
 1473|       |               }
 1474|      0|               else {
 1475|      0|                  static constexpr auto comma_padding = 1;
 1476|      0|                  if (!ensure_space(ctx, b, ix + n * (value_padding + comma_padding) + write_padding_bytes))
  ------------------
  |  Branch (1476:23): [True: 0, False: 0]
  ------------------
 1477|      0|                     [[unlikely]] {
 1478|      0|                     return;
 1479|      0|                  }
 1480|      0|                  std::memcpy(&b[ix], "[", 1);
 1481|      0|                  ++ix;
 1482|      0|               }
 1483|       |
 1484|      0|               auto it = std::begin(value);
 1485|      0|               using val_t = std::remove_cvref_t<decltype(*it)>;
 1486|      0|               to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1487|       |
 1488|      0|               ++it;
 1489|      0|               for (const auto fin = std::end(value); it != fin; ++it) {
  ------------------
  |  Branch (1489:55): [True: 0, False: 0]
  ------------------
 1490|       |                  if constexpr (Opts.prettify) {
 1491|       |                     if constexpr (check_new_lines_in_arrays(Opts)) {
 1492|       |                        std::memcpy(&b[ix], ",\n", 2);
 1493|       |                        ix += 2;
 1494|       |                        fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1495|       |                        ix += ctx.depth;
 1496|       |                     }
 1497|       |                     else {
 1498|       |                        std::memcpy(&b[ix], ", ", 2);
 1499|       |                        ix += 2;
 1500|       |                     }
 1501|       |                  }
 1502|      0|                  else {
 1503|      0|                     std::memcpy(&b[ix], ",", 1);
 1504|      0|                     ++ix;
 1505|      0|                  }
 1506|       |                  if constexpr (is_output_streaming<B>) {
 1507|       |                     flush_buffer(b, ix);
 1508|       |                  }
 1509|       |
 1510|      0|                  to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1511|      0|               }
 1512|       |               if constexpr (Opts.prettify && check_new_lines_in_arrays(Opts)) {
 1513|       |                  ctx.depth -= check_indentation_width(Opts);
 1514|       |                  std::memcpy(&b[ix], "\n", 1);
 1515|       |                  ++ix;
 1516|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1517|       |                  ix += ctx.depth;
 1518|       |               }
 1519|       |
 1520|      0|               std::memcpy(&b[ix], "]", 1);
 1521|      0|               ++ix;
 1522|       |            }
 1523|       |            else {
 1524|       |               // we either can't get the size (std::forward_list) or we cannot compute the allocation size
 1525|       |
 1526|       |               if constexpr (Opts.prettify) {
 1527|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1528|       |                     ctx.depth += check_indentation_width(Opts);
 1529|       |                  }
 1530|       |
 1531|       |                  if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1532|       |                     return;
 1533|       |                  }
 1534|       |
 1535|       |                  if constexpr (check_new_lines_in_arrays(Opts)) {
 1536|       |                     std::memcpy(&b[ix], "[\n", 2);
 1537|       |                     ix += 2;
 1538|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1539|       |                     ix += ctx.depth;
 1540|       |                  }
 1541|       |                  else {
 1542|       |                     std::memcpy(&b[ix], "[", 1);
 1543|       |                     ++ix;
 1544|       |                  }
 1545|       |               }
 1546|       |               else {
 1547|       |                  if (!ensure_space(ctx, b, ix + write_padding_bytes)) [[unlikely]] {
 1548|       |                     return;
 1549|       |                  }
 1550|       |                  std::memcpy(&b[ix], "[", 1);
 1551|       |                  ++ix;
 1552|       |               }
 1553|       |
 1554|       |               auto it = std::begin(value);
 1555|       |               using val_t = std::remove_cvref_t<decltype(*it)>;
 1556|       |               if constexpr (required_padding<val_t>()) {
 1557|       |                  to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1558|       |               }
 1559|       |               else {
 1560|       |                  to<JSON, val_t>::template op<Opts>(*it, ctx, b, ix);
 1561|       |                  if (bool(ctx.error)) [[unlikely]] {
 1562|       |                     return;
 1563|       |                  }
 1564|       |               }
 1565|       |
 1566|       |               ++it;
 1567|       |               for (const auto fin = std::end(value); it != fin; ++it) {
 1568|       |                  if constexpr (required_padding<val_t>()) {
 1569|       |                     if constexpr (Opts.prettify) {
 1570|       |                        if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1571|       |                           return;
 1572|       |                        }
 1573|       |                     }
 1574|       |                     else {
 1575|       |                        if (!ensure_space(ctx, b, ix + write_padding_bytes)) [[unlikely]] {
 1576|       |                           return;
 1577|       |                        }
 1578|       |                     }
 1579|       |
 1580|       |                     if constexpr (Opts.prettify) {
 1581|       |                        if constexpr (check_new_lines_in_arrays(Opts)) {
 1582|       |                           std::memcpy(&b[ix], ",\n", 2);
 1583|       |                           ix += 2;
 1584|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1585|       |                           ix += ctx.depth;
 1586|       |                        }
 1587|       |                        else {
 1588|       |                           std::memcpy(&b[ix], ", ", 2);
 1589|       |                           ix += 2;
 1590|       |                        }
 1591|       |                     }
 1592|       |                     else {
 1593|       |                        std::memcpy(&b[ix], ",", 1);
 1594|       |                        ++ix;
 1595|       |                     }
 1596|       |                     if constexpr (is_output_streaming<B>) {
 1597|       |                        flush_buffer(b, ix);
 1598|       |                     }
 1599|       |
 1600|       |                     to<JSON, val_t>::template op<write_unchecked_on<Opts>()>(*it, ctx, b, ix);
 1601|       |                  }
 1602|       |                  else {
 1603|       |                     write_array_entry_separator<Opts>(ctx, b, ix);
 1604|       |                     to<JSON, val_t>::template op<Opts>(*it, ctx, b, ix);
 1605|       |                     if (bool(ctx.error)) [[unlikely]] {
 1606|       |                        return;
 1607|       |                     }
 1608|       |                  }
 1609|       |               }
 1610|       |               if constexpr (Opts.prettify && check_new_lines_in_arrays(Opts)) {
 1611|       |                  ctx.depth -= check_indentation_width(Opts);
 1612|       |                  dump_newline_indent(check_indentation_char(Opts), ctx.depth, b, ix);
 1613|       |               }
 1614|       |
 1615|       |               dump(']', b, ix);
 1616|       |            }
 1617|      0|         }
 1618|    125|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm5EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__13mapINS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEiNS1_4lessIS8_EENS6_INS1_4pairIKS8_iEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSF_TkNS_10is_contextERNS_7contextEmQoo14writable_map_tIT_EaaL_ZNS0_ILj10ESN_E14map_like_arrayEEeqcl17check_concatenateTL0__ELb1EEEvOT1_OT2_OT0_RT3_:
 1623|    137|      {
 1624|    137|         if constexpr (not check_opening_handled(Opts)) {
 1625|    137|            dump('{', b, ix);
 1626|    137|         }
 1627|       |
 1628|    137|         if (!empty_range(value)) {
  ------------------
  |  Branch (1628:14): [True: 0, False: 137]
  ------------------
 1629|      0|            if constexpr (!check_opening_handled(Opts)) {
 1630|       |               if constexpr (Opts.prettify) {
 1631|       |                  ctx.depth += check_indentation_width(Opts);
 1632|       |                  if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1633|       |                     return;
 1634|       |                  }
 1635|       |                  std::memcpy(&b[ix], "\n", 1);
 1636|       |                  ++ix;
 1637|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1638|       |                  ix += ctx.depth;
 1639|       |               }
 1640|      0|            }
 1641|       |
 1642|      0|            using val_t = detail::iterator_second_type<T>; // the type of value in each [key, value] pair
 1643|      0|            if constexpr (!never_written<Opts, val_t>) {
 1644|       |               if constexpr (null_t<val_t> && Opts.skip_null_members) {
 1645|       |                  auto write_first_entry = [&](auto&& it) {
 1646|       |                     auto&& [key, entry_val] = *it;
 1647|       |                     if (skip_member<Opts>(entry_val)) {
 1648|       |                        return true;
 1649|       |                     }
 1650|       |                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1651|       |                     return bool(ctx.error);
 1652|       |                  };
 1653|       |
 1654|       |                  auto it = std::begin(value);
 1655|       |                  bool first = write_first_entry(it);
 1656|       |                  if (bool(ctx.error)) [[unlikely]] {
 1657|       |                     return;
 1658|       |                  }
 1659|       |                  ++it;
 1660|       |                  for (const auto end = std::end(value); it != end; ++it) {
 1661|       |                     auto&& [key, entry_val] = *it;
 1662|       |                     if (skip_member<Opts>(entry_val)) {
 1663|       |                        continue;
 1664|       |                     }
 1665|       |
 1666|       |                     // When Opts.skip_null_members, *any* entry may be skipped, meaning separator dumping must be
 1667|       |                     // conditional for every entry.
 1668|       |                     // Alternatively, write separator after each entry except last but then branch is permanent
 1669|       |                     if (not first) {
 1670|       |                        write_object_entry_separator<Opts>(ctx, b, ix);
 1671|       |                     }
 1672|       |
 1673|       |                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1674|       |                     if (bool(ctx.error)) [[unlikely]] {
 1675|       |                        return;
 1676|       |                     }
 1677|       |
 1678|       |                     first = false;
 1679|       |                  }
 1680|       |               }
 1681|      0|               else {
 1682|      0|                  auto write_first_entry = [&](auto&& it) {
 1683|      0|                     auto&& [key, entry_val] = *it;
 1684|      0|                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1685|      0|                  };
 1686|       |
 1687|      0|                  auto it = std::begin(value);
 1688|      0|                  write_first_entry(it);
 1689|      0|                  if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1689:23): [True: 0, False: 0]
  ------------------
 1690|      0|                     return;
 1691|      0|                  }
 1692|      0|                  ++it;
 1693|      0|                  for (const auto end = std::end(value); it != end; ++it) {
  ------------------
  |  Branch (1693:58): [True: 0, False: 0]
  ------------------
 1694|      0|                     auto&& [key, entry_val] = *it;
 1695|      0|                     write_object_entry_separator<Opts>(ctx, b, ix);
 1696|      0|                     write_pair_content<Opts>(key, entry_val, ctx, b, ix);
 1697|      0|                     if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1697:26): [True: 0, False: 0]
  ------------------
 1698|      0|                        return;
 1699|      0|                     }
 1700|      0|                  }
 1701|      0|               }
 1702|      0|            }
 1703|       |
 1704|      0|            if constexpr (!check_closing_handled(Opts)) {
 1705|       |               if constexpr (Opts.prettify) {
 1706|       |                  ctx.depth -= check_indentation_width(Opts);
 1707|       |                  if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 1708|       |                     return;
 1709|       |                  }
 1710|       |                  std::memcpy(&b[ix], "\n", 1);
 1711|       |                  ++ix;
 1712|       |                  fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 1713|       |                  ix += ctx.depth;
 1714|       |               }
 1715|      0|            }
 1716|      0|         }
 1717|       |
 1718|    137|         if constexpr (!check_closing_handled(Opts)) {
 1719|    137|            dump('}', b, ix);
 1720|    137|         }
 1721|    137|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm6EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|     65|                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|     65|                        else {
 2637|     65|                           const auto is_null = [&]() {
 2638|     65|                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|     65|                                 if constexpr (reflectable<T>) {
 2640|     65|                                    return get<I>(t);
 2641|     65|                                 }
 2642|     65|                                 else {
 2643|     65|                                    return get<I>(reflect<T>::values);
 2644|     65|                                 }
 2645|     65|                              };
 2646|       |
 2647|     65|                              if constexpr (nullable_wrapper<val_t>) {
 2648|     65|                                 return !bool(element()(value).val);
 2649|     65|                              }
 2650|     65|                              else if constexpr (nullable_value_t<val_t>) {
 2651|     65|                                 return !get_member(value, element()).has_value();
 2652|     65|                              }
 2653|     65|                              else {
 2654|     65|                                 return !bool(get_member(value, element()));
 2655|     65|                              }
 2656|     65|                           }();
 2657|     65|                           if (is_null) return;
  ------------------
  |  Branch (2657:32): [True: 65, False: 0]
  ------------------
 2658|     65|                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|       |                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|       |                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|       |                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [True: 0, Folded]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm6EEEDavENKUlvE_clEv:
 2637|     65|                           const auto is_null = [&]() {
 2638|     65|                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|     65|                                 if constexpr (reflectable<T>) {
 2640|     65|                                    return get<I>(t);
 2641|     65|                                 }
 2642|     65|                                 else {
 2643|     65|                                    return get<I>(reflect<T>::values);
 2644|     65|                                 }
 2645|     65|                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|     65|                              else if constexpr (nullable_value_t<val_t>) {
 2651|     65|                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|     65|                           }();
_ZZZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm6EEEDavENKUlvE_clEvENKUlvE_clEv:
 2638|     65|                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|     65|                                 if constexpr (reflectable<T>) {
 2640|     65|                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|     65|                              };
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm7EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1955|    149|      {
 1956|       |         // Adjacent tagging needs no per-alternative dispatch: the discriminator and the value are
 1957|       |         // written side by side whatever the alternative is. The visit below still instantiates in
 1958|       |         // that mode (`if constexpr` does not discard the statements after it), but both of its
 1959|       |         // tagged branches are compile-time dead there and the runtime `return` keeps it unreached.
 1960|       |         if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::adjacent) {
 1961|       |            write_adjacent<Opts>(value, ctx, b, ix);
 1962|       |            return;
 1963|       |         }
 1964|    149|         std::visit(
 1965|    149|            [&](auto&& val) {
 1966|    149|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|    149|               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|    149|                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|    149|                  if (missing_id(value, ctx)) {
 1980|    149|                     return;
 1981|    149|                  }
 1982|    149|                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|    149|                  if constexpr (Opts.prettify) {
 1984|    149|                     dump("{\n", b, ix);
 1985|    149|                     ctx.depth += check_indentation_width(Opts);
 1986|    149|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|    149|                     dump('"', b, ix);
 1988|    149|                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|    149|                     if constexpr (std::integral<id_type>) {
 1990|    149|                        dump("\": ", b, ix);
 1991|    149|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|    149|                     }
 1993|    149|                     else {
 1994|    149|                        dump("\": \"", b, ix);
 1995|    149|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|    149|                        dump('"', b, ix);
 1997|    149|                     }
 1998|    149|                     const auto pos_after_tag = ix;
 1999|    149|                     dump(",\n", b, ix);
 2000|    149|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|    149|                     const auto pos_body_start = ix;
 2002|    149|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|    149|                     if (ix == pos_body_start) {
 2004|    149|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|    149|                     }
 2006|    149|                     ctx.depth -= check_indentation_width(Opts);
 2007|    149|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|    149|                        return;
 2009|    149|                     }
 2010|    149|                     std::memcpy(&b[ix], "\n", 1);
 2011|    149|                     ++ix;
 2012|    149|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|    149|                     ix += ctx.depth;
 2014|    149|                     std::memcpy(&b[ix], "}", 1);
 2015|    149|                     ++ix;
 2016|    149|                  }
 2017|    149|                  else {
 2018|    149|                     dump("{\"", b, ix);
 2019|    149|                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|    149|                     if constexpr (std::integral<id_type>) {
 2021|    149|                        dump("\":", b, ix);
 2022|    149|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|    149|                     }
 2024|    149|                     else {
 2025|    149|                        dump("\":\"", b, ix);
 2026|    149|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|    149|                        dump('"', b, ix);
 2028|    149|                     }
 2029|    149|                     const auto pos_after_tag = ix;
 2030|    149|                     dump(',', b, ix);
 2031|    149|                     const auto pos_body_start = ix;
 2032|    149|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|    149|                     if (ix == pos_body_start) {
 2034|    149|                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|    149|                     }
 2036|    149|                     dump('}', b, ix);
 2037|    149|                  }
 2038|    149|               }
 2039|    149|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|    149|                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|    149|                  if (missing_id(value, ctx)) {
 2044|    149|                     return;
 2045|    149|                  }
 2046|    149|                  if constexpr (Opts.prettify) {
 2047|    149|                     dump("{\n", b, ix);
 2048|    149|                     ctx.depth += check_indentation_width(Opts);
 2049|    149|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|    149|                     dump('"', b, ix);
 2051|    149|                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|    149|                     dump("\": ", b, ix);
 2053|    149|                     write_id<Opts>(value, ctx, b, ix);
 2054|    149|                     ctx.depth -= check_indentation_width(Opts);
 2055|    149|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|    149|                        return;
 2057|    149|                     }
 2058|    149|                     std::memcpy(&b[ix], "\n", 1);
 2059|    149|                     ++ix;
 2060|    149|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|    149|                     ix += ctx.depth;
 2062|    149|                     std::memcpy(&b[ix], "}", 1);
 2063|    149|                     ++ix;
 2064|    149|                  }
 2065|    149|                  else {
 2066|    149|                     dump("{\"", b, ix);
 2067|    149|                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|    149|                     dump("\":", b, ix);
 2069|    149|                     write_id<Opts>(value, ctx, b, ix);
 2070|    149|                     dump('}', b, ix);
 2071|    149|                  }
 2072|    149|               }
 2073|    149|               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|    149|                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|    149|                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|    149|                  if (missing_id(value, ctx)) {
 2081|    149|                     return;
 2082|    149|                  }
 2083|    149|                  constexpr auto N = []() {
 2084|    149|                     if constexpr (is_memory_object<V>) {
 2085|    149|                        return reflect<memory_type<V>>::size;
 2086|    149|                     }
 2087|    149|                     else {
 2088|    149|                        return reflect<V>::size;
 2089|    149|                     }
 2090|    149|                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|    149|                  if constexpr (Opts.prettify) {
 2094|    149|                     dump("{\n", b, ix);
 2095|    149|                     ctx.depth += check_indentation_width(Opts);
 2096|    149|                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|    149|                     dump('"', b, ix);
 2098|    149|                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|    149|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|    149|                     if constexpr (std::integral<id_type>) {
 2103|    149|                        dump("\": ", b, ix);
 2104|    149|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|    149|                        if constexpr (N > 0) {
 2106|    149|                           dump(",\n", b, ix);
 2107|    149|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|    149|                        }
 2109|    149|                     }
 2110|    149|                     else {
 2111|    149|                        dump("\": \"", b, ix);
 2112|    149|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|    149|                        if constexpr (N == 0) {
 2114|    149|                           dump('"', b, ix);
 2115|    149|                        }
 2116|    149|                        else {
 2117|    149|                           dump("\",\n", b, ix);
 2118|    149|                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|    149|                        }
 2120|    149|                     }
 2121|    149|                  }
 2122|    149|                  else {
 2123|    149|                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|    149|                     dump("{\"", b, ix);
 2126|    149|                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|    149|                     if constexpr (std::integral<id_type>) {
 2129|    149|                        dump("\":", b, ix);
 2130|    149|                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|    149|                        if constexpr (N > 0) {
 2132|    149|                           dump(',', b, ix);
 2133|    149|                        }
 2134|    149|                     }
 2135|    149|                     else {
 2136|    149|                        dump("\":\"", b, ix);
 2137|    149|                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|    149|                        if constexpr (N == 0) {
 2139|    149|                           dump('"', b, ix);
 2140|    149|                        }
 2141|    149|                        else {
 2142|    149|                           dump("\",", b, ix);
 2143|    149|                        }
 2144|    149|                     }
 2145|    149|                  }
 2146|    149|                  if constexpr (is_memory_object<V>) {
 2147|    149|                     if (!val) [[unlikely]] {
 2148|    149|                        ctx.error = error_code::invalid_variant_object;
 2149|    149|                        return;
 2150|    149|                     }
 2151|    149|                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|    149|                  }
 2153|    149|                  else {
 2154|    149|                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|    149|                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|    149|                  if constexpr (Opts.skip_null_members) {
 2158|    149|                     if (b[ix - 1] == ',') {
 2159|    149|                        --ix;
 2160|    149|                     }
 2161|    149|                  }
 2162|       |
 2163|    149|                  if constexpr (Opts.prettify) {
 2164|    149|                     ctx.depth -= check_indentation_width(Opts);
 2165|    149|                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|    149|                        return;
 2167|    149|                     }
 2168|    149|                     std::memcpy(&b[ix], "\n", 1);
 2169|    149|                     ++ix;
 2170|    149|                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|    149|                     ix += ctx.depth;
 2172|    149|                     std::memcpy(&b[ix], "}", 1);
 2173|    149|                     ++ix;
 2174|    149|                  }
 2175|    149|                  else {
 2176|    149|                     dump('}', b, ix);
 2177|    149|                  }
 2178|    149|               }
 2179|    149|               else {
 2180|    149|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|    149|               }
 2182|    149|            },
 2183|    149|            value);
 2184|    149|      }
_ZZN3glz2toILj10ENSt3__17variantIJNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSB_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlOT_E_clISF_EEDaSS_:
 1965|    149|            [&](auto&& val) {
 1966|    149|               using V = std::decay_t<decltype(val)>;
 1967|       |
 1968|       |               if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 1969|       |                             custom_write<V>) {
 1970|       |                  // Custom alternative: the user's serializer emits the object body, into which we
 1971|       |                  // merge the variant tag. For this to produce valid JSON the custom to<> must (1)
 1972|       |                  // write an object body and (2) honor opening_and_closing_handled (suppress its own
 1973|       |                  // braces) so the tag shares the alternative's object. A custom writer that emits a
 1974|       |                  // scalar/array, or that ignores those flags, would yield malformed output.
 1975|       |                  //
 1976|       |                  // The tag-emission below mirrors the reflected-object branch that follows; keep the
 1977|       |                  // two in sync. The body size is not known at compile time, so we always write the
 1978|       |                  // tag separator and then drop it at runtime if the body turned out empty.
 1979|       |                  if (missing_id(value, ctx)) {
 1980|       |                     return;
 1981|       |                  }
 1982|       |                  using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 1983|       |                  if constexpr (Opts.prettify) {
 1984|       |                     dump("{\n", b, ix);
 1985|       |                     ctx.depth += check_indentation_width(Opts);
 1986|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 1987|       |                     dump('"', b, ix);
 1988|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 1989|       |                     if constexpr (std::integral<id_type>) {
 1990|       |                        dump("\": ", b, ix);
 1991|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 1992|       |                     }
 1993|       |                     else {
 1994|       |                        dump("\": \"", b, ix);
 1995|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 1996|       |                        dump('"', b, ix);
 1997|       |                     }
 1998|       |                     const auto pos_after_tag = ix;
 1999|       |                     dump(",\n", b, ix);
 2000|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2001|       |                     const auto pos_body_start = ix;
 2002|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2003|       |                     if (ix == pos_body_start) {
 2004|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2005|       |                     }
 2006|       |                     ctx.depth -= check_indentation_width(Opts);
 2007|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2008|       |                        return;
 2009|       |                     }
 2010|       |                     std::memcpy(&b[ix], "\n", 1);
 2011|       |                     ++ix;
 2012|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2013|       |                     ix += ctx.depth;
 2014|       |                     std::memcpy(&b[ix], "}", 1);
 2015|       |                     ++ix;
 2016|       |                  }
 2017|       |                  else {
 2018|       |                     dump("{\"", b, ix);
 2019|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2020|       |                     if constexpr (std::integral<id_type>) {
 2021|       |                        dump("\":", b, ix);
 2022|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2023|       |                     }
 2024|       |                     else {
 2025|       |                        dump("\":\"", b, ix);
 2026|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2027|       |                        dump('"', b, ix);
 2028|       |                     }
 2029|       |                     const auto pos_after_tag = ix;
 2030|       |                     dump(',', b, ix);
 2031|       |                     const auto pos_body_start = ix;
 2032|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2033|       |                     if (ix == pos_body_start) {
 2034|       |                        ix = pos_after_tag; // custom body was empty: undo the tag separator
 2035|       |                     }
 2036|       |                     dump('}', b, ix);
 2037|       |                  }
 2038|       |               }
 2039|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2040|       |                                  variant_unit_alternative<V>) {
 2041|       |                  // A unit alternative carries no data, so internal tagging renders it as the
 2042|       |                  // discriminator alone -- the same object an empty struct alternative produces.
 2043|       |                  if (missing_id(value, ctx)) {
 2044|       |                     return;
 2045|       |                  }
 2046|       |                  if constexpr (Opts.prettify) {
 2047|       |                     dump("{\n", b, ix);
 2048|       |                     ctx.depth += check_indentation_width(Opts);
 2049|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2050|       |                     dump('"', b, ix);
 2051|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2052|       |                     dump("\": ", b, ix);
 2053|       |                     write_id<Opts>(value, ctx, b, ix);
 2054|       |                     ctx.depth -= check_indentation_width(Opts);
 2055|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2056|       |                        return;
 2057|       |                     }
 2058|       |                     std::memcpy(&b[ix], "\n", 1);
 2059|       |                     ++ix;
 2060|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2061|       |                     ix += ctx.depth;
 2062|       |                     std::memcpy(&b[ix], "}", 1);
 2063|       |                     ++ix;
 2064|       |                  }
 2065|       |                  else {
 2066|       |                     dump("{\"", b, ix);
 2067|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2068|       |                     dump("\":", b, ix);
 2069|       |                     write_id<Opts>(value, ctx, b, ix);
 2070|       |                     dump('}', b, ix);
 2071|       |                  }
 2072|       |               }
 2073|       |               else if constexpr (check_write_type_info(Opts) && tagging == variant_tagging_kind::internal &&
 2074|       |                                  (glaze_object_t<V> || reflectable<V> || is_memory_object<V>) &&
 2075|       |                                  (not alternative_declares_key<V>(tag_v<T>))) {
 2076|       |                  // An alternative that declares a member named like the discriminator carries the
 2077|       |                  // discriminator itself, so no tag is merged here and the bare-write branch below
 2078|       |                  // handles it. Previously only `reflectable` alternatives were excluded; a
 2079|       |                  // `glaze_object_t` one fell through to this branch and emitted the key twice.
 2080|       |                  if (missing_id(value, ctx)) {
 2081|       |                     return;
 2082|       |                  }
 2083|       |                  constexpr auto N = []() {
 2084|       |                     if constexpr (is_memory_object<V>) {
 2085|       |                        return reflect<memory_type<V>>::size;
 2086|       |                     }
 2087|       |                     else {
 2088|       |                        return reflect<V>::size;
 2089|       |                     }
 2090|       |                  }();
 2091|       |
 2092|       |                  // must first write out type
 2093|       |                  if constexpr (Opts.prettify) {
 2094|       |                     dump("{\n", b, ix);
 2095|       |                     ctx.depth += check_indentation_width(Opts);
 2096|       |                     dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2097|       |                     dump('"', b, ix);
 2098|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2099|       |
 2100|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2101|       |
 2102|       |                     if constexpr (std::integral<id_type>) {
 2103|       |                        dump("\": ", b, ix);
 2104|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2105|       |                        if constexpr (N > 0) {
 2106|       |                           dump(",\n", b, ix);
 2107|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2108|       |                        }
 2109|       |                     }
 2110|       |                     else {
 2111|       |                        dump("\": \"", b, ix);
 2112|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2113|       |                        if constexpr (N == 0) {
 2114|       |                           dump('"', b, ix);
 2115|       |                        }
 2116|       |                        else {
 2117|       |                           dump("\",\n", b, ix);
 2118|       |                           dumpn(check_indentation_char(Opts), ctx.depth, b, ix);
 2119|       |                        }
 2120|       |                     }
 2121|       |                  }
 2122|       |                  else {
 2123|       |                     using id_type = std::decay_t<decltype(ids_v<T>[value.index()])>;
 2124|       |
 2125|       |                     dump("{\"", b, ix);
 2126|       |                     dump_maybe_empty(tag_v<T>, b, ix);
 2127|       |
 2128|       |                     if constexpr (std::integral<id_type>) {
 2129|       |                        dump("\":", b, ix);
 2130|       |                        serialize<JSON>::op<Opts>(ids_v<T>[value.index()], ctx, b, ix);
 2131|       |                        if constexpr (N > 0) {
 2132|       |                           dump(',', b, ix);
 2133|       |                        }
 2134|       |                     }
 2135|       |                     else {
 2136|       |                        dump("\":\"", b, ix);
 2137|       |                        dump_maybe_empty(ids_v<T>[value.index()], b, ix);
 2138|       |                        if constexpr (N == 0) {
 2139|       |                           dump('"', b, ix);
 2140|       |                        }
 2141|       |                        else {
 2142|       |                           dump("\",", b, ix);
 2143|       |                        }
 2144|       |                     }
 2145|       |                  }
 2146|       |                  if constexpr (is_memory_object<V>) {
 2147|       |                     if (!val) [[unlikely]] {
 2148|       |                        ctx.error = error_code::invalid_variant_object;
 2149|       |                        return;
 2150|       |                     }
 2151|       |                     to<JSON, memory_type<V>>::template op<opening_and_closing_handled<Opts>()>(*val, ctx, b, ix);
 2152|       |                  }
 2153|       |                  else {
 2154|       |                     to<JSON, V>::template op<opening_and_closing_handled<Opts>()>(val, ctx, b, ix);
 2155|       |                  }
 2156|       |                  // If we skip everything then we may have an extra comma, which we want to revert
 2157|       |                  if constexpr (Opts.skip_null_members) {
 2158|       |                     if (b[ix - 1] == ',') {
 2159|       |                        --ix;
 2160|       |                     }
 2161|       |                  }
 2162|       |
 2163|       |                  if constexpr (Opts.prettify) {
 2164|       |                     ctx.depth -= check_indentation_width(Opts);
 2165|       |                     if (!ensure_space(ctx, b, ix + ctx.depth + write_padding_bytes)) [[unlikely]] {
 2166|       |                        return;
 2167|       |                     }
 2168|       |                     std::memcpy(&b[ix], "\n", 1);
 2169|       |                     ++ix;
 2170|       |                     fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2171|       |                     ix += ctx.depth;
 2172|       |                     std::memcpy(&b[ix], "}", 1);
 2173|       |                     ++ix;
 2174|       |                  }
 2175|       |                  else {
 2176|       |                     dump('}', b, ix);
 2177|       |                  }
 2178|       |               }
 2179|    149|               else {
 2180|    149|                  to<JSON, V>::template op<Opts>(val, ctx, b, ix);
 2181|    149|               }
 2182|    149|            },
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm8EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__18functionIFiiEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS4_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     65|      {
 1276|     65|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     65|         constexpr auto n = name.size();
 1278|       |
 1279|     65|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 65]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     65|         std::memcpy(&b[ix], "\"", 1);
 1284|     65|         ++ix;
 1285|     65|         if constexpr (not name.empty()) {
 1286|     65|            std::memcpy(&b[ix], name.data(), n);
 1287|     65|            ix += n;
 1288|     65|         }
 1289|     65|         std::memcpy(&b[ix], "\"", 1);
 1290|     65|         ++ix;
 1291|     65|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm9EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__18functionIFNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKS8_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_RSC_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     65|      {
 1276|     65|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     65|         constexpr auto n = name.size();
 1278|       |
 1279|     65|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 65]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     65|         std::memcpy(&b[ix], "\"", 1);
 1284|     65|         ++ix;
 1285|     65|         if constexpr (not name.empty()) {
 1286|     65|            std::memcpy(&b[ix], name.data(), n);
 1287|     65|            ix += n;
 1288|     65|         }
 1289|     65|         std::memcpy(&b[ix], "\"", 1);
 1290|     65|         ++ix;
 1291|     65|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm10EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__18functionIFN12jsonrpc_fuzz5pointERKS4_EEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS8_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     65|      {
 1276|     65|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     65|         constexpr auto n = name.size();
 1278|       |
 1279|     65|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 65]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     65|         std::memcpy(&b[ix], "\"", 1);
 1284|     65|         ++ix;
 1285|     65|         if constexpr (not name.empty()) {
 1286|     65|            std::memcpy(&b[ix], name.data(), n);
 1287|     65|            ix += n;
 1288|     65|         }
 1289|     65|         std::memcpy(&b[ix], "\"", 1);
 1290|     65|         ++ix;
 1291|     65|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm11EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__18functionIFdRNS1_6vectorIdNS1_9allocatorIdEEEEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS4_IcEEEERS9_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     65|      {
 1276|     65|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     65|         constexpr auto n = name.size();
 1278|       |
 1279|     65|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 65]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     65|         std::memcpy(&b[ix], "\"", 1);
 1284|     65|         ++ix;
 1285|     65|         if constexpr (not name.empty()) {
 1286|     65|            std::memcpy(&b[ix], name.data(), n);
 1287|     65|            ix += n;
 1288|     65|         }
 1289|     65|         std::memcpy(&b[ix], "\"", 1);
 1290|     65|         ++ix;
 1291|     65|      }
_ZZN3glz2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS2_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_ENKUlTnmvE_clILm12EEEDav:
 2610|     65|               for_each<N>([&]<size_t I>() {
 2611|     65|                  using val_t = field_t<T, I>;
 2612|       |
 2613|       |                  // Compile-time exclusions gate the field here rather than returning early, so that a
 2614|       |                  // skipped field's writer is never instantiated -- see `skipped_by_meta`.
 2615|       |                  if constexpr (skipped_on_write<Opts, T, I>) {
 2616|       |                     return;
 2617|       |                  }
 2618|     65|                  else {
 2619|       |                     if constexpr (meta_has_skip_if<T>) {
 2620|       |                        static constexpr auto skip_if_key = glz::get<I>(reflect<T>::keys);
 2621|       |                        static constexpr meta_context mctx{.op = operation::serialize};
 2622|       |                        decltype(auto) field_value = [&]() -> decltype(auto) {
 2623|       |                           if constexpr (reflectable<T>) {
 2624|       |                              return get<I>(t);
 2625|       |                           }
 2626|       |                           else {
 2627|       |                              return get_member(value, glz::get<I>(reflect<T>::values));
 2628|       |                           }
 2629|       |                        }();
 2630|       |                        if (meta<T>::skip_if(field_value, skip_if_key, mctx)) return;
 2631|       |                     }
 2632|       |
 2633|       |                     if constexpr (null_t<val_t> && Opts.skip_null_members) {
 2634|       |                        if constexpr (always_null_t<val_t>)
 2635|       |                           return;
 2636|       |                        else {
 2637|       |                           const auto is_null = [&]() {
 2638|       |                              decltype(auto) element = [&]() -> decltype(auto) {
 2639|       |                                 if constexpr (reflectable<T>) {
 2640|       |                                    return get<I>(t);
 2641|       |                                 }
 2642|       |                                 else {
 2643|       |                                    return get<I>(reflect<T>::values);
 2644|       |                                 }
 2645|       |                              };
 2646|       |
 2647|       |                              if constexpr (nullable_wrapper<val_t>) {
 2648|       |                                 return !bool(element()(value).val);
 2649|       |                              }
 2650|       |                              else if constexpr (nullable_value_t<val_t>) {
 2651|       |                                 return !get_member(value, element()).has_value();
 2652|       |                              }
 2653|       |                              else {
 2654|       |                                 return !bool(get_member(value, element()));
 2655|       |                              }
 2656|       |                           }();
 2657|       |                           if (is_null) return;
 2658|       |                        }
 2659|       |                     }
 2660|       |                     else if constexpr (is_specialization_v<val_t, custom_t> && Opts.skip_null_members &&
 2661|       |                                        custom_getter_returns_nullable<val_t>()) {
 2662|       |                        if (is_custom_field_null<T, I>(value, t, ctx)) return;
 2663|       |                     }
 2664|     65|                     else if constexpr (Opts.skip_null_members && glaze_value_is_nullable<val_t>()) {
 2665|     65|                        if (is_glaze_value_field_null<T, I>(value, t)) return;
 2666|     65|                     }
 2667|       |
 2668|       |                     if constexpr (check_skip_default_members(Opts) && has_skippable_default<val_t>) {
 2669|       |                        decltype(auto) member = [&]() -> decltype(auto) {
 2670|       |                           if constexpr (reflectable<T>) {
 2671|       |                              return get_member(value, get<I>(t));
 2672|       |                           }
 2673|       |                           else {
 2674|       |                              return get_member(value, get<I>(reflect<T>::values));
 2675|       |                           }
 2676|       |                        }();
 2677|       |                        if (is_default_value(member)) return;
 2678|       |                     }
 2679|       |
 2680|       |                     if constexpr (Opts.prettify) {
 2681|       |                        if (!ensure_space(ctx, b, ix + padding + ctx.depth)) [[unlikely]] {
 2682|       |                           return;
 2683|       |                        }
 2684|       |                     }
 2685|     65|                     else {
 2686|     65|                        if (!ensure_space(ctx, b, ix + padding)) [[unlikely]] {
  ------------------
  |  Branch (2686:29): [True: 0, False: 65]
  ------------------
 2687|      0|                           return;
 2688|      0|                        }
 2689|     65|                     }
 2690|       |
 2691|     65|                     if (first) {
  ------------------
  |  Branch (2691:26): [True: 0, False: 65]
  ------------------
 2692|      0|                        first = false;
 2693|      0|                     }
 2694|     65|                     else {
 2695|       |                        // Null members may be skipped so we can't just write it out for all but the last member
 2696|       |                        if constexpr (Opts.prettify) {
 2697|       |                           std::memcpy(&b[ix], ",\n", 2);
 2698|       |                           ix += 2;
 2699|       |                           fill_bytes(&b[ix], check_indentation_char(Opts), ctx.depth);
 2700|       |                           ix += ctx.depth;
 2701|       |                        }
 2702|     65|                        else {
 2703|     65|                           std::memcpy(&b[ix], ",", 1);
 2704|     65|                           ++ix;
 2705|     65|                        }
 2706|       |                        if constexpr (is_output_streaming<B>) {
 2707|       |                           flush_buffer(b, ix);
 2708|       |                        }
 2709|     65|                     }
 2710|       |
 2711|       |                     // MSVC requires get<I> rather than keys[I]
 2712|     65|                     static constexpr auto key = glz::get<I>(reflect<T>::keys); // GCC 14 requires auto here
 2713|     65|                     static constexpr auto quoted_key = quoted_key_v<key, Opts.prettify>;
 2714|     65|                     static constexpr auto n = quoted_key.size();
 2715|     65|                     std::memcpy(&b[ix], quoted_key.data(), n);
 2716|     65|                     ix += n;
 2717|       |
 2718|     65|                     static constexpr auto check_opts = required_padding<val_t>() ? write_unchecked_on<Opts>() : Opts;
  ------------------
  |  Branch (2718:57): [Folded, False: 65]
  ------------------
 2719|     65|                     if constexpr (reflectable<T>) {
 2720|     65|                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(t)), ctx, b, ix);
 2721|       |                     }
 2722|       |                     else {
 2723|       |                        to<JSON, val_t>::template op<check_opts>(get_member(value, get<I>(reflect<T>::values)), ctx, b,
 2724|       |                                                                 ix);
 2725|       |                     }
 2726|     65|                  }
 2727|     65|               });
_ZN3glz2toILj10ENSt3__18functionIFvvEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERS4_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
 1275|     65|      {
 1276|     65|         static constexpr auto name = name_v<std::decay_t<decltype(value)>>;
 1277|     65|         constexpr auto n = name.size();
 1278|       |
 1279|     65|         if (!ensure_space(ctx, b, ix + 8 + n)) [[unlikely]] {
  ------------------
  |  Branch (1279:14): [True: 0, False: 65]
  ------------------
 1280|      0|            return;
 1281|      0|         }
 1282|       |
 1283|     65|         std::memcpy(&b[ix], "\"", 1);
 1284|     65|         ++ix;
 1285|     65|         if constexpr (not name.empty()) {
 1286|     65|            std::memcpy(&b[ix], name.data(), n);
 1287|     65|            ix += n;
 1288|     65|         }
 1289|     65|         std::memcpy(&b[ix], "\"", 1);
 1290|     65|         ++ix;
 1291|     65|      }
_ZN3glz2toILj10EdE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERdTkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  814|  1.93k|      {
  815|  1.93k|         if constexpr (not check_write_unchecked(Opts)) {
  816|  1.93k|            static_assert(required_padding<T>());
  817|  1.93k|            if (!ensure_space(ctx, b, ix + required_padding<T>())) [[unlikely]] {
  ------------------
  |  Branch (817:17): [True: 0, False: 1.93k]
  ------------------
  818|      0|               return;
  819|      0|            }
  820|  1.93k|         }
  821|       |
  822|  1.93k|         static constexpr auto O = write_unchecked_on<Opts>();
  823|       |
  824|       |         if constexpr (check_quoted_num(Opts)) {
  825|       |            std::memcpy(&b[ix], "\"", 1);
  826|       |            ++ix;
  827|       |            write_chars::op<O>(value, ctx, b, ix);
  828|       |            std::memcpy(&b[ix], "\"", 1);
  829|       |            ++ix;
  830|       |         }
  831|  1.93k|         else {
  832|  1.93k|            write_chars::op<O>(value, ctx, b, ix);
  833|  1.93k|         }
  834|  1.93k|      }
_ZN3glz16required_paddingIdEEmv:
  538|  1.93k|   {
  539|  1.93k|      constexpr auto value = []() -> size_t {
  540|  1.93k|         if constexpr (boolean_like<T>) {
  541|  1.93k|            return 8;
  542|  1.93k|         }
  543|  1.93k|         else if constexpr (num_t<T>) {
  544|  1.93k|            if constexpr (std::floating_point<T>) {
  545|  1.93k|               if constexpr (sizeof(T) > 8) {
  546|  1.93k|                  return 64;
  547|  1.93k|               }
  548|  1.93k|               else if constexpr (sizeof(T) > 4) {
  549|       |                  // zmij scratch + 4 for optional quotes and trailing comma.
  550|  1.93k|                  return zmij::double_buffer_size + 4;
  551|  1.93k|               }
  552|  1.93k|               else {
  553|  1.93k|                  return zmij::float_buffer_size + 4;
  554|  1.93k|               }
  555|  1.93k|            }
  556|  1.93k|            else if constexpr (sizeof(T) > 4) {
  557|  1.93k|               return 24;
  558|  1.93k|            }
  559|  1.93k|            else if constexpr (sizeof(T) > 2) {
  560|  1.93k|               return 16;
  561|  1.93k|            }
  562|  1.93k|            else {
  563|  1.93k|               return 8;
  564|  1.93k|            }
  565|  1.93k|         }
  566|  1.93k|         else if constexpr (nullable_like<T>) {
  567|  1.93k|            if constexpr (has_value_type<T>) {
  568|  1.93k|               return required_padding<typename T::value_type>();
  569|  1.93k|            }
  570|  1.93k|            else if constexpr (has_element_type<T>) {
  571|  1.93k|               return required_padding<typename T::element_type>();
  572|  1.93k|            }
  573|  1.93k|            else {
  574|  1.93k|               return 0;
  575|  1.93k|            }
  576|  1.93k|         }
  577|  1.93k|         else if constexpr (always_null_t<T>) {
  578|  1.93k|            return 8;
  579|  1.93k|         }
  580|  1.93k|         else {
  581|  1.93k|            return 0;
  582|  1.93k|         }
  583|  1.93k|      }();
  584|       |
  585|       |      if constexpr (value >= (write_padding_bytes - 16)) {
  586|       |         // we always require 16 bytes available from write_padding_bytes
  587|       |         // for opening and closing characters
  588|       |         return 0;
  589|       |      }
  590|  1.93k|      return value;
  591|  1.93k|   }
_ZN3glz2toILj10ENSt3__18optionalIdEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_TkNS_10is_contextERNS_7contextERNS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEmEEvOT0_OT1_OT2_RT3_:
 1813|     65|      {
 1814|     65|         if (value) {
  ------------------
  |  Branch (1814:14): [True: 0, False: 65]
  ------------------
 1815|      0|            if constexpr (required_padding<T>()) {
 1816|      0|               serialize<JSON>::op<Opts>(*value, ctx, b, ix);
 1817|       |            }
 1818|       |            else {
 1819|       |               serialize<JSON>::op<write_unchecked_off<Opts>()>(*value, ctx, b, ix);
 1820|       |            }
 1821|      0|         }
 1822|     65|         else {
 1823|     65|            dump<not check_write_unchecked(Opts)>("null", b, ix);
 1824|     65|         }
 1825|     65|      }
_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS2_8expectedIS8_NS_9error_ctxEEEOT_:
 2916|  4.27M|   {
 2917|  4.27M|      return write<opts{}>(std::forward<T>(value));
 2918|  4.27M|   }
_ZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_S7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|  4.27M|      {
  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|  4.27M|         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|  4.27M|            else {
  945|  4.27M|               const sv str = [&]() -> const sv {
  946|  4.27M|                  if constexpr (array_char_t<T>) {
  947|  4.27M|                     return sv{value.data(), value.size()};
  948|  4.27M|                  }
  949|  4.27M|                  else if constexpr (u8str_t<T>) {
  950|  4.27M|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|  4.27M|                  }
  952|  4.27M|                  else {
  953|  4.27M|                     return str_view<T>(value);
  954|  4.27M|                  }
  955|  4.27M|               }();
  956|  4.27M|               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|  4.27M|               else {
  988|       |                  // Using the original sizing
  989|  4.27M|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 4.27M]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|  4.27M|               }
  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|  4.27M|               else {
 1002|  4.27M|                  std::memcpy(&b[ix], "\"", 1);
 1003|  4.27M|                  ++ix;
 1004|       |
 1005|  4.27M|                  const auto* c = str.data();
 1006|  4.27M|                  const auto* const e = c + n;
 1007|  4.27M|                  const auto start = &b[ix];
 1008|  4.27M|                  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|  4.27M|                  auto write_escape = [&]() {
 1017|  4.27M|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|  4.27M|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|  4.27M|                           std::memcpy(data, &escaped, 2);
 1020|  4.27M|                           data += 2;
 1021|  4.27M|                        }
 1022|  4.27M|                        else {
 1023|  4.27M|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|  4.27M|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|  4.27M|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|  4.27M|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|  4.27M|                           std::memcpy(data, unicode_escape, 6);
 1028|  4.27M|                           data += 6;
 1029|  4.27M|                        }
 1030|  4.27M|                     }
 1031|  4.27M|                     else {
 1032|  4.27M|                        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|  4.27M|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|  4.27M|                              ctx.error = error_code::invalid_control_character;
 1040|  4.27M|                           }
 1041|  4.27M|                        }
 1042|  4.27M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  4.27M|                        data += 2;
 1044|  4.27M|                     }
 1045|  4.27M|                     ++c;
 1046|  4.27M|                  };
 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|  4.27M|#if defined(GLZ_USE_SSE2)
 1055|  4.27M|                  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|  4.27M|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 4.27M, False: 0]
  ------------------
 1062|  4.60M|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 333k, False: 4.27M]
  ------------------
 1063|   333k|                        std::memcpy(data, c, 8);
 1064|   333k|                        uint64_t swar;
 1065|   333k|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|   333k|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|   333k|                        const uint64_t lo7 = swar & lo7_mask;
 1072|   333k|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|   333k|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|   333k|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|   333k|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|   333k|                        next &= repeat_byte8(0b10000000);
 1078|   333k|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 40.3k, False: 293k]
  ------------------
 1079|  40.3k|                           data += 8;
 1080|  40.3k|                           c += 8;
 1081|  40.3k|                           continue;
 1082|  40.3k|                        }
 1083|       |
 1084|   293k|                        const auto length = (countr_zero(next) >> 3);
 1085|   293k|                        c += length;
 1086|   293k|                        data += length;
 1087|   293k|                        write_escape();
 1088|   293k|                     }
 1089|  4.27M|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|  29.5M|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 25.2M, False: 4.27M]
  ------------------
 1093|  25.2M|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 26.8k, False: 25.2M]
  ------------------
 1094|  26.8k|                        std::memcpy(data, &escaped, 2);
 1095|  26.8k|                        data += 2;
 1096|  26.8k|                     }
 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|  25.2M|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|  25.2M|                        std::memcpy(data, c, 1);
 1118|  25.2M|                        ++data;
 1119|  25.2M|                     }
 1120|  25.2M|                  }
 1121|       |
 1122|  4.27M|                  ix += size_t(data - start);
 1123|       |
 1124|  4.27M|                  std::memcpy(&b[ix], "\"", 1);
 1125|  4.27M|                  ++ix;
 1126|  4.27M|               }
 1127|  4.27M|            }
 1128|  4.27M|         }
 1129|  4.27M|      }
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_S7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|  4.27M|               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|  4.27M|                  else {
  953|  4.27M|                     return str_view<T>(value);
  954|  4.27M|                  }
  955|  4.27M|               }();
_ZZN3glz2toILj10ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS7_S7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE0_clEv:
 1016|  1.00M|                  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|  1.00M|                     else {
 1032|       |                        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|       |                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|       |                              ctx.error = error_code::invalid_control_character;
 1040|       |                           }
 1041|       |                        }
 1042|  1.00M|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|  1.00M|                        data += 2;
 1044|  1.00M|                     }
 1045|  1.00M|                     ++c;
 1046|  1.00M|                  };
_ZN3glz10write_jsonITkNS_15write_supportedIL_ZNS_4JSONEEEERKNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEENS2_8expectedINS2_12basic_stringIcS5_NS2_9allocatorIcEEEENS_9error_ctxEEEOT_:
 2916|     54|   {
 2917|     54|      return write<opts{}>(std::forward<T>(value));
 2918|     54|   }
_ZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_:
  845|     54|      {
  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|     54|         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|     54|            else {
  945|     54|               const sv str = [&]() -> const sv {
  946|     54|                  if constexpr (array_char_t<T>) {
  947|     54|                     return sv{value.data(), value.size()};
  948|     54|                  }
  949|     54|                  else if constexpr (u8str_t<T>) {
  950|     54|                     return sv{reinterpret_cast<const char*>(value.data()), value.size()};
  951|     54|                  }
  952|     54|                  else {
  953|     54|                     return str_view<T>(value);
  954|     54|                  }
  955|     54|               }();
  956|     54|               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|     54|               else {
  988|       |                  // Using the original sizing
  989|     54|                  if (!ensure_space(ctx, b, ix + 10 + 2 * n)) [[unlikely]] {
  ------------------
  |  Branch (989:23): [True: 0, False: 54]
  ------------------
  990|      0|                     return;
  991|      0|                  }
  992|     54|               }
  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|     54|               else {
 1002|     54|                  std::memcpy(&b[ix], "\"", 1);
 1003|     54|                  ++ix;
 1004|       |
 1005|     54|                  const auto* c = str.data();
 1006|     54|                  const auto* const e = c + n;
 1007|     54|                  const auto start = &b[ix];
 1008|     54|                  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|     54|                  auto write_escape = [&]() {
 1017|     54|                     if constexpr (check_escape_control_characters(Opts)) {
 1018|     54|                        if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
 1019|     54|                           std::memcpy(data, &escaped, 2);
 1020|     54|                           data += 2;
 1021|     54|                        }
 1022|     54|                        else {
 1023|     54|                           char unicode_escape[6] = {'\\', 'u', '0', '0', '0', '0'};
 1024|     54|                           constexpr char hex_digits[] = "0123456789ABCDEF";
 1025|     54|                           unicode_escape[4] = hex_digits[(uint8_t(*c) >> 4) & 0xF];
 1026|     54|                           unicode_escape[5] = hex_digits[uint8_t(*c) & 0xF];
 1027|     54|                           std::memcpy(data, unicode_escape, 6);
 1028|     54|                           data += 6;
 1029|     54|                        }
 1030|     54|                     }
 1031|     54|                     else {
 1032|     54|                        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|     54|                           if (char_escape_table[uint8_t(*c)] == 0) [[unlikely]] {
 1039|     54|                              ctx.error = error_code::invalid_control_character;
 1040|     54|                           }
 1041|     54|                        }
 1042|     54|                        std::memcpy(data, &char_escape_table[uint8_t(*c)], 2);
 1043|     54|                        data += 2;
 1044|     54|                     }
 1045|     54|                     ++c;
 1046|     54|                  };
 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|     54|#if defined(GLZ_USE_SSE2)
 1055|     54|                  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|     54|                  if (n > 7) {
  ------------------
  |  Branch (1061:23): [True: 0, False: 54]
  ------------------
 1062|      0|                     for (const auto end_m7 = e - 7; c < end_m7;) {
  ------------------
  |  Branch (1062:54): [True: 0, False: 0]
  ------------------
 1063|      0|                        std::memcpy(data, c, 8);
 1064|      0|                        uint64_t swar;
 1065|      0|                        std::memcpy(&swar, c, 8);
 1066|       |                        if constexpr (std::endian::native == std::endian::big) {
 1067|       |                           swar = std::byteswap(swar);
 1068|       |                        }
 1069|       |
 1070|      0|                        constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1071|      0|                        const uint64_t lo7 = swar & lo7_mask;
 1072|      0|                        const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1073|      0|                        const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1074|      0|                        const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1075|      0|                        uint64_t next = ~((quote & backslash & less_32) | swar);
 1076|       |
 1077|      0|                        next &= repeat_byte8(0b10000000);
 1078|      0|                        if (next == 0) {
  ------------------
  |  Branch (1078:29): [True: 0, False: 0]
  ------------------
 1079|      0|                           data += 8;
 1080|      0|                           c += 8;
 1081|      0|                           continue;
 1082|      0|                        }
 1083|       |
 1084|      0|                        const auto length = (countr_zero(next) >> 3);
 1085|      0|                        c += length;
 1086|      0|                        data += length;
 1087|      0|                        write_escape();
 1088|      0|                     }
 1089|      0|                  }
 1090|       |
 1091|       |                  // Scalar tail
 1092|    378|                  for (; c < e; ++c) {
  ------------------
  |  Branch (1092:26): [True: 324, False: 54]
  ------------------
 1093|    324|                     if (const auto escaped = char_escape_table[uint8_t(*c)]; escaped) {
  ------------------
  |  Branch (1093:79): [True: 0, False: 324]
  ------------------
 1094|      0|                        std::memcpy(data, &escaped, 2);
 1095|      0|                        data += 2;
 1096|      0|                     }
 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|    324|                     else {
 1112|       |                        if constexpr (check_reject_control_characters(Opts)) {
 1113|       |                           if (uint8_t(*c) < 0x20) [[unlikely]] {
 1114|       |                              ctx.error = error_code::invalid_control_character;
 1115|       |                           }
 1116|       |                        }
 1117|    324|                        std::memcpy(data, c, 1);
 1118|    324|                        ++data;
 1119|    324|                     }
 1120|    324|                  }
 1121|       |
 1122|     54|                  ix += size_t(data - start);
 1123|       |
 1124|     54|                  std::memcpy(&b[ix], "\"", 1);
 1125|     54|                  ++ix;
 1126|     54|               }
 1127|     54|            }
 1128|     54|         }
 1129|     54|      }
_ZZN3glz2toILj10ENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKS5_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_ENKUlvE_clEv:
  945|     54|               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|     54|                  else {
  953|     54|                     return str_view<T>(value);
  954|     54|                  }
  955|     54|               }();

_ZN3glz6to_tieIRN12jsonrpc_fuzz5pointELm2EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  232|  87.3k|   {
  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|  87.3k|      else if constexpr (N == 2) {
  241|  87.3k|         auto& [p0, p1] = t;
  242|  87.3k|         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|       |      else if constexpr (N == 4) {
  249|       |         auto& [p0, p1, p2, p3] = t;
  250|       |         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|  87.3k|   }
_ZN3glz6to_tieIRN12jsonrpc_fuzz8fuzz_apiELm13EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  232|   116k|   {
  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|       |      else if constexpr (N == 4) {
  249|       |         auto& [p0, p1, p2, p3] = t;
  250|       |         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|   116k|      else if constexpr (N == 13) {
  285|   116k|         auto& [p0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12] = t;
  286|   116k|         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|   116k|   }
_ZN3glz6to_tieIRN12jsonrpc_fuzz6nestedELm2EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  232|  96.0k|   {
  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|  96.0k|      else if constexpr (N == 2) {
  241|  96.0k|         auto& [p0, p1] = t;
  242|  96.0k|         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|       |      else if constexpr (N == 4) {
  249|       |         auto& [p0, p1, p2, p3] = t;
  250|       |         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|  96.0k|   }
_ZN3glz6to_tieIRN12jsonrpc_fuzz6amountELm1EQleT0_L_ZNS_6detail25max_pure_reflection_countEEEEDcOT_:
  232|    293|   {
  233|       |      if constexpr (N == 0) {
  234|       |         return tuple{};
  235|       |      }
  236|    293|      else if constexpr (N == 1) {
  237|    293|         auto& [p] = t;
  238|    293|         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|       |      else if constexpr (N == 4) {
  249|       |         auto& [p0, p1, p2, p3] = t;
  250|       |         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|    293|   }

_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE17register_endpointIN12jsonrpc_fuzz10member_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  153|  79.7k|      {
  154|  79.7k|         register_read_write_endpoint(path, value, reg);
  155|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz10member_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZNK3glz7jsonrpc5state8has_bodyEv:
   29|  72.5k|         bool has_body() const { return has_params; }
_ZN3glz7jsonrpc11write_errorITkNS0_8is_stateERNS0_5stateEEEvOT_NS_3rpc7error_eERKNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEERKNS8_8optionalISE_EE:
   77|  17.6k|      {
   78|  17.6k|         if (state.notify()) {
  ------------------
  |  Branch (78:14): [True: 2.27k, False: 15.3k]
  ------------------
   79|  2.27k|            return; // No response for notifications
   80|  2.27k|         }
   81|       |
   82|  15.3k|         state.response = R"({"jsonrpc":"2.0","error":{"code":)";
   83|  15.3k|         state.response += std::to_string(static_cast<int>(code));
   84|  15.3k|         state.response += R"(,"message":)";
   85|  15.3k|         state.response += write_json(message).value_or("\"\"");
   86|  15.3k|         if (data) {
  ------------------
  |  Branch (86:14): [True: 15.3k, False: 0]
  ------------------
   87|  15.3k|            state.response += R"(,"data":)";
   88|  15.3k|            state.response += write_json(*data).value_or("null");
   89|  15.3k|         }
   90|  15.3k|         state.response += R"(},"id":)";
   91|  15.3k|         state.response += write_json(state.id).value_or("null");
   92|  15.3k|         state.response += "}";
   93|  15.3k|      }
_ZNK3glz7jsonrpc5state6notifyEv:
   28|  57.3k|         bool notify() const { return is_notification; }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS0_8is_stateERNS0_5stateEEEvOT0_:
   64|  5.00k|      {
   65|  5.00k|         if (state.notify()) {
  ------------------
  |  Branch (65:14): [True: 0, False: 5.00k]
  ------------------
   66|      0|            return; // No response for notifications
   67|      0|         }
   68|       |
   69|  5.00k|         state.response = R"({"jsonrpc":"2.0","result":null,"id":)";
   70|  5.00k|         state.response += write_json(state.id).value_or("null");
   71|  5.00k|         state.response += "}";
   72|  5.00k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointIiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  244|   239k|      {
  245|   239k|         register_read_write_endpoint(path, var, reg);
  246|   239k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  128|   239k|      {
  129|   239k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|   239k|            if (state.has_body()) {
  131|   239k|               if (!detail::read_and_commit(value,
  132|   239k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|   239k|                  return;
  134|   239k|               }
  135|   239k|            }
  136|       |
  137|   239k|            if (state.notify()) {
  138|   239k|               return;
  139|   239k|            }
  140|       |
  141|   239k|            if (!state.has_body()) {
  142|   239k|               jsonrpc::write_response<Opts>(value, state);
  143|   239k|            }
  144|   239k|            else {
  145|   239k|               jsonrpc::write_response<Opts>(state);
  146|   239k|            }
  147|   239k|         };
  148|   239k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESH_:
  129|    906|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|    906|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 329, False: 577]
  ------------------
  131|    329|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 219, False: 110]
  ------------------
  132|    329|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|    219|                  return;
  134|    219|               }
  135|    329|            }
  136|       |
  137|    687|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 529, False: 158]
  ------------------
  138|    529|               return;
  139|    529|            }
  140|       |
  141|    158|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 72, False: 86]
  ------------------
  142|     72|               jsonrpc::write_response<Opts>(value, state);
  143|     72|            }
  144|     86|            else {
  145|     86|               jsonrpc::write_response<Opts>(state);
  146|     86|            }
  147|    158|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESH_ENKUlSC_E_clIiEEDaSC_:
  132|    329|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  2.30k|      {
   99|  2.30k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 963, False: 1.34k]
  ------------------
  100|    963|            return true; // No params to read
  101|    963|         }
  102|       |
  103|  1.34k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  1.34k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 675, False: 669]
  ------------------
  105|    675|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|    675|            return false;
  107|    675|         }
  108|    669|         return true;
  109|  1.34k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERiTkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|    427|      {
   39|    427|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 427]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|    427|         std::string result_json;
   44|    427|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|    427|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 427]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|    427|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|    427|         state.response += result_json;
   56|    427|         state.response += R"(,"id":)";
   57|    427|         state.response += write_json(state.id).value_or("null");
   58|    427|         state.response += "}";
   59|    427|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FiiEiiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT3_:
  274|  79.7k|      {
  275|  79.7k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  276|  79.7k|            static thread_local Input input{};
  277|  79.7k|            input = {}; // reset to avoid stale optional/variant fields across calls
  278|  79.7k|            if (state.has_body()) {
  279|  79.7k|               if (!jsonrpc::read_params<Opts>(input, state)) {
  280|  79.7k|                  return;
  281|  79.7k|               }
  282|  79.7k|            }
  283|       |
  284|  79.7k|            if constexpr (std::same_as<Ret, void>) {
  285|  79.7k|               (value.*func)(input);
  286|       |
  287|  79.7k|               if (state.notify()) {
  288|  79.7k|                  return;
  289|  79.7k|               }
  290|       |
  291|  79.7k|               jsonrpc::write_response<Opts>(state);
  292|  79.7k|            }
  293|  79.7k|            else {
  294|  79.7k|               if (state.notify()) {
  295|  79.7k|                  std::ignore = (value.*func)(input);
  296|  79.7k|                  return;
  297|  79.7k|               }
  298|       |
  299|  79.7k|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  300|  79.7k|            }
  301|  79.7k|         };
  302|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FiiEiiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT3_ENUlONS_7jsonrpc5stateEE_clESM_:
  275|    977|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  276|    977|            static thread_local Input input{};
  277|    977|            input = {}; // reset to avoid stale optional/variant fields across calls
  278|    977|            if (state.has_body()) {
  ------------------
  |  Branch (278:17): [True: 499, False: 478]
  ------------------
  279|    499|               if (!jsonrpc::read_params<Opts>(input, state)) {
  ------------------
  |  Branch (279:20): [True: 220, False: 279]
  ------------------
  280|    220|                  return;
  281|    220|               }
  282|    499|            }
  283|       |
  284|       |            if constexpr (std::same_as<Ret, void>) {
  285|       |               (value.*func)(input);
  286|       |
  287|       |               if (state.notify()) {
  288|       |                  return;
  289|       |               }
  290|       |
  291|       |               jsonrpc::write_response<Opts>(state);
  292|       |            }
  293|    757|            else {
  294|    757|               if (state.notify()) {
  ------------------
  |  Branch (294:20): [True: 465, False: 292]
  ------------------
  295|    465|                  std::ignore = (value.*func)(input);
  296|    465|                  return;
  297|    465|               }
  298|       |
  299|    292|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  300|    292|            }
  301|    757|         };
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEiTkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|    292|      {
   39|    292|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 292]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|    292|         std::string result_json;
   44|    292|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|    292|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 292]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|    292|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|    292|         state.response += result_json;
   56|    292|         state.response += R"(,"id":)";
   57|    292|         state.response += write_json(state.id).value_or("null");
   58|    292|         state.response += "}";
   59|    292|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE33register_member_function_endpointIN12jsonrpc_fuzz10member_apiEMS5_FvvEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT2_:
  250|  79.7k|      {
  251|  79.7k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  252|  79.7k|            if constexpr (std::same_as<Ret, void>) {
  253|  79.7k|               (value.*func)();
  254|       |
  255|  79.7k|               if (state.notify()) {
  256|  79.7k|                  return;
  257|  79.7k|               }
  258|       |
  259|  79.7k|               jsonrpc::write_response<Opts>(state);
  260|  79.7k|            }
  261|  79.7k|            else {
  262|  79.7k|               if (state.notify()) {
  263|  79.7k|                  std::ignore = (value.*func)();
  264|  79.7k|                  return;
  265|  79.7k|               }
  266|       |
  267|  79.7k|               jsonrpc::write_response<Opts>((value.*func)(), state);
  268|  79.7k|            }
  269|  79.7k|         };
  270|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE33register_member_function_endpointIN12jsonrpc_fuzz10member_apiEMS5_FvvEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_T0_RT2_ENUlONS_7jsonrpc5stateEE_clESM_:
  251|    399|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  252|    399|            if constexpr (std::same_as<Ret, void>) {
  253|    399|               (value.*func)();
  254|       |
  255|    399|               if (state.notify()) {
  ------------------
  |  Branch (255:20): [True: 333, False: 66]
  ------------------
  256|    333|                  return;
  257|    333|               }
  258|       |
  259|     66|               jsonrpc::write_response<Opts>(state);
  260|       |            }
  261|       |            else {
  262|       |               if (state.notify()) {
  263|       |                  std::ignore = (value.*func)();
  264|       |                  return;
  265|       |               }
  266|       |
  267|       |               jsonrpc::write_response<Opts>((value.*func)(), state);
  268|       |            }
  269|    399|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FNS4_5pointERKS6_ES6_S6_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSD_11char_traitsIcEEEERT_T0_RT3_:
  274|  79.7k|      {
  275|  79.7k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  276|  79.7k|            static thread_local Input input{};
  277|  79.7k|            input = {}; // reset to avoid stale optional/variant fields across calls
  278|  79.7k|            if (state.has_body()) {
  279|  79.7k|               if (!jsonrpc::read_params<Opts>(input, state)) {
  280|  79.7k|                  return;
  281|  79.7k|               }
  282|  79.7k|            }
  283|       |
  284|  79.7k|            if constexpr (std::same_as<Ret, void>) {
  285|  79.7k|               (value.*func)(input);
  286|       |
  287|  79.7k|               if (state.notify()) {
  288|  79.7k|                  return;
  289|  79.7k|               }
  290|       |
  291|  79.7k|               jsonrpc::write_response<Opts>(state);
  292|  79.7k|            }
  293|  79.7k|            else {
  294|  79.7k|               if (state.notify()) {
  295|  79.7k|                  std::ignore = (value.*func)(input);
  296|  79.7k|                  return;
  297|  79.7k|               }
  298|       |
  299|  79.7k|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  300|  79.7k|            }
  301|  79.7k|         };
  302|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE45register_member_function_with_params_endpointIN12jsonrpc_fuzz10member_apiEMS5_FNS4_5pointERKS6_ES6_S6_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSD_11char_traitsIcEEEERT_T0_RT3_ENUlONS_7jsonrpc5stateEE_clESP_:
  275|  1.12k|         reg.endpoints[path] = [&value, func](jsonrpc::state&& state) mutable {
  276|  1.12k|            static thread_local Input input{};
  277|  1.12k|            input = {}; // reset to avoid stale optional/variant fields across calls
  278|  1.12k|            if (state.has_body()) {
  ------------------
  |  Branch (278:17): [True: 545, False: 584]
  ------------------
  279|    545|               if (!jsonrpc::read_params<Opts>(input, state)) {
  ------------------
  |  Branch (279:20): [True: 493, False: 52]
  ------------------
  280|    493|                  return;
  281|    493|               }
  282|    545|            }
  283|       |
  284|       |            if constexpr (std::same_as<Ret, void>) {
  285|       |               (value.*func)(input);
  286|       |
  287|       |               if (state.notify()) {
  288|       |                  return;
  289|       |               }
  290|       |
  291|       |               jsonrpc::write_response<Opts>(state);
  292|       |            }
  293|    636|            else {
  294|    636|               if (state.notify()) {
  ------------------
  |  Branch (294:20): [True: 529, False: 107]
  ------------------
  295|    529|                  std::ignore = (value.*func)(input);
  296|    529|                  return;
  297|    529|               }
  298|       |
  299|    107|               jsonrpc::write_response<Opts>((value.*func)(input), state);
  300|    107|            }
  301|    636|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  2.58k|      {
   99|  2.58k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 1.14k, False: 1.44k]
  ------------------
  100|  1.14k|            return true; // No params to read
  101|  1.14k|         }
  102|       |
  103|  1.44k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  1.44k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 1.30k, False: 135]
  ------------------
  105|  1.30k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|  1.30k|            return false;
  107|  1.30k|         }
  108|    135|         return true;
  109|  1.44k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|    107|      {
   39|    107|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 107]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|    107|         std::string result_json;
   44|    107|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|    107|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 107]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|    107|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|    107|         state.response += result_json;
   56|    107|         state.response += R"(,"id":)";
   57|    107|         state.response += write_json(state.id).value_or("null");
   58|    107|         state.response += "}";
   59|    107|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE17register_endpointIN12jsonrpc_fuzz8fuzz_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  153|  79.7k|      {
  154|  79.7k|         register_read_write_endpoint(path, value, reg);
  155|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz8fuzz_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz8fuzz_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  129|  13.5k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  13.5k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 9.17k, False: 4.40k]
  ------------------
  131|  9.17k|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 7.98k, False: 1.19k]
  ------------------
  132|  9.17k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  7.98k|                  return;
  134|  7.98k|               }
  135|  9.17k|            }
  136|       |
  137|  5.59k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 4.54k, False: 1.05k]
  ------------------
  138|  4.54k|               return;
  139|  4.54k|            }
  140|       |
  141|  1.05k|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 65, False: 989]
  ------------------
  142|     65|               jsonrpc::write_response<Opts>(value, state);
  143|     65|            }
  144|    989|            else {
  145|    989|               jsonrpc::write_response<Opts>(state);
  146|    989|            }
  147|  1.05k|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz8fuzz_apiENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_ENKUlSE_E_clIS5_EEDaSE_:
  132|  9.17k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  9.17k|      {
   99|  9.17k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 0, False: 9.17k]
  ------------------
  100|      0|            return true; // No params to read
  101|      0|         }
  102|       |
  103|  9.17k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  9.17k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 7.98k, False: 1.19k]
  ------------------
  105|  7.98k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|  7.98k|            return false;
  107|  7.98k|         }
  108|  1.19k|         return true;
  109|  9.17k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz8fuzz_apiETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|     65|      {
   39|     65|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 65]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|     65|         std::string result_json;
   44|     65|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|     65|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 65]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|     65|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|     65|         state.response += result_json;
   56|     65|         state.response += R"(,"id":)";
   57|     65|         state.response += write_json(state.id).value_or("null");
   58|     65|         state.response += "}";
   59|     65|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS7_EERT_RT0_:
  244|   159k|      {
  245|   159k|         register_read_write_endpoint(path, var, reg);
  246|   159k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS7_EERT_RT0_:
  128|   159k|      {
  129|   159k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|   159k|            if (state.has_body()) {
  131|   159k|               if (!detail::read_and_commit(value,
  132|   159k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|   159k|                  return;
  134|   159k|               }
  135|   159k|            }
  136|       |
  137|   159k|            if (state.notify()) {
  138|   159k|               return;
  139|   159k|            }
  140|       |
  141|   159k|            if (!state.has_body()) {
  142|   159k|               jsonrpc::write_response<Opts>(value, state);
  143|   159k|            }
  144|   159k|            else {
  145|   159k|               jsonrpc::write_response<Opts>(state);
  146|   159k|            }
  147|   159k|         };
  148|   159k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS7_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_:
  129|    598|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|    598|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 249, False: 349]
  ------------------
  131|    249|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 153, False: 96]
  ------------------
  132|    249|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|    153|                  return;
  134|    153|               }
  135|    249|            }
  136|       |
  137|    445|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 347, False: 98]
  ------------------
  138|    347|               return;
  139|    347|            }
  140|       |
  141|     98|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 23, False: 75]
  ------------------
  142|     23|               jsonrpc::write_response<Opts>(value, state);
  143|     23|            }
  144|     75|            else {
  145|     75|               jsonrpc::write_response<Opts>(state);
  146|     75|            }
  147|     98|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS7_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_ENKUlSG_E_clISA_EEDaSG_:
  132|    249|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  3.70k|      {
   99|  3.70k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 2.28k, False: 1.42k]
  ------------------
  100|  2.28k|            return true; // No params to read
  101|  2.28k|         }
  102|       |
  103|  1.42k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  1.42k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 622, False: 798]
  ------------------
  105|    622|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|    622|            return false;
  107|    622|         }
  108|    798|         return true;
  109|  1.42k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|    769|      {
   39|    769|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 769]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|    769|         std::string result_json;
   44|    769|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|    769|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 769]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|    769|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|    769|         state.response += result_json;
   56|    769|         state.response += R"(,"id":)";
   57|    769|         state.response += write_json(state.id).value_or("null");
   58|    769|         state.response += "}";
   59|    769|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointIdNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  244|   159k|      {
  245|   159k|         register_read_write_endpoint(path, var, reg);
  246|   159k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIdNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_:
  128|   159k|      {
  129|   159k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|   159k|            if (state.has_body()) {
  131|   159k|               if (!detail::read_and_commit(value,
  132|   159k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|   159k|                  return;
  134|   159k|               }
  135|   159k|            }
  136|       |
  137|   159k|            if (state.notify()) {
  138|   159k|               return;
  139|   159k|            }
  140|       |
  141|   159k|            if (!state.has_body()) {
  142|   159k|               jsonrpc::write_response<Opts>(value, state);
  143|   159k|            }
  144|   159k|            else {
  145|   159k|               jsonrpc::write_response<Opts>(state);
  146|   159k|            }
  147|   159k|         };
  148|   159k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIdNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESH_:
  129|  1.32k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  1.32k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 654, False: 673]
  ------------------
  131|    654|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 193, False: 461]
  ------------------
  132|    654|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|    193|                  return;
  134|    193|               }
  135|    654|            }
  136|       |
  137|  1.13k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 672, False: 462]
  ------------------
  138|    672|               return;
  139|    672|            }
  140|       |
  141|    462|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 25, False: 437]
  ------------------
  142|     25|               jsonrpc::write_response<Opts>(value, state);
  143|     25|            }
  144|    437|            else {
  145|    437|               jsonrpc::write_response<Opts>(state);
  146|    437|            }
  147|    462|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIdNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESH_ENKUlSC_E_clIdEEDaSC_:
  132|    654|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|    654|      {
   99|    654|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 0, False: 654]
  ------------------
  100|      0|            return true; // No params to read
  101|      0|         }
  102|       |
  103|    654|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|    654|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 193, False: 461]
  ------------------
  105|    193|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|    193|            return false;
  107|    193|         }
  108|    461|         return true;
  109|    654|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERdTkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|  1.93k|      {
   39|  1.93k|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 1.93k]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|  1.93k|         std::string result_json;
   44|  1.93k|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|  1.93k|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 1.93k]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|  1.93k|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|  1.93k|         state.response += result_json;
   56|  1.93k|         state.response += R"(,"id":)";
   57|  1.93k|         state.response += write_json(state.id).value_or("null");
   58|  1.93k|         state.response += "}";
   59|  1.93k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE24register_object_endpointIN12jsonrpc_fuzz5pointENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  214|  79.7k|      {
  215|  79.7k|         register_read_write_endpoint(path, obj, reg);
  216|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz5pointENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz5pointENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  129|  1.55k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  1.55k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 327, False: 1.22k]
  ------------------
  131|    327|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 316, False: 11]
  ------------------
  132|    327|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|    316|                  return;
  134|    316|               }
  135|    327|            }
  136|       |
  137|  1.23k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 1.12k, False: 106]
  ------------------
  138|  1.12k|               return;
  139|  1.12k|            }
  140|       |
  141|    106|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 97, False: 9]
  ------------------
  142|     97|               jsonrpc::write_response<Opts>(value, state);
  143|     97|            }
  144|      9|            else {
  145|      9|               jsonrpc::write_response<Opts>(state);
  146|      9|            }
  147|    106|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz5pointENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_ENKUlSE_E_clIS5_EEDaSE_:
  132|    327|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz5pointETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|    278|      {
   39|    278|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 278]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|    278|         std::string result_json;
   44|    278|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|    278|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 278]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|    278|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|    278|         state.response += result_json;
   56|    278|         state.response += R"(,"id":)";
   57|    278|         state.response += write_json(state.id).value_or("null");
   58|    278|         state.response += "}";
   59|    278|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE24register_object_endpointIN12jsonrpc_fuzz6nestedENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  214|  79.7k|      {
  215|  79.7k|         register_read_write_endpoint(path, obj, reg);
  216|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz6nestedENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz6nestedENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  129|  2.69k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  2.69k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 1.68k, False: 1.01k]
  ------------------
  131|  1.68k|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 1.38k, False: 295]
  ------------------
  132|  1.68k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  1.38k|                  return;
  134|  1.38k|               }
  135|  1.68k|            }
  136|       |
  137|  1.30k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 1.00k, False: 305]
  ------------------
  138|  1.00k|               return;
  139|  1.00k|            }
  140|       |
  141|    305|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 66, False: 239]
  ------------------
  142|     66|               jsonrpc::write_response<Opts>(value, state);
  143|     66|            }
  144|    239|            else {
  145|    239|               jsonrpc::write_response<Opts>(state);
  146|    239|            }
  147|    305|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIN12jsonrpc_fuzz6nestedENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_ENKUlSE_E_clIS5_EEDaSE_:
  132|  1.68k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  1.68k|      {
   99|  1.68k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 0, False: 1.68k]
  ------------------
  100|      0|            return true; // No params to read
  101|      0|         }
  102|       |
  103|  1.68k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  1.68k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 1.38k, False: 295]
  ------------------
  105|  1.38k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|  1.38k|            return false;
  107|  1.38k|         }
  108|    295|         return true;
  109|  1.68k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERN12jsonrpc_fuzz6nestedETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|     66|      {
   39|     66|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 66]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|     66|         std::string result_json;
   44|     66|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|     66|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 66]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|     66|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|     66|         state.response += result_json;
   56|     66|         state.response += R"(,"id":)";
   57|     66|         state.response += write_json(state.id).value_or("null");
   58|     66|         state.response += "}";
   59|     66|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__16vectorIiNS4_9allocatorIiEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  244|  79.7k|      {
  245|  79.7k|         register_read_write_endpoint(path, var, reg);
  246|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__16vectorIiNS4_9allocatorIiEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__16vectorIiNS4_9allocatorIiEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_:
  129|  3.03k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  3.03k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 1.79k, False: 1.23k]
  ------------------
  131|  1.79k|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 1.33k, False: 466]
  ------------------
  132|  1.79k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  1.33k|                  return;
  134|  1.33k|               }
  135|  1.79k|            }
  136|       |
  137|  1.70k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 1.18k, False: 515]
  ------------------
  138|  1.18k|               return;
  139|  1.18k|            }
  140|       |
  141|    515|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 60, False: 455]
  ------------------
  142|     60|               jsonrpc::write_response<Opts>(value, state);
  143|     60|            }
  144|    455|            else {
  145|    455|               jsonrpc::write_response<Opts>(state);
  146|    455|            }
  147|    515|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__16vectorIiNS4_9allocatorIiEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_ENKUlSG_E_clIS8_EEDaSG_:
  132|  1.79k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS3_9allocatorIiEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  1.79k|      {
   99|  1.79k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 0, False: 1.79k]
  ------------------
  100|      0|            return true; // No params to read
  101|      0|         }
  102|       |
  103|  1.79k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  1.79k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 1.33k, False: 466]
  ------------------
  105|  1.33k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|  1.33k|            return false;
  107|  1.33k|         }
  108|    466|         return true;
  109|  1.79k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIiNS3_9allocatorIiEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|     60|      {
   39|     60|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 60]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|     60|         std::string result_json;
   44|     60|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|     60|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 60]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|     60|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|     60|         state.response += result_json;
   56|     60|         state.response += R"(,"id":)";
   57|     60|         state.response += write_json(state.id).value_or("null");
   58|     60|         state.response += "}";
   59|     60|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  244|  79.7k|      {
  245|  79.7k|         register_read_write_endpoint(path, var, reg);
  246|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clEST_:
  129|  2.64k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  2.64k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 1.71k, False: 936]
  ------------------
  131|  1.71k|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 1.29k, False: 419]
  ------------------
  132|  1.71k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  1.29k|                  return;
  134|  1.29k|               }
  135|  1.71k|            }
  136|       |
  137|  1.35k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 932, False: 423]
  ------------------
  138|    932|               return;
  139|    932|            }
  140|       |
  141|    423|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 72, False: 351]
  ------------------
  142|     72|               jsonrpc::write_response<Opts>(value, state);
  143|     72|            }
  144|    351|            else {
  145|    351|               jsonrpc::write_response<Opts>(state);
  146|    351|            }
  147|    423|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__13mapINS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEiNS4_4lessISB_EENS9_INS4_4pairIKSB_iEEEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clEST_ENKUlSO_E_clISI_EEDaSO_:
  132|  1.71k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEiNS3_4lessISA_EENS8_INS3_4pairIKSA_iEEEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  1.71k|      {
   99|  1.71k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 0, False: 1.71k]
  ------------------
  100|      0|            return true; // No params to read
  101|      0|         }
  102|       |
  103|  1.71k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  1.71k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 1.29k, False: 419]
  ------------------
  105|  1.29k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|  1.29k|            return false;
  107|  1.29k|         }
  108|    419|         return true;
  109|  1.71k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__13mapINS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEiNS3_4lessISA_EENS8_INS3_4pairIKSA_iEEEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|     72|      {
   39|     72|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 72]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|     72|         std::string result_json;
   44|     72|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|     72|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 72]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|     72|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|     72|         state.response += result_json;
   56|     72|         state.response += R"(,"id":)";
   57|     72|         state.response += write_json(state.id).value_or("null");
   58|     72|         state.response += "}";
   59|     72|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__18optionalIdEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  244|  79.7k|      {
  245|  79.7k|         register_read_write_endpoint(path, var, reg);
  246|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__18optionalIdEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__18optionalIdEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_:
  129|  3.58k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  3.58k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 2.16k, False: 1.41k]
  ------------------
  131|  2.16k|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 476, False: 1.69k]
  ------------------
  132|  2.16k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|    476|                  return;
  134|    476|               }
  135|  2.16k|            }
  136|       |
  137|  3.10k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 1.45k, False: 1.64k]
  ------------------
  138|  1.45k|               return;
  139|  1.45k|            }
  140|       |
  141|  1.64k|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 65, False: 1.58k]
  ------------------
  142|     65|               jsonrpc::write_response<Opts>(value, state);
  143|     65|            }
  144|  1.58k|            else {
  145|  1.58k|               jsonrpc::write_response<Opts>(state);
  146|  1.58k|            }
  147|  1.64k|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__18optionalIdEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_ENKUlSE_E_clIS6_EEDaSE_:
  132|  2.16k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  2.16k|      {
   99|  2.16k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 0, False: 2.16k]
  ------------------
  100|      0|            return true; // No params to read
  101|      0|         }
  102|       |
  103|  2.16k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  2.16k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 476, False: 1.69k]
  ------------------
  105|    476|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|    476|            return false;
  107|    476|         }
  108|  1.69k|         return true;
  109|  2.16k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__18optionalIdEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|     65|      {
   39|     65|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 65]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|     65|         std::string result_json;
   44|     65|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|     65|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 65]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|     65|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|     65|         state.response += result_json;
   56|     65|         state.response += R"(,"id":)";
   57|     65|         state.response += write_json(state.id).value_or("null");
   58|     65|         state.response += "}";
   59|     65|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_variable_endpointINSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  244|  79.7k|      {
  245|  79.7k|         register_read_write_endpoint(path, var, reg);
  246|  79.7k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_:
  128|  79.7k|      {
  129|  79.7k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  79.7k|            if (state.has_body()) {
  131|  79.7k|               if (!detail::read_and_commit(value,
  132|  79.7k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|  79.7k|                  return;
  134|  79.7k|               }
  135|  79.7k|            }
  136|       |
  137|  79.7k|            if (state.notify()) {
  138|  79.7k|               return;
  139|  79.7k|            }
  140|       |
  141|  79.7k|            if (!state.has_body()) {
  142|  79.7k|               jsonrpc::write_response<Opts>(value, state);
  143|  79.7k|            }
  144|  79.7k|            else {
  145|  79.7k|               jsonrpc::write_response<Opts>(state);
  146|  79.7k|            }
  147|  79.7k|         };
  148|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESP_:
  129|  2.35k|         reg.endpoints[path] = [&value](jsonrpc::state&& state) mutable {
  130|  2.35k|            if (state.has_body()) {
  ------------------
  |  Branch (130:17): [True: 1.23k, False: 1.11k]
  ------------------
  131|  1.23k|               if (!detail::read_and_commit(value,
  ------------------
  |  Branch (131:20): [True: 794, False: 445]
  ------------------
  132|  1.23k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
  133|    794|                  return;
  134|    794|               }
  135|  1.23k|            }
  136|       |
  137|  1.55k|            if (state.notify()) {
  ------------------
  |  Branch (137:17): [True: 1.09k, False: 467]
  ------------------
  138|  1.09k|               return;
  139|  1.09k|            }
  140|       |
  141|    467|            if (!state.has_body()) {
  ------------------
  |  Branch (141:17): [True: 84, False: 383]
  ------------------
  142|     84|               jsonrpc::write_response<Opts>(value, state);
  143|     84|            }
  144|    383|            else {
  145|    383|               jsonrpc::write_response<Opts>(state);
  146|    383|            }
  147|    467|         };
_ZZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointINSt3__17variantIJNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESP_ENKUlSK_E_clISE_EEDaSK_:
  132|  1.23k|                                            [&](auto& target) { return jsonrpc::read_params<Opts>(target, state); })) {
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  1.23k|      {
   99|  1.23k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 0, False: 1.23k]
  ------------------
  100|      0|            return true; // No params to read
  101|      0|         }
  102|       |
  103|  1.23k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  1.23k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 794, False: 445]
  ------------------
  105|    794|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|    794|            return false;
  107|    794|         }
  108|    445|         return true;
  109|  1.23k|      }
_ZN3glz7jsonrpc14write_responseITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__17variantIJNS3_12basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEETkNS0_8is_stateERNS0_5stateEEEvOT0_OT1_:
   38|     84|      {
   39|     84|         if (state.notify()) {
  ------------------
  |  Branch (39:14): [True: 0, False: 84]
  ------------------
   40|      0|            return; // No response for notifications
   41|      0|         }
   42|       |
   43|     84|         std::string result_json;
   44|     84|         auto ec = write<Opts>(std::forward<Value>(value), result_json);
   45|     84|         if (ec) {
  ------------------
  |  Branch (45:14): [True: 0, False: 84]
  ------------------
   46|       |            // Write error response
   47|      0|            state.response =
   48|      0|               R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":"Failed to serialize result"},"id":)";
   49|      0|            state.response += write_json(state.id).value_or("null");
   50|      0|            state.response += "}";
   51|      0|            return;
   52|      0|         }
   53|       |
   54|     84|         state.response = R"({"jsonrpc":"2.0","result":)";
   55|     84|         state.response += result_json;
   56|     84|         state.response += R"(,"id":)";
   57|     84|         state.response += write_json(state.id).value_or("null");
   58|     84|         state.response += "}";
   59|     84|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFiiEEEiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  182|  79.7k|      {
  183|  79.7k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  79.7k|            static thread_local std::decay_t<Params> params{};
  185|  79.7k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  79.7k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  187|  79.7k|               return;
  188|  79.7k|            }
  189|       |
  190|  79.7k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  79.7k|            if (state.notify()) {
  193|  79.7k|               if constexpr (std::same_as<Result, void>) {
  194|  79.7k|                  func(params);
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  std::ignore = func(params);
  198|  79.7k|               }
  199|  79.7k|               return;
  200|  79.7k|            }
  201|  79.7k|            if constexpr (std::same_as<Result, void>) {
  202|  79.7k|               func(params);
  203|  79.7k|               jsonrpc::write_response<Opts>(state);
  204|  79.7k|            }
  205|  79.7k|            else {
  206|  79.7k|               auto ret = func(params);
  207|  79.7k|               jsonrpc::write_response<Opts>(ret, state);
  208|  79.7k|            }
  209|  79.7k|         };
  210|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFiiEEEiNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESL_:
  183|  1.47k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  1.47k|            static thread_local std::decay_t<Params> params{};
  185|  1.47k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  1.47k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (186:17): [True: 236, False: 1.24k]
  ------------------
  187|    236|               return;
  188|    236|            }
  189|       |
  190|  1.24k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  1.24k|            if (state.notify()) {
  ------------------
  |  Branch (192:17): [True: 888, False: 355]
  ------------------
  193|       |               if constexpr (std::same_as<Result, void>) {
  194|       |                  func(params);
  195|       |               }
  196|    888|               else {
  197|    888|                  std::ignore = func(params);
  198|    888|               }
  199|    888|               return;
  200|    888|            }
  201|       |            if constexpr (std::same_as<Result, void>) {
  202|       |               func(params);
  203|       |               jsonrpc::write_response<Opts>(state);
  204|       |            }
  205|    355|            else {
  206|    355|               auto ret = func(params);
  207|    355|               jsonrpc::write_response<Opts>(ret, state);
  208|    355|            }
  209|    355|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSB_EEESD_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT1_:
  182|  79.7k|      {
  183|  79.7k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  79.7k|            static thread_local std::decay_t<Params> params{};
  185|  79.7k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  79.7k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  187|  79.7k|               return;
  188|  79.7k|            }
  189|       |
  190|  79.7k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  79.7k|            if (state.notify()) {
  193|  79.7k|               if constexpr (std::same_as<Result, void>) {
  194|  79.7k|                  func(params);
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  std::ignore = func(params);
  198|  79.7k|               }
  199|  79.7k|               return;
  200|  79.7k|            }
  201|  79.7k|            if constexpr (std::same_as<Result, void>) {
  202|  79.7k|               func(params);
  203|  79.7k|               jsonrpc::write_response<Opts>(state);
  204|  79.7k|            }
  205|  79.7k|            else {
  206|  79.7k|               auto ret = func(params);
  207|  79.7k|               jsonrpc::write_response<Opts>(ret, state);
  208|  79.7k|            }
  209|  79.7k|         };
  210|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFNS4_12basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEERKSB_EEESD_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcS8_EERT_RT1_ENUlONS_7jsonrpc5stateEE_clESR_:
  183|  3.45k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  3.45k|            static thread_local std::decay_t<Params> params{};
  185|  3.45k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  3.45k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (186:17): [True: 469, False: 2.98k]
  ------------------
  187|    469|               return;
  188|    469|            }
  189|       |
  190|  2.98k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  2.98k|            if (state.notify()) {
  ------------------
  |  Branch (192:17): [True: 2.24k, False: 746]
  ------------------
  193|       |               if constexpr (std::same_as<Result, void>) {
  194|       |                  func(params);
  195|       |               }
  196|  2.24k|               else {
  197|  2.24k|                  std::ignore = func(params);
  198|  2.24k|               }
  199|  2.24k|               return;
  200|  2.24k|            }
  201|       |            if constexpr (std::same_as<Result, void>) {
  202|       |               func(params);
  203|       |               jsonrpc::write_response<Opts>(state);
  204|       |            }
  205|    746|            else {
  206|    746|               auto ret = func(params);
  207|    746|               jsonrpc::write_response<Opts>(ret, state);
  208|    746|            }
  209|    746|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFN12jsonrpc_fuzz5pointERKS7_EEES9_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  182|  79.7k|      {
  183|  79.7k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  79.7k|            static thread_local std::decay_t<Params> params{};
  185|  79.7k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  79.7k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  187|  79.7k|               return;
  188|  79.7k|            }
  189|       |
  190|  79.7k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  79.7k|            if (state.notify()) {
  193|  79.7k|               if constexpr (std::same_as<Result, void>) {
  194|  79.7k|                  func(params);
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  std::ignore = func(params);
  198|  79.7k|               }
  199|  79.7k|               return;
  200|  79.7k|            }
  201|  79.7k|            if constexpr (std::same_as<Result, void>) {
  202|  79.7k|               func(params);
  203|  79.7k|               jsonrpc::write_response<Opts>(state);
  204|  79.7k|            }
  205|  79.7k|            else {
  206|  79.7k|               auto ret = func(params);
  207|  79.7k|               jsonrpc::write_response<Opts>(ret, state);
  208|  79.7k|            }
  209|  79.7k|         };
  210|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFN12jsonrpc_fuzz5pointERKS7_EEES9_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESP_:
  183|  1.71k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  1.71k|            static thread_local std::decay_t<Params> params{};
  185|  1.71k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  1.71k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (186:17): [True: 498, False: 1.21k]
  ------------------
  187|    498|               return;
  188|    498|            }
  189|       |
  190|  1.21k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  1.21k|            if (state.notify()) {
  ------------------
  |  Branch (192:17): [True: 1.03k, False: 181]
  ------------------
  193|       |               if constexpr (std::same_as<Result, void>) {
  194|       |                  func(params);
  195|       |               }
  196|  1.03k|               else {
  197|  1.03k|                  std::ignore = func(params);
  198|  1.03k|               }
  199|  1.03k|               return;
  200|  1.03k|            }
  201|       |            if constexpr (std::same_as<Result, void>) {
  202|       |               func(params);
  203|       |               jsonrpc::write_response<Opts>(state);
  204|       |            }
  205|    181|            else {
  206|    181|               auto ret = func(params);
  207|    181|               jsonrpc::write_response<Opts>(ret, state);
  208|    181|            }
  209|    181|         };
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFdRNS4_6vectorIdNS4_9allocatorIdEEEEEEESA_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  182|  79.7k|      {
  183|  79.7k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  79.7k|            static thread_local std::decay_t<Params> params{};
  185|  79.7k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  79.7k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  187|  79.7k|               return;
  188|  79.7k|            }
  189|       |
  190|  79.7k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  79.7k|            if (state.notify()) {
  193|  79.7k|               if constexpr (std::same_as<Result, void>) {
  194|  79.7k|                  func(params);
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  std::ignore = func(params);
  198|  79.7k|               }
  199|  79.7k|               return;
  200|  79.7k|            }
  201|  79.7k|            if constexpr (std::same_as<Result, void>) {
  202|  79.7k|               func(params);
  203|  79.7k|               jsonrpc::write_response<Opts>(state);
  204|  79.7k|            }
  205|  79.7k|            else {
  206|  79.7k|               auto ret = func(params);
  207|  79.7k|               jsonrpc::write_response<Opts>(ret, state);
  208|  79.7k|            }
  209|  79.7k|         };
  210|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE32register_param_function_endpointIRNSt3__18functionIFdRNS4_6vectorIdNS4_9allocatorIdEEEEEEESA_NS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESQ_:
  183|  5.86k|         reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  184|  5.86k|            static thread_local std::decay_t<Params> params{};
  185|  5.86k|            params = {}; // reset to avoid stale optional/variant fields across calls
  186|  5.86k|            if (!jsonrpc::read_params<Opts>(params, state)) {
  ------------------
  |  Branch (186:17): [True: 1.58k, False: 4.28k]
  ------------------
  187|  1.58k|               return;
  188|  1.58k|            }
  189|       |
  190|  4.28k|            using Result = std::invoke_result_t<decltype(func), Params>;
  191|       |
  192|  4.28k|            if (state.notify()) {
  ------------------
  |  Branch (192:17): [True: 2.37k, False: 1.91k]
  ------------------
  193|       |               if constexpr (std::same_as<Result, void>) {
  194|       |                  func(params);
  195|       |               }
  196|  2.37k|               else {
  197|  2.37k|                  std::ignore = func(params);
  198|  2.37k|               }
  199|  2.37k|               return;
  200|  2.37k|            }
  201|       |            if constexpr (std::same_as<Result, void>) {
  202|       |               func(params);
  203|       |               jsonrpc::write_response<Opts>(state);
  204|       |            }
  205|  1.91k|            else {
  206|  1.91k|               auto ret = func(params);
  207|  1.91k|               jsonrpc::write_response<Opts>(ret, state);
  208|  1.91k|            }
  209|  1.91k|         };
_ZN3glz7jsonrpc11read_paramsITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERNSt3__16vectorIdNS3_9allocatorIdEEEETkNS0_8is_stateERNS0_5stateEEEbOT0_OT1_:
   98|  5.86k|      {
   99|  5.86k|         if (!state.has_body()) {
  ------------------
  |  Branch (99:14): [True: 2.36k, False: 3.50k]
  ------------------
  100|  2.36k|            return true; // No params to read
  101|  2.36k|         }
  102|       |
  103|  3.50k|         auto ec = read<Opts>(std::forward<Value>(value), state.params_json);
  104|  3.50k|         if (ec) {
  ------------------
  |  Branch (104:14): [True: 1.58k, False: 1.91k]
  ------------------
  105|  1.58k|            write_error(state, rpc::error_e::invalid_params, "Invalid params", format_error(ec, state.params_json));
  106|  1.58k|            return false;
  107|  1.58k|         }
  108|  1.91k|         return true;
  109|  3.50k|      }
_ZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_function_endpointIRNSt3__18functionIFvvEEEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_:
  159|  79.7k|      {
  160|  79.7k|         if constexpr (std::same_as<Result, void>) {
  161|  79.7k|            reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  162|  79.7k|               func();
  163|  79.7k|               if (state.notify()) {
  164|  79.7k|                  return;
  165|  79.7k|               }
  166|  79.7k|               jsonrpc::write_response<Opts>(state);
  167|  79.7k|            };
  168|       |         }
  169|       |         else {
  170|       |            reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  171|       |               if (state.notify()) {
  172|       |                  std::ignore = func();
  173|       |                  return;
  174|       |               }
  175|       |               jsonrpc::write_response<Opts>(func(), state);
  176|       |            };
  177|       |         }
  178|  79.7k|      }
_ZZN3glz13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE26register_function_endpointIRNSt3__18functionIFvvEEEvNS_8registryIXtlS1_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS4_17basic_string_viewIcNS4_11char_traitsIcEEEERT_RT1_ENUlONS_7jsonrpc5stateEE_clESL_:
  161|    792|            reg.endpoints[path] = [&func](jsonrpc::state&& state) mutable {
  162|    792|               func();
  163|    792|               if (state.notify()) {
  ------------------
  |  Branch (163:20): [True: 457, False: 335]
  ------------------
  164|    457|                  return;
  165|    457|               }
  166|    335|               jsonrpc::write_response<Opts>(state);
  167|    335|            };

_ZN3glz6detail15read_and_commitIiZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIiNS_8registryIXtlS3_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_EUlSE_E_EEbSE_OSF_:
   87|    329|   {
   88|    329|      if constexpr (stageable_v<T>) {
   89|    329|         T staged = value;
   90|    329|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 219, False: 110]
  ------------------
   91|    219|            return false;
   92|    219|         }
   93|    110|         value = std::move(staged);
   94|    110|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|    329|   }
_ZN3glz6detail15read_and_commitIN12jsonrpc_fuzz8fuzz_apiEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIS3_NS_8registryIXtlS5_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_EUlSG_E_EEbSG_OSH_:
   87|  9.17k|   {
   88|  9.17k|      if constexpr (stageable_v<T>) {
   89|  9.17k|         T staged = value;
   90|  9.17k|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 7.98k, False: 1.19k]
  ------------------
   91|  7.98k|            return false;
   92|  7.98k|         }
   93|  1.19k|         value = std::move(staged);
   94|  1.19k|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|  9.17k|   }
_ZN3glz6detail15read_and_commitINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIS8_NS_8registryIXtlSA_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS2_17basic_string_viewIcS5_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESN_EUlSI_E_EEbSI_OSJ_:
   87|    249|   {
   88|    249|      if constexpr (stageable_v<T>) {
   89|    249|         T staged = value;
   90|    249|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 153, False: 96]
  ------------------
   91|    153|            return false;
   92|    153|         }
   93|     96|         value = std::move(staged);
   94|     96|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|    249|   }
_ZN3glz6detail15read_and_commitIdZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIdNS_8registryIXtlS3_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNS8_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESJ_EUlSE_E_EEbSE_OSF_:
   87|    654|   {
   88|    654|      if constexpr (stageable_v<T>) {
   89|    654|         T staged = value;
   90|    654|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 193, False: 461]
  ------------------
   91|    193|            return false;
   92|    193|         }
   93|    461|         value = std::move(staged);
   94|    461|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|    654|   }
_ZN3glz6detail15read_and_commitIN12jsonrpc_fuzz5pointEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIS3_NS_8registryIXtlS5_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_EUlSG_E_EEbSG_OSH_:
   87|    327|   {
   88|    327|      if constexpr (stageable_v<T>) {
   89|    327|         T staged = value;
   90|    327|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 316, False: 11]
  ------------------
   91|    316|            return false;
   92|    316|         }
   93|     11|         value = std::move(staged);
   94|     11|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|    327|   }
_ZN3glz6detail15read_and_commitIN12jsonrpc_fuzz6nestedEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIS3_NS_8registryIXtlS5_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNSt3__117basic_string_viewIcNSA_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_EUlSG_E_EEbSG_OSH_:
   87|  1.68k|   {
   88|  1.68k|      if constexpr (stageable_v<T>) {
   89|  1.68k|         T staged = value;
   90|  1.68k|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 1.38k, False: 295]
  ------------------
   91|  1.38k|            return false;
   92|  1.38k|         }
   93|    295|         value = std::move(staged);
   94|    295|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|  1.68k|   }
_ZN3glz6detail15read_and_commitINSt3__16vectorIiNS2_9allocatorIiEEEEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIS6_NS_8registryIXtlS8_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS2_17basic_string_viewIcNS2_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESN_EUlSI_E_EEbSI_OSJ_:
   87|  1.79k|   {
   88|  1.79k|      if constexpr (stageable_v<T>) {
   89|  1.79k|         T staged = value;
   90|  1.79k|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 1.33k, False: 466]
  ------------------
   91|  1.33k|            return false;
   92|  1.33k|         }
   93|    466|         value = std::move(staged);
   94|    466|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|  1.79k|   }
_ZN3glz6detail15read_and_commitINSt3__13mapINS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEiNS2_4lessIS9_EENS7_INS2_4pairIKS9_iEEEEEEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointISG_NS_8registryIXtlSI_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS2_17basic_string_viewIcS6_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESV_EUlSQ_E_EEbSQ_OSR_:
   87|  1.71k|   {
   88|  1.71k|      if constexpr (stageable_v<T>) {
   89|  1.71k|         T staged = value;
   90|  1.71k|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 1.29k, False: 419]
  ------------------
   91|  1.29k|            return false;
   92|  1.29k|         }
   93|    419|         value = std::move(staged);
   94|    419|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|  1.71k|   }
_ZN3glz6detail15read_and_commitINSt3__18optionalIdEEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointIS4_NS_8registryIXtlS6_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS2_17basic_string_viewIcNS2_11char_traitsIcEEEERT_RT0_ENUlONS_7jsonrpc5stateEE_clESL_EUlSG_E_EEbSG_OSH_:
   87|  2.16k|   {
   88|  2.16k|      if constexpr (stageable_v<T>) {
   89|  2.16k|         T staged = value;
   90|  2.16k|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 476, False: 1.69k]
  ------------------
   91|    476|            return false;
   92|    476|         }
   93|  1.69k|         value = std::move(staged);
   94|  1.69k|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|  2.16k|   }
_ZN3glz6detail15read_and_commitINSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEEZZNS_13registry_implIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEELj30200EE28register_read_write_endpointISC_NS_8registryIXtlSE_Lj10ELb1ELb0ELb1ELb1EEELj30200EEEEEvNS2_17basic_string_viewIcS6_EERT_RT0_ENUlONS_7jsonrpc5stateEE_clESR_EUlSM_E_EEbSM_OSN_:
   87|  1.23k|   {
   88|  1.23k|      if constexpr (stageable_v<T>) {
   89|  1.23k|         T staged = value;
   90|  1.23k|         if (!read_into(staged)) {
  ------------------
  |  Branch (90:14): [True: 794, False: 445]
  ------------------
   91|    794|            return false;
   92|    794|         }
   93|    445|         value = std::move(staged);
   94|    445|         return true;
   95|       |      }
   96|       |      else {
   97|       |         return read_into(value);
   98|       |      }
   99|  1.23k|   }

jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  307|  79.7k|      {
  308|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|  79.7k|         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|  79.7k|            impl::register_endpoint(root, value, *this);
  312|  79.7k|         }
  313|       |
  314|  79.7k|         register_members<root, T, parent>(value);
  315|  79.7k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  176|  79.7k|      {
  177|  79.7k|         using namespace glz::detail;
  178|  79.7k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  79.7k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  79.7k|               return to_tie(value);
  183|  79.7k|            }
  184|  79.7k|            else {
  185|  79.7k|               return nullptr;
  186|  79.7k|            }
  187|  79.7k|         }();
  188|       |
  189|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|  79.7k|            if constexpr (std::is_invocable_v<Func>) {
  215|  79.7k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  79.7k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  79.7k|            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  79.7k|            }
  227|  79.7k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  79.7k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  79.7k|            }
  237|  79.7k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  79.7k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  79.7k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  79.7k|               if (func) { // Only traverse if pointer is valid
  242|  79.7k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  79.7k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  79.7k|                     full_key, *func, *this);
  245|  79.7k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  79.7k|            }
  248|  79.7k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  79.7k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  79.7k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  79.7k|            }
  253|  79.7k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  79.7k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  79.7k|            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  79.7k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  79.7k|                  using F = std::decay_t<Func>;
  262|  79.7k|                  using Ret = typename return_type<F>::type;
  263|  79.7k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  79.7k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  79.7k|                  if constexpr (std::is_void_v<Ret>) {
  266|  79.7k|                     if constexpr (n_args == 0) {
  267|  79.7k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  79.7k|                     }
  269|  79.7k|                     else if constexpr (n_args == 1) {
  270|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  79.7k|                                                                                                        func, *this);
  273|  79.7k|                     }
  274|  79.7k|                     else {
  275|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  79.7k|                     }
  277|  79.7k|                  }
  278|  79.7k|                  else {
  279|       |                     // Member function pointers
  280|  79.7k|                     if constexpr (n_args == 0) {
  281|  79.7k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  79.7k|                     }
  283|  79.7k|                     else if constexpr (n_args == 1) {
  284|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  79.7k|                                                                                                       func, *this);
  287|  79.7k|                     }
  288|  79.7k|                     else {
  289|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  79.7k|                     }
  291|  79.7k|                  }
  292|  79.7k|               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
  300|  79.7k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlvE_clEv:
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|       |            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|       |               return to_tie(value);
  183|       |            }
  184|  79.7k|            else {
  185|  79.7k|               return nullptr;
  186|  79.7k|            }
  187|  79.7k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi0EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi0EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi1EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  79.7k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  79.7k|                  using F = std::decay_t<Func>;
  262|  79.7k|                  using Ret = typename return_type<F>::type;
  263|  79.7k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  79.7k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|  79.7k|                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|  79.7k|                     else if constexpr (n_args == 1) {
  284|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  79.7k|                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|  79.7k|                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi1EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi2EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  79.7k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  79.7k|                  using F = std::decay_t<Func>;
  262|  79.7k|                  using Ret = typename return_type<F>::type;
  263|  79.7k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  79.7k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  79.7k|                  if constexpr (std::is_void_v<Ret>) {
  266|  79.7k|                     if constexpr (n_args == 0) {
  267|  79.7k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi2EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi3EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  79.7k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  79.7k|                  using F = std::decay_t<Func>;
  262|  79.7k|                  using Ret = typename return_type<F>::type;
  263|  79.7k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  79.7k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|  79.7k|                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|  79.7k|                     else if constexpr (n_args == 1) {
  284|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  79.7k|                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|  79.7k|                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILi3EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|       |               if constexpr (reflectable<T>) {
  194|       |                  return get_member(value, get<I>(t));
  195|       |               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  307|  79.7k|      {
  308|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|  79.7k|         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|  79.7k|            impl::register_endpoint(root, value, *this);
  312|  79.7k|         }
  313|       |
  314|  79.7k|         register_members<root, T, parent>(value);
  315|  79.7k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_:
  176|  79.7k|      {
  177|  79.7k|         using namespace glz::detail;
  178|  79.7k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  79.7k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  79.7k|               return to_tie(value);
  183|  79.7k|            }
  184|  79.7k|            else {
  185|  79.7k|               return nullptr;
  186|  79.7k|            }
  187|  79.7k|         }();
  188|       |
  189|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|  79.7k|            if constexpr (std::is_invocable_v<Func>) {
  215|  79.7k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  79.7k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  79.7k|            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  79.7k|            }
  227|  79.7k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  79.7k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  79.7k|            }
  237|  79.7k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  79.7k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  79.7k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  79.7k|               if (func) { // Only traverse if pointer is valid
  242|  79.7k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  79.7k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  79.7k|                     full_key, *func, *this);
  245|  79.7k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  79.7k|            }
  248|  79.7k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  79.7k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  79.7k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  79.7k|            }
  253|  79.7k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  79.7k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  79.7k|            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  79.7k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  79.7k|                  using F = std::decay_t<Func>;
  262|  79.7k|                  using Ret = typename return_type<F>::type;
  263|  79.7k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  79.7k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  79.7k|                  if constexpr (std::is_void_v<Ret>) {
  266|  79.7k|                     if constexpr (n_args == 0) {
  267|  79.7k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  79.7k|                     }
  269|  79.7k|                     else if constexpr (n_args == 1) {
  270|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  79.7k|                                                                                                        func, *this);
  273|  79.7k|                     }
  274|  79.7k|                     else {
  275|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  79.7k|                     }
  277|  79.7k|                  }
  278|  79.7k|                  else {
  279|       |                     // Member function pointers
  280|  79.7k|                     if constexpr (n_args == 0) {
  281|  79.7k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  79.7k|                     }
  283|  79.7k|                     else if constexpr (n_args == 1) {
  284|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  79.7k|                                                                                                       func, *this);
  287|  79.7k|                     }
  288|  79.7k|                     else {
  289|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  79.7k|                     }
  291|  79.7k|                  }
  292|  79.7k|               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
  300|  79.7k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlvE_clEv:
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  79.7k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  79.7k|               return to_tie(value);
  183|       |            }
  184|       |            else {
  185|       |               return nullptr;
  186|       |            }
  187|  79.7k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm0EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm0EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm1EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm1EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm2EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|  79.7k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  79.7k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  79.7k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm2EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS2_16register_membersIL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_:
  307|  79.7k|      {
  308|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|       |         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|       |            impl::register_endpoint(root, value, *this);
  312|       |         }
  313|       |
  314|  79.7k|         register_members<root, T, parent>(value);
  315|  79.7k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_:
  176|  79.7k|      {
  177|  79.7k|         using namespace glz::detail;
  178|  79.7k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  79.7k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  79.7k|               return to_tie(value);
  183|  79.7k|            }
  184|  79.7k|            else {
  185|  79.7k|               return nullptr;
  186|  79.7k|            }
  187|  79.7k|         }();
  188|       |
  189|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|  79.7k|            if constexpr (std::is_invocable_v<Func>) {
  215|  79.7k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  79.7k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  79.7k|            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  79.7k|            }
  227|  79.7k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  79.7k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  79.7k|            }
  237|  79.7k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  79.7k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  79.7k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  79.7k|               if (func) { // Only traverse if pointer is valid
  242|  79.7k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  79.7k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  79.7k|                     full_key, *func, *this);
  245|  79.7k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  79.7k|            }
  248|  79.7k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  79.7k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  79.7k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  79.7k|            }
  253|  79.7k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  79.7k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  79.7k|            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  79.7k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  79.7k|                  using F = std::decay_t<Func>;
  262|  79.7k|                  using Ret = typename return_type<F>::type;
  263|  79.7k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  79.7k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  79.7k|                  if constexpr (std::is_void_v<Ret>) {
  266|  79.7k|                     if constexpr (n_args == 0) {
  267|  79.7k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  79.7k|                     }
  269|  79.7k|                     else if constexpr (n_args == 1) {
  270|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  79.7k|                                                                                                        func, *this);
  273|  79.7k|                     }
  274|  79.7k|                     else {
  275|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  79.7k|                     }
  277|  79.7k|                  }
  278|  79.7k|                  else {
  279|       |                     // Member function pointers
  280|  79.7k|                     if constexpr (n_args == 0) {
  281|  79.7k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  79.7k|                     }
  283|  79.7k|                     else if constexpr (n_args == 1) {
  284|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  79.7k|                                                                                                       func, *this);
  287|  79.7k|                     }
  288|  79.7k|                     else {
  289|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  79.7k|                     }
  291|  79.7k|                  }
  292|  79.7k|               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
  300|  79.7k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlvE_clEv:
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  79.7k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  79.7k|               return to_tie(value);
  183|       |            }
  184|       |            else {
  185|       |               return nullptr;
  186|       |            }
  187|  79.7k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm3EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|  79.7k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  79.7k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  79.7k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm3EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE2onIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS2_16register_membersIL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_:
  307|  79.7k|      {
  308|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  309|       |
  310|       |         if constexpr (parent == root && (glaze_object_t<T> || reflectable<T>)) {
  311|       |            impl::register_endpoint(root, value, *this);
  312|       |         }
  313|       |
  314|  79.7k|         register_members<root, T, parent>(value);
  315|  79.7k|      }
jsonrpc_registry.cpp:_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_:
  176|  79.7k|      {
  177|  79.7k|         using namespace glz::detail;
  178|  79.7k|         static constexpr auto N = reflect<T>::size;
  179|       |
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  79.7k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  79.7k|               return to_tie(value);
  183|  79.7k|            }
  184|  79.7k|            else {
  185|  79.7k|               return nullptr;
  186|  79.7k|            }
  187|  79.7k|         }();
  188|       |
  189|  79.7k|         using impl = registry_impl<read_opts, Proto>;
  190|       |
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|  79.7k|            if constexpr (std::is_invocable_v<Func>) {
  215|  79.7k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  79.7k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|  79.7k|            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|  79.7k|            }
  227|  79.7k|            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|  79.7k|               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|  79.7k|            }
  237|  79.7k|            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|  79.7k|                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|  79.7k|                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|  79.7k|               if (func) { // Only traverse if pointer is valid
  242|  79.7k|                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|  79.7k|                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|  79.7k|                     full_key, *func, *this);
  245|  79.7k|               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|  79.7k|            }
  248|  79.7k|            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|  79.7k|               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|  79.7k|               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|  79.7k|            }
  253|  79.7k|            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|  79.7k|               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|  79.7k|            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|  79.7k|               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|  79.7k|                  using F = std::decay_t<Func>;
  262|  79.7k|                  using Ret = typename return_type<F>::type;
  263|  79.7k|                  using Tuple = typename inputs_as_tuple<F>::type;
  264|  79.7k|                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|  79.7k|                  if constexpr (std::is_void_v<Ret>) {
  266|  79.7k|                     if constexpr (n_args == 0) {
  267|  79.7k|                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|  79.7k|                     }
  269|  79.7k|                     else if constexpr (n_args == 1) {
  270|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|  79.7k|                                                                                                        func, *this);
  273|  79.7k|                     }
  274|  79.7k|                     else {
  275|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|  79.7k|                     }
  277|  79.7k|                  }
  278|  79.7k|                  else {
  279|       |                     // Member function pointers
  280|  79.7k|                     if constexpr (n_args == 0) {
  281|  79.7k|                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|  79.7k|                     }
  283|  79.7k|                     else if constexpr (n_args == 1) {
  284|  79.7k|                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|  79.7k|                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|  79.7k|                                                                                                       func, *this);
  287|  79.7k|                     }
  288|  79.7k|                     else {
  289|  79.7k|                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|  79.7k|                     }
  291|  79.7k|                  }
  292|  79.7k|               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
  300|  79.7k|      }
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlvE_clEv:
  180|  79.7k|         [[maybe_unused]] decltype(auto) t = [&]() -> decltype(auto) {
  181|  79.7k|            if constexpr (reflectable<T> && requires { to_tie(value); }) {
  182|  79.7k|               return to_tie(value);
  183|       |            }
  184|       |            else {
  185|       |               return nullptr;
  186|       |            }
  187|  79.7k|         }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi0EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS3_IL_ZNS4_L10empty_pathEENS5_8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS8_E11reflectableIS8_EEEvSA_ENKUlTnDavE_clILi1EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm4EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm4EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm5EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm5EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm6EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm6EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm7EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|  79.7k|            else {
  258|  79.7k|               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|  79.7k|               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|  79.7k|                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|  79.7k|               }
  298|  79.7k|            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm7EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm8EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm8EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm9EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm9EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm10EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm10EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm11EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|       |            if constexpr (std::is_invocable_v<Func>) {
  215|       |               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|       |               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|  79.7k|            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|  79.7k|               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|  79.7k|               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|  79.7k|               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|  79.7k|               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|  79.7k|               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm11EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
jsonrpc_registry.cpp:_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm12EEEDav:
  191|  79.7k|         for_each<N>([&]<auto I>() {
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|  79.7k|               }
  196|  79.7k|               else {
  197|  79.7k|                  return get_member(value, get<I>(reflect<T>::values));
  198|  79.7k|               }
  199|  79.7k|            }();
  200|       |
  201|  79.7k|            static constexpr auto key = reflect<T>::keys[I];
  202|       |
  203|  79.7k|            static constexpr std::string_view full_key = [&] {
  204|  79.7k|               if constexpr (parent == detail::empty_path) {
  205|  79.7k|                  return join_v<chars<"/">, key>;
  206|  79.7k|               }
  207|  79.7k|               else {
  208|  79.7k|                  return join_v<parent, chars<"/">, key>;
  209|  79.7k|               }
  210|  79.7k|            }();
  211|       |
  212|       |            // This logic chain should match glz::cli_menu
  213|  79.7k|            using Func = decltype(func);
  214|  79.7k|            if constexpr (std::is_invocable_v<Func>) {
  215|  79.7k|               using Result = std::decay_t<std::invoke_result_t<Func>>;
  216|  79.7k|               impl::template register_function_endpoint<Func, Result>(full_key, func, *this);
  217|       |            }
  218|       |            else if constexpr (is_invocable_concrete<std::remove_cvref_t<Func>>) {
  219|       |               using Tuple = invocable_args_t<std::remove_cvref_t<Func>>;
  220|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  221|       |               static_assert(N == 1, "Only one input is allowed for your function");
  222|       |
  223|       |               using Params = glz::tuple_element_t<0, Tuple>;
  224|       |
  225|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  226|       |            }
  227|       |            else if constexpr (is_function_ptr_invocable<std::remove_cvref_t<Func>>) {
  228|       |               // Handle function pointers with arguments (e.g., void(*)(int))
  229|       |               using Tuple = function_ptr_args_t<std::remove_cvref_t<Func>>;
  230|       |               constexpr auto N = glz::tuple_size_v<Tuple>;
  231|       |               static_assert(N == 1, "Only one input is allowed for your function pointer");
  232|       |
  233|       |               using Params = glz::tuple_element_t<0, Tuple>;
  234|       |
  235|       |               impl::template register_param_function_endpoint<Func, Params>(full_key, func, *this);
  236|       |            }
  237|       |            else if constexpr (std::is_pointer_v<std::remove_cvref_t<Func>> &&
  238|       |                               (glaze_object_t<std::remove_pointer_t<std::remove_cvref_t<Func>>> ||
  239|       |                                reflectable<std::remove_pointer_t<std::remove_cvref_t<Func>>>)) {
  240|       |               // Handle pointer members explicitly for RPC traversal
  241|       |               if (func) { // Only traverse if pointer is valid
  242|       |                  on<root, std::remove_pointer_t<std::remove_cvref_t<Func>>, full_key>(*func);
  243|       |                  impl::template register_object_endpoint<std::remove_pointer_t<std::remove_cvref_t<Func>>>(
  244|       |                     full_key, *func, *this);
  245|       |               }
  246|       |               // else: skip registration for null pointers - no endpoints created
  247|       |            }
  248|       |            else if constexpr (glaze_object_t<std::remove_cvref_t<Func>> || reflectable<std::remove_cvref_t<Func>>) {
  249|       |               on<root, std::remove_cvref_t<Func>, full_key>(func);
  250|       |
  251|       |               impl::template register_object_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  252|       |            }
  253|       |            else if constexpr (not std::is_lvalue_reference_v<Func>) {
  254|       |               // For glz::custom, glz::manage, etc.
  255|       |               impl::template register_value_endpoint<std::remove_cvref_t<Func>>(full_key, func, *this);
  256|       |            }
  257|       |            else {
  258|       |               static_assert(std::is_lvalue_reference_v<Func>);
  259|       |
  260|       |               if constexpr (std::is_member_function_pointer_v<std::decay_t<Func>>) {
  261|       |                  using F = std::decay_t<Func>;
  262|       |                  using Ret = typename return_type<F>::type;
  263|       |                  using Tuple = typename inputs_as_tuple<F>::type;
  264|       |                  constexpr auto n_args = glz::tuple_size_v<Tuple>;
  265|       |                  if constexpr (std::is_void_v<Ret>) {
  266|       |                     if constexpr (n_args == 0) {
  267|       |                        impl::template register_member_function_endpoint<T, F, void>(full_key, value, func, *this);
  268|       |                     }
  269|       |                     else if constexpr (n_args == 1) {
  270|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  271|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, void>(full_key, value,
  272|       |                                                                                                        func, *this);
  273|       |                     }
  274|       |                     else {
  275|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  276|       |                     }
  277|       |                  }
  278|       |                  else {
  279|       |                     // Member function pointers
  280|       |                     if constexpr (n_args == 0) {
  281|       |                        impl::template register_member_function_endpoint<T, F, Ret>(full_key, value, func, *this);
  282|       |                     }
  283|       |                     else if constexpr (n_args == 1) {
  284|       |                        using Input = std::decay_t<glz::tuple_element_t<0, Tuple>>;
  285|       |                        impl::template register_member_function_with_params_endpoint<T, F, Input, Ret>(full_key, value,
  286|       |                                                                                                       func, *this);
  287|       |                     }
  288|       |                     else {
  289|       |                        static_assert(false_v<Func>, "function cannot have more than one input");
  290|       |                     }
  291|       |                  }
  292|       |               }
  293|       |               else {
  294|       |                  // this is a variable and not a function, so we build RPC read/write calls
  295|       |                  // We can't remove const here, because const fields need to be able to be written
  296|       |                  impl::template register_variable_endpoint<std::remove_reference_t<Func>>(full_key, func, *this);
  297|       |               }
  298|       |            }
  299|  79.7k|         });
jsonrpc_registry.cpp:_ZZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS4_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS7_EEEvRT0_ENKUlTnDavE_clILm12EEEDavENKUlvE_clEv:
  192|  79.7k|            decltype(auto) func = [&]() -> decltype(auto) {
  193|  79.7k|               if constexpr (reflectable<T>) {
  194|  79.7k|                  return get_member(value, get<I>(t));
  195|       |               }
  196|       |               else {
  197|       |                  return get_member(value, get<I>(reflect<T>::values));
  198|       |               }
  199|  79.7k|            }();
_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE4callENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEE:
  514|  79.7k|      {
  515|       |         // Find first non-whitespace to determine batch vs single request
  516|  79.7k|         auto it = std::find_if(json_request.begin(), json_request.end(),
  517|  79.7k|                                [](char c) { return !std::isspace(static_cast<unsigned char>(c)); });
  518|       |
  519|  79.7k|         if (it != json_request.end() && *it == '[') {
  ------------------
  |  Branch (519:14): [True: 79.7k, False: 17]
  |  Branch (519:42): [True: 30.4k, False: 49.2k]
  ------------------
  520|       |            // Batch request
  521|  30.4k|            std::vector<glz::raw_json_view> batch_requests{};
  522|  30.4k|            if (const auto ec = glz::read<read_opts>(batch_requests, json_request); ec) {
  ------------------
  |  Branch (522:85): [True: 9.67k, False: 20.7k]
  ------------------
  523|  9.67k|               return R"({"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error","data":)" +
  524|  9.67k|                      write_json(format_error(ec, json_request)).value_or("null") + R"(},"id":null})";
  525|  9.67k|            }
  526|  20.7k|            if (batch_requests.empty()) {
  ------------------
  |  Branch (526:17): [True: 20, False: 20.7k]
  ------------------
  527|     20|               return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":"Empty batch"},"id":null})";
  528|     20|            }
  529|  20.7k|            return process_batch(batch_requests);
  530|  20.7k|         }
  531|       |
  532|       |         // Single request
  533|  49.3k|         auto response = process_single_request(json_request);
  534|  49.3k|         return response.value_or("");
  535|  79.7k|      }
_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE4callENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEEENKUlcE_clEc:
  517|  84.4k|                                [](char c) { return !std::isspace(static_cast<unsigned char>(c)); });
_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE13process_batchERKNSt3__16vectorINS_14basic_raw_jsonINS3_17basic_string_viewIcNS3_11char_traitsIcEEEEEENS3_9allocatorISA_EEEEQeqT0_L_ZNS_7JSONRPCEE:
  645|  20.7k|      {
  646|  20.7k|         std::vector<std::string> responses;
  647|  20.7k|         responses.reserve(batch.size());
  648|       |
  649|  20.7k|         size_t total_size = 2; // []
  650|  4.28M|         for (const auto& req : batch) {
  ------------------
  |  Branch (650:31): [True: 4.28M, False: 20.7k]
  ------------------
  651|  4.28M|            auto response = process_single_request(req.str);
  652|  4.28M|            if (response.has_value()) {
  ------------------
  |  Branch (652:17): [True: 4.26M, False: 19.8k]
  ------------------
  653|  4.26M|               total_size += response->size() + 1; // +1 for comma
  654|       |               // Checked as the batch is walked rather than after it, so the elements past the
  655|       |               // limit are never run and what they would have answered with is never built. The
  656|       |               // element that trips it has already been built, so the peak is the limit plus one
  657|       |               // response rather than the limit exactly. The elements already run keep their
  658|       |               // effects -- a JSON RPC batch is not a transaction -- but the caller is told the
  659|       |               // batch failed rather than handed a partial array it cannot distinguish from a
  660|       |               // complete one.
  661|  4.26M|               if (total_size > max_batch_response_size) {
  ------------------
  |  Branch (661:20): [True: 7, False: 4.26M]
  ------------------
  662|      7|                  return R"({"jsonrpc":"2.0","error":{"code":-32000,"message":"Server error","data":"Batch response exceeds max_batch_response_size"},"id":null})";
  663|      7|               }
  664|  4.26M|               responses.push_back(std::move(*response));
  665|  4.26M|            }
  666|  4.28M|         }
  667|       |
  668|       |         // If all were notifications, return empty string
  669|  20.7k|         if (responses.empty()) {
  ------------------
  |  Branch (669:14): [True: 169, False: 20.6k]
  ------------------
  670|    169|            return "";
  671|    169|         }
  672|       |
  673|       |         // Build batch response array with pre-reserved capacity
  674|  20.6k|         std::string result;
  675|  20.6k|         result.reserve(total_size);
  676|  20.6k|         result = "[";
  677|  3.19M|         for (size_t i = 0; i < responses.size(); ++i) {
  ------------------
  |  Branch (677:29): [True: 3.17M, False: 20.6k]
  ------------------
  678|  3.17M|            if (i > 0) {
  ------------------
  |  Branch (678:17): [True: 3.15M, False: 20.6k]
  ------------------
  679|  3.15M|               result += ",";
  680|  3.15M|            }
  681|  3.17M|            result += responses[i];
  682|  3.17M|         }
  683|  20.6k|         result += "]";
  684|  20.6k|         return result;
  685|  20.7k|      }
_ZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE22process_single_requestENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEE:
  541|  4.32M|      {
  542|  4.32M|         rpc::request_envelope_t request{};
  543|  4.32M|         if (const auto read_ec = glz::read<read_opts>(request, json_request); read_ec) {
  ------------------
  |  Branch (543:80): [True: 4.26M, False: 63.5k]
  ------------------
  544|       |            // Check if it's a JSON syntax error vs schema error
  545|  4.26M|            static constexpr registry_validate_opts<read_opts> validate_opts{{read_opts}};
  546|  4.26M|            glz::skip skip_value{};
  547|  4.26M|            context validate_ctx{};
  548|  4.26M|            if (glz::read<validate_opts>(skip_value, json_request, validate_ctx)) {
  ------------------
  |  Branch (548:17): [True: 4.17M, False: 86.3k]
  ------------------
  549|       |               // JSON is syntactically invalid - return Parse error (-32700)
  550|  4.17M|               return R"({"jsonrpc":"2.0","error":{"code":-32700,"message":"Parse error","data":)" +
  551|  4.17M|                      write_json(format_error(read_ec, json_request)).value_or("null") + R"(},"id":null})";
  552|  4.17M|            }
  553|       |            // Valid JSON but invalid request structure - return Invalid Request (-32600)
  554|  86.3k|            auto id = glz::get_as_json<rpc::id_t, "/id", read_opts>(json_request);
  555|  86.3k|            std::string id_json = id.has_value() ? glz::write_json(id.value()).value_or("null") : "null";
  ------------------
  |  Branch (555:35): [True: 6.81k, False: 79.5k]
  ------------------
  556|  86.3k|            return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":)" +
  557|  86.3k|                   write_json(format_error(read_ec, json_request)).value_or("null") + R"(},"id":)" + id_json + "}";
  558|  4.26M|         }
  559|       |
  560|  63.5k|         auto& req = request;
  561|       |
  562|  63.5k|         const auto invalid_request = [&req](const std::string& data) {
  563|  63.5k|            std::string id_json = glz::write_json(req.id).value_or("null");
  564|  63.5k|            return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":)" +
  565|  63.5k|                   write_json(data).value_or("null") + R"(},"id":)" + id_json + "}";
  566|  63.5k|         };
  567|       |
  568|       |         // `jsonrpc` and `method` are both required members, and an absent one cannot be allowed to
  569|       |         // fall through to a default: an absent version would pass for 2.0, and an absent method
  570|       |         // names "", which is the root endpoint -- so `{"id":1}` would answer with the whole
  571|       |         // registered object rather than being rejected.
  572|  63.5k|         if (!req.version) {
  ------------------
  |  Branch (572:14): [True: 11.0k, False: 52.4k]
  ------------------
  573|  11.0k|            return invalid_request("Missing 'jsonrpc' member");
  574|  11.0k|         }
  575|  52.4k|         if (*req.version != rpc::supported_version) {
  ------------------
  |  Branch (575:14): [True: 3.98k, False: 48.4k]
  ------------------
  576|  3.98k|            return invalid_request("Invalid version: " + std::string(*req.version));
  577|  3.98k|         }
  578|  48.4k|         if (!req.method) {
  ------------------
  |  Branch (578:14): [True: 210, False: 48.2k]
  ------------------
  579|    210|            return invalid_request("Missing 'method' member");
  580|    210|         }
  581|  48.2k|         const std::string_view method_name = *req.method;
  582|       |
  583|       |         // Check if this is a notification (id is null)
  584|  48.2k|         bool is_notification = std::holds_alternative<glz::generic::null_t>(req.id);
  585|       |
  586|       |         // Look up the endpoint - try direct lookup first (handles methods that already start with /)
  587|  48.2k|         auto it = endpoints.find(method_name);
  588|  48.2k|         if (it == endpoints.end()) {
  ------------------
  |  Branch (588:14): [True: 34.6k, False: 13.5k]
  ------------------
  589|  34.6k|            if (!method_name.empty()) {
  ------------------
  |  Branch (589:17): [True: 34.6k, False: 0]
  ------------------
  590|       |               // Try with leading slash using stack buffer for common case
  591|  34.6k|               char buf[256];
  592|  34.6k|               if (method_name.size() < sizeof(buf) - 1) {
  ------------------
  |  Branch (592:20): [True: 34.6k, False: 0]
  ------------------
  593|  34.6k|                  buf[0] = '/';
  594|  34.6k|                  std::memcpy(buf + 1, method_name.data(), method_name.size());
  595|  34.6k|                  it = endpoints.find(std::string_view{buf, method_name.size() + 1});
  596|  34.6k|               }
  597|      0|               else {
  598|       |                  // Fallback for very long method names
  599|      0|                  std::string method_path = "/";
  600|      0|                  method_path += method_name;
  601|      0|                  it = endpoints.find(method_path);
  602|      0|               }
  603|  34.6k|            }
  604|      0|            else {
  605|       |               // Empty method - try root endpoint
  606|      0|               it = endpoints.find("");
  607|      0|            }
  608|  34.6k|            if (it == endpoints.end()) {
  ------------------
  |  Branch (608:17): [True: 171, False: 34.4k]
  ------------------
  609|    171|               if (is_notification) {
  ------------------
  |  Branch (609:20): [True: 117, False: 54]
  ------------------
  610|    117|                  return std::nullopt; // No response for notifications
  611|    117|               }
  612|     54|               std::string id_json = glz::write_json(req.id).value_or("null");
  613|     54|               return R"({"jsonrpc":"2.0","error":{"code":-32601,"message":"Method not found","data":)" +
  614|     54|                      write_json(method_name).value_or("null") + R"(},"id":)" + id_json + "}";
  615|    171|            }
  616|  34.6k|         }
  617|       |
  618|       |         // Prepare state
  619|  48.0k|         std::string response;
  620|  48.0k|         bool has_params = !req.params.str.empty() && req.params.str != "null";
  ------------------
  |  Branch (620:28): [True: 26.5k, False: 21.5k]
  |  Branch (620:55): [True: 26.5k, False: 2]
  ------------------
  621|  48.0k|         jsonrpc::state state{req.id, response, is_notification, has_params, req.params.str};
  622|       |
  623|  48.0k|         try {
  624|  48.0k|            it->second(std::move(state));
  625|  48.0k|         }
  626|  48.0k|         catch (const std::exception& e) {
  627|      0|            if (is_notification) {
  ------------------
  |  Branch (627:17): [True: 0, False: 0]
  ------------------
  628|      0|               return std::nullopt;
  629|      0|            }
  630|      0|            std::string id_json = glz::write_json(req.id).value_or("null");
  631|      0|            return R"({"jsonrpc":"2.0","error":{"code":-32603,"message":"Internal error","data":)" +
  632|      0|                   write_json(std::string_view{e.what()}).value_or("null") + R"(},"id":)" + id_json + "}";
  633|      0|         }
  634|       |
  635|  48.0k|         if (is_notification) {
  ------------------
  |  Branch (635:14): [True: 23.4k, False: 24.6k]
  ------------------
  636|  23.4k|            return std::nullopt;
  637|  23.4k|         }
  638|       |
  639|  24.6k|         return response;
  640|  48.0k|      }
_ZZN3glz8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE22process_single_requestENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEQeqT0_L_ZNS_7JSONRPCEEENKUlRKNS3_12basic_stringIcS6_NS3_9allocatorIcEEEEE_clESD_:
  562|  15.2k|         const auto invalid_request = [&req](const std::string& data) {
  563|  15.2k|            std::string id_json = glz::write_json(req.id).value_or("null");
  564|  15.2k|            return R"({"jsonrpc":"2.0","error":{"code":-32600,"message":"Invalid Request","data":)" +
  565|  15.2k|                   write_json(data).value_or("null") + R"(},"id":)" + id_json + "}";
  566|  15.2k|         };

_ZNK3glz6detail11string_hashclENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   27|  1.91M|      [[nodiscard]] size_t operator()(std::string_view txt) const { return std::hash<std::string_view>{}(txt); }

_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS9_RKS9_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcST_RPT_mSN_:
   20|  46.0k|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  46.0k|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 30.6k, False: 15.3k]
  ------------------
   23|  30.6k|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|  30.6k|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|  30.6k|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|  30.6k|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  23.6M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 23.6M, False: 30.6k]
  ------------------
   29|  23.6M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  23.6M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  23.6M|            const uint32_t mask = static_cast<uint32_t>(
   33|  23.6M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  23.6M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  23.6M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 113k, False: 23.5M]
  ------------------
   37|   113k|               data += 16;
   38|   113k|               c += 16;
   39|   113k|               continue;
   40|   113k|            }
   41|       |
   42|  23.5M|            const uint32_t length = countr_zero(mask);
   43|  23.5M|            c += length;
   44|  23.5M|            data += length;
   45|  23.5M|            write_escape();
   46|  23.5M|         }
   47|  30.6k|      }
   48|  46.0k|   }
_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS3_12basic_stringIcS6_NS3_9allocatorIcEEEERS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSU_RPT_mSO_:
   20|  6.71k|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  6.71k|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 3.19k, False: 3.51k]
  ------------------
   23|  3.19k|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|  3.19k|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|  3.19k|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|  3.19k|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  25.2M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 25.2M, False: 3.19k]
  ------------------
   29|  25.2M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  25.2M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  25.2M|            const uint32_t mask = static_cast<uint32_t>(
   33|  25.2M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  25.2M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  25.2M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 694k, False: 24.5M]
  ------------------
   37|   694k|               data += 16;
   38|   694k|               c += 16;
   39|   694k|               continue;
   40|   694k|            }
   41|       |
   42|  24.5M|            const uint32_t length = countr_zero(mask);
   43|  24.5M|            c += length;
   44|  24.5M|            data += length;
   45|  24.5M|            write_escape();
   46|  24.5M|         }
   47|  3.19k|      }
   48|  6.71k|   }
_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS9_SD_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSR_RPT_mSL_:
   20|  1.11k|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  1.11k|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 320, False: 794]
  ------------------
   23|    320|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|    320|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|    320|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|    320|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  1.06M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 1.06M, False: 320]
  ------------------
   29|  1.06M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  1.06M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  1.06M|            const uint32_t mask = static_cast<uint32_t>(
   33|  1.06M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  1.06M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  1.06M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 1.06M, False: 1.92k]
  ------------------
   37|  1.06M|               data += 16;
   38|  1.06M|               c += 16;
   39|  1.06M|               continue;
   40|  1.06M|            }
   41|       |
   42|  1.92k|            const uint32_t length = countr_zero(mask);
   43|  1.92k|            c += length;
   44|  1.92k|            data += length;
   45|  1.92k|            write_escape();
   46|  1.92k|         }
   47|    320|      }
   48|  1.11k|   }
_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERS9_S9_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSR_RPT_mSL_:
   20|  4.27M|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|  4.27M|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 4.27M, False: 0]
  ------------------
   23|  4.27M|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|  4.27M|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|  4.27M|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|  4.27M|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|  9.35M|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 5.07M, False: 4.27M]
  ------------------
   29|  5.07M|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|  5.07M|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|  5.07M|            const uint32_t mask = static_cast<uint32_t>(
   33|  5.07M|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|  5.07M|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|  5.07M|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 4.36M, False: 711k]
  ------------------
   37|  4.36M|               data += 16;
   38|  4.36M|               c += 16;
   39|  4.36M|               continue;
   40|  4.36M|            }
   41|       |
   42|   711k|            const uint32_t length = countr_zero(mask);
   43|   711k|            c += length;
   44|   711k|            data += length;
   45|   711k|            write_escape();
   46|   711k|         }
   47|  4.27M|      }
   48|  4.27M|   }
_ZN3glz6detail18sse2_string_escapeIcRZNS_2toILj10ENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEE2opITnDaXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEERNS3_12basic_stringIcS6_NS3_9allocatorIcEEEERKS7_TkNS_10is_contextERNS_7contextEmEEvOT1_OT2_OT0_RT3_EUlvE0_EEvRPKcSV_RPT_mSP_:
   20|     54|   {
   21|       |      // SSE2: 16 bytes at a time with direct comparison instructions
   22|     54|      if (n > 15) {
  ------------------
  |  Branch (22:11): [True: 0, False: 54]
  ------------------
   23|      0|         const __m128i quote_vec = _mm_set1_epi8('"');
   24|      0|         const __m128i bs_vec = _mm_set1_epi8('\\');
   25|      0|         const __m128i ctrl_mask = _mm_set1_epi8(static_cast<int8_t>(0xE0));
   26|      0|         const __m128i zero = _mm_setzero_si128();
   27|       |
   28|      0|         for (const char* end_m15 = e - 15; c < end_m15;) {
  ------------------
  |  Branch (28:45): [True: 0, False: 0]
  ------------------
   29|      0|            __m128i v = _mm_loadu_si128(reinterpret_cast<const __m128i*>(c));
   30|      0|            _mm_storeu_si128(reinterpret_cast<__m128i*>(data), v);
   31|       |
   32|      0|            const uint32_t mask = static_cast<uint32_t>(
   33|      0|               _mm_movemask_epi8(_mm_or_si128(_mm_or_si128(_mm_cmpeq_epi8(v, quote_vec), _mm_cmpeq_epi8(v, bs_vec)),
   34|      0|                                              _mm_cmpeq_epi8(_mm_and_si128(v, ctrl_mask), zero))));
   35|       |
   36|      0|            if (mask == 0) {
  ------------------
  |  Branch (36:17): [True: 0, False: 0]
  ------------------
   37|      0|               data += 16;
   38|      0|               c += 16;
   39|      0|               continue;
   40|      0|            }
   41|       |
   42|      0|            const uint32_t length = countr_zero(mask);
   43|      0|            c += length;
   44|      0|            data += length;
   45|      0|            write_escape();
   46|      0|         }
   47|      0|      }
   48|     54|   }

_ZN3glz6detail10structural11load_windowEPKccc:
   87|  3.36M|   {
   88|  3.36M|      const __m128i v0 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p));
   89|  3.36M|      const __m128i v1 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 16));
   90|  3.36M|      const __m128i v2 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 32));
   91|  3.36M|      const __m128i v3 = _mm_loadu_si128(reinterpret_cast<const __m128i*>(p + 48));
   92|       |
   93|  3.36M|      const auto mask_of = [&](const char c) {
   94|  3.36M|         const __m128i cv = _mm_set1_epi8(c);
   95|  3.36M|         return uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v0, cv)))) |
   96|  3.36M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v1, cv)))) << 16) |
   97|  3.36M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v2, cv)))) << 32) |
   98|  3.36M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v3, cv)))) << 48);
   99|  3.36M|      };
  100|       |
  101|  3.36M|      const uint64_t high =
  102|  3.36M|         uint64_t(uint16_t(_mm_movemask_epi8(v0))) | (uint64_t(uint16_t(_mm_movemask_epi8(v1))) << 16) |
  103|  3.36M|         (uint64_t(uint16_t(_mm_movemask_epi8(v2))) << 32) | (uint64_t(uint16_t(_mm_movemask_epi8(v3))) << 48);
  104|       |
  105|  3.36M|      return {mask_of('"'), mask_of('\\'), mask_of(open_c), mask_of(close_c), high};
  106|  3.36M|   }
_ZZN3glz6detail10structural11load_windowEPKcccENKUlcE_clEc:
   93|  13.4M|      const auto mask_of = [&](const char c) {
   94|  13.4M|         const __m128i cv = _mm_set1_epi8(c);
   95|  13.4M|         return uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v0, cv)))) |
   96|  13.4M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v1, cv)))) << 16) |
   97|  13.4M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v2, cv)))) << 32) |
   98|  13.4M|                (uint64_t(uint16_t(_mm_movemask_epi8(_mm_cmpeq_epi8(v3, cv)))) << 48);
   99|  13.4M|      };

_ZN3glz4atoiITkNSt3__18integralEicEEbRT_RPKT0_S6_:
  806|   816k|   {
  807|       |      // The number of characters needed at most for each type, rounded to nearest 8 bytes
  808|   816k|      constexpr auto buffer_length = int_buffer_lengths[std::bit_width(sizeof(T)) - 1];
  809|       |      // We copy the rest of the buffer, or buffer_length bytes, into a null terminated buffer. The
  810|       |      // trailing byte is never written by the copy, so the null-terminated atoi below always halts
  811|       |      // inside the array even when the input fills it: the exponent scan stops at a non-digit rather
  812|       |      // than after a fixed digit count, and a value-initialized array alone would not terminate a
  813|       |      // copy that covers every byte.
  814|   816k|      std::array<char, buffer_length + 1> data{};
  815|   816k|      const auto n = size_t(end - it);
  816|   816k|      if (n > 0) [[likely]] {
  ------------------
  |  Branch (816:11): [True: 816k, False: 0]
  ------------------
  817|   816k|         const auto truncated = n > buffer_length;
  818|   816k|         std::memcpy(data.data(), it, truncated ? buffer_length : n);
  ------------------
  |  Branch (818:39): [True: 797k, False: 19.1k]
  ------------------
  819|       |
  820|   816k|         const auto start = data.data();
  821|   816k|         const auto* c = start;
  822|   816k|         const auto valid = glz::atoi(v, c);
  823|   816k|         const auto consumed = size_t(c - start);
  824|   816k|         it += consumed;
  825|       |         // Reaching the end of a truncated copy means the number was cut off: parsing halted on the
  826|       |         // terminator this buffer supplies rather than on a character of the input, so what parsed is
  827|       |         // a prefix and its value is not the number's. Only zero padding can stretch a number this
  828|       |         // far -- no in-range integer needs buffer_length characters -- but a caller that ignores
  829|       |         // trailing content would otherwise take the prefix's value as the answer.
  830|   816k|         return valid && not(truncated && consumed == buffer_length);
  ------------------
  |  Branch (830:17): [True: 811k, False: 5.18k]
  |  Branch (830:30): [True: 796k, False: 14.2k]
  |  Branch (830:43): [True: 4, False: 796k]
  ------------------
  831|   816k|      }
  832|      0|      else [[unlikely]] {
  833|      0|         return false;
  834|      0|      }
  835|   816k|   }
_ZN3glz4atoiITkNSt3__18integralEiKcQsr3stdE11is_signed_vIT_EEEbRS3_RPT0_:
  718|   816k|   {
  719|   816k|      using X = std::decay_t<T>;
  720|   816k|      using utype = std::make_unsigned_t<X>;
  721|       |
  722|   816k|      const uint8_t sign = *c == '-';
  723|   816k|      if (auto ptr = parse_int(v, reinterpret_cast<const uint8_t*>(c))) [[likely]] {
  ------------------
  |  Branch (723:16): [True: 813k, False: 3.11k]
  ------------------
  724|   813k|         c = reinterpret_cast<const Char*>(ptr);
  725|   813k|         if (*c == 'e' || *c == 'E') {
  ------------------
  |  Branch (725:14): [True: 8.91k, False: 804k]
  |  Branch (725:27): [True: 26.0k, False: 778k]
  ------------------
  726|  34.9k|            ++c;
  727|  34.9k|         }
  728|   778k|         else {
  729|   778k|            if (*c == '.') [[unlikely]] {
  ------------------
  |  Branch (729:17): [True: 47, False: 778k]
  ------------------
  730|     47|               return false;
  731|     47|            }
  732|   778k|            return true;
  733|   778k|         }
  734|       |
  735|  34.9k|         c += (*c == '+');
  736|       |
  737|  34.9k|         if (not is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (737:14): [True: 294, False: 34.6k]
  ------------------
  738|    294|            return false;
  739|    294|         }
  740|  34.6k|         const uint32_t exp = parse_exponent(c);
  741|       |         // As in the unsigned overload: only a non-zero magnitude can overflow, so "0e19" and
  742|       |         // "-0e19" are in range for every width. `v` is already the signed mantissa, and negative
  743|       |         // zero compares equal to zero, so both spellings land here with the value they should keep.
  744|       |         if constexpr (sizeof(T) == 1) {
  745|       |            if (exp > 2) [[unlikely]] {
  746|       |               return v == 0;
  747|       |            }
  748|       |         }
  749|       |         else if constexpr (sizeof(T) == 2) {
  750|       |            if (exp > 4) [[unlikely]] {
  751|       |               return v == 0;
  752|       |            }
  753|       |         }
  754|  34.6k|         else if constexpr (sizeof(T) == 4) {
  755|  34.6k|            if (exp > 9) [[unlikely]] {
  ------------------
  |  Branch (755:17): [True: 3.30k, False: 31.3k]
  ------------------
  756|  3.30k|               return v == 0;
  757|  3.30k|            }
  758|       |         }
  759|       |         else {
  760|       |            if (exp > 18) [[unlikely]] {
  761|       |               return v == 0;
  762|       |            }
  763|       |         }
  764|       |
  765|  31.3k|         utype i = utype((utype(v) ^ -sign) + sign);
  766|  34.6k|         if constexpr (sizeof(T) < 8) {
  767|       |            // Scale in a width the product cannot wrap, then range check before narrowing. Scaling
  768|       |            // inside `utype` truncated first and checked afterwards, so an out-of-range magnitude
  769|       |            // aliased onto an accepted one: "13e2" read as 20 for int8_t and "5e9" as 705032704 for
  770|       |            // int32_t. The widest case here is a 4-byte magnitude scaled by 10^9, which stays well
  771|       |            // inside uint64_t. The unsigned path already widens the same way.
  772|  34.6k|            const uint64_t scaled = uint64_t(i) * powers_of_ten_int[exp];
  773|  34.6k|            v = T((utype(scaled) ^ -sign) + sign);
  774|       |            // Bound the magnitude directly rather than subtracting the sign from it: a negative
  775|       |            // zero makes `scaled - sign` underflow, and the old narrow expression only survived
  776|       |            // that because it promoted to int. A negative value may reach one past the positive
  777|       |            // limit, which is exactly INT_MIN's magnitude.
  778|  34.6k|            return scaled <= uint64_t((std::numeric_limits<T>::max)()) + sign;
  779|       |         }
  780|       |         else {
  781|       |            // Scale the sign-stripped magnitude `i`, not the two's-complement bit pattern of `v`:
  782|       |            // for a negative value that pattern is a huge unsigned number, so every negative
  783|       |            // 64-bit integer written with an exponent ("-1e2") overflowed and was rejected. The
  784|       |            // narrower branches above already scale `i`.
  785|       |#if defined(__SIZEOF_INT128__)
  786|       |            const __uint128_t res = __uint128_t(i) * powers_of_ten_int[exp];
  787|       |            v = T((uint64_t(res) ^ -sign) + sign);
  788|       |            // Compare the full 128-bit product. Narrowing it to 64 bits first would let an
  789|       |            // out-of-range magnitude alias onto an accepted one, e.g. 9e36 truncating into range.
  790|       |            return res <= __uint128_t(9223372036854775807ull + sign);
  791|       |#else
  792|       |            const auto res = full_multiplication(i, powers_of_ten_int[exp]);
  793|       |            v = T((uint64_t(res.low) ^ -sign) + sign);
  794|       |            return res.high == 0 && (uint64_t(res.low) <= (9223372036854775807ull + sign));
  795|       |#endif
  796|       |         }
  797|  34.6k|      }
  798|  37.8k|      return false;
  799|   816k|   }
_ZN3glz9parse_intITkNSt3__18integralEiQaasr3stdE11is_signed_vIT_ElestS2_Li8EEEPKhRS2_S4_:
  479|   816k|   {
  480|   816k|      const uint8_t sign = *c == '-';
  481|   816k|      c += sign;
  482|       |
  483|   816k|      if (is_digit(*c)) [[likely]] {
  ------------------
  |  Branch (483:11): [True: 813k, False: 2.59k]
  ------------------
  484|   813k|         v = *c - '0';
  485|   813k|         ++c;
  486|   813k|      }
  487|  2.59k|      else [[unlikely]] {
  488|  2.59k|         return {};
  489|  2.59k|      }
  490|       |
  491|   813k|      if (is_digit(*c)) {
  ------------------
  |  Branch (491:11): [True: 374k, False: 438k]
  ------------------
  492|   374k|         v = v * 10 + (*c - '0');
  493|   374k|         ++c;
  494|   374k|      }
  495|   438k|      else {
  496|   438k|         if (sign) {
  ------------------
  |  Branch (496:14): [True: 196k, False: 242k]
  ------------------
  497|   196k|            v = -v;
  498|   196k|         }
  499|   438k|         return c;
  500|   438k|      }
  501|       |
  502|   374k|      if (c[-2] == '0') [[unlikely]] {
  ------------------
  |  Branch (502:11): [True: 54, False: 374k]
  ------------------
  503|     54|         return {};
  504|     54|      }
  505|       |
  506|   374k|      if constexpr (sizeof(T) > 1) {
  507|   374k|         if (is_digit(*c)) {
  ------------------
  |  Branch (507:14): [True: 184k, False: 190k]
  ------------------
  508|   184k|            v = v * 10 + (*c - '0');
  509|   184k|            ++c;
  510|   184k|         }
  511|   190k|         else {
  512|   190k|            if (sign) {
  ------------------
  |  Branch (512:17): [True: 54.4k, False: 135k]
  ------------------
  513|  54.4k|               v = -v;
  514|  54.4k|            }
  515|   190k|            return c;
  516|   190k|         }
  517|       |
  518|   184k|         if (is_digit(*c)) {
  ------------------
  |  Branch (518:14): [True: 92.5k, False: 92.1k]
  ------------------
  519|  92.5k|            v = v * 10 + (*c - '0');
  520|  92.5k|            ++c;
  521|  92.5k|         }
  522|  92.1k|         else {
  523|  92.1k|            if (sign) {
  ------------------
  |  Branch (523:17): [True: 21.3k, False: 70.8k]
  ------------------
  524|  21.3k|               v = -v;
  525|  21.3k|            }
  526|  92.1k|            return c;
  527|  92.1k|         }
  528|       |
  529|  92.5k|         if constexpr (sizeof(T) > 2) {
  530|  92.5k|            if (is_digit(*c)) {
  ------------------
  |  Branch (530:17): [True: 78.3k, False: 14.2k]
  ------------------
  531|  78.3k|               v = v * 10 + (*c - '0');
  532|  78.3k|               ++c;
  533|  78.3k|            }
  534|  14.2k|            else {
  535|  14.2k|               if (sign) {
  ------------------
  |  Branch (535:20): [True: 4.00k, False: 10.2k]
  ------------------
  536|  4.00k|                  v = -v;
  537|  4.00k|               }
  538|  14.2k|               return c;
  539|  14.2k|            }
  540|       |
  541|  78.3k|            if (is_digit(*c)) {
  ------------------
  |  Branch (541:17): [True: 66.0k, False: 12.2k]
  ------------------
  542|  66.0k|               v = v * 10 + (*c - '0');
  543|  66.0k|               ++c;
  544|  66.0k|            }
  545|  12.2k|            else {
  546|  12.2k|               if (sign) {
  ------------------
  |  Branch (546:20): [True: 3.99k, False: 8.30k]
  ------------------
  547|  3.99k|                  v = -v;
  548|  3.99k|               }
  549|  12.2k|               return c;
  550|  12.2k|            }
  551|       |
  552|  66.0k|            if (is_digit(*c)) {
  ------------------
  |  Branch (552:17): [True: 53.0k, False: 12.9k]
  ------------------
  553|  53.0k|               v = v * 10 + (*c - '0');
  554|  53.0k|               ++c;
  555|  53.0k|            }
  556|  12.9k|            else {
  557|  12.9k|               if (sign) {
  ------------------
  |  Branch (557:20): [True: 3.65k, False: 9.32k]
  ------------------
  558|  3.65k|                  v = -v;
  559|  3.65k|               }
  560|  12.9k|               return c;
  561|  12.9k|            }
  562|       |
  563|  53.0k|            if (is_digit(*c)) {
  ------------------
  |  Branch (563:17): [True: 31.8k, False: 21.2k]
  ------------------
  564|  31.8k|               v = v * 10 + (*c - '0');
  565|  31.8k|               ++c;
  566|  31.8k|            }
  567|  21.2k|            else {
  568|  21.2k|               if (sign) {
  ------------------
  |  Branch (568:20): [True: 4.03k, False: 17.1k]
  ------------------
  569|  4.03k|                  v = -v;
  570|  4.03k|               }
  571|  21.2k|               return c;
  572|  21.2k|            }
  573|       |
  574|  31.8k|            if (is_digit(*c)) {
  ------------------
  |  Branch (574:17): [True: 16.2k, False: 15.6k]
  ------------------
  575|  16.2k|               v = v * 10 + (*c - '0');
  576|  16.2k|               ++c;
  577|  16.2k|            }
  578|  15.6k|            else {
  579|  15.6k|               if (sign) {
  ------------------
  |  Branch (579:20): [True: 4.21k, False: 11.4k]
  ------------------
  580|  4.21k|                  v = -v;
  581|  4.21k|               }
  582|  15.6k|               return c;
  583|  15.6k|            }
  584|       |
  585|       |            if constexpr (sizeof(T) > 4) {
  586|       |               if (is_digit(*c)) {
  587|       |                  v = v * 10 + (*c - '0');
  588|       |                  ++c;
  589|       |               }
  590|       |               else {
  591|       |                  if (sign) {
  592|       |                     v = -v;
  593|       |                  }
  594|       |                  return c;
  595|       |               }
  596|       |
  597|       |               if (is_digit(*c)) {
  598|       |                  v = v * 10 + (*c - '0');
  599|       |                  ++c;
  600|       |               }
  601|       |               else {
  602|       |                  if (sign) {
  603|       |                     v = -v;
  604|       |                  }
  605|       |                  return c;
  606|       |               }
  607|       |
  608|       |               if (is_digit(*c)) {
  609|       |                  v = v * 10 + (*c - '0');
  610|       |                  ++c;
  611|       |               }
  612|       |               else {
  613|       |                  if (sign) {
  614|       |                     v = -v;
  615|       |                  }
  616|       |                  return c;
  617|       |               }
  618|       |
  619|       |               if (is_digit(*c)) {
  620|       |                  v = v * 10 + (*c - '0');
  621|       |                  ++c;
  622|       |               }
  623|       |               else {
  624|       |                  if (sign) {
  625|       |                     v = -v;
  626|       |                  }
  627|       |                  return c;
  628|       |               }
  629|       |
  630|       |               if (is_digit(*c)) {
  631|       |                  v = v * 10 + (*c - '0');
  632|       |                  ++c;
  633|       |               }
  634|       |               else {
  635|       |                  if (sign) {
  636|       |                     v = -v;
  637|       |                  }
  638|       |                  return c;
  639|       |               }
  640|       |
  641|       |               if (is_digit(*c)) {
  642|       |                  v = v * 10 + (*c - '0');
  643|       |                  ++c;
  644|       |               }
  645|       |               else {
  646|       |                  if (sign) {
  647|       |                     v = -v;
  648|       |                  }
  649|       |                  return c;
  650|       |               }
  651|       |
  652|       |               if (is_digit(*c)) {
  653|       |                  v = v * 10 + (*c - '0');
  654|       |                  ++c;
  655|       |               }
  656|       |               else {
  657|       |                  if (sign) {
  658|       |                     v = -v;
  659|       |                  }
  660|       |                  return c;
  661|       |               }
  662|       |
  663|       |               if (is_digit(*c)) {
  664|       |                  v = v * 10 + (*c - '0');
  665|       |                  ++c;
  666|       |               }
  667|       |               else {
  668|       |                  if (sign) {
  669|       |                     v = -v;
  670|       |                  }
  671|       |                  return c;
  672|       |               }
  673|       |
  674|       |               if (is_digit(*c)) {
  675|       |                  v = v * 10 + (*c - '0');
  676|       |                  ++c;
  677|       |               }
  678|       |               else {
  679|       |                  if (sign) {
  680|       |                     v = -v;
  681|       |                  }
  682|       |                  return c;
  683|       |               }
  684|       |            }
  685|  16.2k|         }
  686|  92.5k|      }
  687|       |
  688|   374k|      if (is_digit(*c)) {
  ------------------
  |  Branch (688:11): [True: 6.23k, False: 368k]
  ------------------
  689|  6.23k|         if (sign) {
  ------------------
  |  Branch (689:14): [True: 2.75k, False: 3.47k]
  ------------------
  690|  2.75k|            if (would_overflow_negative<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (690:17): [True: 179, False: 2.57k]
  ------------------
  691|    179|               return {};
  692|    179|            }
  693|  2.57k|            v = -1 * v;
  694|  2.57k|            v = v * 10 - (*c - '0');
  695|  2.57k|         }
  696|  3.47k|         else {
  697|  3.47k|            if (would_overflow_positive<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (697:17): [True: 194, False: 3.28k]
  ------------------
  698|    194|               return {};
  699|    194|            }
  700|  3.28k|            v = v * 10 + (*c - '0');
  701|  3.28k|         }
  702|  5.86k|         ++c;
  703|  5.86k|         if (is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (703:14): [True: 86, False: 5.77k]
  ------------------
  704|     86|            return {};
  705|     86|         }
  706|  5.77k|         return c;
  707|  5.86k|      }
  708|       |
  709|   368k|      if (sign) {
  ------------------
  |  Branch (709:11): [True: 3.31k, False: 365k]
  ------------------
  710|  3.31k|         v = -v;
  711|  3.31k|      }
  712|   368k|      return c;
  713|   374k|   }
_ZN3glz23would_overflow_negativeIiEEbu17__remove_volatileIT_Eh:
  154|  2.75k|   {
  155|       |      // For negative: max magnitude is max + 1 (e.g., -2147483648 for int32)
  156|  2.75k|      using U = std::remove_volatile_t<T>;
  157|  2.75k|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)()) + 1;
  158|  2.75k|      constexpr auto threshold = max_val / 10;
  159|  2.75k|      constexpr auto last_digit = max_val % 10;
  160|  2.75k|      const auto uv = static_cast<uint64_t>(v);
  161|  2.75k|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  162|       |      // When digit > last_digit, effective threshold is one less
  163|  2.75k|      return uv > (threshold - uint64_t(digit > last_digit));
  164|  2.75k|   }
_ZN3glz23would_overflow_positiveIiEEbu17__remove_volatileIT_Eh:
  140|  3.47k|   {
  141|  3.47k|      using U = std::remove_volatile_t<T>;
  142|  3.47k|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)());
  143|  3.47k|      constexpr auto threshold = max_val / 10;
  144|  3.47k|      constexpr auto last_digit = max_val % 10;
  145|  3.47k|      const auto uv = static_cast<uint64_t>(v);
  146|  3.47k|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  147|       |      // When digit > last_digit, effective threshold is one less
  148|       |      // This is branch-free and faster than bitwise OR/AND approach
  149|  3.47k|      return uv > (threshold - uint64_t(digit > last_digit));
  150|  3.47k|   }
_ZN3glz8is_digitEh:
  106|  11.0M|   GLZ_ALWAYS_INLINE constexpr bool is_digit(const uint8_t c) noexcept { return c <= '9' && c >= '0'; }
  ------------------
  |  Branch (106:81): [True: 10.6M, False: 355k]
  |  Branch (106:93): [True: 4.91M, False: 5.77M]
  ------------------
_ZN3glz14parse_exponentIKcEEjRPT_:
  124|  41.1k|   {
  125|  41.1k|      uint32_t exp = uint32_t(*c - '0');
  126|  41.1k|      ++c;
  127|  76.0k|      while (is_digit(*c)) {
  ------------------
  |  Branch (127:14): [True: 34.8k, False: 41.1k]
  ------------------
  128|       |         // Written as a select rather than a branch: the clamp only ever engages on absurdly long
  129|       |         // exponents, so a branch here would be a mispredict risk on the path that matters.
  130|  34.8k|         exp = exp < exponent_clamp ? exp * 10 + uint32_t(*c - '0') : exp;
  ------------------
  |  Branch (130:16): [True: 30.6k, False: 4.19k]
  ------------------
  131|  34.8k|         ++c;
  132|  34.8k|      }
  133|  41.1k|      return exp;
  134|  41.1k|   }
_ZN3glz4atoiITkNSt3__18integralElcEEbRT_RPKT0_S6_:
  806|  71.2k|   {
  807|       |      // The number of characters needed at most for each type, rounded to nearest 8 bytes
  808|  71.2k|      constexpr auto buffer_length = int_buffer_lengths[std::bit_width(sizeof(T)) - 1];
  809|       |      // We copy the rest of the buffer, or buffer_length bytes, into a null terminated buffer. The
  810|       |      // trailing byte is never written by the copy, so the null-terminated atoi below always halts
  811|       |      // inside the array even when the input fills it: the exponent scan stops at a non-digit rather
  812|       |      // than after a fixed digit count, and a value-initialized array alone would not terminate a
  813|       |      // copy that covers every byte.
  814|  71.2k|      std::array<char, buffer_length + 1> data{};
  815|  71.2k|      const auto n = size_t(end - it);
  816|  71.2k|      if (n > 0) [[likely]] {
  ------------------
  |  Branch (816:11): [True: 71.2k, False: 0]
  ------------------
  817|  71.2k|         const auto truncated = n > buffer_length;
  818|  71.2k|         std::memcpy(data.data(), it, truncated ? buffer_length : n);
  ------------------
  |  Branch (818:39): [True: 17.1k, False: 54.1k]
  ------------------
  819|       |
  820|  71.2k|         const auto start = data.data();
  821|  71.2k|         const auto* c = start;
  822|  71.2k|         const auto valid = glz::atoi(v, c);
  823|  71.2k|         const auto consumed = size_t(c - start);
  824|  71.2k|         it += consumed;
  825|       |         // Reaching the end of a truncated copy means the number was cut off: parsing halted on the
  826|       |         // terminator this buffer supplies rather than on a character of the input, so what parsed is
  827|       |         // a prefix and its value is not the number's. Only zero padding can stretch a number this
  828|       |         // far -- no in-range integer needs buffer_length characters -- but a caller that ignores
  829|       |         // trailing content would otherwise take the prefix's value as the answer.
  830|  71.2k|         return valid && not(truncated && consumed == buffer_length);
  ------------------
  |  Branch (830:17): [True: 54.6k, False: 16.6k]
  |  Branch (830:30): [True: 16.7k, False: 37.8k]
  |  Branch (830:43): [True: 26, False: 16.7k]
  ------------------
  831|  71.2k|      }
  832|      0|      else [[unlikely]] {
  833|      0|         return false;
  834|      0|      }
  835|  71.2k|   }
_ZN3glz4atoiITkNSt3__18integralElKcQsr3stdE11is_signed_vIT_EEEbRS3_RPT0_:
  718|  71.2k|   {
  719|  71.2k|      using X = std::decay_t<T>;
  720|  71.2k|      using utype = std::make_unsigned_t<X>;
  721|       |
  722|  71.2k|      const uint8_t sign = *c == '-';
  723|  71.2k|      if (auto ptr = parse_int(v, reinterpret_cast<const uint8_t*>(c))) [[likely]] {
  ------------------
  |  Branch (723:16): [True: 61.8k, False: 9.45k]
  ------------------
  724|  61.8k|         c = reinterpret_cast<const Char*>(ptr);
  725|  61.8k|         if (*c == 'e' || *c == 'E') {
  ------------------
  |  Branch (725:14): [True: 2.55k, False: 59.2k]
  |  Branch (725:27): [True: 5.00k, False: 54.2k]
  ------------------
  726|  7.55k|            ++c;
  727|  7.55k|         }
  728|  54.2k|         else {
  729|  54.2k|            if (*c == '.') [[unlikely]] {
  ------------------
  |  Branch (729:17): [True: 2.17k, False: 52.0k]
  ------------------
  730|  2.17k|               return false;
  731|  2.17k|            }
  732|  52.0k|            return true;
  733|  54.2k|         }
  734|       |
  735|  7.55k|         c += (*c == '+');
  736|       |
  737|  7.55k|         if (not is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (737:14): [True: 1.12k, False: 6.42k]
  ------------------
  738|  1.12k|            return false;
  739|  1.12k|         }
  740|  6.42k|         const uint32_t exp = parse_exponent(c);
  741|       |         // As in the unsigned overload: only a non-zero magnitude can overflow, so "0e19" and
  742|       |         // "-0e19" are in range for every width. `v` is already the signed mantissa, and negative
  743|       |         // zero compares equal to zero, so both spellings land here with the value they should keep.
  744|       |         if constexpr (sizeof(T) == 1) {
  745|       |            if (exp > 2) [[unlikely]] {
  746|       |               return v == 0;
  747|       |            }
  748|       |         }
  749|       |         else if constexpr (sizeof(T) == 2) {
  750|       |            if (exp > 4) [[unlikely]] {
  751|       |               return v == 0;
  752|       |            }
  753|       |         }
  754|       |         else if constexpr (sizeof(T) == 4) {
  755|       |            if (exp > 9) [[unlikely]] {
  756|       |               return v == 0;
  757|       |            }
  758|       |         }
  759|  6.42k|         else {
  760|  6.42k|            if (exp > 18) [[unlikely]] {
  ------------------
  |  Branch (760:17): [True: 3.15k, False: 3.27k]
  ------------------
  761|  3.15k|               return v == 0;
  762|  3.15k|            }
  763|  6.42k|         }
  764|       |
  765|  3.27k|         utype i = utype((utype(v) ^ -sign) + sign);
  766|       |         if constexpr (sizeof(T) < 8) {
  767|       |            // Scale in a width the product cannot wrap, then range check before narrowing. Scaling
  768|       |            // inside `utype` truncated first and checked afterwards, so an out-of-range magnitude
  769|       |            // aliased onto an accepted one: "13e2" read as 20 for int8_t and "5e9" as 705032704 for
  770|       |            // int32_t. The widest case here is a 4-byte magnitude scaled by 10^9, which stays well
  771|       |            // inside uint64_t. The unsigned path already widens the same way.
  772|       |            const uint64_t scaled = uint64_t(i) * powers_of_ten_int[exp];
  773|       |            v = T((utype(scaled) ^ -sign) + sign);
  774|       |            // Bound the magnitude directly rather than subtracting the sign from it: a negative
  775|       |            // zero makes `scaled - sign` underflow, and the old narrow expression only survived
  776|       |            // that because it promoted to int. A negative value may reach one past the positive
  777|       |            // limit, which is exactly INT_MIN's magnitude.
  778|       |            return scaled <= uint64_t((std::numeric_limits<T>::max)()) + sign;
  779|       |         }
  780|  6.42k|         else {
  781|       |            // Scale the sign-stripped magnitude `i`, not the two's-complement bit pattern of `v`:
  782|       |            // for a negative value that pattern is a huge unsigned number, so every negative
  783|       |            // 64-bit integer written with an exponent ("-1e2") overflowed and was rejected. The
  784|       |            // narrower branches above already scale `i`.
  785|  6.42k|#if defined(__SIZEOF_INT128__)
  786|  6.42k|            const __uint128_t res = __uint128_t(i) * powers_of_ten_int[exp];
  787|  6.42k|            v = T((uint64_t(res) ^ -sign) + sign);
  788|       |            // Compare the full 128-bit product. Narrowing it to 64 bits first would let an
  789|       |            // out-of-range magnitude alias onto an accepted one, e.g. 9e36 truncating into range.
  790|  6.42k|            return res <= __uint128_t(9223372036854775807ull + sign);
  791|       |#else
  792|       |            const auto res = full_multiplication(i, powers_of_ten_int[exp]);
  793|       |            v = T((uint64_t(res.low) ^ -sign) + sign);
  794|       |            return res.high == 0 && (uint64_t(res.low) <= (9223372036854775807ull + sign));
  795|       |#endif
  796|  6.42k|         }
  797|  6.42k|      }
  798|  15.8k|      return false;
  799|  71.2k|   }
_ZN3glz9parse_intITkNSt3__18integralElQaasr3stdE11is_signed_vIT_ElestS2_Li8EEEPKhRS2_S4_:
  479|  71.2k|   {
  480|  71.2k|      const uint8_t sign = *c == '-';
  481|  71.2k|      c += sign;
  482|       |
  483|  71.2k|      if (is_digit(*c)) [[likely]] {
  ------------------
  |  Branch (483:11): [True: 70.6k, False: 638]
  ------------------
  484|  70.6k|         v = *c - '0';
  485|  70.6k|         ++c;
  486|  70.6k|      }
  487|    638|      else [[unlikely]] {
  488|    638|         return {};
  489|    638|      }
  490|       |
  491|  70.6k|      if (is_digit(*c)) {
  ------------------
  |  Branch (491:11): [True: 35.9k, False: 34.6k]
  ------------------
  492|  35.9k|         v = v * 10 + (*c - '0');
  493|  35.9k|         ++c;
  494|  35.9k|      }
  495|  34.6k|      else {
  496|  34.6k|         if (sign) {
  ------------------
  |  Branch (496:14): [True: 751, False: 33.9k]
  ------------------
  497|    751|            v = -v;
  498|    751|         }
  499|  34.6k|         return c;
  500|  34.6k|      }
  501|       |
  502|  35.9k|      if (c[-2] == '0') [[unlikely]] {
  ------------------
  |  Branch (502:11): [True: 458, False: 35.4k]
  ------------------
  503|    458|         return {};
  504|    458|      }
  505|       |
  506|  35.4k|      if constexpr (sizeof(T) > 1) {
  507|  35.4k|         if (is_digit(*c)) {
  ------------------
  |  Branch (507:14): [True: 33.7k, False: 1.72k]
  ------------------
  508|  33.7k|            v = v * 10 + (*c - '0');
  509|  33.7k|            ++c;
  510|  33.7k|         }
  511|  1.72k|         else {
  512|  1.72k|            if (sign) {
  ------------------
  |  Branch (512:17): [True: 695, False: 1.02k]
  ------------------
  513|    695|               v = -v;
  514|    695|            }
  515|  1.72k|            return c;
  516|  1.72k|         }
  517|       |
  518|  33.7k|         if (is_digit(*c)) {
  ------------------
  |  Branch (518:14): [True: 31.6k, False: 2.08k]
  ------------------
  519|  31.6k|            v = v * 10 + (*c - '0');
  520|  31.6k|            ++c;
  521|  31.6k|         }
  522|  2.08k|         else {
  523|  2.08k|            if (sign) {
  ------------------
  |  Branch (523:17): [True: 672, False: 1.41k]
  ------------------
  524|    672|               v = -v;
  525|    672|            }
  526|  2.08k|            return c;
  527|  2.08k|         }
  528|       |
  529|  31.6k|         if constexpr (sizeof(T) > 2) {
  530|  31.6k|            if (is_digit(*c)) {
  ------------------
  |  Branch (530:17): [True: 30.3k, False: 1.37k]
  ------------------
  531|  30.3k|               v = v * 10 + (*c - '0');
  532|  30.3k|               ++c;
  533|  30.3k|            }
  534|  1.37k|            else {
  535|  1.37k|               if (sign) {
  ------------------
  |  Branch (535:20): [True: 661, False: 717]
  ------------------
  536|    661|                  v = -v;
  537|    661|               }
  538|  1.37k|               return c;
  539|  1.37k|            }
  540|       |
  541|  30.3k|            if (is_digit(*c)) {
  ------------------
  |  Branch (541:17): [True: 28.5k, False: 1.74k]
  ------------------
  542|  28.5k|               v = v * 10 + (*c - '0');
  543|  28.5k|               ++c;
  544|  28.5k|            }
  545|  1.74k|            else {
  546|  1.74k|               if (sign) {
  ------------------
  |  Branch (546:20): [True: 891, False: 849]
  ------------------
  547|    891|                  v = -v;
  548|    891|               }
  549|  1.74k|               return c;
  550|  1.74k|            }
  551|       |
  552|  28.5k|            if (is_digit(*c)) {
  ------------------
  |  Branch (552:17): [True: 27.5k, False: 1.06k]
  ------------------
  553|  27.5k|               v = v * 10 + (*c - '0');
  554|  27.5k|               ++c;
  555|  27.5k|            }
  556|  1.06k|            else {
  557|  1.06k|               if (sign) {
  ------------------
  |  Branch (557:20): [True: 604, False: 464]
  ------------------
  558|    604|                  v = -v;
  559|    604|               }
  560|  1.06k|               return c;
  561|  1.06k|            }
  562|       |
  563|  27.5k|            if (is_digit(*c)) {
  ------------------
  |  Branch (563:17): [True: 26.0k, False: 1.48k]
  ------------------
  564|  26.0k|               v = v * 10 + (*c - '0');
  565|  26.0k|               ++c;
  566|  26.0k|            }
  567|  1.48k|            else {
  568|  1.48k|               if (sign) {
  ------------------
  |  Branch (568:20): [True: 722, False: 762]
  ------------------
  569|    722|                  v = -v;
  570|    722|               }
  571|  1.48k|               return c;
  572|  1.48k|            }
  573|       |
  574|  26.0k|            if (is_digit(*c)) {
  ------------------
  |  Branch (574:17): [True: 24.7k, False: 1.25k]
  ------------------
  575|  24.7k|               v = v * 10 + (*c - '0');
  576|  24.7k|               ++c;
  577|  24.7k|            }
  578|  1.25k|            else {
  579|  1.25k|               if (sign) {
  ------------------
  |  Branch (579:20): [True: 692, False: 566]
  ------------------
  580|    692|                  v = -v;
  581|    692|               }
  582|  1.25k|               return c;
  583|  1.25k|            }
  584|       |
  585|  24.7k|            if constexpr (sizeof(T) > 4) {
  586|  24.7k|               if (is_digit(*c)) {
  ------------------
  |  Branch (586:20): [True: 23.6k, False: 1.10k]
  ------------------
  587|  23.6k|                  v = v * 10 + (*c - '0');
  588|  23.6k|                  ++c;
  589|  23.6k|               }
  590|  1.10k|               else {
  591|  1.10k|                  if (sign) {
  ------------------
  |  Branch (591:23): [True: 337, False: 772]
  ------------------
  592|    337|                     v = -v;
  593|    337|                  }
  594|  1.10k|                  return c;
  595|  1.10k|               }
  596|       |
  597|  23.6k|               if (is_digit(*c)) {
  ------------------
  |  Branch (597:20): [True: 22.5k, False: 1.10k]
  ------------------
  598|  22.5k|                  v = v * 10 + (*c - '0');
  599|  22.5k|                  ++c;
  600|  22.5k|               }
  601|  1.10k|               else {
  602|  1.10k|                  if (sign) {
  ------------------
  |  Branch (602:23): [True: 357, False: 746]
  ------------------
  603|    357|                     v = -v;
  604|    357|                  }
  605|  1.10k|                  return c;
  606|  1.10k|               }
  607|       |
  608|  22.5k|               if (is_digit(*c)) {
  ------------------
  |  Branch (608:20): [True: 20.8k, False: 1.67k]
  ------------------
  609|  20.8k|                  v = v * 10 + (*c - '0');
  610|  20.8k|                  ++c;
  611|  20.8k|               }
  612|  1.67k|               else {
  613|  1.67k|                  if (sign) {
  ------------------
  |  Branch (613:23): [True: 607, False: 1.06k]
  ------------------
  614|    607|                     v = -v;
  615|    607|                  }
  616|  1.67k|                  return c;
  617|  1.67k|               }
  618|       |
  619|  20.8k|               if (is_digit(*c)) {
  ------------------
  |  Branch (619:20): [True: 19.8k, False: 1.02k]
  ------------------
  620|  19.8k|                  v = v * 10 + (*c - '0');
  621|  19.8k|                  ++c;
  622|  19.8k|               }
  623|  1.02k|               else {
  624|  1.02k|                  if (sign) {
  ------------------
  |  Branch (624:23): [True: 393, False: 634]
  ------------------
  625|    393|                     v = -v;
  626|    393|                  }
  627|  1.02k|                  return c;
  628|  1.02k|               }
  629|       |
  630|  19.8k|               if (is_digit(*c)) {
  ------------------
  |  Branch (630:20): [True: 18.7k, False: 1.06k]
  ------------------
  631|  18.7k|                  v = v * 10 + (*c - '0');
  632|  18.7k|                  ++c;
  633|  18.7k|               }
  634|  1.06k|               else {
  635|  1.06k|                  if (sign) {
  ------------------
  |  Branch (635:23): [True: 388, False: 677]
  ------------------
  636|    388|                     v = -v;
  637|    388|                  }
  638|  1.06k|                  return c;
  639|  1.06k|               }
  640|       |
  641|  18.7k|               if (is_digit(*c)) {
  ------------------
  |  Branch (641:20): [True: 17.5k, False: 1.21k]
  ------------------
  642|  17.5k|                  v = v * 10 + (*c - '0');
  643|  17.5k|                  ++c;
  644|  17.5k|               }
  645|  1.21k|               else {
  646|  1.21k|                  if (sign) {
  ------------------
  |  Branch (646:23): [True: 662, False: 550]
  ------------------
  647|    662|                     v = -v;
  648|    662|                  }
  649|  1.21k|                  return c;
  650|  1.21k|               }
  651|       |
  652|  17.5k|               if (is_digit(*c)) {
  ------------------
  |  Branch (652:20): [True: 16.1k, False: 1.42k]
  ------------------
  653|  16.1k|                  v = v * 10 + (*c - '0');
  654|  16.1k|                  ++c;
  655|  16.1k|               }
  656|  1.42k|               else {
  657|  1.42k|                  if (sign) {
  ------------------
  |  Branch (657:23): [True: 645, False: 783]
  ------------------
  658|    645|                     v = -v;
  659|    645|                  }
  660|  1.42k|                  return c;
  661|  1.42k|               }
  662|       |
  663|  16.1k|               if (is_digit(*c)) {
  ------------------
  |  Branch (663:20): [True: 15.1k, False: 1.01k]
  ------------------
  664|  15.1k|                  v = v * 10 + (*c - '0');
  665|  15.1k|                  ++c;
  666|  15.1k|               }
  667|  1.01k|               else {
  668|  1.01k|                  if (sign) {
  ------------------
  |  Branch (668:23): [True: 341, False: 672]
  ------------------
  669|    341|                     v = -v;
  670|    341|                  }
  671|  1.01k|                  return c;
  672|  1.01k|               }
  673|       |
  674|  15.1k|               if (is_digit(*c)) {
  ------------------
  |  Branch (674:20): [True: 10.0k, False: 5.05k]
  ------------------
  675|  10.0k|                  v = v * 10 + (*c - '0');
  676|  10.0k|                  ++c;
  677|  10.0k|               }
  678|  5.05k|               else {
  679|  5.05k|                  if (sign) {
  ------------------
  |  Branch (679:23): [True: 4.32k, False: 738]
  ------------------
  680|  4.32k|                     v = -v;
  681|  4.32k|                  }
  682|  5.05k|                  return c;
  683|  5.05k|               }
  684|  15.1k|            }
  685|  24.7k|         }
  686|  31.6k|      }
  687|       |
  688|  35.4k|      if (is_digit(*c)) {
  ------------------
  |  Branch (688:11): [True: 9.09k, False: 26.3k]
  ------------------
  689|  9.09k|         if (sign) {
  ------------------
  |  Branch (689:14): [True: 8.16k, False: 938]
  ------------------
  690|  8.16k|            if (would_overflow_negative<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (690:17): [True: 7.62k, False: 534]
  ------------------
  691|  7.62k|               return {};
  692|  7.62k|            }
  693|    534|            v = -1 * v;
  694|    534|            v = v * 10 - (*c - '0');
  695|    534|         }
  696|    938|         else {
  697|    938|            if (would_overflow_positive<T>(v, *c)) [[unlikely]] {
  ------------------
  |  Branch (697:17): [True: 290, False: 648]
  ------------------
  698|    290|               return {};
  699|    290|            }
  700|    648|            v = v * 10 + (*c - '0');
  701|    648|         }
  702|  1.18k|         ++c;
  703|  1.18k|         if (is_digit(*c)) [[unlikely]] {
  ------------------
  |  Branch (703:14): [True: 444, False: 738]
  ------------------
  704|    444|            return {};
  705|    444|         }
  706|    738|         return c;
  707|  1.18k|      }
  708|       |
  709|  26.3k|      if (sign) {
  ------------------
  |  Branch (709:11): [True: 585, False: 25.8k]
  ------------------
  710|    585|         v = -v;
  711|    585|      }
  712|  26.3k|      return c;
  713|  35.4k|   }
_ZN3glz23would_overflow_negativeIlEEbu17__remove_volatileIT_Eh:
  154|  8.16k|   {
  155|       |      // For negative: max magnitude is max + 1 (e.g., -2147483648 for int32)
  156|  8.16k|      using U = std::remove_volatile_t<T>;
  157|  8.16k|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)()) + 1;
  158|  8.16k|      constexpr auto threshold = max_val / 10;
  159|  8.16k|      constexpr auto last_digit = max_val % 10;
  160|  8.16k|      const auto uv = static_cast<uint64_t>(v);
  161|  8.16k|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  162|       |      // When digit > last_digit, effective threshold is one less
  163|  8.16k|      return uv > (threshold - uint64_t(digit > last_digit));
  164|  8.16k|   }
_ZN3glz23would_overflow_positiveIlEEbu17__remove_volatileIT_Eh:
  140|    938|   {
  141|    938|      using U = std::remove_volatile_t<T>;
  142|    938|      constexpr auto max_val = static_cast<uint64_t>((std::numeric_limits<U>::max)());
  143|    938|      constexpr auto threshold = max_val / 10;
  144|    938|      constexpr auto last_digit = max_val % 10;
  145|    938|      const auto uv = static_cast<uint64_t>(v);
  146|    938|      const auto digit = static_cast<uint64_t>(next_digit - '0');
  147|       |      // When digit > last_digit, effective threshold is one less
  148|       |      // This is branch-free and faster than bitwise OR/AND approach
  149|    938|      return uv > (threshold - uint64_t(digit > last_digit));
  150|    938|   }

_ZN3glz9has_quoteEm:
   86|  95.5M|   {
   87|  95.5M|      return has_zero(chunk ^ repeat_byte8('"'));
   88|  95.5M|   }
_ZN3glz8has_zeroEm:
   81|   158M|   {
   82|   158M|      return (((chunk - 0x0101010101010101ull) & ~chunk) & 0x8080808080808080ull);
   83|   158M|   }
_ZN3glz8has_charILc123EEEmm:
  102|  22.0M|   {
  103|  22.0M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  22.0M|   }
_ZN3glz8has_charILc125EEEmm:
  102|  22.0M|   {
  103|  22.0M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  22.0M|   }
_ZN3glz11countr_zeroEm:
   29|  11.2M|   {
   30|       |#ifdef _MSC_VER
   31|       |      return std::countr_zero(x);
   32|       |#else
   33|  11.2M|#if __has_builtin(__builtin_ctzll)
   34|  11.2M|      return __builtin_ctzll(x);
   35|       |#else
   36|       |      return std::countr_zero(x);
   37|       |#endif
   38|  11.2M|#endif
   39|  11.2M|   }
_ZN3glz8has_charILc91EEEmm:
  102|  9.40M|   {
  103|  9.40M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  9.40M|   }
_ZN3glz8has_charILc93EEEmm:
  102|  9.40M|   {
  103|  9.40M|      return has_zero(chunk ^ repeat_byte8(Char));
  104|  9.40M|   }
_ZN3glz11countr_zeroEj:
   16|  48.8M|   {
   17|       |#ifdef _MSC_VER
   18|       |      return std::countr_zero(x);
   19|       |#else
   20|  48.8M|#if __has_builtin(__builtin_ctzl)
   21|  48.8M|      return __builtin_ctzl(x);
   22|       |#else
   23|       |      return std::countr_zero(x);
   24|       |#endif
   25|  48.8M|#endif
   26|  48.8M|   }

_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm2EcEEbPKT1_:
  245|  5.81k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|  5.81k|      else if constexpr (N == 2) {
  304|  5.81k|         static constexpr auto packed = pack<Str, 2>();
  305|  5.81k|         uint16_t in;
  306|  5.81k|         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|  5.81k|         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  5.81k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz5pointELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm2EcEEbPKT1_:
  245|  1.46k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|  1.46k|      else if constexpr (N == 2) {
  304|  1.46k|         static constexpr auto packed = pack<Str, 2>();
  305|  1.46k|         uint16_t in;
  306|  1.46k|         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|  1.46k|         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.46k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  20.8k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  20.8k|      else if constexpr (N == 6) {
  268|  20.8k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  20.8k|         uint64_t in{};
  270|  20.8k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  20.8k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  20.8k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm5EcEEbPKT1_:
  245|    149|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|    149|      else if constexpr (N == 5) {
  277|    149|         static constexpr auto packed = pack<Str, 4>();
  278|    149|         uint32_t in;
  279|    149|         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|    149|         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    149|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm2ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm9EcEEbPKT1_:
  245|    745|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|    745|      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|    745|         return 0 == std::memcmp(Str.data(), other, N);
  323|    745|      }
  324|    745|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm3ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    932|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    932|      else if constexpr (N == 6) {
  268|    932|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    932|         uint64_t in{};
  270|    932|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    932|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    932|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  15.2k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  15.2k|      else if constexpr (N == 6) {
  268|  15.2k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  15.2k|         uint64_t in{};
  270|  15.2k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  15.2k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  15.2k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6nestedELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  1.10k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  1.10k|      else if constexpr (N == 6) {
  268|  1.10k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  1.10k|         uint64_t in{};
  270|  1.10k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  1.10k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.10k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm4ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm7EcEEbPKT1_:
  245|  7.66k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|  7.66k|      else if constexpr (N == 7) {
  259|  7.66k|         static constexpr auto packed = pack_buffered<Str, 8>();
  260|  7.66k|         uint64_t in{};
  261|  7.66k|         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|  7.66k|         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  7.66k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm5ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  1.36k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  1.36k|      else if constexpr (N == 6) {
  268|  1.36k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  1.36k|         uint64_t in{};
  270|  1.36k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  1.36k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.36k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm6ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|  1.68k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|  1.68k|      else if constexpr (N == 6) {
  268|  1.68k|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|  1.68k|         uint64_t in{};
  270|  1.68k|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|  1.68k|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.68k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEvOT1_OT2_T3_E1SELm3EcEEbPKSB_:
  245|  1.70k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  1.70k|      else if constexpr (N == 3) {
  295|  1.70k|         static constexpr auto packed = pack<Str, 2>();
  296|  1.70k|         uint16_t in;
  297|  1.70k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  1.70k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.70k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm7ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm8EcEEbPKT1_:
  245|  2.01k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|  2.01k|      if constexpr (N == 8) {
  250|  2.01k|         static constexpr auto packed = pack<Str, 8>();
  251|  2.01k|         uint64_t in;
  252|  2.01k|         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|  2.01k|         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  2.01k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz6amountELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    449|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    449|      else if constexpr (N == 6) {
  268|    449|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    449|         uint64_t in{};
  270|    449|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    449|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    449|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm8ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm8EcEEbPKT1_:
  245|    740|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|    740|      if constexpr (N == 8) {
  250|    740|         static constexpr auto packed = pack<Str, 8>();
  251|    740|         uint64_t in;
  252|    740|         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|    740|         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    740|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm9ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    449|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    449|      else if constexpr (N == 6) {
  268|    449|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    449|         uint64_t in{};
  270|    449|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    449|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    449|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm10ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm9EcEEbPKT1_:
  245|    395|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|    395|      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|    395|         return 0 == std::memcmp(Str.data(), other, N);
  323|    395|      }
  324|    395|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm11ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    470|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    470|      else if constexpr (N == 6) {
  268|    470|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    470|         uint64_t in{};
  270|    470|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    470|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    470|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiELm12ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm6EcEEbPKT1_:
  245|    212|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|    212|      else if constexpr (N == 6) {
  268|    212|         static constexpr auto packed = pack_buffered<Str, 8>();
  269|    212|         uint64_t in{};
  270|    212|         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|    212|         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    212|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextERPKcS9_EEvOT1_OT2_T3_E1SELm4EcEEbPKSB_:
  245|  1.13k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|  1.13k|      else if constexpr (N == 4) {
  286|  1.13k|         static constexpr auto packed = pack<Str, 4>();
  287|  1.13k|         uint32_t in;
  288|  1.13k|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|  1.13k|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.13k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm0ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm8EcEEbPKT1_:
  245|  74.8k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|  74.8k|      if constexpr (N == 8) {
  250|  74.8k|         static constexpr auto packed = pack<Str, 8>();
  251|  74.8k|         uint64_t in;
  252|  74.8k|         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|  74.8k|         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  74.8k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm1ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm7EcEEbPKT1_:
  245|  65.0k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|  65.0k|      else if constexpr (N == 7) {
  259|  65.0k|         static constexpr auto packed = pack_buffered<Str, 8>();
  260|  65.0k|         uint64_t in{};
  261|  65.0k|         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|  65.0k|         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  65.0k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm2ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm7EcEEbPKT1_:
  245|  46.9k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|  46.9k|      else if constexpr (N == 7) {
  259|  46.9k|         static constexpr auto packed = pack_buffered<Str, 8>();
  260|  46.9k|         uint64_t in{};
  261|  46.9k|         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|  46.9k|         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  46.9k|   }
_ZN3glz10comparitorIL_ZZNS_12decode_indexITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tELm3ERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT2_OT4_OT5_OT6_DpOT3_E15KeyWithEndQuoteELm3EcEEbPKT1_:
  245|  82.0k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  82.0k|      else if constexpr (N == 3) {
  295|  82.0k|         static constexpr auto packed = pack<Str, 2>();
  296|  82.0k|         uint16_t in;
  297|  82.0k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  82.0k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  82.0k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEvOT1_OT2_T3_E1SELm4EcEEbPKSB_:
  245|   228k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|   228k|      else if constexpr (N == 4) {
  286|   228k|         static constexpr auto packed = pack<Str, 4>();
  287|   228k|         uint32_t in;
  288|   228k|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|   228k|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|   228k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS6_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT1_OT2_T3_E1SELm3EcEEbPKSD_:
  245|  3.90k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  3.90k|      else if constexpr (N == 3) {
  295|  3.90k|         static constexpr auto packed = pack<Str, 2>();
  296|  3.90k|         uint16_t in;
  297|  3.90k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  3.90k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  3.90k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS6_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT1_OT2_T3_E1SELm4EcEEbPKSD_:
  245|  2.13k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|  2.13k|      else if constexpr (N == 4) {
  286|  2.13k|         static constexpr auto packed = pack<Str, 4>();
  287|  2.13k|         uint32_t in;
  288|  2.13k|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|  2.13k|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  2.13k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS6_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSB_EEvOT1_OT2_T3_E1SELm3EcEEbPKSD_:
  245|  2.39k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  2.39k|      else if constexpr (N == 3) {
  295|  2.39k|         static constexpr auto packed = pack<Str, 2>();
  296|  2.39k|         uint16_t in;
  297|  2.39k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  2.39k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  2.39k|   }
_ZN3glz10comparitorIL_ZZZNS_13get_view_jsonITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEEEEDaOT1_ENKUlTnmvE_clILm0EEEDavE3keyELm2EcEEbPKSC_:
  245|  25.3k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|  25.3k|      else if constexpr (N == 2) {
  304|  25.3k|         static constexpr auto packed = pack<Str, 2>();
  305|  25.3k|         uint16_t in;
  306|  25.3k|         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|  25.3k|         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  25.3k|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS6_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES8_SB_SA_EEvSF_OSG_T3_E1SELm3EcEEbPKSE_:
  245|    593|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|    593|      else if constexpr (N == 3) {
  295|    593|         static constexpr auto packed = pack<Str, 2>();
  296|    593|         uint16_t in;
  297|    593|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|    593|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    593|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS6_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES8_SB_SA_EEvSF_OSG_T3_E1SELm4EcEEbPKSE_:
  245|    594|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|    594|      else if constexpr (N == 4) {
  286|    594|         static constexpr auto packed = pack<Str, 4>();
  287|    594|         uint32_t in;
  288|    594|         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|    594|         return (in == packed);
  293|       |      }
  294|       |      else if constexpr (N == 3) {
  295|       |         static constexpr auto packed = pack<Str, 2>();
  296|       |         uint16_t in;
  297|       |         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|       |         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|    594|   }
_ZN3glz10comparitorIL_ZZNS_5matchITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS6_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES8_SB_SA_EEvSF_OSG_T3_E1SELm3EcEEbPKSE_:
  245|  1.01k|   {
  246|       |      // pack() builds values in little-endian order (byte 0 in LSB position).
  247|       |      // On big-endian systems, memcpy produces native (big-endian) values,
  248|       |      // so we need to byteswap to match the packed representation.
  249|       |      if constexpr (N == 8) {
  250|       |         static constexpr auto packed = pack<Str, 8>();
  251|       |         uint64_t in;
  252|       |         std::memcpy(&in, other, 8);
  253|       |         if constexpr (std::endian::native == std::endian::big) {
  254|       |            in = std::byteswap(in);
  255|       |         }
  256|       |         return (in == packed);
  257|       |      }
  258|       |      else if constexpr (N == 7) {
  259|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  260|       |         uint64_t in{};
  261|       |         std::memcpy(&in, other, 7);
  262|       |         if constexpr (std::endian::native == std::endian::big) {
  263|       |            in = std::byteswap(in);
  264|       |         }
  265|       |         return (in == packed);
  266|       |      }
  267|       |      else if constexpr (N == 6) {
  268|       |         static constexpr auto packed = pack_buffered<Str, 8>();
  269|       |         uint64_t in{};
  270|       |         std::memcpy(&in, other, 6);
  271|       |         if constexpr (std::endian::native == std::endian::big) {
  272|       |            in = std::byteswap(in);
  273|       |         }
  274|       |         return (in == packed);
  275|       |      }
  276|       |      else if constexpr (N == 5) {
  277|       |         static constexpr auto packed = pack<Str, 4>();
  278|       |         uint32_t in;
  279|       |         std::memcpy(&in, other, 4);
  280|       |         if constexpr (std::endian::native == std::endian::big) {
  281|       |            in = std::byteswap(in);
  282|       |         }
  283|       |         return (in == packed) & (Str[4] == other[4]);
  284|       |      }
  285|       |      else if constexpr (N == 4) {
  286|       |         static constexpr auto packed = pack<Str, 4>();
  287|       |         uint32_t in;
  288|       |         std::memcpy(&in, other, 4);
  289|       |         if constexpr (std::endian::native == std::endian::big) {
  290|       |            in = std::byteswap(in);
  291|       |         }
  292|       |         return (in == packed);
  293|       |      }
  294|  1.01k|      else if constexpr (N == 3) {
  295|  1.01k|         static constexpr auto packed = pack<Str, 2>();
  296|  1.01k|         uint16_t in;
  297|  1.01k|         std::memcpy(&in, other, 2);
  298|       |         if constexpr (std::endian::native == std::endian::big) {
  299|       |            in = std::byteswap(in);
  300|       |         }
  301|  1.01k|         return (in == packed) & (Str[2] == other[2]);
  302|       |      }
  303|       |      else if constexpr (N == 2) {
  304|       |         static constexpr auto packed = pack<Str, 2>();
  305|       |         uint16_t in;
  306|       |         std::memcpy(&in, other, 2);
  307|       |         if constexpr (std::endian::native == std::endian::big) {
  308|       |            in = std::byteswap(in);
  309|       |         }
  310|       |         return (in == packed);
  311|       |      }
  312|       |      else if constexpr (N == 1) {
  313|       |         return Str[0] == other[0];
  314|       |      }
  315|       |      else if constexpr (N == 0) {
  316|       |         return true;
  317|       |      }
  318|       |      else {
  319|       |         // Clang and GCC optimize this extremely well for constexpr std::string_view
  320|       |         // Packing data can create more binary on GCC
  321|       |         // The other cases probably aren't needed as compiler explorer shows them optimized equally well as memcmp
  322|       |         return 0 == std::memcmp(Str.data(), other, N);
  323|       |      }
  324|  1.01k|   }

_ZN3glz4dumpILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
  150|   662k|   {
  151|   662k|      if constexpr (Checked && vector_like<B>) {
  152|   662k|         if (ix == b.size()) [[unlikely]] {
  ------------------
  |  Branch (152:14): [True: 0, False: 662k]
  ------------------
  153|      0|            grow_buffer(b, b.size() == 0 ? 64 : ix + 1);
  ------------------
  |  Branch (153:28): [True: 0, False: 0]
  ------------------
  154|      0|         }
  155|   662k|      }
  156|   662k|      assign_maybe_cast(c, b, ix);
  157|   662k|      ++ix;
  158|   662k|   }
_ZN3glz17assign_maybe_castITkNS_10byte_sizedEcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvT_RT0_Rm:
   95|   662k|   {
   96|   662k|      using V = std::decay_t<decltype(b[0])>;
   97|   662k|      using C = std::decay_t<decltype(c)>;
   98|   662k|      if constexpr (std::same_as<V, C>) {
   99|   662k|         b[ix] = c;
  100|       |      }
  101|       |      else {
  102|       |         b[ix] = static_cast<V>(c);
  103|       |      }
  104|   662k|   }
_ZN3glz4dumpILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  192|  8.80M|   {
  193|  8.80M|      const auto n = str.size();
  194|  8.80M|      if constexpr (vector_like<B>) {
  195|  8.80M|         if constexpr (Checked) {
  196|  8.80M|            const auto k = ix + n;
  197|  8.80M|            if (ix + n > b.size()) [[unlikely]] {
  ------------------
  |  Branch (197:17): [True: 0, False: 8.80M]
  ------------------
  198|      0|               grow_buffer(b, k);
  199|      0|            }
  200|  8.80M|         }
  201|  8.80M|      }
  202|  8.80M|      std::memcpy(&b[ix], str.data(), n);
  203|  8.80M|      ix += n;
  204|  8.80M|   }
_ZN3glz16dump_maybe_emptyILb1ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEvNS1_17basic_string_viewIcS4_EERT0_Rm:
  319|  4.51M|   {
  320|  4.51M|      const auto n = str.size();
  321|  4.51M|      if (n) {
  ------------------
  |  Branch (321:11): [True: 4.51M, False: 0]
  ------------------
  322|  4.51M|         if constexpr (vector_like<B>) {
  323|  4.51M|            if constexpr (Checked) {
  324|  4.51M|               const auto k = ix + n;
  325|  4.51M|               if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (325:20): [True: 0, False: 4.51M]
  ------------------
  326|      0|                  grow_buffer(b, k);
  327|      0|               }
  328|  4.51M|            }
  329|  4.51M|         }
  330|  4.51M|         std::memcpy(&b[ix], str.data(), n);
  331|  4.51M|         ix += n;
  332|  4.51M|      }
  333|  4.51M|   }
_ZN3glz5dumpnINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT0_mRT_Rm:
  222|   220k|   {
  223|   220k|      if constexpr (vector_like<B>) {
  224|   220k|         const auto k = ix + n;
  225|   220k|         if (k > b.size()) [[unlikely]] {
  ------------------
  |  Branch (225:14): [True: 0, False: 220k]
  ------------------
  226|      0|            grow_buffer(b, k);
  227|      0|         }
  228|   220k|      }
  229|   220k|      fill_bytes(data_at(b, ix), c, n);
  230|   220k|      ix += n;
  231|   220k|   }
_ZN3glz10fill_bytesIcEEvPT_cm:
   54|   220k|   {
   55|   220k|      auto* p = reinterpret_cast<char*>(dst);
   56|   220k|      if (n >= 64) [[unlikely]] {
  ------------------
  |  Branch (56:11): [True: 28, False: 220k]
  ------------------
   57|     28|         std::memset(p, c, n);
   58|     28|         return;
   59|     28|      }
   60|   220k|      const uint64_t v = 0x0101010101010101ull * uint8_t(c);
   61|   220k|      if (n >= 8) {
  ------------------
  |  Branch (61:11): [True: 38.8k, False: 181k]
  ------------------
   62|  38.8k|         size_t i = 0;
   63|   141k|         for (; i + 8 <= n; i += 8) {
  ------------------
  |  Branch (63:17): [True: 102k, False: 38.8k]
  ------------------
   64|   102k|            std::memcpy(p + i, &v, 8);
   65|   102k|         }
   66|  38.8k|         if (i < n) {
  ------------------
  |  Branch (66:14): [True: 34.4k, False: 4.45k]
  ------------------
   67|  34.4k|            std::memcpy(p + n - 8, &v, 8); // overlaps what is already written, stays within n
   68|  34.4k|         }
   69|  38.8k|      }
   70|   181k|      else if (n >= 4) {
  ------------------
  |  Branch (70:16): [True: 12.6k, False: 168k]
  ------------------
   71|  12.6k|         std::memcpy(p, &v, 4);
   72|  12.6k|         std::memcpy(p + n - 4, &v, 4);
   73|  12.6k|      }
   74|   168k|      else if (n) {
  ------------------
  |  Branch (74:16): [True: 36.5k, False: 132k]
  ------------------
   75|  36.5k|         std::memcpy(p, &v, 1);
   76|  36.5k|         std::memcpy(p + (n >> 1), &v, 1);
   77|  36.5k|         std::memcpy(p + n - 1, &v, 1);
   78|  36.5k|      }
   79|   220k|   }
_ZN3glz7data_atINSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEEDaRT_m:
  117|   220k|   {
  118|       |      if constexpr (std::is_pointer_v<std::remove_cvref_t<B>>) {
  119|       |         return b + ix;
  120|       |      }
  121|   220k|      else {
  122|   220k|         static_assert(has_data<std::remove_cvref_t<B>>,
  123|   220k|                       "an output buffer must be contiguous: dump writes through memset and memcpy");
  124|       |         if constexpr (has_data_offset<std::remove_cvref_t<B>>) {
  125|       |            assert(ix >= b.data_offset() && "Index before flush offset");
  126|       |            return b.data() + (ix - b.data_offset());
  127|       |         }
  128|   220k|         else {
  129|   220k|            return b.data() + ix;
  130|   220k|         }
  131|   220k|      }
  132|   220k|   }
_ZN3glz4dumpILb0ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEETkNS_10byte_sizedEcEEvT1_RT0_Rm:
  150|    450|   {
  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|    450|      assign_maybe_cast(c, b, ix);
  157|    450|      ++ix;
  158|    450|   }

_ZN3glz10fast_float4spanIKcEC2Ev:
  438|  1.02M|  constexpr span() : ptr(nullptr), length(0) {}
_ZN3glz10fast_float10is_integerIcEEbT_:
 1481|   398k|fastfloat_really_inline constexpr bool is_integer(UC c) noexcept {
 1482|   398k|  return !(c > UC('9') || c < UC('0'));
  ------------------
  |  Branch (1482:12): [True: 3, False: 398k]
  |  Branch (1482:27): [True: 40, False: 398k]
  ------------------
 1483|   398k|}
_ZN3glz10fast_float11digit_valueIcEEmT_:
 1489|  14.9M|fastfloat_really_inline constexpr uint64_t digit_value(UC c) noexcept {
 1490|  14.9M|  return uint64_t(uint8_t(c) - uint8_t('0'));
 1491|  14.9M|}
_ZN3glz10fast_float4spanIKcEC2EPS2_m:
  436|   528k|  constexpr span(T const *_ptr, size_t _length) : ptr(_ptr), length(_length) {}
_ZN3glz10fast_float26loop_parse_if_eight_digitsERPKcS2_Rm:
 1679|  15.6k|                           uint64_t &i) {
 1680|       |  // optimizes better than parse_if_eight_digits_unrolled() for UC = char.
 1681|   802k|  while ((std::distance(p, pend) >= 8) &&
  ------------------
  |  Branch (1681:10): [True: 800k, False: 1.78k]
  ------------------
 1682|   800k|         is_made_of_eight_digits_fast(read8_to_u64(p))) {
  ------------------
  |  Branch (1682:10): [True: 787k, False: 13.8k]
  ------------------
 1683|   787k|    i = i * 100000000 +
 1684|   787k|        parse_eight_digits_unrolled(read8_to_u64(
 1685|   787k|            p)); // in rare cases, this will overflow, but that's ok
 1686|   787k|    p += 8;
 1687|   787k|  }
 1688|  15.6k|}
_ZN3glz10fast_float28is_made_of_eight_digits_fastEm:
 1597|   800k|is_made_of_eight_digits_fast(uint64_t val) noexcept {
 1598|   800k|  return !((((val + 0x4646464646464646) | (val - 0x3030303030303030)) &
 1599|   800k|            0x8080808080808080));
 1600|   800k|}
_ZN3glz10fast_float12read8_to_u64IcEEmPKT_:
 1503|  1.77M|read8_to_u64(UC const *chars) {
 1504|  1.77M|  if (cpp20_and_in_constexpr() || !std::is_same<UC, char>::value) {
  ------------------
  |  Branch (1504:7): [Folded, False: 0]
  |  Branch (1504:35): [Folded, False: 0]
  ------------------
 1505|      0|    uint64_t val = 0;
 1506|      0|    for (int i = 0; i < 8; ++i) {
  ------------------
  |  Branch (1506:21): [True: 0, False: 0]
  ------------------
 1507|      0|      val |= uint64_t(uint8_t(*chars)) << (i * 8);
 1508|      0|      ++chars;
 1509|      0|    }
 1510|      0|    return val;
 1511|      0|  }
 1512|  1.77M|  uint64_t val;
 1513|  1.77M|  ::memcpy(&val, chars, sizeof(uint64_t));
 1514|       |#if GLZ_FASTFLOAT_IS_BIG_ENDIAN == 1
 1515|       |  // Need to read as-if the number was in little-endian order.
 1516|       |  val = byteswap(val);
 1517|       |#endif
 1518|  1.77M|  return val;
 1519|  1.77M|}
_ZN3glz10fast_float27parse_eight_digits_unrolledEm:
 1575|   976k|parse_eight_digits_unrolled(uint64_t val) {
 1576|   976k|  uint64_t const mask = 0x000000FF000000FF;
 1577|   976k|  uint64_t const mul1 = 0x000F424000000064; // 100 + (1000000ULL << 32)
 1578|   976k|  uint64_t const mul2 = 0x0000271000000001; // 1 + (10000ULL << 32)
 1579|   976k|  val -= 0x3030303030303030;
 1580|   976k|  val = (val * 10) + (val >> 8); // val = (val * 2561) >> 8;
 1581|   976k|  val = (((val & mask) * mul1) + (((val >> 16) & mask) * mul2)) >> 32;
 1582|   976k|  return uint32_t(val);
 1583|   976k|}
_ZNK3glz10fast_float4spanIKcE3lenEv:
  440|  41.5k|  constexpr size_t len() const noexcept { return length; }
_ZN3glz10fast_float19from_chars_advancedIdcEENS0_19from_chars_result_tIT0_EERNS0_22parsed_number_string_tIS3_EERT_:
 4249|   511k|from_chars_advanced(parsed_number_string_t<UC> &pns, T &value) noexcept {
 4250|       |
 4251|   511k|  static_assert(is_supported_float_type<T>::value,
 4252|   511k|                "only some floating-point types are supported");
 4253|   511k|  static_assert(is_supported_char_type<UC>::value,
 4254|   511k|                "only char, wchar_t, char16_t and char32_t are supported");
 4255|       |
 4256|   511k|  from_chars_result_t<UC> answer;
 4257|       |
 4258|   511k|  answer.ec = std::errc(); // be optimistic
 4259|   511k|  answer.ptr = pns.lastmatch;
 4260|       |  // The implementation of the Clinger's fast path is convoluted because
 4261|       |  // we want round-to-nearest in all cases, irrespective of the rounding mode
 4262|       |  // selected on the thread.
 4263|       |  // We proceed optimistically, assuming that detail::rounds_to_nearest()
 4264|       |  // returns true.
 4265|   511k|  if (binary_format<T>::min_exponent_fast_path() <= pns.exponent &&
  ------------------
  |  Branch (4265:7): [True: 508k, False: 3.37k]
  ------------------
 4266|   508k|      pns.exponent <= binary_format<T>::max_exponent_fast_path() &&
  ------------------
  |  Branch (4266:7): [True: 503k, False: 5.16k]
  ------------------
 4267|   503k|      !pns.too_many_digits) {
  ------------------
  |  Branch (4267:7): [True: 492k, False: 10.9k]
  ------------------
 4268|       |    // Unfortunately, the conventional Clinger's fast path is only possible
 4269|       |    // when the system rounds to the nearest float.
 4270|       |    //
 4271|       |    // We expect the next branch to almost always be selected.
 4272|       |    // We could check it first (before the previous branch), but
 4273|       |    // there might be performance advantages at having the check
 4274|       |    // be last.
 4275|   492k|    if (!cpp20_and_in_constexpr() && detail::rounds_to_nearest()) {
  ------------------
  |  Branch (4275:9): [True: 492k, Folded]
  |  Branch (4275:38): [True: 492k, False: 0]
  ------------------
 4276|       |      // We have that fegetround() == FE_TONEAREST.
 4277|       |      // Next is Clinger's fast path.
 4278|   492k|      if (pns.mantissa <= binary_format<T>::max_mantissa_fast_path()) {
  ------------------
  |  Branch (4278:11): [True: 490k, False: 2.07k]
  ------------------
 4279|   490k|        value = T(pns.mantissa);
 4280|   490k|        if (pns.exponent < 0) {
  ------------------
  |  Branch (4280:13): [True: 2.13k, False: 487k]
  ------------------
 4281|  2.13k|          value = value / binary_format<T>::exact_power_of_ten(-pns.exponent);
 4282|   487k|        } else {
 4283|   487k|          value = value * binary_format<T>::exact_power_of_ten(pns.exponent);
 4284|   487k|        }
 4285|   490k|        if (pns.negative) {
  ------------------
  |  Branch (4285:13): [True: 397k, False: 92.4k]
  ------------------
 4286|   397k|          value = -value;
 4287|   397k|        }
 4288|   490k|        return answer;
 4289|   490k|      }
 4290|   492k|    } else {
 4291|       |      // We do not have that fegetround() == FE_TONEAREST.
 4292|       |      // Next is a modified Clinger's fast path, inspired by Jakub Jelínek's
 4293|       |      // proposal
 4294|      0|      if (pns.exponent >= 0 &&
  ------------------
  |  Branch (4294:11): [True: 0, False: 0]
  ------------------
 4295|      0|          pns.mantissa <=
  ------------------
  |  Branch (4295:11): [True: 0, False: 0]
  ------------------
 4296|      0|              binary_format<T>::max_mantissa_fast_path(pns.exponent)) {
 4297|      0|#if defined(__clang__) || defined(GLZ_FASTFLOAT_32BIT)
 4298|       |        // Clang may map 0 to -0.0 when fegetround() == FE_DOWNWARD
 4299|      0|        if (pns.mantissa == 0) {
  ------------------
  |  Branch (4299:13): [True: 0, False: 0]
  ------------------
 4300|      0|          value = pns.negative ? T(-0.) : T(0.);
  ------------------
  |  Branch (4300:19): [True: 0, False: 0]
  ------------------
 4301|      0|          return answer;
 4302|      0|        }
 4303|      0|#endif
 4304|      0|        value = T(pns.mantissa) *
 4305|      0|                binary_format<T>::exact_power_of_ten(pns.exponent);
 4306|      0|        if (pns.negative) {
  ------------------
  |  Branch (4306:13): [True: 0, False: 0]
  ------------------
 4307|      0|          value = -value;
 4308|      0|        }
 4309|      0|        return answer;
 4310|      0|      }
 4311|      0|    }
 4312|   492k|  }
 4313|  21.5k|  adjusted_mantissa am =
 4314|  21.5k|      compute_float<binary_format<T>>(pns.exponent, pns.mantissa);
 4315|  21.5k|  if (pns.too_many_digits && am.power2 >= 0) {
  ------------------
  |  Branch (4315:7): [True: 15.5k, False: 5.97k]
  |  Branch (4315:30): [True: 15.5k, False: 0]
  ------------------
 4316|  15.5k|    if (am != compute_float<binary_format<T>>(pns.exponent, pns.mantissa + 1)) {
  ------------------
  |  Branch (4316:9): [True: 11.0k, False: 4.50k]
  ------------------
 4317|  11.0k|      am = compute_error<binary_format<T>>(pns.exponent, pns.mantissa);
 4318|  11.0k|    }
 4319|  15.5k|  }
 4320|       |  // If we called compute_float<binary_format<T>>(pns.exponent, pns.mantissa)
 4321|       |  // and we have an invalid power (am.power2 < 0), then we need to go the long
 4322|       |  // way around again. This is very uncommon.
 4323|  21.5k|  if (am.power2 < 0) {
  ------------------
  |  Branch (4323:7): [True: 11.0k, False: 10.4k]
  ------------------
 4324|  11.0k|    am = digit_comp<T>(pns, am);
 4325|  11.0k|  }
 4326|  21.5k|  to_float(pns.negative, am, value);
 4327|       |  // Test for over/underflow.
 4328|  21.5k|  if ((pns.mantissa != 0 && am.mantissa == 0 && am.power2 == 0) ||
  ------------------
  |  Branch (4328:8): [True: 21.2k, False: 297]
  |  Branch (4328:29): [True: 1.70k, False: 19.5k]
  |  Branch (4328:49): [True: 133, False: 1.57k]
  ------------------
 4329|  21.3k|      am.power2 == binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (4329:7): [True: 200, False: 21.1k]
  ------------------
 4330|    333|    answer.ec = std::errc::result_out_of_range;
 4331|    333|  }
 4332|  21.5k|  return answer;
 4333|   511k|}
_ZN3glz10fast_float13binary_formatIdE22min_exponent_fast_pathEv:
  695|   511k|inline constexpr int binary_format<double>::min_exponent_fast_path() {
  696|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
  697|       |  return 0;
  698|       |#else
  699|   511k|  return -22;
  700|   511k|#endif
  701|   511k|}
_ZN3glz10fast_float13binary_formatIdE22max_exponent_fast_pathEv:
  767|   508k|inline constexpr int binary_format<double>::max_exponent_fast_path() {
  768|   508k|  return 22;
  769|   508k|}
_ZN3glz10fast_float6detail17rounds_to_nearestEv:
 4129|   492k|fastfloat_really_inline bool rounds_to_nearest() noexcept {
 4130|       |  // https://lemire.me/blog/2020/06/26/gcc-not-nearest/
 4131|       |#if (FLT_EVAL_METHOD != 1) && (FLT_EVAL_METHOD != 0)
 4132|       |  return false;
 4133|       |#endif
 4134|       |  // See
 4135|       |  // A fast function to check your floating-point rounding mode
 4136|       |  // https://lemire.me/blog/2022/11/16/a-fast-function-to-check-your-floating-point-rounding-mode/
 4137|       |  //
 4138|       |  // This function is meant to be equivalent to :
 4139|       |  // prior: #include <cfenv>
 4140|       |  //  return fegetround() == FE_TONEAREST;
 4141|       |  // However, it is expected to be much faster than the fegetround()
 4142|       |  // function call.
 4143|       |  //
 4144|       |  // The volatile keyword prevents the compiler from computing the function
 4145|       |  // at compile-time.
 4146|       |  // There might be other ways to prevent compile-time optimizations (e.g.,
 4147|       |  // asm). The value does not need to be std::numeric_limits<float>::min(), any
 4148|       |  // small value so that 1 + x should round to 1 would do (after accounting for
 4149|       |  // excess precision, as in 387 instructions).
 4150|   492k|  static float volatile fmin = (std::numeric_limits<float>::min)();
 4151|   492k|  float fmini = fmin; // we copy it so that it gets loaded at most once.
 4152|       |//
 4153|       |// Explanation:
 4154|       |// Only when fegetround() == FE_TONEAREST do we have that
 4155|       |// fmin + 1.0f == 1.0f - fmin.
 4156|       |//
 4157|       |// FE_UPWARD:
 4158|       |//  fmin + 1.0f > 1
 4159|       |//  1.0f - fmin == 1
 4160|       |//
 4161|       |// FE_DOWNWARD or  FE_TOWARDZERO:
 4162|       |//  fmin + 1.0f == 1
 4163|       |//  1.0f - fmin < 1
 4164|       |//
 4165|       |// Note: This may fail to be accurate if fast-math has been
 4166|       |// enabled, as rounding conventions may not apply.
 4167|       |#ifdef GLZ_FASTFLOAT_VISUAL_STUDIO
 4168|       |#pragma warning(push)
 4169|       |//  todo: is there a VS warning?
 4170|       |//  see
 4171|       |//  https://stackoverflow.com/questions/46079446/is-there-a-warning-for-floating-point-equality-checking-in-visual-studio-2013
 4172|       |#elif defined(__clang__)
 4173|       |#pragma clang diagnostic push
 4174|   492k|#pragma clang diagnostic ignored "-Wfloat-equal"
 4175|       |#elif defined(__GNUC__)
 4176|       |#pragma GCC diagnostic push
 4177|       |#pragma GCC diagnostic ignored "-Wfloat-equal"
 4178|       |#endif
 4179|   492k|  return (fmini + 1.0f == 1.0f - fmini);
 4180|       |#ifdef GLZ_FASTFLOAT_VISUAL_STUDIO
 4181|       |#pragma warning(pop)
 4182|       |#elif defined(__clang__)
 4183|       |#pragma clang diagnostic pop
 4184|       |#elif defined(__GNUC__)
 4185|       |#pragma GCC diagnostic pop
 4186|       |#endif
 4187|   492k|}
_ZN3glz10fast_float13binary_formatIdE22max_mantissa_fast_pathEv:
  777|   492k|inline constexpr uint64_t binary_format<double>::max_mantissa_fast_path() {
  778|   492k|  return uint64_t(2) << mantissa_explicit_bits();
  779|   492k|}
_ZN3glz10fast_float13binary_formatIdE22mantissa_explicit_bitsEv:
  713|   711k|inline constexpr int binary_format<double>::mantissa_explicit_bits() {
  714|   711k|  return 52;
  715|   711k|}
_ZN3glz10fast_float13binary_formatIdE18exact_power_of_tenEl:
 1057|   490k|binary_format<double>::exact_power_of_ten(int64_t power) {
 1058|       |  // Work around clang bug https://godbolt.org/z/zedh7rrhc
 1059|   490k|  return (void)powers_of_ten[0], powers_of_ten[power];
 1060|   490k|}
_ZN3glz10fast_float13compute_floatINS0_13binary_formatIdEEEENS0_17adjusted_mantissaElm:
 2852|  37.0k|compute_float(int64_t q, uint64_t w) noexcept {
 2853|  37.0k|  adjusted_mantissa answer;
 2854|  37.0k|  if ((w == 0) || (q < binary::smallest_power_of_ten())) {
  ------------------
  |  Branch (2854:7): [True: 297, False: 36.7k]
  |  Branch (2854:19): [True: 169, False: 36.6k]
  ------------------
 2855|    466|    answer.power2 = 0;
 2856|    466|    answer.mantissa = 0;
 2857|       |    // result should be zero
 2858|    466|    return answer;
 2859|    466|  }
 2860|  36.6k|  if (q > binary::largest_power_of_ten()) {
  ------------------
  |  Branch (2860:7): [True: 235, False: 36.3k]
  ------------------
 2861|       |    // we want to get infinity:
 2862|    235|    answer.power2 = binary::infinite_power();
 2863|    235|    answer.mantissa = 0;
 2864|    235|    return answer;
 2865|    235|  }
 2866|       |  // At this point in time q is in [powers::smallest_power_of_five,
 2867|       |  // powers::largest_power_of_five].
 2868|       |
 2869|       |  // We want the most significant bit of i to be 1. Shift if needed.
 2870|  36.3k|  int lz = leading_zeroes(w);
 2871|  36.3k|  w <<= lz;
 2872|       |
 2873|       |  // The required precision is binary::mantissa_explicit_bits() + 3 because
 2874|       |  // 1. We need the implicit bit
 2875|       |  // 2. We need an extra bit for rounding purposes
 2876|       |  // 3. We might lose a bit due to the "upperbit" routine (result too small,
 2877|       |  // requiring a shift)
 2878|       |
 2879|  36.3k|  value128 product =
 2880|  36.3k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 2881|       |  // The computed 'product' is always sufficient.
 2882|       |  // Mathematical proof:
 2883|       |  // Noble Mushtak and Daniel Lemire, Fast Number Parsing Without Fallback (to
 2884|       |  // appear) See script/mushtak_lemire.py
 2885|       |
 2886|       |  // The "compute_product_approximation" function can be slightly slower than a
 2887|       |  // branchless approach: value128 product = compute_product(q, w); but in
 2888|       |  // practice, we can win big with the compute_product_approximation if its
 2889|       |  // additional branch is easily predicted. Which is best is data specific.
 2890|  36.3k|  int upperbit = int(product.high >> 63);
 2891|  36.3k|  int shift = upperbit + 64 - binary::mantissa_explicit_bits() - 3;
 2892|       |
 2893|  36.3k|  answer.mantissa = product.high >> shift;
 2894|       |
 2895|  36.3k|  answer.power2 = int32_t(detail::power(int32_t(q)) + upperbit - lz -
 2896|  36.3k|                          binary::minimum_exponent());
 2897|  36.3k|  if (answer.power2 <= 0) { // we have a subnormal?
  ------------------
  |  Branch (2897:7): [True: 2.50k, False: 33.8k]
  ------------------
 2898|       |    // Here have that answer.power2 <= 0 so -answer.power2 >= 0
 2899|  2.50k|    if (-answer.power2 + 1 >=
  ------------------
  |  Branch (2899:9): [True: 5, False: 2.50k]
  ------------------
 2900|  2.50k|        64) { // if we have more than 64 bits below the minimum exponent, you
 2901|       |              // have a zero for sure.
 2902|      5|      answer.power2 = 0;
 2903|      5|      answer.mantissa = 0;
 2904|       |      // result should be zero
 2905|      5|      return answer;
 2906|      5|    }
 2907|       |    // next line is safe because -answer.power2 + 1 < 64
 2908|  2.50k|    answer.mantissa >>= -answer.power2 + 1;
 2909|       |    // Thankfully, we can't have both "round-to-even" and subnormals because
 2910|       |    // "round-to-even" only occurs for powers close to 0 in the 32-bit and
 2911|       |    // and 64-bit case (with no more than 19 digits).
 2912|  2.50k|    answer.mantissa += (answer.mantissa & 1); // round up
 2913|  2.50k|    answer.mantissa >>= 1;
 2914|       |    // There is a weird scenario where we don't have a subnormal but just.
 2915|       |    // Suppose we start with 2.2250738585072013e-308, we end up
 2916|       |    // with 0x3fffffffffffff x 2^-1023-53 which is technically subnormal
 2917|       |    // whereas 0x40000000000000 x 2^-1023-53  is normal. Now, we need to round
 2918|       |    // up 0x3fffffffffffff x 2^-1023-53  and once we do, we are no longer
 2919|       |    // subnormal, but we can only know this after rounding.
 2920|       |    // So we only declare a subnormal if we are smaller than the threshold.
 2921|  2.50k|    answer.power2 =
 2922|  2.50k|        (answer.mantissa < (uint64_t(1) << binary::mantissa_explicit_bits()))
  ------------------
  |  Branch (2922:9): [True: 2.50k, False: 0]
  ------------------
 2923|  2.50k|            ? 0
 2924|  2.50k|            : 1;
 2925|  2.50k|    return answer;
 2926|  2.50k|  }
 2927|       |
 2928|       |  // usually, we round *up*, but if we fall right in between and and we have an
 2929|       |  // even basis, we need to round down
 2930|       |  // We are only concerned with the cases where 5**q fits in single 64-bit word.
 2931|  33.8k|  if ((product.low <= 1) && (q >= binary::min_exponent_round_to_even()) &&
  ------------------
  |  Branch (2931:7): [True: 12.5k, False: 21.2k]
  |  Branch (2931:29): [True: 11.9k, False: 642]
  ------------------
 2932|  11.9k|      (q <= binary::max_exponent_round_to_even()) &&
  ------------------
  |  Branch (2932:7): [True: 11.3k, False: 637]
  ------------------
 2933|  11.3k|      ((answer.mantissa & 3) == 1)) { // we may fall between two floats!
  ------------------
  |  Branch (2933:7): [True: 7.26k, False: 4.04k]
  ------------------
 2934|       |    // To be in-between two floats we need that in doing
 2935|       |    //   answer.mantissa = product.high >> (upperbit + 64 -
 2936|       |    //   binary::mantissa_explicit_bits() - 3);
 2937|       |    // ... we dropped out only zeroes. But if this happened, then we can go
 2938|       |    // back!!!
 2939|  7.26k|    if ((answer.mantissa << shift) == product.high) {
  ------------------
  |  Branch (2939:9): [True: 3.84k, False: 3.41k]
  ------------------
 2940|  3.84k|      answer.mantissa &= ~uint64_t(1); // flip it so that we do not round up
 2941|  3.84k|    }
 2942|  7.26k|  }
 2943|       |
 2944|  33.8k|  answer.mantissa += (answer.mantissa & 1); // round up
 2945|  33.8k|  answer.mantissa >>= 1;
 2946|  33.8k|  if (answer.mantissa >= (uint64_t(2) << binary::mantissa_explicit_bits())) {
  ------------------
  |  Branch (2946:7): [True: 1.45k, False: 32.4k]
  ------------------
 2947|  1.45k|    answer.mantissa = (uint64_t(1) << binary::mantissa_explicit_bits());
 2948|  1.45k|    answer.power2++; // undo previous addition
 2949|  1.45k|  }
 2950|       |
 2951|  33.8k|  answer.mantissa &= ~(uint64_t(1) << binary::mantissa_explicit_bits());
 2952|  33.8k|  if (answer.power2 >= binary::infinite_power()) { // infinity
  ------------------
  |  Branch (2952:7): [True: 19, False: 33.8k]
  ------------------
 2953|     19|    answer.power2 = binary::infinite_power();
 2954|     19|    answer.mantissa = 0;
 2955|     19|  }
 2956|  33.8k|  return answer;
 2957|  36.3k|}
_ZN3glz10fast_float17adjusted_mantissaC2Ev:
  568|  59.1k|  adjusted_mantissa() = default;
_ZN3glz10fast_float13binary_formatIdE21smallest_power_of_tenEv:
 1077|  36.7k|inline constexpr int binary_format<double>::smallest_power_of_ten() {
 1078|  36.7k|  return -342;
 1079|  36.7k|}
_ZN3glz10fast_float13binary_formatIdE20largest_power_of_tenEv:
 1068|  36.6k|template <> inline constexpr int binary_format<double>::largest_power_of_ten() {
 1069|  36.6k|  return 308;
 1070|  36.6k|}
_ZN3glz10fast_float14leading_zeroesEm:
  488|  55.6k|leading_zeroes(uint64_t input_num) {
  489|  55.6k|  assert(input_num > 0);
  ------------------
  |  Branch (489:3): [True: 55.6k, False: 0]
  ------------------
  490|  55.6k|  if (cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (490:7): [Folded, False: 55.6k]
  ------------------
  491|      0|    return leading_zeroes_generic(input_num);
  492|      0|  }
  493|       |#ifdef GLZ_FASTFLOAT_VISUAL_STUDIO
  494|       |#if defined(_M_X64) || defined(_M_ARM64)
  495|       |  unsigned long leading_zero = 0;
  496|       |  // Search the mask data from most significant bit (MSB)
  497|       |  // to least significant bit (LSB) for a set bit (1).
  498|       |  _BitScanReverse64(&leading_zero, input_num);
  499|       |  return (int)(63 - leading_zero);
  500|       |#else
  501|       |  return leading_zeroes_generic(input_num);
  502|       |#endif
  503|       |#else
  504|  55.6k|  return __builtin_clzll(input_num);
  505|  55.6k|#endif
  506|  55.6k|}
_ZN3glz10fast_float29compute_product_approximationILi55EEENS0_8value128Elm:
 2771|  47.4k|compute_product_approximation(int64_t q, uint64_t w) {
 2772|  47.4k|  int const index = 2 * int(q - powers::smallest_power_of_five);
 2773|       |  // For small values of q, e.g., q in [0,27], the answer is always exact
 2774|       |  // because The line value128 firstproduct = full_multiplication(w,
 2775|       |  // power_of_five_128[index]); gives the exact answer.
 2776|  47.4k|  value128 firstproduct =
 2777|  47.4k|      full_multiplication(w, powers::power_of_five_128[index]);
 2778|  47.4k|  static_assert((bit_precision >= 0) && (bit_precision <= 64),
 2779|  47.4k|                " precision should  be in (0,64]");
 2780|  47.4k|  constexpr uint64_t precision_mask =
 2781|  47.4k|      (bit_precision < 64) ? (uint64_t(0xFFFFFFFFFFFFFFFF) >> bit_precision)
  ------------------
  |  Branch (2781:7): [True: 0, Folded]
  ------------------
 2782|  47.4k|                           : uint64_t(0xFFFFFFFFFFFFFFFF);
 2783|  47.4k|  if ((firstproduct.high & precision_mask) ==
  ------------------
  |  Branch (2783:7): [True: 6.70k, False: 40.7k]
  ------------------
 2784|  47.4k|      precision_mask) { // could further guard with  (lower + w < lower)
 2785|       |    // regarding the second product, we only need secondproduct.high, but our
 2786|       |    // expectation is that the compiler will optimize this extra work away if
 2787|       |    // needed.
 2788|  6.70k|    value128 secondproduct =
 2789|  6.70k|        full_multiplication(w, powers::power_of_five_128[index + 1]);
 2790|  6.70k|    firstproduct.low += secondproduct.high;
 2791|  6.70k|    if (secondproduct.high > firstproduct.low) {
  ------------------
  |  Branch (2791:9): [True: 2.55k, False: 4.15k]
  ------------------
 2792|  2.55k|      firstproduct.high++;
 2793|  2.55k|    }
 2794|  6.70k|  }
 2795|  47.4k|  return firstproduct;
 2796|  47.4k|}
_ZN3glz10fast_float19full_multiplicationEmm:
  540|  54.1k|full_multiplication(uint64_t a, uint64_t b) {
  541|  54.1k|  if (cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (541:7): [Folded, False: 54.1k]
  ------------------
  542|      0|    value128 answer;
  543|      0|    answer.low = umul128_generic(a, b, &answer.high);
  544|      0|    return answer;
  545|      0|  }
  546|  54.1k|  value128 answer;
  547|       |#if defined(_M_ARM64) && !defined(__MINGW32__)
  548|       |  // ARM64 has native support for 64-bit multiplications, no need to emulate
  549|       |  // But MinGW on ARM64 doesn't have native support for 64-bit multiplications
  550|       |  answer.high = __umulh(a, b);
  551|       |  answer.low = a * b;
  552|       |#elif defined(GLZ_FASTFLOAT_32BIT) ||                                              \
  553|       |    (defined(_WIN64) && !defined(__clang__) && !defined(_M_ARM64))
  554|       |  answer.low = _umul128(a, b, &answer.high); // _umul128 not available on ARM64
  555|       |#elif defined(GLZ_FASTFLOAT_64BIT) && defined(__SIZEOF_INT128__)
  556|       |  __uint128_t r = ((__uint128_t)a) * b;
  557|  54.1k|  answer.low = uint64_t(r);
  558|  54.1k|  answer.high = uint64_t(r >> 64);
  559|       |#else
  560|       |  answer.low = umul128_generic(a, b, &answer.high);
  561|       |#endif
  562|  54.1k|  return answer;
  563|  54.1k|}
_ZN3glz10fast_float8value128C2Ev:
  454|  54.1k|  constexpr value128() : low(0), high(0) {}
_ZN3glz10fast_float6detail5powerEi:
 2814|  47.4k|constexpr fastfloat_really_inline int32_t power(int32_t q) noexcept {
 2815|  47.4k|  return (((152170 + 65536) * q) >> 16) + 63;
 2816|  47.4k|}
_ZN3glz10fast_float13binary_formatIdE16minimum_exponentEv:
  742|  58.4k|template <> inline constexpr int binary_format<double>::minimum_exponent() {
  743|  58.4k|  return -1023;
  744|  58.4k|}
_ZN3glz10fast_float13binary_formatIdE26min_exponent_round_to_evenEv:
  733|  12.5k|inline constexpr int binary_format<double>::min_exponent_round_to_even() {
  734|  12.5k|  return -4;
  735|  12.5k|}
_ZN3glz10fast_float13binary_formatIdE26max_exponent_round_to_evenEv:
  723|  11.9k|inline constexpr int binary_format<double>::max_exponent_round_to_even() {
  724|  11.9k|  return 23;
  725|  11.9k|}
_ZNK3glz10fast_float17adjusted_mantissaneERKS1_:
  574|  15.5k|  constexpr bool operator!=(adjusted_mantissa const &o) const {
  575|  15.5k|    return mantissa != o.mantissa || power2 != o.power2;
  ------------------
  |  Branch (575:12): [True: 11.0k, False: 4.50k]
  |  Branch (575:38): [True: 0, False: 4.50k]
  ------------------
  576|  15.5k|  }
_ZN3glz10fast_float13compute_errorINS0_13binary_formatIdEEEENS0_17adjusted_mantissaElm:
 2837|  11.0k|compute_error(int64_t q, uint64_t w) noexcept {
 2838|  11.0k|  int lz = leading_zeroes(w);
 2839|  11.0k|  w <<= lz;
 2840|  11.0k|  value128 product =
 2841|  11.0k|      compute_product_approximation<binary::mantissa_explicit_bits() + 3>(q, w);
 2842|  11.0k|  return compute_error_scaled<binary>(q, product.high, lz);
 2843|  11.0k|}
_ZN3glz10fast_float20compute_error_scaledINS0_13binary_formatIdEEEENS0_17adjusted_mantissaElmi:
 2823|  11.0k|compute_error_scaled(int64_t q, uint64_t w, int lz) noexcept {
 2824|  11.0k|  int hilz = int(w >> 63) ^ 1;
 2825|  11.0k|  adjusted_mantissa answer;
 2826|  11.0k|  answer.mantissa = w << hilz;
 2827|  11.0k|  int bias = binary::mantissa_explicit_bits() - binary::minimum_exponent();
 2828|  11.0k|  answer.power2 = int32_t(detail::power(int32_t(q)) + bias - hilz - lz - 62 +
 2829|  11.0k|                          invalid_am_bias);
 2830|  11.0k|  return answer;
 2831|  11.0k|}
_ZN3glz10fast_float10digit_compIdcEENS0_17adjusted_mantissaERNS0_22parsed_number_string_tIT0_EES2_:
 4034|  11.0k|digit_comp(parsed_number_string_t<UC> &num, adjusted_mantissa am) noexcept {
 4035|       |  // remove the invalid exponent bias
 4036|  11.0k|  am.power2 -= invalid_am_bias;
 4037|       |
 4038|  11.0k|  int32_t sci_exp = scientific_exponent(num);
 4039|  11.0k|  size_t max_digits = binary_format<T>::max_digits();
 4040|  11.0k|  size_t digits = 0;
 4041|  11.0k|  bigint bigmant;
 4042|  11.0k|  parse_mantissa(bigmant, num, max_digits, digits);
 4043|       |  // can't underflow, since digits is at most max_digits.
 4044|  11.0k|  int32_t exponent = sci_exp + 1 - int32_t(digits);
 4045|  11.0k|  if (exponent >= 0) {
  ------------------
  |  Branch (4045:7): [True: 4.09k, False: 6.94k]
  ------------------
 4046|  4.09k|    return positive_digit_comp<T>(bigmant, exponent);
 4047|  6.94k|  } else {
 4048|  6.94k|    return negative_digit_comp<T>(bigmant, am, exponent);
 4049|  6.94k|  }
 4050|  11.0k|}
_ZN3glz10fast_float19scientific_exponentIcEEiRNS0_22parsed_number_string_tIT_EE:
 3640|  11.0k|scientific_exponent(parsed_number_string_t<UC> &num) noexcept {
 3641|  11.0k|  uint64_t mantissa = num.mantissa;
 3642|  11.0k|  int32_t exponent = int32_t(num.exponent);
 3643|  55.2k|  while (mantissa >= 10000) {
  ------------------
  |  Branch (3643:10): [True: 44.1k, False: 11.0k]
  ------------------
 3644|  44.1k|    mantissa /= 10000;
 3645|  44.1k|    exponent += 4;
 3646|  44.1k|  }
 3647|  22.0k|  while (mantissa >= 100) {
  ------------------
  |  Branch (3647:10): [True: 11.0k, False: 11.0k]
  ------------------
 3648|  11.0k|    mantissa /= 100;
 3649|  11.0k|    exponent += 2;
 3650|  11.0k|  }
 3651|  11.0k|  while (mantissa >= 10) {
  ------------------
  |  Branch (3651:10): [True: 0, False: 11.0k]
  ------------------
 3652|      0|    mantissa /= 10;
 3653|      0|    exponent += 1;
 3654|      0|  }
 3655|  11.0k|  return exponent;
 3656|  11.0k|}
_ZN3glz10fast_float13binary_formatIdE10max_digitsEv:
 1085|  11.0k|template <> inline constexpr size_t binary_format<double>::max_digits() {
 1086|  11.0k|  return 769;
 1087|  11.0k|}
_ZN3glz10fast_float6bigintC2Ev:
 3399|  11.0k|  GLZ_FASTFLOAT_CONSTEXPR20 bigint() : vec() {}
_ZN3glz10fast_float8stackvecILt62EEC2Ev:
 3006|  67.1k|  stackvec() = default;
_ZN3glz10fast_float14parse_mantissaIcEEvRNS0_6bigintERNS0_22parsed_number_string_tIT_EEmRm:
 3859|  11.0k|               size_t max_digits, size_t &digits) noexcept {
 3860|       |  // try to minimize the number of big integer and scalar multiplication.
 3861|       |  // therefore, try to parse 8 digits at a time, and multiply by the largest
 3862|       |  // scalar value (9 or 19 digits) for each step.
 3863|  11.0k|  size_t counter = 0;
 3864|  11.0k|  digits = 0;
 3865|  11.0k|  limb value = 0;
 3866|  11.0k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3867|  11.0k|  size_t step = 19;
 3868|       |#else
 3869|       |  size_t step = 9;
 3870|       |#endif
 3871|       |
 3872|       |  // process all integer digits.
 3873|  11.0k|  UC const *p = num.integer.ptr;
 3874|  11.0k|  UC const *pend = p + num.integer.len();
 3875|  11.0k|  skip_zeros(p, pend);
 3876|       |  // process all digits, in increments of step per loop
 3877|  26.7k|  while (p != pend) {
  ------------------
  |  Branch (3877:10): [True: 15.6k, False: 11.0k]
  ------------------
 3878|  37.8k|    while ((std::distance(p, pend) >= 8) && (step - counter >= 8) &&
  ------------------
  |  Branch (3878:12): [True: 26.5k, False: 11.3k]
  |  Branch (3878:45): [True: 22.1k, False: 4.37k]
  ------------------
 3879|  22.1k|           (max_digits - digits >= 8)) {
  ------------------
  |  Branch (3879:12): [True: 22.1k, False: 0]
  ------------------
 3880|  22.1k|      parse_eight_digits(p, value, counter, digits);
 3881|  22.1k|    }
 3882|  56.7k|    while (counter < step && p != pend && digits < max_digits) {
  ------------------
  |  Branch (3882:12): [True: 47.6k, False: 9.07k]
  |  Branch (3882:30): [True: 41.0k, False: 6.61k]
  |  Branch (3882:43): [True: 41.0k, False: 0]
  ------------------
 3883|  41.0k|      parse_one_digit(p, value, counter, digits);
 3884|  41.0k|    }
 3885|  15.6k|    if (digits == max_digits) {
  ------------------
  |  Branch (3885:9): [True: 0, False: 15.6k]
  ------------------
 3886|       |      // add the temporary value, then check if we've truncated any digits
 3887|      0|      add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3888|      0|      bool truncated = is_truncated(p, pend);
 3889|      0|      if (num.fraction.ptr != nullptr) {
  ------------------
  |  Branch (3889:11): [True: 0, False: 0]
  ------------------
 3890|      0|        truncated |= is_truncated(num.fraction);
 3891|      0|      }
 3892|      0|      if (truncated) {
  ------------------
  |  Branch (3892:11): [True: 0, False: 0]
  ------------------
 3893|      0|        round_up_bigint(result, digits);
 3894|      0|      }
 3895|      0|      return;
 3896|  15.6k|    } else {
 3897|  15.6k|      add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3898|  15.6k|      counter = 0;
 3899|  15.6k|      value = 0;
 3900|  15.6k|    }
 3901|  15.6k|  }
 3902|       |
 3903|       |  // add our fraction digits, if they're available.
 3904|  11.0k|  if (num.fraction.ptr != nullptr) {
  ------------------
  |  Branch (3904:7): [True: 8.48k, False: 2.56k]
  ------------------
 3905|  8.48k|    p = num.fraction.ptr;
 3906|  8.48k|    pend = p + num.fraction.len();
 3907|  8.48k|    if (digits == 0) {
  ------------------
  |  Branch (3907:9): [True: 1.32k, False: 7.15k]
  ------------------
 3908|  1.32k|      skip_zeros(p, pend);
 3909|  1.32k|    }
 3910|       |    // process all digits, in increments of step per loop
 3911|  95.9k|    while (p != pend) {
  ------------------
  |  Branch (3911:12): [True: 89.3k, False: 6.63k]
  ------------------
 3912|   257k|      while ((std::distance(p, pend) >= 8) && (step - counter >= 8) &&
  ------------------
  |  Branch (3912:14): [True: 248k, False: 8.62k]
  |  Branch (3912:47): [True: 168k, False: 79.7k]
  ------------------
 3913|   168k|             (max_digits - digits >= 8)) {
  ------------------
  |  Branch (3913:14): [True: 167k, False: 941]
  ------------------
 3914|   167k|        parse_eight_digits(p, value, counter, digits);
 3915|   167k|      }
 3916|   352k|      while (counter < step && p != pend && digits < max_digits) {
  ------------------
  |  Branch (3916:14): [True: 271k, False: 81.5k]
  |  Branch (3916:32): [True: 264k, False: 6.61k]
  |  Branch (3916:45): [True: 263k, False: 1.19k]
  ------------------
 3917|   263k|        parse_one_digit(p, value, counter, digits);
 3918|   263k|      }
 3919|  89.3k|      if (digits == max_digits) {
  ------------------
  |  Branch (3919:11): [True: 1.85k, False: 87.4k]
  ------------------
 3920|       |        // add the temporary value, then check if we've truncated any digits
 3921|  1.85k|        add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3922|  1.85k|        bool truncated = is_truncated(p, pend);
 3923|  1.85k|        if (truncated) {
  ------------------
  |  Branch (3923:13): [True: 1.29k, False: 558]
  ------------------
 3924|  1.29k|          round_up_bigint(result, digits);
 3925|  1.29k|        }
 3926|  1.85k|        return;
 3927|  87.4k|      } else {
 3928|  87.4k|        add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3929|  87.4k|        counter = 0;
 3930|  87.4k|        value = 0;
 3931|  87.4k|      }
 3932|  89.3k|    }
 3933|  8.48k|  }
 3934|       |
 3935|  9.19k|  if (counter != 0) {
  ------------------
  |  Branch (3935:7): [True: 0, False: 9.19k]
  ------------------
 3936|      0|    add_native(result, limb(powers_of_ten_uint64[counter]), value);
 3937|      0|  }
 3938|  9.19k|}
_ZN3glz10fast_float10skip_zerosIcEEvRPKT_S4_:
 3773|  12.3k|skip_zeros(UC const *&first, UC const *last) noexcept {
 3774|  12.3k|  uint64_t val;
 3775|  28.4k|  while (!cpp20_and_in_constexpr() &&
  ------------------
  |  Branch (3775:10): [True: 28.4k, Folded]
  ------------------
 3776|  28.4k|         std::distance(first, last) >= int_cmp_len<UC>()) {
  ------------------
  |  Branch (3776:10): [True: 25.9k, False: 2.49k]
  ------------------
 3777|  25.9k|    ::memcpy(&val, first, sizeof(uint64_t));
 3778|  25.9k|    if (val != int_cmp_zeros<UC>()) {
  ------------------
  |  Branch (3778:9): [True: 9.88k, False: 16.0k]
  ------------------
 3779|  9.88k|      break;
 3780|  9.88k|    }
 3781|  16.0k|    first += int_cmp_len<UC>();
 3782|  16.0k|  }
 3783|  16.9k|  while (first != last) {
  ------------------
  |  Branch (3783:10): [True: 15.6k, False: 1.32k]
  ------------------
 3784|  15.6k|    if (*first != UC('0')) {
  ------------------
  |  Branch (3784:9): [True: 11.0k, False: 4.59k]
  ------------------
 3785|  11.0k|      break;
 3786|  11.0k|    }
 3787|  4.59k|    first++;
 3788|  4.59k|  }
 3789|  12.3k|}
_ZN3glz10fast_float11int_cmp_lenIcEEiv:
 1180|  79.9k|template <typename UC> constexpr int int_cmp_len() {
 1181|  79.9k|  return sizeof(uint64_t) / sizeof(UC);
 1182|  79.9k|}
_ZN3glz10fast_float13int_cmp_zerosIcEEmv:
 1170|  43.3k|template <typename UC> constexpr uint64_t int_cmp_zeros() {
 1171|  43.3k|  static_assert((sizeof(UC) == 1) || (sizeof(UC) == 2) || (sizeof(UC) == 4),
 1172|  43.3k|                "Unsupported character size");
 1173|  43.3k|  return (sizeof(UC) == 1) ? 0x3030303030303030
  ------------------
  |  Branch (1173:10): [True: 43.3k, Folded]
  ------------------
 1174|  43.3k|         : (sizeof(UC) == 2)
  ------------------
  |  Branch (1174:12): [Folded, False: 0]
  ------------------
 1175|      0|             ? (uint64_t(UC('0')) << 48 | uint64_t(UC('0')) << 32 |
 1176|      0|                uint64_t(UC('0')) << 16 | UC('0'))
 1177|      0|             : (uint64_t(UC('0')) << 32 | UC('0'));
 1178|  43.3k|}
_ZN3glz10fast_float18parse_eight_digitsIcEEvRPKT_RmS6_S6_:
 3824|   189k|                   size_t &count) noexcept {
 3825|   189k|  value = value * 100000000 + parse_eight_digits_unrolled(p);
 3826|   189k|  p += 8;
 3827|   189k|  counter += 8;
 3828|   189k|  count += 8;
 3829|   189k|}
_ZN3glz10fast_float27parse_eight_digits_unrolledIcEEjPKT_:
 1588|   189k|parse_eight_digits_unrolled(UC const *chars) noexcept {
 1589|   189k|  if (cpp20_and_in_constexpr() || !has_simd_opt<UC>()) {
  ------------------
  |  Branch (1589:7): [Folded, False: 0]
  |  Branch (1589:35): [True: 0, Folded]
  ------------------
 1590|   189k|    return parse_eight_digits_unrolled(read8_to_u64(chars)); // truncation okay
 1591|   189k|  }
 1592|      0|  return parse_eight_digits_unrolled(simd_read8_to_u64(chars));
 1593|   189k|}
_ZN3glz10fast_float15parse_one_digitIcEEvRPKT_RmS6_S6_:
 3834|   304k|                size_t &count) noexcept {
 3835|   304k|  value = value * 10 + limb(*p - UC('0'));
 3836|   304k|  p++;
 3837|   304k|  counter++;
 3838|   304k|  count++;
 3839|   304k|}
_ZN3glz10fast_float10add_nativeERNS0_6bigintEmm:
 3842|   106k|add_native(bigint &big, limb power, limb value) noexcept {
 3843|   106k|  big.mul(power);
 3844|   106k|  big.add(value);
 3845|   106k|}
_ZN3glz10fast_float6bigint3mulEm:
 3552|   106k|  GLZ_FASTFLOAT_CONSTEXPR20 bool mul(limb y) noexcept { return small_mul(vec, y); }
_ZN3glz10fast_float9small_mulILt62EEEbRNS0_8stackvecIXT_EEEm:
 3249|   185k|                                            limb y) noexcept {
 3250|   185k|  limb carry = 0;
 3251|  2.63M|  for (size_t index = 0; index < vec.len(); index++) {
  ------------------
  |  Branch (3251:26): [True: 2.44M, False: 185k]
  ------------------
 3252|  2.44M|    vec[index] = scalar_mul(vec[index], y, carry);
 3253|  2.44M|  }
 3254|   185k|  if (carry != 0) {
  ------------------
  |  Branch (3254:7): [True: 162k, False: 22.9k]
  ------------------
 3255|   162k|    GLZ_FASTFLOAT_TRY(vec.try_push(carry));
  ------------------
  |  |  354|   162k|  {                                                                            \
  |  |  355|   162k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 162k]
  |  |  ------------------
  |  |  356|   162k|      return false;                                                            \
  |  |  357|   162k|  }
  ------------------
 3256|   162k|  }
 3257|   185k|  return true;
 3258|   185k|}
_ZNK3glz10fast_float8stackvecILt62EE3lenEv:
 3039|  3.46M|  constexpr size_t len() const noexcept { return length; }
_ZN3glz10fast_float10scalar_mulEmmRm:
 3196|  2.44M|scalar_mul(limb x, limb y, limb &carry) noexcept {
 3197|  2.44M|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3198|  2.44M|#if defined(__SIZEOF_INT128__)
 3199|       |  // GCC and clang both define it as an extension.
 3200|  2.44M|  __uint128_t z = __uint128_t(x) * __uint128_t(y) + __uint128_t(carry);
 3201|  2.44M|  carry = limb(z >> limb_bits);
 3202|  2.44M|  return limb(z);
 3203|       |#else
 3204|       |  // fallback, no native 128-bit integer multiplication with carry.
 3205|       |  // on msvc, this optimizes identically, somehow.
 3206|       |  value128 z = full_multiplication(x, y);
 3207|       |  bool overflow;
 3208|       |  z.low = scalar_add(z.low, carry, overflow);
 3209|       |  z.high += uint64_t(overflow); // cannot overflow
 3210|       |  carry = z.high;
 3211|       |  return z.low;
 3212|       |#endif
 3213|       |#else
 3214|       |  uint64_t z = uint64_t(x) * uint64_t(y) + uint64_t(carry);
 3215|       |  carry = limb(z >> limb_bits);
 3216|       |  return limb(z);
 3217|       |#endif
 3218|  2.44M|}
_ZN3glz10fast_float8stackvecILt62EEixEm:
 3017|  6.12M|  GLZ_FASTFLOAT_CONSTEXPR14 limb &operator[](size_t index) noexcept {
 3018|  6.12M|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|  6.12M|  { ((void)(x)); }
  ------------------
 3019|  6.12M|    return data[index];
 3020|  6.12M|  }
_ZN3glz10fast_float8stackvecILt62EE8try_pushEm:
 3052|   177k|  GLZ_FASTFLOAT_CONSTEXPR14 bool try_push(limb value) noexcept {
 3053|   177k|    if (len() < capacity()) {
  ------------------
  |  Branch (3053:9): [True: 177k, False: 0]
  ------------------
 3054|   177k|      push_unchecked(value);
 3055|   177k|      return true;
 3056|   177k|    } else {
 3057|      0|      return false;
 3058|      0|    }
 3059|   177k|  }
_ZNK3glz10fast_float8stackvecILt62EE8capacityEv:
 3043|   290k|  constexpr size_t capacity() const noexcept { return size; }
_ZN3glz10fast_float8stackvecILt62EE14push_uncheckedEm:
 3046|   184k|  GLZ_FASTFLOAT_CONSTEXPR14 void push_unchecked(limb value) noexcept {
 3047|   184k|    data[length] = value;
 3048|   184k|    length++;
 3049|   184k|  }
_ZN3glz10fast_float6bigint3addEm:
 3554|   106k|  GLZ_FASTFLOAT_CONSTEXPR20 bool add(limb y) noexcept { return small_add(vec, y); }
_ZN3glz10fast_float9small_addILt62EEEbRNS0_8stackvecIXT_EEEm:
 3242|   106k|small_add(stackvec<size> &vec, limb y) noexcept {
 3243|   106k|  return small_add_from(vec, y, 0);
 3244|   106k|}
_ZN3glz10fast_float14small_add_fromILt62EEEbRNS0_8stackvecIXT_EEEmm:
 3224|   106k|                                                 size_t start) noexcept {
 3225|   106k|  size_t index = start;
 3226|   106k|  limb carry = y;
 3227|   106k|  bool overflow;
 3228|   142k|  while (carry != 0 && index < vec.len()) {
  ------------------
  |  Branch (3228:10): [True: 48.1k, False: 94.3k]
  |  Branch (3228:24): [True: 36.1k, False: 11.9k]
  ------------------
 3229|  36.1k|    vec[index] = scalar_add(vec[index], carry, overflow);
 3230|  36.1k|    carry = limb(overflow);
 3231|  36.1k|    index += 1;
 3232|  36.1k|  }
 3233|   106k|  if (carry != 0) {
  ------------------
  |  Branch (3233:7): [True: 11.9k, False: 94.3k]
  ------------------
 3234|  11.9k|    GLZ_FASTFLOAT_TRY(vec.try_push(carry));
  ------------------
  |  |  354|  11.9k|  {                                                                            \
  |  |  355|  11.9k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 11.9k]
  |  |  ------------------
  |  |  356|  11.9k|      return false;                                                            \
  |  |  357|  11.9k|  }
  ------------------
 3235|  11.9k|  }
 3236|   106k|  return true;
 3237|   106k|}
_ZN3glz10fast_float10scalar_addEmmRb:
 3176|   737k|scalar_add(limb x, limb y, bool &overflow) noexcept {
 3177|   737k|  limb z;
 3178|       |// gcc and clang
 3179|   737k|#if defined(__has_builtin)
 3180|   737k|#if __has_builtin(__builtin_add_overflow)
 3181|   737k|  if (!cpp20_and_in_constexpr()) {
  ------------------
  |  Branch (3181:7): [True: 737k, Folded]
  ------------------
 3182|   737k|    overflow = __builtin_add_overflow(x, y, &z);
 3183|   737k|    return z;
 3184|   737k|  }
 3185|      0|#endif
 3186|      0|#endif
 3187|       |
 3188|       |  // generic, this still optimizes correctly on MSVC.
 3189|      0|  z = x + y;
 3190|      0|  overflow = z < x;
 3191|      0|  return z;
 3192|   737k|}
_ZN3glz10fast_float12is_truncatedIcEEbPKT_S4_:
 3795|  1.85k|is_truncated(UC const *first, UC const *last) noexcept {
 3796|       |  // do 8-bit optimizations, can just compare to 8 literal 0s.
 3797|  1.85k|  uint64_t val;
 3798|  18.6k|  while (!cpp20_and_in_constexpr() &&
  ------------------
  |  Branch (3798:10): [True: 18.6k, Folded]
  ------------------
 3799|  18.6k|         std::distance(first, last) >= int_cmp_len<UC>()) {
  ------------------
  |  Branch (3799:10): [True: 17.3k, False: 1.29k]
  ------------------
 3800|  17.3k|    ::memcpy(&val, first, sizeof(uint64_t));
 3801|  17.3k|    if (val != int_cmp_zeros<UC>()) {
  ------------------
  |  Branch (3801:9): [True: 555, False: 16.8k]
  ------------------
 3802|    555|      return true;
 3803|    555|    }
 3804|  16.8k|    first += int_cmp_len<UC>();
 3805|  16.8k|  }
 3806|  3.78k|  while (first != last) {
  ------------------
  |  Branch (3806:10): [True: 3.22k, False: 558]
  ------------------
 3807|  3.22k|    if (*first != UC('0')) {
  ------------------
  |  Branch (3807:9): [True: 738, False: 2.48k]
  ------------------
 3808|    738|      return true;
 3809|    738|    }
 3810|  2.48k|    ++first;
 3811|  2.48k|  }
 3812|    558|  return false;
 3813|  1.29k|}
_ZN3glz10fast_float15round_up_bigintERNS0_6bigintERm:
 3848|  1.29k|round_up_bigint(bigint &big, size_t &count) noexcept {
 3849|       |  // need to round-up the digits, but need to avoid rounding
 3850|       |  // ....9999 to ...10000, which could cause a false halfway point.
 3851|  1.29k|  add_native(big, 10, 1);
 3852|  1.29k|  count++;
 3853|  1.29k|}
_ZN3glz10fast_float19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEi:
 3942|  4.09k|positive_digit_comp(bigint &bigmant, int32_t exponent) noexcept {
 3943|  4.09k|  GLZ_FASTFLOAT_ASSERT(bigmant.pow10(uint32_t(exponent)));
  ------------------
  |  |  344|  4.09k|  { ((void)(x)); }
  ------------------
 3944|  4.09k|  adjusted_mantissa answer;
 3945|  4.09k|  bool truncated;
 3946|  4.09k|  answer.mantissa = bigmant.hi64(truncated);
 3947|  4.09k|  int bias = binary_format<T>::mantissa_explicit_bits() -
 3948|  4.09k|             binary_format<T>::minimum_exponent();
 3949|  4.09k|  answer.power2 = bigmant.bit_length() - 64 + bias;
 3950|       |
 3951|  4.09k|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 3952|  4.09k|    round_nearest_tie_even(
 3953|  4.09k|        a, shift,
 3954|  4.09k|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 3955|  4.09k|          return is_above || (is_halfway && truncated) ||
 3956|  4.09k|                 (is_odd && is_halfway);
 3957|  4.09k|        });
 3958|  4.09k|  });
 3959|       |
 3960|  4.09k|  return answer;
 3961|  4.09k|}
_ZN3glz10fast_float6bigint5pow10Ej:
 3591|  4.09k|  GLZ_FASTFLOAT_CONSTEXPR20 bool pow10(uint32_t exp) noexcept {
 3592|  4.09k|    GLZ_FASTFLOAT_TRY(pow5(exp));
  ------------------
  |  |  354|  4.09k|  {                                                                            \
  |  |  355|  4.09k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 4.09k]
  |  |  ------------------
  |  |  356|  4.09k|      return false;                                                            \
  |  |  357|  4.09k|  }
  ------------------
 3593|  4.09k|    return pow2(exp);
 3594|  4.09k|  }
_ZN3glz10fast_float6bigint4pow5Ej:
 3560|  11.0k|  GLZ_FASTFLOAT_CONSTEXPR20 bool pow5(uint32_t exp) noexcept {
 3561|       |    // multiply by a power of 5
 3562|  11.0k|    size_t large_length = sizeof(large_power_of_5) / sizeof(limb);
 3563|  11.0k|    limb_span large = limb_span(large_power_of_5, large_length);
 3564|  23.3k|    while (exp >= large_step) {
  ------------------
  |  Branch (3564:12): [True: 12.2k, False: 11.0k]
  ------------------
 3565|  12.2k|      GLZ_FASTFLOAT_TRY(large_mul(vec, large));
  ------------------
  |  |  354|  12.2k|  {                                                                            \
  |  |  355|  12.2k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 12.2k]
  |  |  ------------------
  |  |  356|  12.2k|      return false;                                                            \
  |  |  357|  12.2k|  }
  ------------------
 3566|  12.2k|      exp -= large_step;
 3567|  12.2k|    }
 3568|  11.0k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3569|  11.0k|    uint32_t small_step = 27;
 3570|  11.0k|    limb max_native = 7450580596923828125UL;
 3571|       |#else
 3572|       |    uint32_t small_step = 13;
 3573|       |    limb max_native = 1220703125U;
 3574|       |#endif
 3575|  19.7k|    while (exp >= small_step) {
  ------------------
  |  Branch (3575:12): [True: 8.72k, False: 11.0k]
  ------------------
 3576|  8.72k|      GLZ_FASTFLOAT_TRY(small_mul(vec, max_native));
  ------------------
  |  |  354|  8.72k|  {                                                                            \
  |  |  355|  8.72k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 8.72k]
  |  |  ------------------
  |  |  356|  8.72k|      return false;                                                            \
  |  |  357|  8.72k|  }
  ------------------
 3577|  8.72k|      exp -= small_step;
 3578|  8.72k|    }
 3579|  11.0k|    if (exp != 0) {
  ------------------
  |  Branch (3579:9): [True: 8.66k, False: 2.37k]
  ------------------
 3580|       |      // Work around clang bug https://godbolt.org/z/zedh7rrhc
 3581|       |      // This is similar to https://github.com/llvm/llvm-project/issues/47746,
 3582|       |      // except the workaround described there don't work here
 3583|  8.66k|      GLZ_FASTFLOAT_TRY(small_mul(
  ------------------
  |  |  354|  8.66k|  {                                                                            \
  |  |  355|  8.66k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 8.66k]
  |  |  ------------------
  |  |  356|  8.66k|      return false;                                                            \
  |  |  357|  8.66k|  }
  ------------------
 3584|  8.66k|          vec, limb(((void)small_power_of_5[0], small_power_of_5[exp]))));
 3585|  8.66k|    }
 3586|       |
 3587|  11.0k|    return true;
 3588|  11.0k|  }
_ZN3glz10fast_float4spanImEC2EPKmm:
  436|  84.7k|  constexpr span(T const *_ptr, size_t _length) : ptr(_ptr), length(_length) {}
_ZN3glz10fast_float9large_mulILt62EEEbRNS0_8stackvecIXT_EEENS0_4spanImEE:
 3329|  12.2k|GLZ_FASTFLOAT_CONSTEXPR20 bool large_mul(stackvec<size> &x, limb_span y) noexcept {
 3330|  12.2k|  if (y.len() == 1) {
  ------------------
  |  Branch (3330:7): [True: 0, False: 12.2k]
  ------------------
 3331|      0|    GLZ_FASTFLOAT_TRY(small_mul(x, y[0]));
  ------------------
  |  |  354|      0|  {                                                                            \
  |  |  355|      0|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  356|      0|      return false;                                                            \
  |  |  357|      0|  }
  ------------------
 3332|  12.2k|  } else {
 3333|  12.2k|    GLZ_FASTFLOAT_TRY(long_mul(x, y));
  ------------------
  |  |  354|  12.2k|  {                                                                            \
  |  |  355|  12.2k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 12.2k]
  |  |  ------------------
  |  |  356|  12.2k|      return false;                                                            \
  |  |  357|  12.2k|  }
  ------------------
 3334|  12.2k|  }
 3335|  12.2k|  return true;
 3336|  12.2k|}
_ZNK3glz10fast_float4spanImE3lenEv:
  440|   918k|  constexpr size_t len() const noexcept { return length; }
_ZNK3glz10fast_float4spanImEixEm:
  442|   563k|  GLZ_FASTFLOAT_CONSTEXPR14 const T &operator[](size_t index) const noexcept {
  443|   563k|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|   563k|  { ((void)(x)); }
  ------------------
  444|   563k|    return ptr[index];
  445|   563k|  }
_ZN3glz10fast_float8long_mulILt62EEEbRNS0_8stackvecIXT_EEENS0_4spanImEE:
 3301|  12.2k|GLZ_FASTFLOAT_CONSTEXPR20 bool long_mul(stackvec<size> &x, limb_span y) noexcept {
 3302|  12.2k|  limb_span xs = limb_span(x.data, x.len());
 3303|  12.2k|  stackvec<size> z(xs);
 3304|  12.2k|  limb_span zs = limb_span(z.data, z.len());
 3305|       |
 3306|  12.2k|  if (y.len() != 0) {
  ------------------
  |  Branch (3306:7): [True: 12.2k, False: 0]
  ------------------
 3307|  12.2k|    limb y0 = y[0];
 3308|  12.2k|    GLZ_FASTFLOAT_TRY(small_mul(x, y0));
  ------------------
  |  |  354|  12.2k|  {                                                                            \
  |  |  355|  12.2k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 12.2k]
  |  |  ------------------
  |  |  356|  12.2k|      return false;                                                            \
  |  |  357|  12.2k|  }
  ------------------
 3309|  61.4k|    for (size_t index = 1; index < y.len(); index++) {
  ------------------
  |  Branch (3309:28): [True: 49.1k, False: 12.2k]
  ------------------
 3310|  49.1k|      limb yi = y[index];
 3311|  49.1k|      stackvec<size> zi;
 3312|  49.1k|      if (yi != 0) {
  ------------------
  |  Branch (3312:11): [True: 49.1k, False: 0]
  ------------------
 3313|       |        // re-use the same buffer throughout
 3314|  49.1k|        zi.set_len(0);
 3315|  49.1k|        GLZ_FASTFLOAT_TRY(zi.try_extend(zs));
  ------------------
  |  |  354|  49.1k|  {                                                                            \
  |  |  355|  49.1k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 49.1k]
  |  |  ------------------
  |  |  356|  49.1k|      return false;                                                            \
  |  |  357|  49.1k|  }
  ------------------
 3316|  49.1k|        GLZ_FASTFLOAT_TRY(small_mul(zi, yi));
  ------------------
  |  |  354|  49.1k|  {                                                                            \
  |  |  355|  49.1k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 49.1k]
  |  |  ------------------
  |  |  356|  49.1k|      return false;                                                            \
  |  |  357|  49.1k|  }
  ------------------
 3317|  49.1k|        limb_span zis = limb_span(zi.data, zi.len());
 3318|  49.1k|        GLZ_FASTFLOAT_TRY(large_add_from(x, zis, index));
  ------------------
  |  |  354|  49.1k|  {                                                                            \
  |  |  355|  49.1k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 49.1k]
  |  |  ------------------
  |  |  356|  49.1k|      return false;                                                            \
  |  |  357|  49.1k|  }
  ------------------
 3319|  49.1k|      }
 3320|  49.1k|    }
 3321|  12.2k|  }
 3322|       |
 3323|  12.2k|  x.normalize();
 3324|  12.2k|  return true;
 3325|  12.2k|}
_ZN3glz10fast_float8stackvecILt62EEC2ENS0_4spanImEE:
 3013|  12.2k|  GLZ_FASTFLOAT_CONSTEXPR20 stackvec(limb_span s) {
 3014|  12.2k|    GLZ_FASTFLOAT_ASSERT(try_extend(s));
  ------------------
  |  |  344|  12.2k|  { ((void)(x)); }
  ------------------
 3015|  12.2k|  }
_ZN3glz10fast_float8stackvecILt62EE7set_lenEm:
 3035|   162k|  GLZ_FASTFLOAT_CONSTEXPR14 void set_len(size_t len) noexcept {
 3036|   162k|    length = uint16_t(len);
 3037|   162k|  }
_ZN3glz10fast_float8stackvecILt62EE10try_extendENS0_4spanImEE:
 3069|  61.4k|  GLZ_FASTFLOAT_CONSTEXPR20 bool try_extend(limb_span s) noexcept {
 3070|  61.4k|    if (len() + s.len() <= capacity()) {
  ------------------
  |  Branch (3070:9): [True: 61.4k, False: 0]
  ------------------
 3071|  61.4k|      extend_unchecked(s);
 3072|  61.4k|      return true;
 3073|  61.4k|    } else {
 3074|      0|      return false;
 3075|      0|    }
 3076|  61.4k|  }
_ZN3glz10fast_float8stackvecILt62EE16extend_uncheckedENS0_4spanImEE:
 3062|  61.4k|  GLZ_FASTFLOAT_CONSTEXPR20 void extend_unchecked(limb_span s) noexcept {
 3063|  61.4k|    limb *ptr = data + length;
 3064|  61.4k|    std::copy_n(s.ptr, s.len(), ptr);
 3065|  61.4k|    set_len(len() + s.len());
 3066|  61.4k|  }
_ZN3glz10fast_float14large_add_fromILt62EEEbRNS0_8stackvecIXT_EEENS0_4spanImEEm:
 3264|  49.1k|                                          size_t start) noexcept {
 3265|       |  // the effective x buffer is from `xstart..x.len()`, so exit early
 3266|       |  // if we can't get that current range.
 3267|  49.1k|  if (x.len() < start || y.len() > x.len() - start) {
  ------------------
  |  Branch (3267:7): [True: 0, False: 49.1k]
  |  Branch (3267:26): [True: 47.5k, False: 1.55k]
  ------------------
 3268|  47.5k|    GLZ_FASTFLOAT_TRY(x.try_resize(y.len() + start, 0));
  ------------------
  |  |  354|  47.5k|  {                                                                            \
  |  |  355|  47.5k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 47.5k]
  |  |  ------------------
  |  |  356|  47.5k|      return false;                                                            \
  |  |  357|  47.5k|  }
  ------------------
 3269|  47.5k|  }
 3270|       |
 3271|  49.1k|  bool carry = false;
 3272|   551k|  for (size_t index = 0; index < y.len(); index++) {
  ------------------
  |  Branch (3272:26): [True: 502k, False: 49.1k]
  ------------------
 3273|   502k|    limb xi = x[index + start];
 3274|   502k|    limb yi = y[index];
 3275|   502k|    bool c1 = false;
 3276|   502k|    bool c2 = false;
 3277|   502k|    xi = scalar_add(xi, yi, c1);
 3278|   502k|    if (carry) {
  ------------------
  |  Branch (3278:9): [True: 198k, False: 303k]
  ------------------
 3279|   198k|      xi = scalar_add(xi, 1, c2);
 3280|   198k|    }
 3281|   502k|    x[index + start] = xi;
 3282|   502k|    carry = c1 | c2;
 3283|   502k|  }
 3284|       |
 3285|       |  // handle overflow
 3286|  49.1k|  if (carry) {
  ------------------
  |  Branch (3286:7): [True: 0, False: 49.1k]
  ------------------
 3287|      0|    GLZ_FASTFLOAT_TRY(small_add_from(x, 1, y.len() + start));
  ------------------
  |  |  354|      0|  {                                                                            \
  |  |  355|      0|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 0]
  |  |  ------------------
  |  |  356|      0|      return false;                                                            \
  |  |  357|      0|  }
  ------------------
 3288|      0|  }
 3289|  49.1k|  return true;
 3290|  49.1k|}
_ZN3glz10fast_float8stackvecILt62EE10try_resizeEmm:
 3095|  47.5k|  GLZ_FASTFLOAT_CONSTEXPR20 bool try_resize(size_t new_len, limb value) noexcept {
 3096|  47.5k|    if (new_len > capacity()) {
  ------------------
  |  Branch (3096:9): [True: 0, False: 47.5k]
  ------------------
 3097|      0|      return false;
 3098|  47.5k|    } else {
 3099|  47.5k|      resize_unchecked(new_len, value);
 3100|  47.5k|      return true;
 3101|  47.5k|    }
 3102|  47.5k|  }
_ZN3glz10fast_float8stackvecILt62EE16resize_uncheckedEmm:
 3082|  47.5k|  void resize_unchecked(size_t new_len, limb value) noexcept {
 3083|  47.5k|    if (new_len > len()) {
  ------------------
  |  Branch (3083:9): [True: 47.5k, False: 0]
  ------------------
 3084|  47.5k|      size_t count = new_len - len();
 3085|  47.5k|      limb *first = data + len();
 3086|  47.5k|      limb *last = first + count;
 3087|  47.5k|      ::std::fill(first, last, value);
 3088|  47.5k|      set_len(new_len);
 3089|  47.5k|    } else {
 3090|      0|      set_len(new_len);
 3091|      0|    }
 3092|  47.5k|  }
_ZN3glz10fast_float8stackvecILt62EE9normalizeEv:
 3118|  19.2k|  GLZ_FASTFLOAT_CONSTEXPR14 void normalize() noexcept {
 3119|  19.2k|    while (len() > 0 && rindex(0) == 0) {
  ------------------
  |  Branch (3119:12): [True: 19.2k, False: 0]
  |  Branch (3119:25): [True: 0, False: 19.2k]
  ------------------
 3120|      0|      length--;
 3121|      0|    }
 3122|  19.2k|  }
_ZNK3glz10fast_float8stackvecILt62EE6rindexEm:
 3028|  32.9k|  GLZ_FASTFLOAT_CONSTEXPR14 const limb &rindex(size_t index) const noexcept {
 3029|  32.9k|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|  32.9k|  { ((void)(x)); }
  ------------------
 3030|  32.9k|    size_t rindex = length - index - 1;
 3031|  32.9k|    return data[rindex];
 3032|  32.9k|  }
_ZN3glz10fast_float6bigint4pow2Ej:
 3557|  10.8k|  GLZ_FASTFLOAT_CONSTEXPR20 bool pow2(uint32_t exp) noexcept { return shl(exp); }
_ZN3glz10fast_float6bigint3shlEm:
 3519|  10.8k|  GLZ_FASTFLOAT_CONSTEXPR20 bool shl(size_t n) noexcept {
 3520|  10.8k|    size_t rem = n % limb_bits;
 3521|  10.8k|    size_t div = n / limb_bits;
 3522|  10.8k|    if (rem != 0) {
  ------------------
  |  Branch (3522:9): [True: 8.18k, False: 2.65k]
  ------------------
 3523|  8.18k|      GLZ_FASTFLOAT_TRY(shl_bits(rem));
  ------------------
  |  |  354|  8.18k|  {                                                                            \
  |  |  355|  8.18k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 8.18k]
  |  |  ------------------
  |  |  356|  8.18k|      return false;                                                            \
  |  |  357|  8.18k|  }
  ------------------
 3524|  8.18k|    }
 3525|  10.8k|    if (div != 0) {
  ------------------
  |  Branch (3525:9): [True: 4.40k, False: 6.43k]
  ------------------
 3526|  4.40k|      GLZ_FASTFLOAT_TRY(shl_limbs(div));
  ------------------
  |  |  354|  4.40k|  {                                                                            \
  |  |  355|  4.40k|    if (!(x))                                                                  \
  |  |  ------------------
  |  |  |  Branch (355:9): [True: 0, False: 4.40k]
  |  |  ------------------
  |  |  356|  4.40k|      return false;                                                            \
  |  |  357|  4.40k|  }
  ------------------
 3527|  4.40k|    }
 3528|  10.8k|    return true;
 3529|  10.8k|  }
_ZN3glz10fast_float6bigint8shl_bitsEm:
 3472|  8.18k|  GLZ_FASTFLOAT_CONSTEXPR20 bool shl_bits(size_t n) noexcept {
 3473|       |    // Internally, for each item, we shift left by n, and add the previous
 3474|       |    // right shifted limb-bits.
 3475|       |    // For example, we transform (for u8) shifted left 2, to:
 3476|       |    //      b10100100 b01000010
 3477|       |    //      b10 b10010001 b00001000
 3478|  8.18k|    GLZ_FASTFLOAT_DEBUG_ASSERT(n != 0);
  ------------------
  |  |  349|  8.18k|  { ((void)(x)); }
  ------------------
 3479|  8.18k|    GLZ_FASTFLOAT_DEBUG_ASSERT(n < sizeof(limb) * 8);
  ------------------
  |  |  349|  8.18k|  { ((void)(x)); }
  ------------------
 3480|       |
 3481|  8.18k|    size_t shl = n;
 3482|  8.18k|    size_t shr = limb_bits - shl;
 3483|  8.18k|    limb prev = 0;
 3484|  87.0k|    for (size_t index = 0; index < vec.len(); index++) {
  ------------------
  |  Branch (3484:28): [True: 78.8k, False: 8.18k]
  ------------------
 3485|  78.8k|      limb xi = vec[index];
 3486|  78.8k|      vec[index] = (xi << shl) | (prev >> shr);
 3487|  78.8k|      prev = xi;
 3488|  78.8k|    }
 3489|       |
 3490|  8.18k|    limb carry = prev >> shr;
 3491|  8.18k|    if (carry != 0) {
  ------------------
  |  Branch (3491:9): [True: 3.13k, False: 5.04k]
  ------------------
 3492|  3.13k|      return vec.try_push(carry);
 3493|  3.13k|    }
 3494|  5.04k|    return true;
 3495|  8.18k|  }
_ZN3glz10fast_float6bigint9shl_limbsEm:
 3498|  4.40k|  GLZ_FASTFLOAT_CONSTEXPR20 bool shl_limbs(size_t n) noexcept {
 3499|  4.40k|    GLZ_FASTFLOAT_DEBUG_ASSERT(n != 0);
  ------------------
  |  |  349|  4.40k|  { ((void)(x)); }
  ------------------
 3500|  4.40k|    if (n + vec.len() > vec.capacity()) {
  ------------------
  |  Branch (3500:9): [True: 0, False: 4.40k]
  ------------------
 3501|      0|      return false;
 3502|  4.40k|    } else if (!vec.is_empty()) {
  ------------------
  |  Branch (3502:16): [True: 4.40k, False: 0]
  ------------------
 3503|       |      // move limbs
 3504|  4.40k|      limb *dst = vec.data + n;
 3505|  4.40k|      limb const *src = vec.data;
 3506|  4.40k|      std::copy_backward(src, src + vec.len(), dst + vec.len());
 3507|       |      // fill in empty limbs
 3508|  4.40k|      limb *first = vec.data;
 3509|  4.40k|      limb *last = first + n;
 3510|  4.40k|      ::std::fill(first, last, 0);
 3511|  4.40k|      vec.set_len(n + vec.len());
 3512|  4.40k|      return true;
 3513|  4.40k|    } else {
 3514|      0|      return true;
 3515|      0|    }
 3516|  4.40k|  }
_ZNK3glz10fast_float8stackvecILt62EE8is_emptyEv:
 3041|  8.50k|  constexpr bool is_empty() const noexcept { return length == 0; }
_ZNK3glz10fast_float6bigint4hi64ERb:
 3418|  4.09k|  GLZ_FASTFLOAT_CONSTEXPR20 uint64_t hi64(bool &truncated) const noexcept {
 3419|  4.09k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3420|  4.09k|    if (vec.len() == 0) {
  ------------------
  |  Branch (3420:9): [True: 0, False: 4.09k]
  ------------------
 3421|      0|      return empty_hi64(truncated);
 3422|  4.09k|    } else if (vec.len() == 1) {
  ------------------
  |  Branch (3422:16): [True: 990, False: 3.10k]
  ------------------
 3423|    990|      return uint64_hi64(vec.rindex(0), truncated);
 3424|  3.10k|    } else {
 3425|  3.10k|      uint64_t result = uint64_hi64(vec.rindex(0), vec.rindex(1), truncated);
 3426|  3.10k|      truncated |= vec.nonzero(2);
 3427|  3.10k|      return result;
 3428|  3.10k|    }
 3429|       |#else
 3430|       |    if (vec.len() == 0) {
 3431|       |      return empty_hi64(truncated);
 3432|       |    } else if (vec.len() == 1) {
 3433|       |      return uint32_hi64(vec.rindex(0), truncated);
 3434|       |    } else if (vec.len() == 2) {
 3435|       |      return uint32_hi64(vec.rindex(0), vec.rindex(1), truncated);
 3436|       |    } else {
 3437|       |      uint64_t result =
 3438|       |          uint32_hi64(vec.rindex(0), vec.rindex(1), vec.rindex(2), truncated);
 3439|       |      truncated |= vec.nonzero(3);
 3440|       |      return result;
 3441|       |    }
 3442|       |#endif
 3443|  4.09k|  }
_ZN3glz10fast_float11uint64_hi64EmRb:
 3132|    990|uint64_hi64(uint64_t r0, bool &truncated) noexcept {
 3133|    990|  truncated = false;
 3134|    990|  int shl = leading_zeroes(r0);
 3135|    990|  return r0 << shl;
 3136|    990|}
_ZN3glz10fast_float11uint64_hi64EmmRb:
 3139|  3.10k|uint64_hi64(uint64_t r0, uint64_t r1, bool &truncated) noexcept {
 3140|  3.10k|  int shl = leading_zeroes(r0);
 3141|  3.10k|  if (shl == 0) {
  ------------------
  |  Branch (3141:7): [True: 454, False: 2.65k]
  ------------------
 3142|    454|    truncated = r1 != 0;
 3143|    454|    return r0;
 3144|  2.65k|  } else {
 3145|  2.65k|    int shr = 64 - shl;
 3146|  2.65k|    truncated = (r1 << shl) != 0;
 3147|  2.65k|    return (r0 << shl) | (r1 >> shr);
 3148|  2.65k|  }
 3149|  3.10k|}
_ZNK3glz10fast_float8stackvecILt62EE7nonzeroEm:
 3107|  3.10k|  GLZ_FASTFLOAT_CONSTEXPR14 bool nonzero(size_t index) const noexcept {
 3108|  3.51k|    while (index < len()) {
  ------------------
  |  Branch (3108:12): [True: 2.39k, False: 1.11k]
  ------------------
 3109|  2.39k|      if (rindex(index) != 0) {
  ------------------
  |  Branch (3109:11): [True: 1.99k, False: 404]
  ------------------
 3110|  1.99k|        return true;
 3111|  1.99k|      }
 3112|    404|      index++;
 3113|    404|    }
 3114|  1.11k|    return false;
 3115|  3.10k|  }
_ZNK3glz10fast_float6bigint10bit_lengthEv:
 3547|  4.09k|  GLZ_FASTFLOAT_CONSTEXPR20 int bit_length() const noexcept {
 3548|  4.09k|    int lz = ctlz();
 3549|  4.09k|    return int(limb_bits * vec.len()) - lz;
 3550|  4.09k|  }
_ZNK3glz10fast_float6bigint4ctlzEv:
 3532|  4.09k|  GLZ_FASTFLOAT_CONSTEXPR20 int ctlz() const noexcept {
 3533|  4.09k|    if (vec.is_empty()) {
  ------------------
  |  Branch (3533:9): [True: 0, False: 4.09k]
  ------------------
 3534|      0|      return 0;
 3535|  4.09k|    } else {
 3536|  4.09k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3537|  4.09k|      return leading_zeroes(vec.rindex(0));
 3538|       |#else
 3539|       |      // no use defining a specialized leading_zeroes for a 32-bit type.
 3540|       |      uint64_t r0 = vec.rindex(0);
 3541|       |      return leading_zeroes(r0 << 32);
 3542|       |#endif
 3543|  4.09k|    }
 3544|  4.09k|  }
_ZN3glz10fast_float5roundIdZNS0_19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiEUlRS3_iE_EEvS6_T0_:
 3707|  4.09k|                                                         callback cb) noexcept {
 3708|  4.09k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 3709|  4.09k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (3709:7): [True: 0, False: 4.09k]
  ------------------
 3710|       |    // have a denormal float
 3711|      0|    int32_t shift = -am.power2 + 1;
 3712|      0|    cb(am, (std::min<int32_t>)(shift, 64));
 3713|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 3714|      0|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (3714:17): [True: 0, False: 0]
  ------------------
 3715|      0|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 3716|      0|                    ? 0
 3717|      0|                    : 1;
 3718|      0|    return;
 3719|      0|  }
 3720|       |
 3721|       |  // have a normal float, use the default shift.
 3722|  4.09k|  cb(am, mantissa_shift);
 3723|       |
 3724|       |  // check for carry
 3725|  4.09k|  if (am.mantissa >=
  ------------------
  |  Branch (3725:7): [True: 409, False: 3.69k]
  ------------------
 3726|  4.09k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 3727|    409|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3728|    409|    am.power2++;
 3729|    409|  }
 3730|       |
 3731|       |  // check for infinite: we could have carried to an infinite power
 3732|  4.09k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3733|  4.09k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (3733:7): [True: 0, False: 4.09k]
  ------------------
 3734|      0|    am.power2 = binary_format<T>::infinite_power();
 3735|      0|    am.mantissa = 0;
 3736|      0|  }
 3737|  4.09k|}
_ZZN3glz10fast_float19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiENKUlRS2_iE_clES5_i:
 3951|  4.09k|  round<T>(answer, [truncated](adjusted_mantissa &a, int32_t shift) {
 3952|  4.09k|    round_nearest_tie_even(
 3953|  4.09k|        a, shift,
 3954|  4.09k|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 3955|  4.09k|          return is_above || (is_halfway && truncated) ||
 3956|  4.09k|                 (is_odd && is_halfway);
 3957|  4.09k|        });
 3958|  4.09k|  });
_ZN3glz10fast_float22round_nearest_tie_evenIZZNS0_19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiENKUlRS3_iE_clES6_iEUlbbbE_EEvS6_iT_:
 3742|  4.09k|                       callback cb) noexcept {
 3743|  4.09k|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (3743:25): [True: 0, False: 4.09k]
  ------------------
 3744|  4.09k|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (3744:28): [True: 0, False: 4.09k]
  ------------------
 3745|  4.09k|  uint64_t truncated_bits = am.mantissa & mask;
 3746|  4.09k|  bool is_above = truncated_bits > halfway;
 3747|  4.09k|  bool is_halfway = truncated_bits == halfway;
 3748|       |
 3749|       |  // shift digits into position
 3750|  4.09k|  if (shift == 64) {
  ------------------
  |  Branch (3750:7): [True: 0, False: 4.09k]
  ------------------
 3751|      0|    am.mantissa = 0;
 3752|  4.09k|  } else {
 3753|  4.09k|    am.mantissa >>= shift;
 3754|  4.09k|  }
 3755|  4.09k|  am.power2 += shift;
 3756|       |
 3757|  4.09k|  bool is_odd = (am.mantissa & 1) == 1;
 3758|  4.09k|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 3759|  4.09k|}
_ZZZN3glz10fast_float19positive_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintEiENKUlRS2_iE_clES5_iENKUlbbbE_clEbbb:
 3954|  4.09k|        [truncated](bool is_odd, bool is_halfway, bool is_above) -> bool {
 3955|  4.09k|          return is_above || (is_halfway && truncated) ||
  ------------------
  |  Branch (3955:18): [True: 713, False: 3.38k]
  |  Branch (3955:31): [True: 950, False: 2.43k]
  |  Branch (3955:45): [True: 532, False: 418]
  ------------------
 3956|  2.85k|                 (is_odd && is_halfway);
  ------------------
  |  Branch (3956:19): [True: 741, False: 2.11k]
  |  Branch (3956:29): [True: 10, False: 731]
  ------------------
 3957|  4.09k|        });
_ZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_i:
 3970|  6.94k|    bigint &bigmant, adjusted_mantissa am, int32_t exponent) noexcept {
 3971|  6.94k|  bigint &real_digits = bigmant;
 3972|  6.94k|  int32_t real_exp = exponent;
 3973|       |
 3974|       |  // get the value of `b`, rounded down, and get a bigint representation of b+h
 3975|  6.94k|  adjusted_mantissa am_b = am;
 3976|       |  // gcc7 buf: use a lambda to remove the noexcept qualifier bug with
 3977|       |  // -Wnoexcept-type.
 3978|  6.94k|  round<T>(am_b,
 3979|  6.94k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
 3980|  6.94k|  T b;
 3981|  6.94k|  to_float(false, am_b, b);
 3982|  6.94k|  adjusted_mantissa theor = to_extended_halfway(b);
 3983|  6.94k|  bigint theor_digits(theor.mantissa);
 3984|  6.94k|  int32_t theor_exp = theor.power2;
 3985|       |
 3986|       |  // scale real digits and theor digits to be same power.
 3987|  6.94k|  int32_t pow2_exp = theor_exp - real_exp;
 3988|  6.94k|  uint32_t pow5_exp = uint32_t(-real_exp);
 3989|  6.94k|  if (pow5_exp != 0) {
  ------------------
  |  Branch (3989:7): [True: 6.94k, False: 0]
  ------------------
 3990|  6.94k|    GLZ_FASTFLOAT_ASSERT(theor_digits.pow5(pow5_exp));
  ------------------
  |  |  344|  6.94k|  { ((void)(x)); }
  ------------------
 3991|  6.94k|  }
 3992|  6.94k|  if (pow2_exp > 0) {
  ------------------
  |  Branch (3992:7): [True: 4.45k, False: 2.48k]
  ------------------
 3993|  4.45k|    GLZ_FASTFLOAT_ASSERT(theor_digits.pow2(uint32_t(pow2_exp)));
  ------------------
  |  |  344|  4.45k|  { ((void)(x)); }
  ------------------
 3994|  4.45k|  } else if (pow2_exp < 0) {
  ------------------
  |  Branch (3994:14): [True: 2.28k, False: 201]
  ------------------
 3995|  2.28k|    GLZ_FASTFLOAT_ASSERT(real_digits.pow2(uint32_t(-pow2_exp)));
  ------------------
  |  |  344|  2.28k|  { ((void)(x)); }
  ------------------
 3996|  2.28k|  }
 3997|       |
 3998|       |  // compare digits, and use it to director rounding
 3999|  6.94k|  int ord = real_digits.compare(theor_digits);
 4000|  6.94k|  adjusted_mantissa answer = am;
 4001|  6.94k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 4002|  6.94k|    round_nearest_tie_even(
 4003|  6.94k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 4004|  6.94k|          (void)_;  // not needed, since we've done our comparison
 4005|  6.94k|          (void)__; // not needed, since we've done our comparison
 4006|  6.94k|          if (ord > 0) {
 4007|  6.94k|            return true;
 4008|  6.94k|          } else if (ord < 0) {
 4009|  6.94k|            return false;
 4010|  6.94k|          } else {
 4011|  6.94k|            return is_odd;
 4012|  6.94k|          }
 4013|  6.94k|        });
 4014|  6.94k|  });
 4015|       |
 4016|  6.94k|  return answer;
 4017|  6.94k|}
_ZN3glz10fast_float5roundIdZNS0_19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES3_iEUlRS3_iE_EEvS6_T0_:
 3707|  6.94k|                                                         callback cb) noexcept {
 3708|  6.94k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 3709|  6.94k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (3709:7): [True: 483, False: 6.46k]
  ------------------
 3710|       |    // have a denormal float
 3711|    483|    int32_t shift = -am.power2 + 1;
 3712|    483|    cb(am, (std::min<int32_t>)(shift, 64));
 3713|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 3714|    483|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (3714:17): [True: 483, False: 0]
  ------------------
 3715|    483|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 3716|    483|                    ? 0
 3717|    483|                    : 1;
 3718|    483|    return;
 3719|    483|  }
 3720|       |
 3721|       |  // have a normal float, use the default shift.
 3722|  6.46k|  cb(am, mantissa_shift);
 3723|       |
 3724|       |  // check for carry
 3725|  6.46k|  if (am.mantissa >=
  ------------------
  |  Branch (3725:7): [True: 0, False: 6.46k]
  ------------------
 3726|  6.46k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 3727|      0|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3728|      0|    am.power2++;
 3729|      0|  }
 3730|       |
 3731|       |  // check for infinite: we could have carried to an infinite power
 3732|  6.46k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3733|  6.46k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (3733:7): [True: 0, False: 6.46k]
  ------------------
 3734|      0|    am.power2 = binary_format<T>::infinite_power();
 3735|      0|    am.mantissa = 0;
 3736|      0|  }
 3737|  6.46k|}
_ZZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_iENKUlRS2_iE_clES5_i:
 3979|  6.94k|           [](adjusted_mantissa &a, int32_t shift) { round_down(a, shift); });
_ZN3glz10fast_float10round_downERNS0_17adjusted_mantissaEi:
 3762|  6.94k|round_down(adjusted_mantissa &am, int32_t shift) noexcept {
 3763|  6.94k|  if (shift == 64) {
  ------------------
  |  Branch (3763:7): [True: 0, False: 6.94k]
  ------------------
 3764|      0|    am.mantissa = 0;
 3765|  6.94k|  } else {
 3766|  6.94k|    am.mantissa >>= shift;
 3767|  6.94k|  }
 3768|  6.94k|  am.power2 += shift;
 3769|  6.94k|}
_ZN3glz10fast_float19to_extended_halfwayIdEENS0_17adjusted_mantissaET_:
 3696|  6.94k|to_extended_halfway(T value) noexcept {
 3697|  6.94k|  adjusted_mantissa am = to_extended(value);
 3698|  6.94k|  am.mantissa <<= 1;
 3699|  6.94k|  am.mantissa += 1;
 3700|  6.94k|  am.power2 -= 1;
 3701|  6.94k|  return am;
 3702|  6.94k|}
_ZN3glz10fast_float11to_extendedIdEENS0_17adjusted_mantissaET_:
 3661|  6.94k|to_extended(T value) noexcept {
 3662|  6.94k|  using equiv_uint = equiv_uint_t<T>;
 3663|  6.94k|  constexpr equiv_uint exponent_mask = binary_format<T>::exponent_mask();
 3664|  6.94k|  constexpr equiv_uint mantissa_mask = binary_format<T>::mantissa_mask();
 3665|  6.94k|  constexpr equiv_uint hidden_bit_mask = binary_format<T>::hidden_bit_mask();
 3666|       |
 3667|  6.94k|  adjusted_mantissa am;
 3668|  6.94k|  int32_t bias = binary_format<T>::mantissa_explicit_bits() -
 3669|  6.94k|                 binary_format<T>::minimum_exponent();
 3670|  6.94k|  equiv_uint bits;
 3671|  6.94k|#if GLZ_FASTFLOAT_HAS_BIT_CAST
 3672|  6.94k|  bits = std::bit_cast<equiv_uint>(value);
 3673|       |#else
 3674|       |  ::memcpy(&bits, &value, sizeof(T));
 3675|       |#endif
 3676|  6.94k|  if ((bits & exponent_mask) == 0) {
  ------------------
  |  Branch (3676:7): [True: 483, False: 6.46k]
  ------------------
 3677|       |    // denormal
 3678|    483|    am.power2 = 1 - bias;
 3679|    483|    am.mantissa = bits & mantissa_mask;
 3680|  6.46k|  } else {
 3681|       |    // normal
 3682|  6.46k|    am.power2 = int32_t((bits & exponent_mask) >>
 3683|  6.46k|                        binary_format<T>::mantissa_explicit_bits());
 3684|  6.46k|    am.power2 -= bias;
 3685|  6.46k|    am.mantissa = (bits & mantissa_mask) | hidden_bit_mask;
 3686|  6.46k|  }
 3687|       |
 3688|  6.94k|  return am;
 3689|  6.94k|}
_ZN3glz10fast_float6bigintC2Em:
 3406|  6.94k|  GLZ_FASTFLOAT_CONSTEXPR20 bigint(uint64_t value) : vec() {
 3407|  6.94k|#ifdef GLZ_FASTFLOAT_64BIT_LIMB
 3408|  6.94k|    vec.push_unchecked(value);
 3409|       |#else
 3410|       |    vec.push_unchecked(uint32_t(value));
 3411|       |    vec.push_unchecked(uint32_t(value >> 32));
 3412|       |#endif
 3413|  6.94k|    vec.normalize();
 3414|  6.94k|  }
_ZNK3glz10fast_float6bigint7compareERKS1_:
 3451|  6.94k|  GLZ_FASTFLOAT_CONSTEXPR20 int compare(bigint const &other) const noexcept {
 3452|  6.94k|    if (vec.len() > other.vec.len()) {
  ------------------
  |  Branch (3452:9): [True: 0, False: 6.94k]
  ------------------
 3453|      0|      return 1;
 3454|  6.94k|    } else if (vec.len() < other.vec.len()) {
  ------------------
  |  Branch (3454:16): [True: 0, False: 6.94k]
  ------------------
 3455|      0|      return -1;
 3456|  6.94k|    } else {
 3457|  41.4k|      for (size_t index = vec.len(); index > 0; index--) {
  ------------------
  |  Branch (3457:38): [True: 40.8k, False: 639]
  ------------------
 3458|  40.8k|        limb xi = vec[index - 1];
 3459|  40.8k|        limb yi = other.vec[index - 1];
 3460|  40.8k|        if (xi > yi) {
  ------------------
  |  Branch (3460:13): [True: 3.63k, False: 37.1k]
  ------------------
 3461|  3.63k|          return 1;
 3462|  37.1k|        } else if (xi < yi) {
  ------------------
  |  Branch (3462:20): [True: 2.67k, False: 34.4k]
  ------------------
 3463|  2.67k|          return -1;
 3464|  2.67k|        }
 3465|  40.8k|      }
 3466|    639|      return 0;
 3467|  6.94k|    }
 3468|  6.94k|  }
_ZNK3glz10fast_float8stackvecILt62EEixEm:
 3022|  81.6k|  GLZ_FASTFLOAT_CONSTEXPR14 const limb &operator[](size_t index) const noexcept {
 3023|  81.6k|    GLZ_FASTFLOAT_DEBUG_ASSERT(index < length);
  ------------------
  |  |  349|  81.6k|  { ((void)(x)); }
  ------------------
 3024|  81.6k|    return data[index];
 3025|  81.6k|  }
_ZN3glz10fast_float5roundIdZNS0_19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES3_iEUlRS3_iE0_EEvS6_T0_:
 3707|  6.94k|                                                         callback cb) noexcept {
 3708|  6.94k|  int32_t mantissa_shift = 64 - binary_format<T>::mantissa_explicit_bits() - 1;
 3709|  6.94k|  if (-am.power2 >= mantissa_shift) {
  ------------------
  |  Branch (3709:7): [True: 483, False: 6.46k]
  ------------------
 3710|       |    // have a denormal float
 3711|    483|    int32_t shift = -am.power2 + 1;
 3712|    483|    cb(am, (std::min<int32_t>)(shift, 64));
 3713|       |    // check for round-up: if rounding-nearest carried us to the hidden bit.
 3714|    483|    am.power2 = (am.mantissa <
  ------------------
  |  Branch (3714:17): [True: 483, False: 0]
  ------------------
 3715|    483|                 (uint64_t(1) << binary_format<T>::mantissa_explicit_bits()))
 3716|    483|                    ? 0
 3717|    483|                    : 1;
 3718|    483|    return;
 3719|    483|  }
 3720|       |
 3721|       |  // have a normal float, use the default shift.
 3722|  6.46k|  cb(am, mantissa_shift);
 3723|       |
 3724|       |  // check for carry
 3725|  6.46k|  if (am.mantissa >=
  ------------------
  |  Branch (3725:7): [True: 420, False: 6.04k]
  ------------------
 3726|  6.46k|      (uint64_t(2) << binary_format<T>::mantissa_explicit_bits())) {
 3727|    420|    am.mantissa = (uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3728|    420|    am.power2++;
 3729|    420|  }
 3730|       |
 3731|       |  // check for infinite: we could have carried to an infinite power
 3732|  6.46k|  am.mantissa &= ~(uint64_t(1) << binary_format<T>::mantissa_explicit_bits());
 3733|  6.46k|  if (am.power2 >= binary_format<T>::infinite_power()) {
  ------------------
  |  Branch (3733:7): [True: 0, False: 6.46k]
  ------------------
 3734|      0|    am.power2 = binary_format<T>::infinite_power();
 3735|      0|    am.mantissa = 0;
 3736|      0|  }
 3737|  6.46k|}
_ZZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_iENKUlRS2_iE0_clES5_i:
 4001|  6.94k|  round<T>(answer, [ord](adjusted_mantissa &a, int32_t shift) {
 4002|  6.94k|    round_nearest_tie_even(
 4003|  6.94k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 4004|  6.94k|          (void)_;  // not needed, since we've done our comparison
 4005|  6.94k|          (void)__; // not needed, since we've done our comparison
 4006|  6.94k|          if (ord > 0) {
 4007|  6.94k|            return true;
 4008|  6.94k|          } else if (ord < 0) {
 4009|  6.94k|            return false;
 4010|  6.94k|          } else {
 4011|  6.94k|            return is_odd;
 4012|  6.94k|          }
 4013|  6.94k|        });
 4014|  6.94k|  });
_ZN3glz10fast_float22round_nearest_tie_evenIZZNS0_19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES3_iENKUlRS3_iE0_clES6_iEUlbbbE_EEvS6_iT_:
 3742|  6.94k|                       callback cb) noexcept {
 3743|  6.94k|  uint64_t const mask = (shift == 64) ? UINT64_MAX : (uint64_t(1) << shift) - 1;
  ------------------
  |  Branch (3743:25): [True: 0, False: 6.94k]
  ------------------
 3744|  6.94k|  uint64_t const halfway = (shift == 0) ? 0 : uint64_t(1) << (shift - 1);
  ------------------
  |  Branch (3744:28): [True: 0, False: 6.94k]
  ------------------
 3745|  6.94k|  uint64_t truncated_bits = am.mantissa & mask;
 3746|  6.94k|  bool is_above = truncated_bits > halfway;
 3747|  6.94k|  bool is_halfway = truncated_bits == halfway;
 3748|       |
 3749|       |  // shift digits into position
 3750|  6.94k|  if (shift == 64) {
  ------------------
  |  Branch (3750:7): [True: 0, False: 6.94k]
  ------------------
 3751|      0|    am.mantissa = 0;
 3752|  6.94k|  } else {
 3753|  6.94k|    am.mantissa >>= shift;
 3754|  6.94k|  }
 3755|  6.94k|  am.power2 += shift;
 3756|       |
 3757|  6.94k|  bool is_odd = (am.mantissa & 1) == 1;
 3758|  6.94k|  am.mantissa += uint64_t(cb(is_odd, is_halfway, is_above));
 3759|  6.94k|}
_ZZZN3glz10fast_float19negative_digit_compIdEENS0_17adjusted_mantissaERNS0_6bigintES2_iENKUlRS2_iE0_clES5_iENKUlbbbE_clEbbb:
 4003|  6.94k|        a, shift, [ord](bool is_odd, bool _, bool __) -> bool {
 4004|  6.94k|          (void)_;  // not needed, since we've done our comparison
 4005|  6.94k|          (void)__; // not needed, since we've done our comparison
 4006|  6.94k|          if (ord > 0) {
  ------------------
  |  Branch (4006:15): [True: 3.63k, False: 3.31k]
  ------------------
 4007|  3.63k|            return true;
 4008|  3.63k|          } else if (ord < 0) {
  ------------------
  |  Branch (4008:22): [True: 2.67k, False: 639]
  ------------------
 4009|  2.67k|            return false;
 4010|  2.67k|          } else {
 4011|    639|            return is_odd;
 4012|    639|          }
 4013|  6.94k|        });
_ZN3glz10fast_float8to_floatIdEEvbNS0_17adjusted_mantissaERT_:
 1131|  28.4k|to_float(bool negative, adjusted_mantissa am, T &value) {
 1132|  28.4k|  using equiv_uint = equiv_uint_t<T>;
 1133|  28.4k|  equiv_uint word = equiv_uint(am.mantissa);
 1134|  28.4k|  word = equiv_uint(word | equiv_uint(am.power2)
 1135|  28.4k|                               << binary_format<T>::mantissa_explicit_bits());
 1136|  28.4k|  word =
 1137|  28.4k|      equiv_uint(word | equiv_uint(negative) << binary_format<T>::sign_index());
 1138|  28.4k|#if GLZ_FASTFLOAT_HAS_BIT_CAST
 1139|  28.4k|  value = std::bit_cast<T>(word);
 1140|       |#else
 1141|       |  ::memcpy(&value, &word, sizeof(T));
 1142|       |#endif
 1143|  28.4k|}
_ZN3glz10fast_float13binary_formatIdE10sign_indexEv:
  758|  28.4k|template <> inline constexpr int binary_format<double>::sign_index() {
  759|  28.4k|  return 63;
  760|  28.4k|}
_ZN3glz10fast_float13binary_formatIdE14infinite_powerEv:
  750|  72.5k|template <> inline constexpr int binary_format<double>::infinite_power() {
  751|  72.5k|  return 0x7FF;
  752|  72.5k|}

jsonrpc_registry.cpp:_ZN3glz8for_eachILm4EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz10member_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_EUlTnDavE_EEvOS9_:
   27|  79.7k|   {
   28|  79.7k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|  79.7k|         else if constexpr (N == 4) {
   44|  79.7k|            lambda.template operator()<0>();
   45|  79.7k|            lambda.template operator()<1>();
   46|  79.7k|            lambda.template operator()<2>();
   47|  79.7k|            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  79.7k|      }
   55|  79.7k|   }
_ZN3glz8for_eachILm2EZNS_2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEES3_RNSt3__112basic_stringIcNS7_11char_traitsIcEENS7_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSK_:
   27|    107|   {
   28|    107|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|    107|         else if constexpr (N == 2) {
   35|    107|            lambda.template operator()<0>();
   36|    107|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|    107|      }
   55|    107|   }
_ZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_m:
   86|  37.7k|   {
   87|  37.7k|      if constexpr (N > 0) {
   88|  37.7k|         assert(index < N && "glz::visit index out of range");
  ------------------
  |  Branch (88:10): [True: 37.7k, False: 0]
  |  Branch (88:10): [True: 37.7k, Folded]
  |  Branch (88:10): [True: 37.7k, 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|       |         else if constexpr (N == 4) {
  122|       |            switch (index) {
  123|       |            case 0:
  124|       |               lambda.template operator()<0>();
  125|       |               break;
  126|       |            case 1:
  127|       |               lambda.template operator()<1>();
  128|       |               break;
  129|       |            case 2:
  130|       |               lambda.template operator()<2>();
  131|       |               break;
  132|       |            case 3:
  133|       |               lambda.template operator()<3>();
  134|       |               break;
  135|       |            default:
  136|       |               std::unreachable();
  137|       |            }
  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|  37.7k|         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|  37.7k|            static constexpr auto jump_table = []<size_t... I>(std::index_sequence<I...>) {
  318|  37.7k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
  319|  37.7k|            }(std::make_index_sequence<N>{});
  320|  37.7k|#endif
  321|       |
  322|  37.7k|#if defined(__clang__)
  323|  37.7k|            [[assume(index < N)]];
  324|  37.7k|#endif
  325|  37.7k|            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|  37.7k|         }
  334|  37.7k|      }
  335|  37.7k|   }
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E_clESU_:
  318|  20.8k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E0_clESU_:
  318|    156|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E1_clESU_:
  318|    753|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E2_clESU_:
  318|    942|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E3_clESU_:
  318|  7.67k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E4_clESU_:
  318|  1.36k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E5_clESU_:
  318|  1.69k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E6_clESU_:
  318|  2.01k|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZN3glz8for_eachILm2EZNS_28process_variant_alternativesINSt3__17variantIJNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEN12jsonrpc_fuzz6amountEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSC_TkNS_10is_contextERNS_7contextERPKcSL_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSO_:
   27|  1.96k|   {
   28|  1.96k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|  1.96k|         else if constexpr (N == 2) {
   35|  1.96k|            lambda.template operator()<0>();
   36|  1.96k|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  1.96k|      }
   55|  1.96k|   }
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E7_clESU_:
  318|    750|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E8_clESU_:
  318|    460|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E9_clESU_:
  318|    404|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E10_clESU_:
  318|    477|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZZZN3glz5visitILm13EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEN12jsonrpc_fuzz8fuzz_apiERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_mENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSR_ENKUlRSN_E11_clESU_:
  318|    218|               return std::array{+[](std::decay_t<decltype(lambda)>& l) { l.template operator()<I>(); }...};
_ZN3glz8for_eachILm13EZNS_2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_:
   27|     65|   {
   28|     65|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|     65|         else {
   50|     65|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|     65|               (void)(lambda.template operator()<I>(), ...);
   52|     65|            }(std::make_index_sequence<N>{});
   53|     65|         }
   54|     65|      }
   55|     65|   }
_ZZN3glz8for_eachILm13EZNS_2toILj10EN12jsonrpc_fuzz8fuzz_apiEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_ENKUlTpTnmNS8_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSU_:
   50|     65|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|     65|               (void)(lambda.template operator()<I>(), ...);
   52|     65|            }(std::make_index_sequence<N>{});
_ZN3glz8for_eachILm2EZNS_2toILj10EN12jsonrpc_fuzz5pointEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_:
   27|    343|   {
   28|    343|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|    343|         else if constexpr (N == 2) {
   35|    343|            lambda.template operator()<0>();
   36|    343|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|    343|      }
   55|    343|   }
_ZN3glz8for_eachILm2EZNS_2toILj10EN12jsonrpc_fuzz6nestedEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS3_RNSt3__112basic_stringIcNS8_11char_traitsIcEENS8_9allocatorIcEEEETkNS_10is_contextERNS_7contextEmQntsr3stdE12is_pointer_vIu14__remove_cvrefITL0_0_EEEEvOT0_OT2_OT1_RT3_EUlTnmvE_EEvSL_:
   27|    131|   {
   28|    131|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|    131|         else if constexpr (N == 2) {
   35|    131|            lambda.template operator()<0>();
   36|    131|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|    131|      }
   55|    131|   }
jsonrpc_registry.cpp:_ZN3glz8for_eachILm13EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_EUlTnDavE_EEvOS9_:
   27|  79.7k|   {
   28|  79.7k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|  79.7k|         else {
   50|  79.7k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  79.7k|               (void)(lambda.template operator()<I>(), ...);
   52|  79.7k|            }(std::make_index_sequence<N>{});
   53|  79.7k|         }
   54|  79.7k|      }
   55|  79.7k|   }
jsonrpc_registry.cpp:_ZZN3glz8for_eachILm13EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS8_EEEvRT0_EUlTnDavE_EEvOS9_ENKUlTpTnmNSt3__116integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5ELm6ELm7ELm8ELm9ELm10ELm11ELm12EEEEDaSF_:
   50|  79.7k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  79.7k|               (void)(lambda.template operator()<I>(), ...);
   52|  79.7k|            }(std::make_index_sequence<N>{});
jsonrpc_registry.cpp:_ZN3glz8for_eachILm2EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz5pointEL_ZZZNS4_IL_ZNS5_L10empty_pathEENS6_8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm2EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_EUlTnDavE_EEvOSA_:
   27|  79.7k|   {
   28|  79.7k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|  79.7k|         else if constexpr (N == 2) {
   35|  79.7k|            lambda.template operator()<0>();
   36|  79.7k|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  79.7k|      }
   55|  79.7k|   }
jsonrpc_registry.cpp:_ZN3glz8for_eachILm2EZNS_8registryIXtlNS_4optsELj10ELb1ELb0ELb1ELb1EEELj30200EE16register_membersIL_ZNS_6detailL10empty_pathEEN12jsonrpc_fuzz6nestedEL_ZZZNS4_IL_ZNS5_L10empty_pathEENS6_8fuzz_apiEL_ZNS5_L10empty_pathEEQoo14glaze_object_tITL0_0_E11reflectableIS9_EEEvRT0_ENKUlTnDavE_clILm3EEEDavE8full_keyEQoo14glaze_object_tIS9_E11reflectableIS9_EEEvSB_EUlTnDavE_EEvOSA_:
   27|  79.7k|   {
   28|  79.7k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|  79.7k|         else if constexpr (N == 2) {
   35|  79.7k|            lambda.template operator()<0>();
   36|  79.7k|            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  79.7k|      }
   55|  79.7k|   }
_ZN3glz5visitILm4EZNS_16parse_and_invokeITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEENS_3rpc18request_envelope_tERS4_JETkNS_10is_contextERNS_7contextERPKcSA_Qoo14glaze_object_tIT0_E11reflectableISB_EEEvOT1_OT3_OT4_OT5_DpOT2_EUlTnmvE_EEvOSB_m:
   86|   270k|   {
   87|   270k|      if constexpr (N > 0) {
   88|   270k|         assert(index < N && "glz::visit index out of range");
  ------------------
  |  Branch (88:10): [True: 270k, False: 0]
  |  Branch (88:10): [True: 270k, Folded]
  |  Branch (88:10): [True: 270k, 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|   270k|         else if constexpr (N == 4) {
  122|   270k|            switch (index) {
  123|  75.1k|            case 0:
  ------------------
  |  Branch (123:13): [True: 75.1k, False: 195k]
  ------------------
  124|  75.1k|               lambda.template operator()<0>();
  125|  75.1k|               break;
  126|  65.5k|            case 1:
  ------------------
  |  Branch (126:13): [True: 65.5k, False: 204k]
  ------------------
  127|  65.5k|               lambda.template operator()<1>();
  128|  65.5k|               break;
  129|  47.2k|            case 2:
  ------------------
  |  Branch (129:13): [True: 47.2k, False: 222k]
  ------------------
  130|  47.2k|               lambda.template operator()<2>();
  131|  47.2k|               break;
  132|  82.2k|            case 3:
  ------------------
  |  Branch (132:13): [True: 82.2k, False: 187k]
  ------------------
  133|  82.2k|               lambda.template operator()<3>();
  134|  82.2k|               break;
  135|      0|            default:
  ------------------
  |  Branch (135:13): [True: 0, False: 270k]
  ------------------
  136|      0|               std::unreachable();
  137|   270k|            }
  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|   270k|      }
  335|   270k|   }
_ZN3glz8for_eachILm3EZNS_28process_variant_alternativesINSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_TkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSK_:
   27|  9.26k|   {
   28|  9.26k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|  9.26k|         else if constexpr (N == 3) {
   39|  9.26k|            lambda.template operator()<0>();
   40|  9.26k|            lambda.template operator()<1>();
   41|  9.26k|            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  9.26k|      }
   55|  9.26k|   }
_ZN3glz8for_eachILm3EZNS_28process_variant_alternativesINSt3__17variantIJDnNS2_17basic_string_viewIcNS2_11char_traitsIcEEEElEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERS8_TkNS_10is_contextERNS_7contextERPKcSH_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSK_:
   27|  71.2k|   {
   28|  71.2k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|  71.2k|         else if constexpr (N == 3) {
   39|  71.2k|            lambda.template operator()<0>();
   40|  71.2k|            lambda.template operator()<1>();
   41|  71.2k|            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  71.2k|      }
   55|  71.2k|   }
_ZN3glz8for_eachILm1EZNS_13get_view_jsonITnNS_14string_literalEXtlNS2_ILm4EEEtlA4_cLc47ELc105ELc100EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10contiguousERNSt3__117basic_string_viewIcNS6_11char_traitsIcEEEEEEDaOT1_EUlTnmvE_EEvOT0_:
   27|  86.3k|   {
   28|  86.3k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|  86.3k|         if constexpr (N == 1) {
   32|  86.3k|            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|       |         else {
   50|       |            [&]<size_t... I>(std::index_sequence<I...>) {
   51|       |               (void)(lambda.template operator()<I>(), ...);
   52|       |            }(std::make_index_sequence<N>{});
   53|       |         }
   54|  86.3k|      }
   55|  86.3k|   }
_ZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_:
   27|  20.7k|   {
   28|  20.7k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|  20.7k|         else {
   50|  20.7k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  20.7k|               (void)(lambda.template operator()<I>(), ...);
   52|  20.7k|            }(std::make_index_sequence<N>{});
   53|  20.7k|         }
   54|  20.7k|      }
   55|  20.7k|   }
_ZZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_16is_variant_arrayEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_ENKUlTpTnmNS2_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5EEEEDaS12_:
   50|  20.7k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|  20.7k|               (void)(lambda.template operator()<I>(), ...);
   52|  20.7k|            }(std::make_index_sequence<N>{});
_ZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_:
   27|   777k|   {
   28|   777k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|   777k|         else {
   50|   777k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   777k|               (void)(lambda.template operator()<I>(), ...);
   52|   777k|            }(std::make_index_sequence<N>{});
   53|   777k|         }
   54|   777k|      }
   55|   777k|   }
_ZZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_strEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_ENKUlTpTnmNS2_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5EEEEDaS12_:
   50|   777k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   777k|               (void)(lambda.template operator()<I>(), ...);
   52|   777k|            }(std::make_index_sequence<N>{});
_ZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_:
   27|   283k|   {
   28|   283k|      if constexpr (N > 0) {
   29|       |         // Explicit sizes for small N to help the compiler and make debugging easier
   30|       |         // These generate less assembly with O0, but make no difference for higher optimization
   31|       |         if constexpr (N == 1) {
   32|       |            lambda.template operator()<0>();
   33|       |         }
   34|       |         else if constexpr (N == 2) {
   35|       |            lambda.template operator()<0>();
   36|       |            lambda.template operator()<1>();
   37|       |         }
   38|       |         else if constexpr (N == 3) {
   39|       |            lambda.template operator()<0>();
   40|       |            lambda.template operator()<1>();
   41|       |            lambda.template operator()<2>();
   42|       |         }
   43|       |         else if constexpr (N == 4) {
   44|       |            lambda.template operator()<0>();
   45|       |            lambda.template operator()<1>();
   46|       |            lambda.template operator()<2>();
   47|       |            lambda.template operator()<3>();
   48|       |         }
   49|   283k|         else {
   50|   283k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   283k|               (void)(lambda.template operator()<I>(), ...);
   52|   283k|            }(std::make_index_sequence<N>{});
   53|   283k|         }
   54|   283k|      }
   55|   283k|   }
_ZZN3glz8for_eachILm6EZNS_28process_variant_alternativesINSt3__17variantIJDndNS2_12basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEbNS2_6vectorINS_12generic_jsonILNS_8num_modeE0ENS_17ordered_small_mapEEENS7_ISE_EEEENSD_ISE_EEEEENS_14is_variant_numEE2opITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEERSI_TkNS_10is_contextERNS_7contextERPKcSR_EEvOT0_OT1_OT2_T3_EUlTnmvE_EEvSU_ENKUlTpTnmNS2_16integer_sequenceImJXspT_EEEEE_clIJLm0ELm1ELm2ELm3ELm4ELm5EEEEDaS12_:
   50|   283k|            [&]<size_t... I>(std::index_sequence<I...>) {
   51|   283k|               (void)(lambda.template operator()<I>(), ...);
   52|   283k|            }(std::make_index_sequence<N>{});

_ZN3glz10from_charsILb0EdcEENS_10fast_float19from_chars_result_tIT1_EEPKS3_S6_RT0_:
  235|   513k|   {
  236|   513k|      using namespace glz::fast_float;
  237|   513k|      static_assert(is_supported_float_type<T>(), "only some floating-point types are supported");
  238|   513k|      static_assert(is_supported_char_type<UC>(), "only char, wchar_t, char16_t and char32_t are supported");
  239|       |
  240|   513k|      parsed_number_string_t<UC> pns = glz::parse_number_string<null_terminated, UC>(first, last);
  241|   513k|      if (!pns.valid) [[unlikely]] {
  ------------------
  |  Branch (241:11): [True: 1.45k, False: 511k]
  ------------------
  242|  1.45k|         return {.ptr = first, .ec = std::errc::invalid_argument};
  243|  1.45k|      }
  244|       |
  245|   511k|      return from_chars_advanced(pns, value);
  246|   513k|   }
_ZN3glz19parse_number_stringILb0EcEENS_10fast_float22parsed_number_string_tIT0_EEPKS3_S6_:
   18|   513k|   {
   19|   513k|      using namespace glz::fast_float;
   20|   513k|      static constexpr UC decimal_point = '.';
   21|       |
   22|   513k|      parsed_number_string_t<UC> answer;
   23|   513k|      answer.valid = false;
   24|   513k|      answer.too_many_digits = false;
   25|   513k|      answer.negative = (*p == UC('-'));
   26|   513k|      if (*p == UC('-')) { // C++17 20.19.3.(7.1) explicitly forbids '+' sign here
  ------------------
  |  Branch (26:11): [True: 398k, False: 114k]
  ------------------
   27|   398k|         ++p;
   28|       |
   29|   398k|         if constexpr (not null_terminated) {
   30|   398k|            if (p == pend) [[unlikely]] {
  ------------------
  |  Branch (30:17): [True: 9, False: 398k]
  ------------------
   31|      9|               return answer;
   32|      9|            }
   33|   398k|         }
   34|       |
   35|   398k|         if (!glz::fast_float::is_integer(*p)) [[unlikely]] { // a sign must be followed by an integer
  ------------------
  |  Branch (35:14): [True: 43, False: 398k]
  ------------------
   36|     43|            return answer;
   37|     43|         }
   38|   398k|      }
   39|   513k|      UC const* const start_digits = p;
   40|       |
   41|   513k|      uint64_t i = 0; // an unsigned int avoids signed overflows (which are bad)
   42|       |
   43|   513k|      uint64_t digit;
   44|       |      if constexpr (null_terminated) {
   45|       |         while ((digit = glz::fast_float::digit_value(*p)) <= 9) {
   46|       |            // a multiplication by 10 is cheaper than an arbitrary integer
   47|       |            // multiplication
   48|       |            i = 10 * i + digit; // might overflow, we will handle the overflow later
   49|       |            ++p;
   50|       |         }
   51|       |      }
   52|   513k|      else {
   53|  14.8M|         while ((p != pend) && (digit = glz::fast_float::digit_value(*p)) <= 9) {
  ------------------
  |  Branch (53:17): [True: 14.8M, False: 644]
  |  Branch (53:32): [True: 14.2M, False: 512k]
  ------------------
   54|       |            // a multiplication by 10 is cheaper than an arbitrary integer
   55|       |            // multiplication
   56|  14.2M|            i = 10 * i + digit; // might overflow, we will handle the overflow later
   57|  14.2M|            ++p;
   58|  14.2M|         }
   59|   513k|      }
   60|       |
   61|   513k|      UC const* const end_of_integer_part = p;
   62|   513k|      int64_t digit_count = int64_t(end_of_integer_part - start_digits);
   63|   513k|      answer.integer = glz::fast_float::span<const UC>(start_digits, size_t(digit_count));
   64|       |
   65|       |      // at least 1 digit in integer part, without leading zeros
   66|   513k|      if (digit_count == 0 || (start_digits[0] == UC('0') && digit_count > 1)) {
  ------------------
  |  Branch (66:11): [True: 1.23k, False: 511k]
  |  Branch (66:32): [True: 9.02k, False: 502k]
  |  Branch (66:62): [True: 67, False: 8.95k]
  ------------------
   67|  1.29k|         return answer;
   68|  1.29k|      }
   69|       |
   70|   511k|      int64_t exponent = 0;
   71|   511k|      const bool has_decimal_point = [&] {
   72|   511k|         if constexpr (null_terminated) {
   73|   511k|            return (*p == decimal_point);
   74|   511k|         }
   75|   511k|         else {
   76|   511k|            return (p != pend) && (*p == decimal_point);
   77|   511k|         }
   78|   511k|      }();
   79|   511k|      if (has_decimal_point) {
  ------------------
  |  Branch (79:11): [True: 15.6k, False: 496k]
  ------------------
   80|  15.6k|         ++p;
   81|  15.6k|         UC const* before = p;
   82|       |         // can occur at most twice without overflowing, but let it occur more, since
   83|       |         // for integers with many digits, digit parsing is the primary bottleneck.
   84|  15.6k|         loop_parse_if_eight_digits(p, pend, i);
   85|       |
   86|       |         if constexpr (null_terminated) {
   87|       |            while ((digit = glz::fast_float::digit_value(*p)) <= 9) {
   88|       |               ++p;
   89|       |               i = i * 10 + digit; // in rare cases, this will overflow, but that's ok
   90|       |            }
   91|       |         }
   92|  15.6k|         else {
   93|  63.3k|            while ((p != pend) && (digit = glz::fast_float::digit_value(*p)) <= 9) {
  ------------------
  |  Branch (93:20): [True: 62.3k, False: 1.00k]
  |  Branch (93:35): [True: 47.6k, False: 14.6k]
  ------------------
   94|  47.6k|               ++p;
   95|  47.6k|               i = i * 10 + digit; // in rare cases, this will overflow, but that's ok
   96|  47.6k|            }
   97|  15.6k|         }
   98|  15.6k|         exponent = before - p;
   99|  15.6k|         answer.fraction = glz::fast_float::span<const UC>(before, size_t(p - before));
  100|  15.6k|         digit_count -= exponent;
  101|  15.6k|      }
  102|       |      // at least 1 digit in fractional part
  103|   511k|      if (has_decimal_point && exponent == 0) {
  ------------------
  |  Branch (103:11): [True: 15.6k, False: 496k]
  |  Branch (103:32): [True: 31, False: 15.6k]
  ------------------
  104|     31|         return answer;
  105|     31|      }
  106|       |
  107|   511k|      int64_t exp_number = 0; // explicit exponential part
  108|       |
  109|       |      // An exponent marker must be followed by at least one digit, after an optional sign. Unlike
  110|       |      // std::from_chars, which ends the number before a digitless marker, "1e", "1e+" and "1.0E-" are
  111|       |      // rejected: ending early would read "1.0e" as 1 wherever trailing content goes unchecked.
  112|       |      if constexpr (null_terminated) {
  113|       |         if ((UC('e') == *p) || (UC('E') == *p)) {
  114|       |            ++p;
  115|       |            bool neg_exp = false;
  116|       |            if (UC('-') == *p) {
  117|       |               neg_exp = true;
  118|       |               ++p;
  119|       |            }
  120|       |            else if (UC('+') == *p) { // '+' on exponent is allowed by C++17 20.19.3.(7.1)
  121|       |               ++p;
  122|       |            }
  123|       |            if ((digit = glz::fast_float::digit_value(*p)) > 9) [[unlikely]] {
  124|       |               return answer;
  125|       |            }
  126|       |            else {
  127|       |               do {
  128|       |                  if (exp_number < 0x10000000) {
  129|       |                     exp_number = 10 * exp_number + digit;
  130|       |                  }
  131|       |                  ++p;
  132|       |               } while ((digit = glz::fast_float::digit_value(*p)) <= 9);
  133|       |               if (neg_exp) {
  134|       |                  exp_number = -exp_number;
  135|       |               }
  136|       |               exponent += exp_number;
  137|       |            }
  138|       |         }
  139|       |      }
  140|   511k|      else {
  141|   511k|         if ((p != pend) && ((UC('e') == *p) || (UC('E') == *p))) {
  ------------------
  |  Branch (141:14): [True: 510k, False: 1.62k]
  |  Branch (141:30): [True: 3.31k, False: 506k]
  |  Branch (141:49): [True: 5.50k, False: 501k]
  ------------------
  142|  8.82k|            ++p;
  143|  8.82k|            bool neg_exp = false;
  144|  8.82k|            if ((p != pend) && (UC('-') == *p)) {
  ------------------
  |  Branch (144:17): [True: 8.81k, False: 8]
  |  Branch (144:32): [True: 1.92k, False: 6.88k]
  ------------------
  145|  1.92k|               neg_exp = true;
  146|  1.92k|               ++p;
  147|  1.92k|            }
  148|  6.89k|            else if ((p != pend) && (UC('+') == *p)) { // '+' on exponent is allowed by C++17 20.19.3.(7.1)
  ------------------
  |  Branch (148:22): [True: 6.88k, False: 8]
  |  Branch (148:37): [True: 200, False: 6.68k]
  ------------------
  149|    200|               ++p;
  150|    200|            }
  151|  8.82k|            if ((p == pend) || (digit = glz::fast_float::digit_value(*p)) > 9) [[unlikely]] {
  ------------------
  |  Branch (151:17): [True: 14, False: 8.80k]
  |  Branch (151:32): [True: 63, False: 8.74k]
  ------------------
  152|     77|               return answer;
  153|     77|            }
  154|  8.74k|            else {
  155|  23.2k|               do {
  156|  23.2k|                  if (exp_number < 0x10000000) {
  ------------------
  |  Branch (156:23): [True: 22.6k, False: 542]
  ------------------
  157|  22.6k|                     exp_number = 10 * exp_number + digit;
  158|  22.6k|                  }
  159|  23.2k|                  ++p;
  160|  23.2k|               } while ((p != pend) && (digit = glz::fast_float::digit_value(*p)) <= 9);
  ------------------
  |  Branch (160:25): [True: 22.5k, False: 721]
  |  Branch (160:40): [True: 14.4k, False: 8.02k]
  ------------------
  161|  8.74k|               if (neg_exp) {
  ------------------
  |  Branch (161:20): [True: 1.91k, False: 6.82k]
  ------------------
  162|  1.91k|                  exp_number = -exp_number;
  163|  1.91k|               }
  164|  8.74k|               exponent += exp_number;
  165|  8.74k|            }
  166|  8.82k|         }
  167|   511k|      }
  168|       |
  169|   511k|      answer.lastmatch = p;
  170|   511k|      answer.valid = true;
  171|       |
  172|       |      // If we frequently had to deal with long strings of digits,
  173|       |      // we could extend our code by using a 128-bit integer instead
  174|       |      // of a 64-bit integer. However, this is uncommon.
  175|       |      //
  176|       |      // We can deal with up to 19 digits.
  177|   511k|      if (digit_count > 19) { // this is uncommon
  ------------------
  |  Branch (177:11): [True: 16.4k, False: 495k]
  ------------------
  178|       |         // It is possible that the integer had an overflow.
  179|       |         // We have to handle the case where we have 0.0000somenumber.
  180|       |         // We need to be mindful of the case where we only have zeroes...
  181|       |         // E.g., 0.000000000...000.
  182|  16.4k|         UC const* start = start_digits;
  183|       |         if constexpr (null_terminated) {
  184|       |            while ((*start == UC('0') || *start == decimal_point)) {
  185|       |               if (*start == UC('0')) {
  186|       |                  --digit_count;
  187|       |               }
  188|       |               ++start;
  189|       |            }
  190|       |         }
  191|  16.4k|         else {
  192|  4.47M|            while ((start != pend) && (*start == UC('0') || *start == decimal_point)) {
  ------------------
  |  Branch (192:20): [True: 4.47M, False: 28]
  |  Branch (192:40): [True: 4.45M, False: 19.4k]
  |  Branch (192:61): [True: 3.00k, False: 16.4k]
  ------------------
  193|  4.45M|               if (*start == UC('0')) {
  ------------------
  |  Branch (193:20): [True: 4.45M, False: 3.00k]
  ------------------
  194|  4.45M|                  --digit_count;
  195|  4.45M|               }
  196|  4.45M|               ++start;
  197|  4.45M|            }
  198|  16.4k|         }
  199|       |
  200|  16.4k|         if (digit_count > 19) {
  ------------------
  |  Branch (200:14): [True: 15.5k, False: 889]
  ------------------
  201|  15.5k|            answer.too_many_digits = true;
  202|       |            // Let us start again, this time, avoiding overflows.
  203|       |            // We don't need to check if is_integer, since we use the
  204|       |            // pre-tokenized spans from above.
  205|  15.5k|            i = 0;
  206|  15.5k|            p = answer.integer.ptr;
  207|  15.5k|            UC const* int_end = p + answer.integer.len();
  208|  15.5k|            const uint64_t minimal_nineteen_digit_integer{1000000000000000000};
  209|   228k|            while ((i < minimal_nineteen_digit_integer) && (p != int_end)) {
  ------------------
  |  Branch (209:20): [True: 219k, False: 9.13k]
  |  Branch (209:60): [True: 212k, False: 6.42k]
  ------------------
  210|   212k|               i = i * 10 + uint64_t(*p - UC('0'));
  211|   212k|               ++p;
  212|   212k|            }
  213|  15.5k|            if (i >= minimal_nineteen_digit_integer) { // We have a big integers
  ------------------
  |  Branch (213:17): [True: 9.13k, False: 6.42k]
  ------------------
  214|  9.13k|               exponent = end_of_integer_part - p + exp_number;
  215|  9.13k|            }
  216|  6.42k|            else { // We have a value with a fractional component.
  217|  6.42k|               p = answer.fraction.ptr;
  218|  6.42k|               UC const* frac_end = p + answer.fraction.len();
  219|   244k|               while ((i < minimal_nineteen_digit_integer) && (p != frac_end)) {
  ------------------
  |  Branch (219:23): [True: 237k, False: 6.42k]
  |  Branch (219:63): [True: 237k, False: 0]
  ------------------
  220|   237k|                  i = i * 10 + uint64_t(*p - UC('0'));
  221|   237k|                  ++p;
  222|   237k|               }
  223|  6.42k|               exponent = answer.fraction.ptr - p + exp_number;
  224|  6.42k|            }
  225|       |            // We have now corrected both exponent and i, to a truncated value
  226|  15.5k|         }
  227|  16.4k|      }
  228|   511k|      answer.exponent = exponent;
  229|   511k|      answer.mantissa = i;
  230|   511k|      return answer;
  231|   511k|   }
_ZZN3glz19parse_number_stringILb0EcEENS_10fast_float22parsed_number_string_tIT0_EEPKS3_S6_ENKUlvE_clEv:
   71|   511k|      const bool has_decimal_point = [&] {
   72|       |         if constexpr (null_terminated) {
   73|       |            return (*p == decimal_point);
   74|       |         }
   75|   511k|         else {
   76|   511k|            return (p != pend) && (*p == decimal_point);
  ------------------
  |  Branch (76:20): [True: 511k, False: 615]
  |  Branch (76:35): [True: 15.6k, False: 495k]
  ------------------
   77|   511k|         }
   78|   511k|      }();

_ZN3glz8to_charsImQsr3stdE7same_asIu14__remove_cvrefIT_EmEEEPcS3_S1_:
  221|  4.51M|   {
  222|  4.51M|      using namespace itoa_impl;
  223|  4.51M|      if (val < 100000000) {
  ------------------
  |  Branch (223:11): [True: 4.51M, False: 0]
  ------------------
  224|  4.51M|         return u64_len_1_8(buf, uint32_t(val));
  225|  4.51M|      }
  226|      0|      else if (val < 10000000000000000ull) {
  ------------------
  |  Branch (226:16): [True: 0, False: 0]
  ------------------
  227|      0|         const uint64_t hgh = div_1e8(val);
  228|      0|         const uint32_t low = uint32_t(val - hgh * 100000000);
  229|      0|         buf = u64_len_1_8(buf, uint32_t(hgh));
  230|      0|         return u64_len_8(buf, low);
  231|      0|      }
  232|      0|      else {
  233|      0|         const uint64_t tmp = div_1e8(val);
  234|      0|         const uint32_t low = uint32_t(val - tmp * 100000000);
  235|      0|         const uint32_t hgh = uint32_t(tmp / 10000);
  236|      0|         const uint32_t mid = uint32_t(tmp - uint64_t(hgh) * 10000);
  237|      0|         buf = u64_len_5_8(buf, hgh);
  238|      0|         buf = u64_len_4(buf, mid);
  239|      0|         return u64_len_8(buf, low);
  240|      0|      }
  241|  4.51M|   }
_ZN3glz9itoa_impl11u64_len_1_8EPcj:
  157|  4.51M|      {
  158|  4.51M|         if (val < 100) {
  ------------------
  |  Branch (158:14): [True: 4.50M, False: 8.99k]
  ------------------
  159|  4.50M|            return u32_2(buf, val);
  160|  4.50M|         }
  161|  8.99k|         else if (val < 10000) {
  ------------------
  |  Branch (161:19): [True: 7.83k, False: 1.15k]
  ------------------
  162|  7.83k|            return u32_4(buf, val);
  163|  7.83k|         }
  164|  1.15k|         else if (val < 1000000) {
  ------------------
  |  Branch (164:19): [True: 1.04k, False: 111]
  ------------------
  165|  1.04k|            return u32_6(buf, val);
  166|  1.04k|         }
  167|    111|         else {
  168|    111|            return u32_8(buf, val);
  169|    111|         }
  170|  4.51M|      }
_ZN3glz9itoa_impl5u32_2EPcj:
   74|  4.50M|      {
   75|  4.50M|         const uint32_t lz = val < 10;
   76|  4.50M|         std::memcpy(buf, char_table + ((val * 2) | lz), 2);
   77|  4.50M|         return buf + 2 - lz;
   78|  4.50M|      }
_ZN3glz9itoa_impl5u32_4EPcj:
   81|  7.83k|      {
   82|  7.83k|         const uint32_t aa = (val * 5243) >> 19; // val / 100
   83|  7.83k|         const uint32_t lz = aa < 10;
   84|  7.83k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   85|  7.83k|         std::memcpy(buf + 2 - lz, &digit_pairs[val - aa * 100], 2);
   86|  7.83k|         return buf + 4 - lz;
   87|  7.83k|      }
_ZN3glz9itoa_impl5u32_6EPcj:
   90|  1.04k|      {
   91|  1.04k|         const uint32_t aa = uint32_t((uint64_t(val) * 429497) >> 32); // val / 10000
   92|  1.04k|         const uint32_t bbcc = val - aa * 10000;
   93|  1.04k|         const uint32_t bb = (bbcc * 5243) >> 19; // bbcc / 100
   94|  1.04k|         const uint32_t lz = aa < 10;
   95|  1.04k|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
   96|  1.04k|         std::memcpy(buf + 2 - lz, &digit_pairs[bb], 2);
   97|  1.04k|         std::memcpy(buf + 4 - lz, &digit_pairs[bbcc - bb * 100], 2);
   98|  1.04k|         return buf + 6 - lz;
   99|  1.04k|      }
_ZN3glz9itoa_impl5u32_8EPcj:
  102|    111|      {
  103|    111|         const uint32_t aabb = uint32_t((uint64_t(val) * 109951163) >> 40); // val / 10000
  104|    111|         const uint32_t ccdd = val - aabb * 10000;
  105|    111|         const uint32_t aa = (aabb * 5243) >> 19; // aabb / 100
  106|    111|         const uint32_t cc = (ccdd * 5243) >> 19; // ccdd / 100
  107|    111|         const uint32_t lz = aa < 10;
  108|    111|         std::memcpy(buf, char_table + ((aa * 2) | lz), 2);
  109|    111|         std::memcpy(buf + 2 - lz, &digit_pairs[aabb - aa * 100], 2);
  110|    111|         std::memcpy(buf + 4 - lz, &digit_pairs[cc], 2);
  111|    111|         std::memcpy(buf + 6 - lz, &digit_pairs[ccdd - cc * 100], 2);
  112|    111|         return buf + 8 - lz;
  113|    111|      }

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

_ZN3glz7skip_wsIXtlNS_7ws_optsEEETkNS_10is_contextERNS_7contextERPKcS5_EEbOT0_OT1_T2_:
  663|  24.3M|   {
  664|  24.3M|      using namespace glz::detail;
  665|       |
  666|  24.3M|      if constexpr (not Opts.minified) {
  667|       |         if constexpr (Opts.null_terminated) {
  668|       |            if constexpr (Opts.comments) {
  669|       |               while (whitespace_comment_table[uint8_t(*it)]) {
  670|       |                  if (*it == '/') [[unlikely]] {
  671|       |                     skip_comment(ctx, it, end);
  672|       |                     if (bool(ctx.error)) [[unlikely]] {
  673|       |                        return true;
  674|       |                     }
  675|       |                  }
  676|       |                  else [[likely]] {
  677|       |                     ++it;
  678|       |                  }
  679|       |               }
  680|       |            }
  681|       |            else {
  682|       |               while (whitespace_table[uint8_t(*it)]) {
  683|       |                  ++it;
  684|       |               }
  685|       |            }
  686|       |         }
  687|  24.3M|         else {
  688|       |            if constexpr (Opts.comments) {
  689|       |               while (it < end && whitespace_comment_table[uint8_t(*it)]) {
  690|       |                  if (*it == '/') [[unlikely]] {
  691|       |                     skip_comment(ctx, it, end);
  692|       |                     if (bool(ctx.error)) [[unlikely]] {
  693|       |                        return true;
  694|       |                     }
  695|       |                  }
  696|       |                  else [[likely]] {
  697|       |                     ++it;
  698|       |                  }
  699|       |               }
  700|       |               if (it == end) [[unlikely]] {
  701|       |                  ctx.error = error_code::end_reached;
  702|       |                  return true;
  703|       |               }
  704|       |            }
  705|  24.3M|            else {
  706|  66.2M|               while (it < end && whitespace_table[uint8_t(*it)]) {
  ------------------
  |  Branch (706:23): [True: 66.2M, False: 1.60k]
  |  Branch (706:35): [True: 41.9M, False: 24.3M]
  ------------------
  707|  41.9M|                  ++it;
  708|  41.9M|               }
  709|  24.3M|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (709:20): [True: 1.60k, False: 24.3M]
  ------------------
  710|  1.60k|                  ctx.error = error_code::end_reached;
  711|  1.60k|                  return true;
  712|  1.60k|               }
  713|  24.3M|            }
  714|  24.3M|         }
  715|       |      }
  716|       |      else if constexpr (not Opts.null_terminated) {
  717|       |         // Minified input has no whitespace to skip, but a non-null-terminated buffer can still
  718|       |         // be exhausted at this point. The non-minified branch above performs the same check; a
  719|       |         // null-terminated buffer relies on the trailing sentinel and keeps this a pure no-op.
  720|       |         if (it == end) [[unlikely]] {
  721|       |            ctx.error = error_code::end_reached;
  722|       |            return true;
  723|       |         }
  724|       |      }
  725|       |
  726|  24.3M|      return false;
  727|  24.3M|   }
_ZN3glz17match_invalid_endILc123EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|   391k|   {
  471|   391k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 193k, False: 198k]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|   193k|         else if constexpr (C == '{' || C == '}') {
  485|   193k|            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|   193k|         return true;
  491|   193k|      }
  492|   198k|      else [[likely]] {
  493|   198k|         ++it;
  494|   198k|      }
  495|   198k|      if constexpr (not Opts.null_terminated) {
  496|   198k|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 1, False: 198k]
  ------------------
  497|      1|            ctx.error = error_code::unexpected_end;
  498|      1|            return true;
  499|      1|         }
  500|   198k|      }
  501|   198k|      return false;
  502|   391k|   }
_ZN3glz17match_invalid_endILc44EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  1.28M|   {
  471|  1.28M|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 9.24k, False: 1.27M]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|  9.24k|         else if constexpr (C == ',') {
  476|  9.24k|            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|  9.24k|         return true;
  491|  9.24k|      }
  492|  1.27M|      else [[likely]] {
  493|  1.27M|         ++it;
  494|  1.27M|      }
  495|  1.27M|      if constexpr (not Opts.null_terminated) {
  496|  1.27M|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 1, False: 1.27M]
  ------------------
  497|      1|            ctx.error = error_code::unexpected_end;
  498|      1|            return true;
  499|      1|         }
  500|  1.27M|      }
  501|  1.27M|      return false;
  502|  1.28M|   }
_ZN3glz16skip_matching_wsIcRPKcEEvPKT_OT0_m:
  730|   445k|   {
  731|   445k|      if (length > 7) {
  ------------------
  |  Branch (731:11): [True: 344k, False: 101k]
  ------------------
  732|   344k|         uint64_t v[2];
  733|   351k|         while (length > 8) {
  ------------------
  |  Branch (733:17): [True: 61.8k, False: 290k]
  ------------------
  734|  61.8k|            std::memcpy(v, ws, 8);
  735|  61.8k|            std::memcpy(v + 1, it, 8);
  736|  61.8k|            if (v[0] != v[1]) {
  ------------------
  |  Branch (736:17): [True: 53.9k, False: 7.85k]
  ------------------
  737|  53.9k|               return;
  738|  53.9k|            }
  739|  7.85k|            length -= 8;
  740|  7.85k|            ws += 8;
  741|  7.85k|            it += 8;
  742|  7.85k|         }
  743|       |
  744|   290k|         const auto shift = 8 - length;
  745|   290k|         ws -= shift;
  746|   290k|         it -= shift;
  747|       |
  748|   290k|         std::memcpy(v, ws, 8);
  749|   290k|         std::memcpy(v + 1, it, 8);
  750|   290k|         if (v[0] != v[1]) {
  ------------------
  |  Branch (750:14): [True: 285k, False: 4.13k]
  ------------------
  751|   285k|            return;
  752|   285k|         }
  753|  4.13k|         it += 8;
  754|  4.13k|         return;
  755|   290k|      }
  756|   101k|      {
  757|   101k|         constexpr uint64_t n{sizeof(uint32_t)};
  758|   101k|         if (length >= n) {
  ------------------
  |  Branch (758:14): [True: 20.5k, False: 80.5k]
  ------------------
  759|  20.5k|            uint32_t v[2];
  760|  20.5k|            std::memcpy(v, ws, n);
  761|  20.5k|            std::memcpy(v + 1, it, n);
  762|  20.5k|            if (v[0] != v[1]) {
  ------------------
  |  Branch (762:17): [True: 15.0k, False: 5.44k]
  ------------------
  763|  15.0k|               return;
  764|  15.0k|            }
  765|  5.44k|            length -= n;
  766|  5.44k|            ws += n;
  767|  5.44k|            it += n;
  768|  5.44k|         }
  769|   101k|      }
  770|  86.0k|      {
  771|  86.0k|         constexpr uint64_t n{sizeof(uint16_t)};
  772|  86.0k|         if (length >= n) {
  ------------------
  |  Branch (772:14): [True: 51.3k, False: 34.6k]
  ------------------
  773|  51.3k|            uint16_t v[2];
  774|  51.3k|            std::memcpy(v, ws, n);
  775|  51.3k|            std::memcpy(v + 1, it, n);
  776|  51.3k|            if (v[0] != v[1]) {
  ------------------
  |  Branch (776:17): [True: 46.8k, False: 4.47k]
  ------------------
  777|  46.8k|               return;
  778|  46.8k|            }
  779|       |            // length -= n;
  780|       |            // ws += n;
  781|  4.47k|            it += n;
  782|  4.47k|         }
  783|  86.0k|      }
  784|       |      // We have to call a whitespace check after this function
  785|       |      // in case the whitespace is mismatching.
  786|       |      // So, we forgo this check as to not duplicate.
  787|       |      /*if (length && *ws == *it) {
  788|       |         ++it;
  789|       |      }*/
  790|  86.0k|   }
_ZN3glz17match_invalid_endILc58EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  2.10M|   {
  471|  2.10M|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 8.32k, False: 2.09M]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|  8.32k|         else if constexpr (C == ':') {
  479|  8.32k|            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|  8.32k|         return true;
  491|  8.32k|      }
  492|  2.09M|      else [[likely]] {
  493|  2.09M|         ++it;
  494|  2.09M|      }
  495|  2.09M|      if constexpr (not Opts.null_terminated) {
  496|  2.09M|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 9, False: 2.09M]
  ------------------
  497|      9|            ctx.error = error_code::unexpected_end;
  498|      9|            return true;
  499|      9|         }
  500|  2.09M|      }
  501|  2.09M|      return false;
  502|  2.10M|   }
_ZN3glz17skip_until_closedIXtlNS_22skip_until_closed_optsELb0ELb1EEELc123ELc125ELm1ETkNS_10is_contextERNS_7contextERPKcS5_QntdtT_8commentsEEvOT3_OT4_T5_:
 1325|   163k|   {
 1326|   163k|      static constexpr bool opening_not_handled = false;
 1327|   163k|      static constexpr bool skip_validation = false;
 1328|       |      // skip_validation routes skip_string through the end-bounded skip_string_view path, which
 1329|       |      // stops on `end` rather than on a sentinel, so this flag has no effect from here.
 1330|   163k|      static constexpr bool null_terminated_unused = true;
 1331|       |
 1332|   163k|      size_t depth = Depth;
 1333|       |
 1334|   163k|#if defined(GLZ_STRUCTURAL_SIMD)
 1335|   163k|      if (skip_windows<Opts, open, close>(it, end, depth)) {
  ------------------
  |  Branch (1335:11): [True: 65.1k, False: 98.6k]
  ------------------
 1336|  65.1k|         return;
 1337|  65.1k|      }
 1338|  98.6k|#endif
 1339|       |
 1340|       |      // Chunked while eight bytes remain, then a byte at a time; a padded input has room for the
 1341|       |      // load that straddles the end of the document and leaves the tail below unreachable. The
 1342|       |      // bound is a pointer so each chunk costs one compare rather than a subtract and a compare,
 1343|       |      // and is only formed once that much buffer is left for it to point into. Where it is not, the
 1344|       |      // fallback is the opening bracket, which sits before `it` and so fails the test on the first
 1345|       |      // look. Never `it` itself -- that passes, and the chunk behind it would read past `end`.
 1346|  98.6k|      const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1347|  98.6k|      const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
  ------------------
  |  Branch (1347:39): [True: 98.0k, False: 638]
  ------------------
 1348|       |
 1349|  22.0M|      while (it <= chunk_limit) {
  ------------------
  |  Branch (1349:14): [True: 22.0M, False: 23.0k]
  ------------------
 1350|  22.0M|         uint64_t chunk;
 1351|  22.0M|         std::memcpy(&chunk, it, 8);
 1352|       |         if constexpr (std::endian::native == std::endian::big) {
 1353|       |            chunk = std::byteswap(chunk);
 1354|       |         }
 1355|  22.0M|         const uint64_t test = has_quote(chunk) | has_char<open>(chunk) | has_char<close>(chunk);
 1356|  22.0M|         if (test) {
  ------------------
  |  Branch (1356:14): [True: 4.12M, False: 17.9M]
  ------------------
 1357|  4.12M|            it += (countr_zero(test) >> 3);
 1358|       |
 1359|  4.12M|            switch (*it) {
 1360|   300k|            case '"': {
  ------------------
  |  Branch (1360:13): [True: 300k, False: 3.82M]
  ------------------
 1361|   300k|               skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1362|   300k|                                            null_terminated_unused}>(ctx, it, end);
 1363|   300k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1363:20): [True: 2.21k, False: 298k]
  ------------------
 1364|  2.21k|                  return;
 1365|  2.21k|               }
 1366|   298k|               break;
 1367|   300k|            }
 1368|  3.71M|            case open: {
  ------------------
  |  Branch (1368:13): [True: 3.71M, False: 411k]
  ------------------
 1369|  3.71M|               ++it;
 1370|  3.71M|               ++depth;
 1371|  3.71M|               break;
 1372|   300k|            }
 1373|   110k|            case close: {
  ------------------
  |  Branch (1373:13): [True: 110k, False: 4.01M]
  ------------------
 1374|   110k|               ++it;
 1375|   110k|               --depth;
 1376|   110k|               if (depth == 0) {
  ------------------
  |  Branch (1376:20): [True: 73.3k, False: 37.4k]
  ------------------
 1377|  73.3k|                  return;
 1378|  73.3k|               }
 1379|  37.4k|               break;
 1380|   110k|            }
 1381|  37.4k|            default: {
  ------------------
  |  Branch (1381:13): [True: 0, False: 4.12M]
  ------------------
 1382|      0|               ctx.error = error_code::unexpected_end;
 1383|      0|               return;
 1384|   110k|            }
 1385|  4.12M|            }
 1386|  4.12M|         }
 1387|  17.9M|         else {
 1388|  17.9M|            it += 8;
 1389|  17.9M|         }
 1390|  22.0M|      }
 1391|       |
 1392|       |      // Tail end of buffer. Should be rare we even get here
 1393|  37.9k|      while (it < end) {
  ------------------
  |  Branch (1393:14): [True: 37.2k, False: 732]
  ------------------
 1394|  37.2k|         switch (*it) {
 1395|  6.84k|         case '"': {
  ------------------
  |  Branch (1395:10): [True: 6.84k, False: 30.4k]
  ------------------
 1396|  6.84k|            skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1397|  6.84k|                                         null_terminated_unused}>(ctx, it, end);
 1398|  6.84k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1398:17): [True: 943, False: 5.90k]
  ------------------
 1399|    943|               return;
 1400|    943|            }
 1401|  5.90k|            break;
 1402|  6.84k|         }
 1403|  5.90k|         case open: {
  ------------------
  |  Branch (1403:10): [True: 276, False: 36.9k]
  ------------------
 1404|    276|            ++it;
 1405|    276|            ++depth;
 1406|    276|            break;
 1407|  6.84k|         }
 1408|  22.2k|         case close: {
  ------------------
  |  Branch (1408:10): [True: 22.2k, False: 15.0k]
  ------------------
 1409|  22.2k|            ++it;
 1410|  22.2k|            --depth;
 1411|  22.2k|            if (depth == 0) {
  ------------------
  |  Branch (1411:17): [True: 21.3k, False: 882]
  ------------------
 1412|  21.3k|               return;
 1413|  21.3k|            }
 1414|    882|            break;
 1415|  22.2k|         }
 1416|  7.89k|         default: {
  ------------------
  |  Branch (1416:10): [True: 7.89k, False: 29.3k]
  ------------------
 1417|  7.89k|            ++it;
 1418|  7.89k|         }
 1419|  37.2k|         }
 1420|  37.2k|      }
 1421|       |
 1422|    732|      ctx.error = error_code::unexpected_end;
 1423|    732|   }
_ZN3glz12skip_windowsIXtlNS_22skip_until_closed_optsELb0ELb1EEELc123ELc125ERPKcS3_EEbOT2_T3_Rm:
 1243|   163k|   {
 1244|   163k|      uint64_t escape_carry{};
 1245|   163k|      uint64_t in_string_carry{}; // all ones while the next window opens inside a string
 1246|   163k|      auto string_open = it; // opening quote of the string still open, when there is one
 1247|       |
 1248|  2.73M|      while (end - it >= 64) {
  ------------------
  |  Branch (1248:14): [True: 2.64M, False: 90.0k]
  ------------------
 1249|  2.64M|         const auto w = detail::structural::load_window(it, Open, Close);
 1250|       |
 1251|  2.64M|         if constexpr (Opts.validate_utf8) {
 1252|  2.64M|            if (w.non_ascii) [[unlikely]] {
  ------------------
  |  Branch (1252:17): [True: 45.3k, False: 2.60M]
  ------------------
 1253|  45.3k|               if (in_string_carry) {
  ------------------
  |  Branch (1253:20): [True: 2.02k, False: 43.3k]
  ------------------
 1254|  2.02k|                  it = string_open;
 1255|  2.02k|               }
 1256|  45.3k|               return false;
 1257|  45.3k|            }
 1258|  2.64M|         }
 1259|       |
 1260|  2.60M|         const uint64_t escaped = escaped_mask(w.backslash, escape_carry);
 1261|  2.64M|         const uint64_t quote = w.quote & ~escaped;
 1262|  2.64M|         const uint64_t in_string = prefix_xor(quote) ^ in_string_carry;
 1263|       |
 1264|       |         // A backslash outside a string cannot occur in JSON, and the parity above takes it at
 1265|       |         // face value: it cancels the next quote, and every byte after that is on the wrong side
 1266|       |         // of the string boundary for the rest of the document. The byte scan reaches a backslash
 1267|       |         // only through a string, so it does not make that mistake, and a malformed document must
 1268|       |         // not be read one way here and another way on a target without these masks. Hand it over
 1269|       |         // instead. The test is exact where it has to be -- at the first stray backslash nothing
 1270|       |         // has diverged yet, so `in_string` is still right about it -- and anything it flags later
 1271|       |         // only costs a window.
 1272|  2.64M|         if (w.backslash & ~in_string) [[unlikely]] {
  ------------------
  |  Branch (1272:14): [True: 8.55k, False: 2.63M]
  ------------------
 1273|  8.55k|            if (in_string_carry) {
  ------------------
  |  Branch (1273:17): [True: 430, False: 8.12k]
  ------------------
 1274|    430|               it = string_open;
 1275|    430|            }
 1276|  8.55k|            return false;
 1277|  8.55k|         }
 1278|       |
 1279|  2.63M|         in_string_carry = uint64_t(int64_t(in_string) >> 63); // sign extend the last byte's state
 1280|  2.63M|         if (in_string_carry && quote) {
  ------------------
  |  Branch (1280:14): [True: 1.40M, False: 1.23M]
  |  Branch (1280:33): [True: 54.3k, False: 1.35M]
  ------------------
 1281|       |            // Ending inside a string means the window's last unescaped quote opened it.
 1282|  54.3k|            string_open = it + (63 - std::countl_zero(quote));
 1283|  54.3k|         }
 1284|       |
 1285|  2.63M|         const uint64_t opens = w.open & ~in_string;
 1286|  2.63M|         const uint64_t closes = w.close & ~in_string;
 1287|       |
 1288|       |         // Every close in the window drops the depth by one at most, so a depth above that count
 1289|       |         // cannot reach zero anywhere inside it and the net change is all that matters.
 1290|  2.63M|         if (depth > size_t(std::popcount(closes))) {
  ------------------
  |  Branch (1290:14): [True: 2.52M, False: 113k]
  ------------------
 1291|  2.52M|            depth += size_t(std::popcount(opens));
 1292|  2.52M|            depth -= size_t(std::popcount(closes));
 1293|  2.52M|            it += 64;
 1294|  2.52M|            continue;
 1295|  2.52M|         }
 1296|       |
 1297|   113k|         uint64_t brackets = opens | closes;
 1298|   148k|         while (brackets) {
  ------------------
  |  Branch (1298:17): [True: 99.9k, False: 48.7k]
  ------------------
 1299|  99.9k|            const auto i = countr_zero(brackets);
 1300|  99.9k|            brackets &= brackets - 1;
 1301|  99.9k|            if ((closes >> i) & 1) {
  ------------------
  |  Branch (1301:17): [True: 83.4k, False: 16.5k]
  ------------------
 1302|  83.4k|               --depth;
 1303|  83.4k|               if (depth == 0) {
  ------------------
  |  Branch (1303:20): [True: 65.1k, False: 18.3k]
  ------------------
 1304|  65.1k|                  it += i + 1;
 1305|  65.1k|                  return true;
 1306|  65.1k|               }
 1307|  83.4k|            }
 1308|  16.5k|            else {
 1309|  16.5k|               ++depth;
 1310|  16.5k|            }
 1311|  99.9k|         }
 1312|  48.7k|         it += 64;
 1313|  48.7k|      }
 1314|       |
 1315|  90.0k|      if (in_string_carry) {
  ------------------
  |  Branch (1315:11): [True: 3.47k, False: 86.6k]
  ------------------
 1316|  3.47k|         it = string_open;
 1317|  3.47k|      }
 1318|  90.0k|      return false;
 1319|   163k|   }
_ZN3glz12escaped_maskEmRm:
 1215|  3.31M|   {
 1216|  3.31M|      if (backslash == 0) {
  ------------------
  |  Branch (1216:11): [True: 3.23M, False: 76.8k]
  ------------------
 1217|  3.23M|         const uint64_t escaped = carry;
 1218|  3.23M|         carry = 0;
 1219|  3.23M|         return escaped;
 1220|  3.23M|      }
 1221|  76.8k|      backslash &= ~carry;
 1222|  76.8k|      const uint64_t follows_escape = (backslash << 1) | carry;
 1223|  76.8k|      constexpr uint64_t even_bits = 0x5555555555555555ull;
 1224|  76.8k|      const uint64_t odd_starts = backslash & ~even_bits & ~follows_escape;
 1225|  76.8k|      const uint64_t even_sequences = odd_starts + backslash;
 1226|  76.8k|      carry = uint64_t(even_sequences < odd_starts); // unsigned wraparound is the run crossing over
 1227|  76.8k|      return (even_bits ^ (even_sequences << 1)) & follows_escape;
 1228|  3.31M|   }
_ZN3glz10prefix_xorEm:
 1200|  3.31M|   {
 1201|  3.31M|      x ^= x << 1;
 1202|  3.31M|      x ^= x << 2;
 1203|  3.31M|      x ^= x << 4;
 1204|  3.31M|      x ^= x << 8;
 1205|  3.31M|      x ^= x << 16;
 1206|  3.31M|      x ^= x << 32;
 1207|  3.31M|      return x;
 1208|  3.31M|   }
_ZN3glz9chunk_minILm8EEElb:
   47|  2.74M|   {
   48|  2.74M|      static_assert(Width <= padding_bytes);
   49|  2.74M|      return padded ? 1 : std::ptrdiff_t(Width);
  ------------------
  |  Branch (49:14): [True: 0, False: 2.74M]
  ------------------
   50|  2.74M|   }
_ZN3glz11skip_stringIXtlNS_16skip_string_optsELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1012|   407k|   {
 1013|   407k|      if constexpr (not Opts.opening_handled) {
 1014|   407k|         ++it;
 1015|   407k|      }
 1016|       |
 1017|   407k|      const auto* const utf8_start = it;
 1018|       |
 1019|       |      if constexpr (Opts.validate_skipped) {
 1020|       |         // The bound as a pointer, so each chunk costs one compare. `end - scan_min` is only a
 1021|       |         // pointer into the buffer once at least that much of it is left, and a string can start
 1022|       |         // within a few bytes of the end; where it is not, the fallback is the opening quote, which
 1023|       |         // sits before `it` and so fails the test on the first look. Never `it` itself -- that
 1024|       |         // passes, and the chunk behind it would read past the end of the buffer.
 1025|       |         const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1026|       |         const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
 1027|       |
 1028|       |         while (it <= chunk_limit) {
 1029|       |            uint64_t swar;
 1030|       |            std::memcpy(&swar, it, 8);
 1031|       |            if constexpr (std::endian::native == std::endian::big) {
 1032|       |               swar = std::byteswap(swar);
 1033|       |            }
 1034|       |
 1035|       |            constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1036|       |            const uint64_t lo7 = swar & lo7_mask;
 1037|       |            const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1038|       |            const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1039|       |            const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1040|       |            uint64_t next = ~((backslash & quote & less_32) | swar);
 1041|       |            next &= repeat_byte8(0b10000000);
 1042|       |
 1043|       |            if (next == 0) {
 1044|       |               // No special characters in this chunk
 1045|       |               it += 8;
 1046|       |               continue;
 1047|       |            }
 1048|       |
 1049|       |            // Find the first occurrence
 1050|       |            size_t offset = (countr_zero(next) >> 3);
 1051|       |            it += offset;
 1052|       |
 1053|       |            const auto c = *it;
 1054|       |            if ((c & 0b11100000) == 0) [[unlikely]] {
 1055|       |               // Invalid control character (<0x20)
 1056|       |               ctx.error = error_code::syntax_error;
 1057|       |               return;
 1058|       |            }
 1059|       |            else if (c == '"') {
 1060|       |               // Check if this quote is escaped
 1061|       |               const auto* p = it - 1;
 1062|       |               int backslash_count{};
 1063|       |               // We don't have to worry about rewinding too far because we started with a quote
 1064|       |               while (*p == '\\') {
 1065|       |                  ++backslash_count;
 1066|       |                  --p;
 1067|       |               }
 1068|       |               if ((backslash_count & 1) == 0) {
 1069|       |                  // Even number of backslashes => not escaped => closing quote found
 1070|       |                  validate_utf8_span<Opts>(ctx, utf8_start, it);
 1071|       |                  ++it;
 1072|       |                  return;
 1073|       |               }
 1074|       |               else {
 1075|       |                  // Odd number of backslashes => escaped quote
 1076|       |                  ++it;
 1077|       |                  continue;
 1078|       |               }
 1079|       |            }
 1080|       |            else if (c == '\\') {
 1081|       |               // Handle escape sequence
 1082|       |               ++it;
 1083|       |
 1084|       |               // The backslash can be the last byte the chunk covers, which lands `it` on `end`.
 1085|       |               // A null-terminated buffer answers that read with its terminator, which the escape
 1086|       |               // table below rejects; a bounded one has nothing there to read.
 1087|       |               if constexpr (not Opts.null_terminated) {
 1088|       |                  if (it == end) [[unlikely]] {
 1089|       |                     ctx.error = error_code::unexpected_end;
 1090|       |                     return;
 1091|       |                  }
 1092|       |               }
 1093|       |
 1094|       |               if (*it == 'u') {
 1095|       |                  ++it;
 1096|       |                  if (not skip_unicode_code_point(it, end)) [[unlikely]] {
 1097|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1098|       |                     return;
 1099|       |                  }
 1100|       |               }
 1101|       |               else {
 1102|       |                  if (not char_unescape_table[uint8_t(*it)]) [[unlikely]] {
 1103|       |                     ctx.error = error_code::invalid_escape;
 1104|       |                     return;
 1105|       |                  }
 1106|       |                  ++it;
 1107|       |               }
 1108|       |            }
 1109|       |         }
 1110|       |
 1111|       |         while (true) {
 1112|       |            // A null-terminated buffer terminates on the trailing '\0' (caught by the control
 1113|       |            // character check below); a non-null-terminated buffer has no sentinel, so bound the
 1114|       |            // scan before each dereference.
 1115|       |            if constexpr (not Opts.null_terminated) {
 1116|       |               if (it == end) [[unlikely]] {
 1117|       |                  ctx.error = error_code::unexpected_end;
 1118|       |                  return;
 1119|       |               }
 1120|       |            }
 1121|       |            if ((*it & 0b11100000) == 0) [[unlikely]] {
 1122|       |               ctx.error = error_code::syntax_error;
 1123|       |               return;
 1124|       |            }
 1125|       |
 1126|       |            switch (*it) {
 1127|       |            case '"': {
 1128|       |               validate_utf8_span<Opts>(ctx, utf8_start, it);
 1129|       |               ++it;
 1130|       |               return;
 1131|       |            }
 1132|       |            case '\\': {
 1133|       |               ++it;
 1134|       |               if constexpr (not Opts.null_terminated) {
 1135|       |                  if (it == end) [[unlikely]] {
 1136|       |                     ctx.error = error_code::unexpected_end;
 1137|       |                     return;
 1138|       |                  }
 1139|       |               }
 1140|       |               if (char_unescape_table[uint8_t(*it)]) {
 1141|       |                  ++it;
 1142|       |                  continue;
 1143|       |               }
 1144|       |               else if (*it == 'u') {
 1145|       |                  ++it;
 1146|       |                  if (skip_unicode_code_point(it, end)) [[likely]] {
 1147|       |                     continue;
 1148|       |                  }
 1149|       |                  else [[unlikely]] {
 1150|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1151|       |                     return;
 1152|       |                  }
 1153|       |               }
 1154|       |               // Same code the chunked loop above reports. Both loops run over one buffer now, so
 1155|       |               // an escape that lands in the last few bytes must be diagnosed the same as one that
 1156|       |               // does not.
 1157|       |               ctx.error = error_code::invalid_escape;
 1158|       |               return;
 1159|       |            }
 1160|       |            }
 1161|       |            ++it;
 1162|       |         }
 1163|       |      }
 1164|   407k|      else {
 1165|   407k|         uint64_t ascii_acc{};
 1166|   407k|         skip_string_view(ctx, it, end, ascii_acc);
 1167|   407k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1167:14): [True: 2.65k, False: 405k]
  ------------------
 1168|  2.65k|            return;
 1169|  2.65k|         }
 1170|   405k|         if (validate_utf8_span<Opts>(ctx, utf8_start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (1170:14): [True: 1.67k, False: 403k]
  ------------------
 1171|  1.67k|            return;
 1172|  1.67k|         }
 1173|   403k|         ++it; // skip the quote
 1174|   403k|      }
 1175|   407k|   }
_ZN3glz16skip_string_viewITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_Rm:
  910|   636k|   {
  911|       |      // The bound as a pointer, so each chunk costs one compare rather than a subtract and a
  912|       |      // compare. `end - 8` is only a pointer into the buffer once eight bytes are left; where they
  913|       |      // are not, the fallback is the opening quote, which sits before `it` and so fails the test on
  914|       |      // the first look. Never `it` itself -- that passes, and the chunk behind it would read past
  915|       |      // `end`. Reading eight at a time never passes `end`, so this is safe on buffers that are
  916|       |      // neither padded nor null terminated.
  917|   636k|      const auto* const chunk_limit = (end - it >= 8) ? end - 8 : it - 1;
  ------------------
  |  Branch (917:39): [True: 601k, False: 35.0k]
  ------------------
  918|  42.5M|      while (it <= chunk_limit) {
  ------------------
  |  Branch (918:14): [True: 42.4M, False: 46.8k]
  ------------------
  919|  42.4M|         uint64_t chunk;
  920|  42.4M|         std::memcpy(&chunk, it, 8);
  921|       |         if constexpr (std::endian::native == std::endian::big) {
  922|       |            chunk = std::byteswap(chunk);
  923|       |         }
  924|  42.4M|         const uint64_t test = has_quote(chunk);
  925|  42.4M|         if (test) [[unlikely]] {
  ------------------
  |  Branch (925:14): [True: 642k, False: 41.8M]
  ------------------
  926|   642k|            const size_t offset = size_t(countr_zero(test)) >> 3;
  927|       |            // Only bytes up to and including the quote belong to the string. Masking the rest off
  928|       |            // keeps a non-ASCII byte in whatever follows from forcing a needless validation pass.
  929|   642k|            ascii_acc |= chunk & (~uint64_t(0) >> (56 - 8 * offset));
  930|   642k|            it += offset;
  931|   642k|            auto* prev = it - 1;
  932|   781k|            while (*prev == '\\') {
  ------------------
  |  Branch (932:20): [True: 139k, False: 642k]
  ------------------
  933|   139k|               --prev;
  934|   139k|            }
  935|   642k|            if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (935:17): [True: 589k, False: 52.6k]
  ------------------
  936|   589k|               return;
  937|   589k|            }
  938|  52.6k|            ++it; // skip the escaped quote
  939|  52.6k|         }
  940|  41.8M|         else {
  941|  41.8M|            ascii_acc |= chunk;
  942|  41.8M|            it += 8;
  943|  41.8M|         }
  944|  42.4M|      }
  945|       |
  946|       |      // Fewer than eight bytes left in the buffer, so finish one at a time.
  947|   146k|      while (it < end) {
  ------------------
  |  Branch (947:14): [True: 144k, False: 2.79k]
  ------------------
  948|   144k|         ascii_acc |= uint64_t(uint8_t(*it));
  949|   144k|         if (*it == '"') {
  ------------------
  |  Branch (949:14): [True: 48.8k, False: 95.2k]
  ------------------
  950|  48.8k|            auto* prev = it - 1;
  951|  62.0k|            while (*prev == '\\') {
  ------------------
  |  Branch (951:20): [True: 13.2k, False: 48.8k]
  ------------------
  952|  13.2k|               --prev;
  953|  13.2k|            }
  954|  48.8k|            if (size_t(it - prev) % 2) {
  ------------------
  |  Branch (954:17): [True: 44.0k, False: 4.79k]
  ------------------
  955|  44.0k|               return;
  956|  44.0k|            }
  957|  48.8k|         }
  958|   100k|         ++it;
  959|   100k|      }
  960|       |
  961|  2.79k|      ctx.error = error_code::expected_quote;
  962|  2.79k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_16skip_string_optsELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|   405k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|   405k|      else {
  881|   405k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 381k, False: 23.6k]
  ------------------
  882|   381k|            return false; // pure ASCII is trivially well formed UTF-8
  883|   381k|         }
  884|  23.6k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 1.67k, False: 21.9k]
  ------------------
  885|  1.67k|            ctx.error = error_code::invalid_utf8;
  886|  1.67k|            return true;
  887|  1.67k|         }
  888|  21.9k|         return false;
  889|  23.6k|      }
  890|   405k|   }
_ZN3glz13validate_utf8IcEEbPKT_m:
  842|   467k|   {
  843|   467k|      const uint8_t* it = reinterpret_cast<const uint8_t*>(str);
  844|   467k|      const uint8_t* const end = it + size;
  845|       |#if defined(GLZ_UTF8_SIMD)
  846|       |      // 16 is a measured compromise, not a register-size coincidence. The scalar path skips ASCII 8
  847|       |      // bytes at a time, so on ASCII it stays ahead of the vector path's fixed setup cost until the
  848|       |      // input is long enough for the 64 byte ASCII step to engage; on non-ASCII the vector path
  849|       |      // wins from roughly 8 bytes. Raising the threshold buys a few percent on short ASCII and
  850|       |      // costs up to 2.3x on mid length non-ASCII strings, so it stays low.
  851|       |      if (size >= 16) {
  852|       |         return detail::utf8_simd::validate(it, end);
  853|       |      }
  854|       |#endif
  855|   467k|      return validate_utf8_scalar(it, end);
  856|   467k|   }
_ZN3glz20validate_utf8_scalarEPKhS1_:
  793|   467k|   {
  794|  46.9M|      while (it < end) {
  ------------------
  |  Branch (794:14): [True: 46.5M, False: 454k]
  ------------------
  795|       |         // Optimistic SWAR check for ASCII
  796|  46.5M|         if (it + 8 <= end) {
  ------------------
  |  Branch (796:14): [True: 45.1M, False: 1.41M]
  ------------------
  797|  45.1M|            uint64_t chunk;
  798|  45.1M|            std::memcpy(&chunk, it, 8);
  799|  45.1M|            if ((chunk & glz::repeat_byte8(0x80)) == 0) {
  ------------------
  |  Branch (799:17): [True: 44.2M, False: 829k]
  ------------------
  800|  44.2M|               it += 8;
  801|  44.2M|               continue;
  802|  44.2M|            }
  803|  45.1M|         }
  804|       |
  805|       |         // Byte-by-byte validation (standard conformant)
  806|  2.24M|         uint8_t byte = *it;
  807|       |
  808|  2.24M|         if (byte < 0x80) {
  ------------------
  |  Branch (808:14): [True: 1.95M, False: 284k]
  ------------------
  809|  1.95M|            it++;
  810|  1.95M|         }
  811|   284k|         else if ((byte & 0xE0) == 0xC0) {
  ------------------
  |  Branch (811:19): [True: 107k, False: 176k]
  ------------------
  812|       |            // 2-byte sequence
  813|   107k|            if (it + 2 > end || (it[1] & 0xC0) != 0x80) return false;
  ------------------
  |  Branch (813:17): [True: 77, False: 107k]
  |  Branch (813:33): [True: 2.50k, False: 104k]
  ------------------
  814|   104k|            if (byte < 0xC2) return false; // Overlong
  ------------------
  |  Branch (814:17): [True: 130, False: 104k]
  ------------------
  815|   104k|            it += 2;
  816|   104k|         }
  817|   176k|         else if ((byte & 0xF0) == 0xE0) {
  ------------------
  |  Branch (817:19): [True: 85.8k, False: 91.0k]
  ------------------
  818|       |            // 3-byte sequence
  819|  85.8k|            if (it + 3 > end || (it[1] & 0xC0) != 0x80 || (it[2] & 0xC0) != 0x80) return false;
  ------------------
  |  Branch (819:17): [True: 89, False: 85.7k]
  |  Branch (819:33): [True: 937, False: 84.8k]
  |  Branch (819:59): [True: 305, False: 84.5k]
  ------------------
  820|  84.5k|            if (byte == 0xE0 && it[1] < 0xA0) return false; // Overlong
  ------------------
  |  Branch (820:17): [True: 29.2k, False: 55.2k]
  |  Branch (820:33): [True: 223, False: 29.0k]
  ------------------
  821|  84.2k|            if (byte == 0xED && it[1] >= 0xA0) return false; // Surrogate
  ------------------
  |  Branch (821:17): [True: 27.8k, False: 56.4k]
  |  Branch (821:33): [True: 143, False: 27.7k]
  ------------------
  822|  84.1k|            it += 3;
  823|  84.1k|         }
  824|  91.0k|         else if ((byte & 0xF8) == 0xF0) {
  ------------------
  |  Branch (824:19): [True: 85.2k, False: 5.77k]
  ------------------
  825|       |            // 4-byte sequence
  826|  85.2k|            if (it + 4 > end || (it[1] & 0xC0) != 0x80 || (it[2] & 0xC0) != 0x80 || (it[3] & 0xC0) != 0x80)
  ------------------
  |  Branch (826:17): [True: 95, False: 85.1k]
  |  Branch (826:33): [True: 1.69k, False: 83.4k]
  |  Branch (826:59): [True: 370, False: 83.1k]
  |  Branch (826:85): [True: 369, False: 82.7k]
  ------------------
  827|  2.52k|               return false;
  828|  82.7k|            if (byte == 0xF0 && it[1] < 0x90) return false; // Overlong
  ------------------
  |  Branch (828:17): [True: 35.7k, False: 47.0k]
  |  Branch (828:33): [True: 205, False: 35.5k]
  ------------------
  829|  82.5k|            if (byte == 0xF4 && it[1] >= 0x90) return false; // > U+10FFFF
  ------------------
  |  Branch (829:17): [True: 35.3k, False: 47.1k]
  |  Branch (829:33): [True: 147, False: 35.2k]
  ------------------
  830|  82.3k|            if (byte > 0xF4) return false; // > U+10FFFF
  ------------------
  |  Branch (830:17): [True: 135, False: 82.2k]
  ------------------
  831|  82.2k|            it += 4;
  832|  82.2k|         }
  833|  5.77k|         else {
  834|  5.77k|            return false;
  835|  5.77k|         }
  836|  2.24M|      }
  837|       |
  838|   454k|      return true;
  839|   467k|   }
_ZN3glz17skip_until_closedIXtlNS_22skip_until_closed_optsELb0ELb1EEELc91ELc93ELm1ETkNS_10is_contextERNS_7contextERPKcS5_QntdtT_8commentsEEvOT3_OT4_T5_:
 1325|  23.8k|   {
 1326|  23.8k|      static constexpr bool opening_not_handled = false;
 1327|  23.8k|      static constexpr bool skip_validation = false;
 1328|       |      // skip_validation routes skip_string through the end-bounded skip_string_view path, which
 1329|       |      // stops on `end` rather than on a sentinel, so this flag has no effect from here.
 1330|  23.8k|      static constexpr bool null_terminated_unused = true;
 1331|       |
 1332|  23.8k|      size_t depth = Depth;
 1333|       |
 1334|  23.8k|#if defined(GLZ_STRUCTURAL_SIMD)
 1335|  23.8k|      if (skip_windows<Opts, open, close>(it, end, depth)) {
  ------------------
  |  Branch (1335:11): [True: 6.34k, False: 17.5k]
  ------------------
 1336|  6.34k|         return;
 1337|  6.34k|      }
 1338|  17.5k|#endif
 1339|       |
 1340|       |      // Chunked while eight bytes remain, then a byte at a time; a padded input has room for the
 1341|       |      // load that straddles the end of the document and leaves the tail below unreachable. The
 1342|       |      // bound is a pointer so each chunk costs one compare rather than a subtract and a compare,
 1343|       |      // and is only formed once that much buffer is left for it to point into. Where it is not, the
 1344|       |      // fallback is the opening bracket, which sits before `it` and so fails the test on the first
 1345|       |      // look. Never `it` itself -- that passes, and the chunk behind it would read past `end`.
 1346|  17.5k|      const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1347|  17.5k|      const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
  ------------------
  |  Branch (1347:39): [True: 15.0k, False: 2.49k]
  ------------------
 1348|       |
 1349|  9.41M|      while (it <= chunk_limit) {
  ------------------
  |  Branch (1349:14): [True: 9.40M, False: 6.17k]
  ------------------
 1350|  9.40M|         uint64_t chunk;
 1351|  9.40M|         std::memcpy(&chunk, it, 8);
 1352|       |         if constexpr (std::endian::native == std::endian::big) {
 1353|       |            chunk = std::byteswap(chunk);
 1354|       |         }
 1355|  9.40M|         const uint64_t test = has_quote(chunk) | has_char<open>(chunk) | has_char<close>(chunk);
 1356|  9.40M|         if (test) {
  ------------------
  |  Branch (1356:14): [True: 2.13M, False: 7.27M]
  ------------------
 1357|  2.13M|            it += (countr_zero(test) >> 3);
 1358|       |
 1359|  2.13M|            switch (*it) {
 1360|  98.1k|            case '"': {
  ------------------
  |  Branch (1360:13): [True: 98.1k, False: 2.03M]
  ------------------
 1361|  98.1k|               skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1362|  98.1k|                                            null_terminated_unused}>(ctx, it, end);
 1363|  98.1k|               if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1363:20): [True: 566, False: 97.6k]
  ------------------
 1364|    566|                  return;
 1365|    566|               }
 1366|  97.6k|               break;
 1367|  98.1k|            }
 1368|  2.01M|            case open: {
  ------------------
  |  Branch (1368:13): [True: 2.01M, False: 126k]
  ------------------
 1369|  2.01M|               ++it;
 1370|  2.01M|               ++depth;
 1371|  2.01M|               break;
 1372|  98.1k|            }
 1373|  27.9k|            case close: {
  ------------------
  |  Branch (1373:13): [True: 27.9k, False: 2.10M]
  ------------------
 1374|  27.9k|               ++it;
 1375|  27.9k|               --depth;
 1376|  27.9k|               if (depth == 0) {
  ------------------
  |  Branch (1376:20): [True: 10.7k, False: 17.2k]
  ------------------
 1377|  10.7k|                  return;
 1378|  10.7k|               }
 1379|  17.2k|               break;
 1380|  27.9k|            }
 1381|  17.2k|            default: {
  ------------------
  |  Branch (1381:13): [True: 0, False: 2.13M]
  ------------------
 1382|      0|               ctx.error = error_code::unexpected_end;
 1383|      0|               return;
 1384|  27.9k|            }
 1385|  2.13M|            }
 1386|  2.13M|         }
 1387|  7.27M|         else {
 1388|  7.27M|            it += 8;
 1389|  7.27M|         }
 1390|  9.40M|      }
 1391|       |
 1392|       |      // Tail end of buffer. Should be rare we even get here
 1393|  17.8k|      while (it < end) {
  ------------------
  |  Branch (1393:14): [True: 15.5k, False: 2.35k]
  ------------------
 1394|  15.5k|         switch (*it) {
 1395|  2.48k|         case '"': {
  ------------------
  |  Branch (1395:10): [True: 2.48k, False: 13.0k]
  ------------------
 1396|  2.48k|            skip_string<skip_string_opts{opening_not_handled, skip_validation, Opts.validate_utf8,
 1397|  2.48k|                                         null_terminated_unused}>(ctx, it, end);
 1398|  2.48k|            if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1398:17): [True: 603, False: 1.88k]
  ------------------
 1399|    603|               return;
 1400|    603|            }
 1401|  1.88k|            break;
 1402|  2.48k|         }
 1403|  1.88k|         case open: {
  ------------------
  |  Branch (1403:10): [True: 732, False: 14.7k]
  ------------------
 1404|    732|            ++it;
 1405|    732|            ++depth;
 1406|    732|            break;
 1407|  2.48k|         }
 1408|  4.14k|         case close: {
  ------------------
  |  Branch (1408:10): [True: 4.14k, False: 11.3k]
  ------------------
 1409|  4.14k|            ++it;
 1410|  4.14k|            --depth;
 1411|  4.14k|            if (depth == 0) {
  ------------------
  |  Branch (1411:17): [True: 3.21k, False: 929]
  ------------------
 1412|  3.21k|               return;
 1413|  3.21k|            }
 1414|    929|            break;
 1415|  4.14k|         }
 1416|  8.16k|         default: {
  ------------------
  |  Branch (1416:10): [True: 8.16k, False: 7.36k]
  ------------------
 1417|  8.16k|            ++it;
 1418|  8.16k|         }
 1419|  15.5k|         }
 1420|  15.5k|      }
 1421|       |
 1422|  2.35k|      ctx.error = error_code::unexpected_end;
 1423|  2.35k|   }
_ZN3glz12skip_windowsIXtlNS_22skip_until_closed_optsELb0ELb1EEELc91ELc93ERPKcS3_EEbOT2_T3_Rm:
 1243|  23.8k|   {
 1244|  23.8k|      uint64_t escape_carry{};
 1245|  23.8k|      uint64_t in_string_carry{}; // all ones while the next window opens inside a string
 1246|  23.8k|      auto string_open = it; // opening quote of the string still open, when there is one
 1247|       |
 1248|   729k|      while (end - it >= 64) {
  ------------------
  |  Branch (1248:14): [True: 712k, False: 16.6k]
  ------------------
 1249|   712k|         const auto w = detail::structural::load_window(it, Open, Close);
 1250|       |
 1251|   712k|         if constexpr (Opts.validate_utf8) {
 1252|   712k|            if (w.non_ascii) [[unlikely]] {
  ------------------
  |  Branch (1252:17): [True: 4.34k, False: 708k]
  ------------------
 1253|  4.34k|               if (in_string_carry) {
  ------------------
  |  Branch (1253:20): [True: 550, False: 3.79k]
  ------------------
 1254|    550|                  it = string_open;
 1255|    550|               }
 1256|  4.34k|               return false;
 1257|  4.34k|            }
 1258|   712k|         }
 1259|       |
 1260|   708k|         const uint64_t escaped = escaped_mask(w.backslash, escape_carry);
 1261|   712k|         const uint64_t quote = w.quote & ~escaped;
 1262|   712k|         const uint64_t in_string = prefix_xor(quote) ^ in_string_carry;
 1263|       |
 1264|       |         // A backslash outside a string cannot occur in JSON, and the parity above takes it at
 1265|       |         // face value: it cancels the next quote, and every byte after that is on the wrong side
 1266|       |         // of the string boundary for the rest of the document. The byte scan reaches a backslash
 1267|       |         // only through a string, so it does not make that mistake, and a malformed document must
 1268|       |         // not be read one way here and another way on a target without these masks. Hand it over
 1269|       |         // instead. The test is exact where it has to be -- at the first stray backslash nothing
 1270|       |         // has diverged yet, so `in_string` is still right about it -- and anything it flags later
 1271|       |         // only costs a window.
 1272|   712k|         if (w.backslash & ~in_string) [[unlikely]] {
  ------------------
  |  Branch (1272:14): [True: 868, False: 711k]
  ------------------
 1273|    868|            if (in_string_carry) {
  ------------------
  |  Branch (1273:17): [True: 203, False: 665]
  ------------------
 1274|    203|               it = string_open;
 1275|    203|            }
 1276|    868|            return false;
 1277|    868|         }
 1278|       |
 1279|   711k|         in_string_carry = uint64_t(int64_t(in_string) >> 63); // sign extend the last byte's state
 1280|   711k|         if (in_string_carry && quote) {
  ------------------
  |  Branch (1280:14): [True: 300k, False: 411k]
  |  Branch (1280:33): [True: 4.85k, False: 295k]
  ------------------
 1281|       |            // Ending inside a string means the window's last unescaped quote opened it.
 1282|  4.85k|            string_open = it + (63 - std::countl_zero(quote));
 1283|  4.85k|         }
 1284|       |
 1285|   711k|         const uint64_t opens = w.open & ~in_string;
 1286|   711k|         const uint64_t closes = w.close & ~in_string;
 1287|       |
 1288|       |         // Every close in the window drops the depth by one at most, so a depth above that count
 1289|       |         // cannot reach zero anywhere inside it and the net change is all that matters.
 1290|   711k|         if (depth > size_t(std::popcount(closes))) {
  ------------------
  |  Branch (1290:14): [True: 700k, False: 11.7k]
  ------------------
 1291|   700k|            depth += size_t(std::popcount(opens));
 1292|   700k|            depth -= size_t(std::popcount(closes));
 1293|   700k|            it += 64;
 1294|   700k|            continue;
 1295|   700k|         }
 1296|       |
 1297|  11.7k|         uint64_t brackets = opens | closes;
 1298|  32.1k|         while (brackets) {
  ------------------
  |  Branch (1298:17): [True: 26.7k, False: 5.37k]
  ------------------
 1299|  26.7k|            const auto i = countr_zero(brackets);
 1300|  26.7k|            brackets &= brackets - 1;
 1301|  26.7k|            if ((closes >> i) & 1) {
  ------------------
  |  Branch (1301:17): [True: 15.8k, False: 10.8k]
  ------------------
 1302|  15.8k|               --depth;
 1303|  15.8k|               if (depth == 0) {
  ------------------
  |  Branch (1303:20): [True: 6.34k, False: 9.55k]
  ------------------
 1304|  6.34k|                  it += i + 1;
 1305|  6.34k|                  return true;
 1306|  6.34k|               }
 1307|  15.8k|            }
 1308|  10.8k|            else {
 1309|  10.8k|               ++depth;
 1310|  10.8k|            }
 1311|  26.7k|         }
 1312|  5.37k|         it += 64;
 1313|  5.37k|      }
 1314|       |
 1315|  16.6k|      if (in_string_carry) {
  ------------------
  |  Branch (1315:11): [True: 1.03k, False: 15.6k]
  ------------------
 1316|  1.03k|         it = string_open;
 1317|  1.03k|      }
 1318|  16.6k|      return false;
 1319|  23.8k|   }
_ZN3glz11skip_stringIXtlNS_16skip_string_optsELb0ELb0ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1012|  29.4k|   {
 1013|  29.4k|      if constexpr (not Opts.opening_handled) {
 1014|  29.4k|         ++it;
 1015|  29.4k|      }
 1016|       |
 1017|  29.4k|      const auto* const utf8_start = it;
 1018|       |
 1019|       |      if constexpr (Opts.validate_skipped) {
 1020|       |         // The bound as a pointer, so each chunk costs one compare. `end - scan_min` is only a
 1021|       |         // pointer into the buffer once at least that much of it is left, and a string can start
 1022|       |         // within a few bytes of the end; where it is not, the fallback is the opening quote, which
 1023|       |         // sits before `it` and so fails the test on the first look. Never `it` itself -- that
 1024|       |         // passes, and the chunk behind it would read past the end of the buffer.
 1025|       |         const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1026|       |         const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
 1027|       |
 1028|       |         while (it <= chunk_limit) {
 1029|       |            uint64_t swar;
 1030|       |            std::memcpy(&swar, it, 8);
 1031|       |            if constexpr (std::endian::native == std::endian::big) {
 1032|       |               swar = std::byteswap(swar);
 1033|       |            }
 1034|       |
 1035|       |            constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1036|       |            const uint64_t lo7 = swar & lo7_mask;
 1037|       |            const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1038|       |            const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1039|       |            const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1040|       |            uint64_t next = ~((backslash & quote & less_32) | swar);
 1041|       |            next &= repeat_byte8(0b10000000);
 1042|       |
 1043|       |            if (next == 0) {
 1044|       |               // No special characters in this chunk
 1045|       |               it += 8;
 1046|       |               continue;
 1047|       |            }
 1048|       |
 1049|       |            // Find the first occurrence
 1050|       |            size_t offset = (countr_zero(next) >> 3);
 1051|       |            it += offset;
 1052|       |
 1053|       |            const auto c = *it;
 1054|       |            if ((c & 0b11100000) == 0) [[unlikely]] {
 1055|       |               // Invalid control character (<0x20)
 1056|       |               ctx.error = error_code::syntax_error;
 1057|       |               return;
 1058|       |            }
 1059|       |            else if (c == '"') {
 1060|       |               // Check if this quote is escaped
 1061|       |               const auto* p = it - 1;
 1062|       |               int backslash_count{};
 1063|       |               // We don't have to worry about rewinding too far because we started with a quote
 1064|       |               while (*p == '\\') {
 1065|       |                  ++backslash_count;
 1066|       |                  --p;
 1067|       |               }
 1068|       |               if ((backslash_count & 1) == 0) {
 1069|       |                  // Even number of backslashes => not escaped => closing quote found
 1070|       |                  validate_utf8_span<Opts>(ctx, utf8_start, it);
 1071|       |                  ++it;
 1072|       |                  return;
 1073|       |               }
 1074|       |               else {
 1075|       |                  // Odd number of backslashes => escaped quote
 1076|       |                  ++it;
 1077|       |                  continue;
 1078|       |               }
 1079|       |            }
 1080|       |            else if (c == '\\') {
 1081|       |               // Handle escape sequence
 1082|       |               ++it;
 1083|       |
 1084|       |               // The backslash can be the last byte the chunk covers, which lands `it` on `end`.
 1085|       |               // A null-terminated buffer answers that read with its terminator, which the escape
 1086|       |               // table below rejects; a bounded one has nothing there to read.
 1087|       |               if constexpr (not Opts.null_terminated) {
 1088|       |                  if (it == end) [[unlikely]] {
 1089|       |                     ctx.error = error_code::unexpected_end;
 1090|       |                     return;
 1091|       |                  }
 1092|       |               }
 1093|       |
 1094|       |               if (*it == 'u') {
 1095|       |                  ++it;
 1096|       |                  if (not skip_unicode_code_point(it, end)) [[unlikely]] {
 1097|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1098|       |                     return;
 1099|       |                  }
 1100|       |               }
 1101|       |               else {
 1102|       |                  if (not char_unescape_table[uint8_t(*it)]) [[unlikely]] {
 1103|       |                     ctx.error = error_code::invalid_escape;
 1104|       |                     return;
 1105|       |                  }
 1106|       |                  ++it;
 1107|       |               }
 1108|       |            }
 1109|       |         }
 1110|       |
 1111|       |         while (true) {
 1112|       |            // A null-terminated buffer terminates on the trailing '\0' (caught by the control
 1113|       |            // character check below); a non-null-terminated buffer has no sentinel, so bound the
 1114|       |            // scan before each dereference.
 1115|       |            if constexpr (not Opts.null_terminated) {
 1116|       |               if (it == end) [[unlikely]] {
 1117|       |                  ctx.error = error_code::unexpected_end;
 1118|       |                  return;
 1119|       |               }
 1120|       |            }
 1121|       |            if ((*it & 0b11100000) == 0) [[unlikely]] {
 1122|       |               ctx.error = error_code::syntax_error;
 1123|       |               return;
 1124|       |            }
 1125|       |
 1126|       |            switch (*it) {
 1127|       |            case '"': {
 1128|       |               validate_utf8_span<Opts>(ctx, utf8_start, it);
 1129|       |               ++it;
 1130|       |               return;
 1131|       |            }
 1132|       |            case '\\': {
 1133|       |               ++it;
 1134|       |               if constexpr (not Opts.null_terminated) {
 1135|       |                  if (it == end) [[unlikely]] {
 1136|       |                     ctx.error = error_code::unexpected_end;
 1137|       |                     return;
 1138|       |                  }
 1139|       |               }
 1140|       |               if (char_unescape_table[uint8_t(*it)]) {
 1141|       |                  ++it;
 1142|       |                  continue;
 1143|       |               }
 1144|       |               else if (*it == 'u') {
 1145|       |                  ++it;
 1146|       |                  if (skip_unicode_code_point(it, end)) [[likely]] {
 1147|       |                     continue;
 1148|       |                  }
 1149|       |                  else [[unlikely]] {
 1150|       |                     ctx.error = error_code::unicode_escape_conversion_failure;
 1151|       |                     return;
 1152|       |                  }
 1153|       |               }
 1154|       |               // Same code the chunked loop above reports. Both loops run over one buffer now, so
 1155|       |               // an escape that lands in the last few bytes must be diagnosed the same as one that
 1156|       |               // does not.
 1157|       |               ctx.error = error_code::invalid_escape;
 1158|       |               return;
 1159|       |            }
 1160|       |            }
 1161|       |            ++it;
 1162|       |         }
 1163|       |      }
 1164|  29.4k|      else {
 1165|  29.4k|         uint64_t ascii_acc{};
 1166|  29.4k|         skip_string_view(ctx, it, end, ascii_acc);
 1167|  29.4k|         if (bool(ctx.error)) [[unlikely]] {
  ------------------
  |  Branch (1167:14): [True: 115, False: 29.3k]
  ------------------
 1168|    115|            return;
 1169|    115|         }
 1170|  29.3k|         if (validate_utf8_span<Opts>(ctx, utf8_start, it, ascii_acc)) [[unlikely]] {
  ------------------
  |  Branch (1170:14): [True: 305, False: 28.9k]
  ------------------
 1171|    305|            return;
 1172|    305|         }
 1173|  28.9k|         ++it; // skip the quote
 1174|  28.9k|      }
 1175|  29.4k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_16skip_string_optsELb0ELb0ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|  29.3k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|  29.3k|      else {
  881|  29.3k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 27.5k, False: 1.78k]
  ------------------
  882|  27.5k|            return false; // pure ASCII is trivially well formed UTF-8
  883|  27.5k|         }
  884|  1.78k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 305, False: 1.48k]
  ------------------
  885|    305|            ctx.error = error_code::invalid_utf8;
  886|    305|            return true;
  887|    305|         }
  888|  1.48k|         return false;
  889|  1.78k|      }
  890|  29.3k|   }
_ZN3glz17match_invalid_endILc34EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  2.50M|   {
  471|  2.50M|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 1.42k, False: 2.50M]
  ------------------
  472|  1.42k|         if constexpr (C == '"') {
  473|  1.42k|            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|       |         else if constexpr (C == '[' || C == ']') {
  482|       |            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|  1.42k|         return true;
  491|  1.42k|      }
  492|  2.50M|      else [[likely]] {
  493|  2.50M|         ++it;
  494|  2.50M|      }
  495|  2.50M|      if constexpr (not Opts.null_terminated) {
  496|  2.50M|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 4, False: 2.50M]
  ------------------
  497|      4|            ctx.error = error_code::unexpected_end;
  498|      4|            return true;
  499|      4|         }
  500|  2.50M|      }
  501|  2.50M|      return false;
  502|  2.50M|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|   789k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|   789k|      else {
  881|   789k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 762k, False: 26.9k]
  ------------------
  882|   762k|            return false; // pure ASCII is trivially well formed UTF-8
  883|   762k|         }
  884|  26.9k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 10.4k, False: 16.4k]
  ------------------
  885|  10.4k|            ctx.error = error_code::invalid_utf8;
  886|  10.4k|            return true;
  887|  10.4k|         }
  888|  16.4k|         return false;
  889|  26.9k|      }
  890|   789k|   }
_ZN3glz25handle_unicode_code_pointIccEENS_14unicode_resultERPKT_RPT0_S4_:
  347|  56.6k|   {
  348|  56.6k|      using namespace unicode;
  349|       |
  350|  56.6k|      if (end - it <= 4) [[unlikely]] {
  ------------------
  |  Branch (350:11): [True: 77, False: 56.5k]
  ------------------
  351|     77|         return {0, escape_prefix_intact<false>(it, end)};
  352|     77|      }
  353|  56.5k|      const uint32_t high = hex_to_u32(it);
  354|  56.5k|      if (high == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (354:11): [True: 104, False: 56.4k]
  ------------------
  355|    104|         return {};
  356|    104|      }
  357|  56.4k|      it += 4; // skip the code point characters
  358|       |
  359|  56.4k|      uint32_t code_point;
  360|       |
  361|  56.4k|      if ((high & generic_surrogate_mask) == generic_surrogate_value) {
  ------------------
  |  Branch (361:11): [True: 1.15k, False: 55.2k]
  ------------------
  362|       |         // surrogate pair code points
  363|  1.15k|         if ((high & surrogate_mask) != high_surrogate_value) {
  ------------------
  |  Branch (363:14): [True: 21, False: 1.13k]
  ------------------
  364|     21|            return {};
  365|     21|         }
  366|       |
  367|  1.13k|         if (end - it <= 6) [[unlikely]] {
  ------------------
  |  Branch (367:14): [True: 58, False: 1.07k]
  ------------------
  368|     58|            return {0, escape_prefix_intact<true>(it, end)};
  369|     58|         }
  370|       |         // The next two characters must be `\u`
  371|  1.07k|         uint16_t u;
  372|  1.07k|         std::memcpy(&u, it, 2);
  373|  1.07k|         if (u != to_uint16_t(R"(\u)")) [[unlikely]] {
  ------------------
  |  Branch (373:14): [True: 99, False: 978]
  ------------------
  374|     99|            return {};
  375|     99|         }
  376|    978|         it += 2;
  377|       |         // verify that second unicode escape sequence is present
  378|    978|         const uint32_t low = hex_to_u32(it);
  379|    978|         if (low == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (379:14): [True: 16, False: 962]
  ------------------
  380|     16|            return {};
  381|     16|         }
  382|    962|         it += 4;
  383|       |
  384|    962|         if ((low & surrogate_mask) != low_surrogate_value) [[unlikely]] {
  ------------------
  |  Branch (384:14): [True: 43, False: 919]
  ------------------
  385|     43|            return {};
  386|     43|         }
  387|       |
  388|    919|         code_point = (high & surrogate_codepoint_mask) << surrogate_codepoint_bits;
  389|    919|         code_point |= (low & surrogate_codepoint_mask);
  390|    919|         code_point += surrogate_codepoint_offset;
  391|    919|      }
  392|  55.2k|      else {
  393|  55.2k|         code_point = high;
  394|  55.2k|      }
  395|  56.1k|      const uint32_t offset = code_point_to_utf8(code_point, dst);
  396|  56.1k|      dst += offset;
  397|  56.1k|      return {offset, false};
  398|  56.4k|   }
_ZN3glz20escape_prefix_intactILb0EccEEbPKT0_PKT1_:
  329|     77|   {
  330|     77|      auto n = size_t(end - it);
  331|       |      if constexpr (ExpectOpener) {
  332|       |         if (n > 0 && it[0] != '\\') return false;
  333|       |         if (n > 1 && it[1] != 'u') return false;
  334|       |         if (n < 2) return true;
  335|       |         it += 2;
  336|       |         n -= 2;
  337|       |      }
  338|    176|      for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (338:26): [True: 176, False: 0]
  ------------------
  339|    176|         if (digit_hex_table[uint8_t(it[i])] == 255) return false;
  ------------------
  |  Branch (339:14): [True: 77, False: 99]
  ------------------
  340|    176|      }
  341|      0|      return true;
  342|     77|   }
_ZN3glz10hex_to_u32EPKc:
  224|   251k|   {
  225|   251k|      constexpr auto& t = digit_hex_table;
  226|   251k|      const uint8_t arr[4]{t[uint8_t(c[3])], t[uint8_t(c[2])], t[uint8_t(c[1])], t[uint8_t(c[0])]};
  227|   251k|      auto chunk = std::bit_cast<uint32_t>(arr);
  228|       |      // On big-endian, bit_cast produces bytes in opposite order than expected
  229|       |      // byteswap to get consistent little-endian representation
  230|       |      if constexpr (std::endian::native == std::endian::big) {
  231|       |         chunk = std::byteswap(chunk);
  232|       |      }
  233|       |      // check that all hex characters are valid
  234|   251k|      if (chunk & repeat_byte4(0b11110000u)) [[unlikely]] {
  ------------------
  |  Branch (234:11): [True: 3.59k, False: 247k]
  ------------------
  235|  3.59k|         return 0xFFFFFFFFu;
  236|  3.59k|      }
  237|       |
  238|       |      // now pack into first four bytes of uint32_t
  239|   247k|      uint32_t packed{};
  240|   247k|      packed |= (chunk & 0x0000000F);
  241|   247k|      packed |= (chunk & 0x00000F00) >> 4;
  242|   247k|      packed |= (chunk & 0x000F0000) >> 8;
  243|   247k|      packed |= (chunk & 0x0F000000) >> 12;
  244|   247k|      return packed;
  245|   251k|   }
_ZN3glz20escape_prefix_intactILb1EccEEbPKT0_PKT1_:
  329|     58|   {
  330|     58|      auto n = size_t(end - it);
  331|     58|      if constexpr (ExpectOpener) {
  332|     58|         if (n > 0 && it[0] != '\\') return false;
  ------------------
  |  Branch (332:14): [True: 58, False: 0]
  |  Branch (332:23): [True: 30, False: 28]
  ------------------
  333|     28|         if (n > 1 && it[1] != 'u') return false;
  ------------------
  |  Branch (333:14): [True: 28, False: 0]
  |  Branch (333:23): [True: 10, False: 18]
  ------------------
  334|     18|         if (n < 2) return true;
  ------------------
  |  Branch (334:14): [True: 0, False: 18]
  ------------------
  335|     18|         it += 2;
  336|     18|         n -= 2;
  337|     18|      }
  338|     78|      for (size_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (338:26): [True: 38, False: 40]
  ------------------
  339|     38|         if (digit_hex_table[uint8_t(it[i])] == 255) return false;
  ------------------
  |  Branch (339:14): [True: 18, False: 20]
  ------------------
  340|     38|      }
  341|     40|      return true;
  342|     58|   }
_ZN3glz18code_point_to_utf8IcEEjjPT_:
  249|  56.1k|   {
  250|  56.1k|      if (code_point <= 0x7F) {
  ------------------
  |  Branch (250:11): [True: 1.04k, False: 55.1k]
  ------------------
  251|  1.04k|         c[0] = Char(code_point);
  252|  1.04k|         return 1;
  253|  1.04k|      }
  254|  55.1k|      if (code_point <= 0x7FF) {
  ------------------
  |  Branch (254:11): [True: 49.5k, False: 5.61k]
  ------------------
  255|  49.5k|         c[0] = Char(0xC0 | ((code_point >> 6) & 0x1F));
  256|  49.5k|         c[1] = Char(0x80 | (code_point & 0x3F));
  257|  49.5k|         return 2;
  258|  49.5k|      }
  259|  5.61k|      if (code_point <= 0xFFFF) {
  ------------------
  |  Branch (259:11): [True: 4.69k, False: 919]
  ------------------
  260|  4.69k|         c[0] = Char(0xE0 | ((code_point >> 12) & 0x0F));
  261|  4.69k|         c[1] = Char(0x80 | ((code_point >> 6) & 0x3F));
  262|  4.69k|         c[2] = Char(0x80 | (code_point & 0x3F));
  263|  4.69k|         return 3;
  264|  4.69k|      }
  265|    919|      if (code_point <= 0x10FFFF) {
  ------------------
  |  Branch (265:11): [True: 919, False: 0]
  ------------------
  266|    919|         c[0] = Char(0xF0 | ((code_point >> 18) & 0x07));
  267|    919|         c[1] = Char(0x80 | ((code_point >> 12) & 0x3F));
  268|    919|         c[2] = Char(0x80 | ((code_point >> 6) & 0x3F));
  269|    919|         c[3] = Char(0x80 | (code_point & 0x3F));
  270|    919|         return 4;
  271|    919|      }
  272|      0|      return 0;
  273|    919|   }
_ZN3glz17match_invalid_endILc91EXtlNS_22match_invalid_end_optsEEETkNS_10is_contextENS_7contextERPKcS4_EEbRT1_OT2_T3_:
  470|  64.1k|   {
  471|  64.1k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (471:11): [True: 173, False: 63.9k]
  ------------------
  472|       |         if constexpr (C == '"') {
  473|       |            ctx.error = error_code::expected_quote;
  474|       |         }
  475|       |         else if constexpr (C == ',') {
  476|       |            ctx.error = error_code::expected_comma;
  477|       |         }
  478|       |         else if constexpr (C == ':') {
  479|       |            ctx.error = error_code::expected_colon;
  480|       |         }
  481|    173|         else if constexpr (C == '[' || C == ']') {
  482|    173|            ctx.error = error_code::expected_bracket;
  483|       |         }
  484|       |         else if constexpr (C == '{' || C == '}') {
  485|       |            ctx.error = error_code::expected_brace;
  486|       |         }
  487|       |         else {
  488|       |            ctx.error = error_code::syntax_error;
  489|       |         }
  490|    173|         return true;
  491|    173|      }
  492|  63.9k|      else [[likely]] {
  493|  63.9k|         ++it;
  494|  63.9k|      }
  495|  63.9k|      if constexpr (not Opts.null_terminated) {
  496|  63.9k|         if (it == end) [[unlikely]] {
  ------------------
  |  Branch (496:14): [True: 13, False: 63.9k]
  ------------------
  497|     13|            ctx.error = error_code::unexpected_end;
  498|     13|            return true;
  499|     13|         }
  500|  63.9k|      }
  501|  63.9k|      return false;
  502|  64.1k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|  1.71M|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|  1.71M|      else {
  881|  1.71M|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 1.55M, False: 161k]
  ------------------
  882|  1.55M|            return false; // pure ASCII is trivially well formed UTF-8
  883|  1.55M|         }
  884|   161k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 30, False: 161k]
  ------------------
  885|     30|            ctx.error = error_code::invalid_utf8;
  886|     30|            return true;
  887|     30|         }
  888|   161k|         return false;
  889|   161k|      }
  890|  1.71M|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS8_EEvOT1_OT2_T3_:
  539|  1.91k|   {
  540|  1.91k|      static constexpr auto S = str.sv();
  541|  1.91k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 203, False: 1.70k]
  |  Branch (541:54): [True: 259, False: 1.44k]
  ------------------
  542|    462|         ctx.error = error_code::syntax_error;
  543|    462|      }
  544|  1.44k|      else [[likely]] {
  545|  1.44k|         it += str.size();
  546|  1.44k|      }
  547|  1.91k|   }
_ZN3glz16skip_string_viewITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
  965|   199k|   {
  966|   199k|      uint64_t ascii_acc{};
  967|   199k|      skip_string_view(ctx, it, end, ascii_acc);
  968|   199k|   }
_ZN3glz5matchILc34ETkNS_10is_contextENS_7contextERPKcEEbRT0_OT1_:
  506|  54.0k|   {
  507|  54.0k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (507:11): [True: 0, False: 54.0k]
  ------------------
  508|      0|         if constexpr (C == '"') {
  509|      0|            ctx.error = error_code::expected_quote;
  510|       |         }
  511|       |         else if constexpr (C == ',') {
  512|       |            ctx.error = error_code::expected_comma;
  513|       |         }
  514|       |         else if constexpr (C == ':') {
  515|       |            ctx.error = error_code::expected_colon;
  516|       |         }
  517|       |         else if constexpr (C == '[' || C == ']') {
  518|       |            ctx.error = error_code::expected_bracket;
  519|       |         }
  520|       |         else if constexpr (C == '{' || C == '}') {
  521|       |            ctx.error = error_code::expected_brace;
  522|       |         }
  523|       |         else {
  524|       |            ctx.error = error_code::syntax_error;
  525|       |         }
  526|      0|         return true;
  527|      0|      }
  528|  54.0k|      else [[likely]] {
  529|  54.0k|         ++it;
  530|  54.0k|         return false;
  531|  54.0k|      }
  532|  54.0k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1ELb0ELb0ELb0ELb0ELj4EEETkNS_10is_contextERNS_7contextERPKcS8_EEvOT1_OT2_T3_:
  539|  1.15k|   {
  540|  1.15k|      static constexpr auto S = str.sv();
  541|  1.15k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 13, False: 1.13k]
  |  Branch (541:54): [True: 214, False: 923]
  ------------------
  542|    227|         ctx.error = error_code::syntax_error;
  543|    227|      }
  544|    923|      else [[likely]] {
  545|    923|         it += str.size();
  546|    923|      }
  547|  1.15k|   }
_ZN3glz11skip_numberIXtlNS_16skip_number_optsEEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1633|  70.7k|   {
 1634|  70.7k|      if constexpr (not Opts.validate) {
 1635|       |         if constexpr (Opts.null_terminated) {
 1636|       |            // Relies on the trailing '\0' sentinel (numeric_table['\0'] == false) to terminate.
 1637|       |            while (numeric_table[uint8_t(*it)]) {
 1638|       |               ++it;
 1639|       |            }
 1640|       |         }
 1641|  70.7k|         else {
 1642|  17.4M|            while (it < end && numeric_table[uint8_t(*it)]) {
  ------------------
  |  Branch (1642:20): [True: 17.4M, False: 37]
  |  Branch (1642:32): [True: 17.3M, False: 70.6k]
  ------------------
 1643|  17.3M|               ++it;
 1644|  17.3M|            }
 1645|  70.7k|         }
 1646|       |      }
 1647|       |      else {
 1648|       |         skip_number_with_validation(ctx, it, end);
 1649|       |      }
 1650|  70.7k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc110ELc117ELc108ELc108EEEETnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS8_EEvOT1_OT2_T3_:
  539|   228k|   {
  540|   228k|      static constexpr auto S = str.sv();
  541|   228k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 241, False: 228k]
  |  Branch (541:54): [True: 402, False: 227k]
  ------------------
  542|    643|         ctx.error = error_code::syntax_error;
  543|    643|      }
  544|   227k|      else [[likely]] {
  545|   227k|         it += str.size();
  546|   227k|      }
  547|   228k|   }
_ZN3glz5matchILc125ETkNS_10is_contextENS_7contextERPKcEEbRT0_OT1_:
  506|  53.9k|   {
  507|  53.9k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (507:11): [True: 7.98k, False: 45.9k]
  ------------------
  508|       |         if constexpr (C == '"') {
  509|       |            ctx.error = error_code::expected_quote;
  510|       |         }
  511|       |         else if constexpr (C == ',') {
  512|       |            ctx.error = error_code::expected_comma;
  513|       |         }
  514|       |         else if constexpr (C == ':') {
  515|       |            ctx.error = error_code::expected_colon;
  516|       |         }
  517|       |         else if constexpr (C == '[' || C == ']') {
  518|       |            ctx.error = error_code::expected_bracket;
  519|       |         }
  520|  7.98k|         else if constexpr (C == '{' || C == '}') {
  521|  7.98k|            ctx.error = error_code::expected_brace;
  522|       |         }
  523|       |         else {
  524|       |            ctx.error = error_code::syntax_error;
  525|       |         }
  526|  7.98k|         return true;
  527|  7.98k|      }
  528|  45.9k|      else [[likely]] {
  529|  45.9k|         ++it;
  530|  45.9k|         return false;
  531|  45.9k|      }
  532|  53.9k|   }
_ZN3glz5matchILc93ETkNS_10is_contextENS_7contextERPKcEEbRT0_OT1_:
  506|  17.5k|   {
  507|  17.5k|      if (*it != C) [[unlikely]] {
  ------------------
  |  Branch (507:11): [True: 1.69k, False: 15.8k]
  ------------------
  508|       |         if constexpr (C == '"') {
  509|       |            ctx.error = error_code::expected_quote;
  510|       |         }
  511|       |         else if constexpr (C == ',') {
  512|       |            ctx.error = error_code::expected_comma;
  513|       |         }
  514|       |         else if constexpr (C == ':') {
  515|       |            ctx.error = error_code::expected_colon;
  516|       |         }
  517|  1.69k|         else if constexpr (C == '[' || C == ']') {
  518|  1.69k|            ctx.error = error_code::expected_bracket;
  519|       |         }
  520|       |         else if constexpr (C == '{' || C == '}') {
  521|       |            ctx.error = error_code::expected_brace;
  522|       |         }
  523|       |         else {
  524|       |            ctx.error = error_code::syntax_error;
  525|       |         }
  526|  1.69k|         return true;
  527|  1.69k|      }
  528|  15.8k|      else [[likely]] {
  529|  15.8k|         ++it;
  530|  15.8k|         return false;
  531|  15.8k|      }
  532|  17.5k|   }
_ZN3glz11skip_stringIXtlNS_16skip_string_optsELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1012|   275k|   {
 1013|   275k|      if constexpr (not Opts.opening_handled) {
 1014|   275k|         ++it;
 1015|   275k|      }
 1016|       |
 1017|   275k|      const auto* const utf8_start = it;
 1018|       |
 1019|   275k|      if constexpr (Opts.validate_skipped) {
 1020|       |         // The bound as a pointer, so each chunk costs one compare. `end - scan_min` is only a
 1021|       |         // pointer into the buffer once at least that much of it is left, and a string can start
 1022|       |         // within a few bytes of the end; where it is not, the fallback is the opening quote, which
 1023|       |         // sits before `it` and so fails the test on the first look. Never `it` itself -- that
 1024|       |         // passes, and the chunk behind it would read past the end of the buffer.
 1025|   275k|         const std::ptrdiff_t scan_min = chunk_min<8>(ctx.padded_input);
 1026|   275k|         const auto* const chunk_limit = (end - it >= scan_min) ? end - scan_min : it - 1;
  ------------------
  |  Branch (1026:42): [True: 245k, False: 29.9k]
  ------------------
 1027|       |
 1028|  7.38M|         while (it <= chunk_limit) {
  ------------------
  |  Branch (1028:17): [True: 7.34M, False: 41.5k]
  ------------------
 1029|  7.34M|            uint64_t swar;
 1030|  7.34M|            std::memcpy(&swar, it, 8);
 1031|       |            if constexpr (std::endian::native == std::endian::big) {
 1032|       |               swar = std::byteswap(swar);
 1033|       |            }
 1034|       |
 1035|  7.34M|            constexpr uint64_t lo7_mask = repeat_byte8(0b01111111);
 1036|  7.34M|            const uint64_t lo7 = swar & lo7_mask;
 1037|  7.34M|            const uint64_t backslash = (lo7 ^ repeat_byte8('\\')) + lo7_mask;
 1038|  7.34M|            const uint64_t quote = (lo7 ^ repeat_byte8('"')) + lo7_mask;
 1039|  7.34M|            const uint64_t less_32 = (swar & repeat_byte8(0b01100000)) + lo7_mask;
 1040|  7.34M|            uint64_t next = ~((backslash & quote & less_32) | swar);
 1041|  7.34M|            next &= repeat_byte8(0b10000000);
 1042|       |
 1043|  7.34M|            if (next == 0) {
  ------------------
  |  Branch (1043:17): [True: 6.81M, False: 532k]
  ------------------
 1044|       |               // No special characters in this chunk
 1045|  6.81M|               it += 8;
 1046|  6.81M|               continue;
 1047|  6.81M|            }
 1048|       |
 1049|       |            // Find the first occurrence
 1050|   532k|            size_t offset = (countr_zero(next) >> 3);
 1051|   532k|            it += offset;
 1052|       |
 1053|   532k|            const auto c = *it;
 1054|   532k|            if ((c & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1054:17): [True: 3.13k, False: 529k]
  ------------------
 1055|       |               // Invalid control character (<0x20)
 1056|  3.13k|               ctx.error = error_code::syntax_error;
 1057|  3.13k|               return;
 1058|  3.13k|            }
 1059|   529k|            else if (c == '"') {
  ------------------
  |  Branch (1059:22): [True: 217k, False: 311k]
  ------------------
 1060|       |               // Check if this quote is escaped
 1061|   217k|               const auto* p = it - 1;
 1062|   217k|               int backslash_count{};
 1063|       |               // We don't have to worry about rewinding too far because we started with a quote
 1064|   237k|               while (*p == '\\') {
  ------------------
  |  Branch (1064:23): [True: 19.5k, False: 217k]
  ------------------
 1065|  19.5k|                  ++backslash_count;
 1066|  19.5k|                  --p;
 1067|  19.5k|               }
 1068|   217k|               if ((backslash_count & 1) == 0) {
  ------------------
  |  Branch (1068:20): [True: 217k, False: 0]
  ------------------
 1069|       |                  // Even number of backslashes => not escaped => closing quote found
 1070|   217k|                  validate_utf8_span<Opts>(ctx, utf8_start, it);
 1071|   217k|                  ++it;
 1072|   217k|                  return;
 1073|   217k|               }
 1074|      0|               else {
 1075|       |                  // Odd number of backslashes => escaped quote
 1076|      0|                  ++it;
 1077|      0|                  continue;
 1078|      0|               }
 1079|   217k|            }
 1080|   311k|            else if (c == '\\') {
  ------------------
  |  Branch (1080:22): [True: 311k, False: 0]
  ------------------
 1081|       |               // Handle escape sequence
 1082|   311k|               ++it;
 1083|       |
 1084|       |               // The backslash can be the last byte the chunk covers, which lands `it` on `end`.
 1085|       |               // A null-terminated buffer answers that read with its terminator, which the escape
 1086|       |               // table below rejects; a bounded one has nothing there to read.
 1087|   311k|               if constexpr (not Opts.null_terminated) {
 1088|   311k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1088:23): [True: 5, False: 311k]
  ------------------
 1089|      5|                     ctx.error = error_code::unexpected_end;
 1090|      5|                     return;
 1091|      5|                  }
 1092|   311k|               }
 1093|       |
 1094|   311k|               if (*it == 'u') {
  ------------------
  |  Branch (1094:20): [True: 187k, False: 124k]
  ------------------
 1095|   187k|                  ++it;
 1096|   187k|                  if (not skip_unicode_code_point(it, end)) [[unlikely]] {
  ------------------
  |  Branch (1096:23): [True: 11.9k, False: 175k]
  ------------------
 1097|  11.9k|                     ctx.error = error_code::unicode_escape_conversion_failure;
 1098|  11.9k|                     return;
 1099|  11.9k|                  }
 1100|   187k|               }
 1101|   124k|               else {
 1102|   124k|                  if (not char_unescape_table[uint8_t(*it)]) [[unlikely]] {
  ------------------
  |  Branch (1102:23): [True: 1.50k, False: 122k]
  ------------------
 1103|  1.50k|                     ctx.error = error_code::invalid_escape;
 1104|  1.50k|                     return;
 1105|  1.50k|                  }
 1106|   122k|                  ++it;
 1107|   122k|               }
 1108|   311k|            }
 1109|   532k|         }
 1110|       |
 1111|  97.2k|         while (true) {
  ------------------
  |  Branch (1111:17): [True: 97.2k, Folded]
  ------------------
 1112|       |            // A null-terminated buffer terminates on the trailing '\0' (caught by the control
 1113|       |            // character check below); a non-null-terminated buffer has no sentinel, so bound the
 1114|       |            // scan before each dereference.
 1115|  97.2k|            if constexpr (not Opts.null_terminated) {
 1116|  97.2k|               if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1116:20): [True: 325, False: 96.9k]
  ------------------
 1117|    325|                  ctx.error = error_code::unexpected_end;
 1118|    325|                  return;
 1119|    325|               }
 1120|  97.2k|            }
 1121|  97.2k|            if ((*it & 0b11100000) == 0) [[unlikely]] {
  ------------------
  |  Branch (1121:17): [True: 1.37k, False: 95.8k]
  ------------------
 1122|  1.37k|               ctx.error = error_code::syntax_error;
 1123|  1.37k|               return;
 1124|  1.37k|            }
 1125|       |
 1126|  95.8k|            switch (*it) {
  ------------------
  |  Branch (1126:21): [True: 48.4k, False: 47.4k]
  ------------------
 1127|  35.2k|            case '"': {
  ------------------
  |  Branch (1127:13): [True: 35.2k, False: 60.6k]
  ------------------
 1128|  35.2k|               validate_utf8_span<Opts>(ctx, utf8_start, it);
 1129|  35.2k|               ++it;
 1130|  35.2k|               return;
 1131|      0|            }
 1132|  13.2k|            case '\\': {
  ------------------
  |  Branch (1132:13): [True: 13.2k, False: 82.6k]
  ------------------
 1133|  13.2k|               ++it;
 1134|  13.2k|               if constexpr (not Opts.null_terminated) {
 1135|  13.2k|                  if (it == end) [[unlikely]] {
  ------------------
  |  Branch (1135:23): [True: 18, False: 13.2k]
  ------------------
 1136|     18|                     ctx.error = error_code::unexpected_end;
 1137|     18|                     return;
 1138|     18|                  }
 1139|  13.2k|               }
 1140|  13.2k|               if (char_unescape_table[uint8_t(*it)]) {
  ------------------
  |  Branch (1140:20): [True: 7.79k, False: 5.44k]
  ------------------
 1141|  7.79k|                  ++it;
 1142|  7.79k|                  continue;
 1143|  7.79k|               }
 1144|  5.44k|               else if (*it == 'u') {
  ------------------
  |  Branch (1144:25): [True: 4.39k, False: 1.05k]
  ------------------
 1145|  4.39k|                  ++it;
 1146|  4.39k|                  if (skip_unicode_code_point(it, end)) [[likely]] {
  ------------------
  |  Branch (1146:23): [True: 812, False: 3.58k]
  ------------------
 1147|    812|                     continue;
 1148|    812|                  }
 1149|  3.58k|                  else [[unlikely]] {
 1150|  3.58k|                     ctx.error = error_code::unicode_escape_conversion_failure;
 1151|  3.58k|                     return;
 1152|  3.58k|                  }
 1153|  4.39k|               }
 1154|       |               // Same code the chunked loop above reports. Both loops run over one buffer now, so
 1155|       |               // an escape that lands in the last few bytes must be diagnosed the same as one that
 1156|       |               // does not.
 1157|  1.05k|               ctx.error = error_code::invalid_escape;
 1158|  1.05k|               return;
 1159|  13.2k|            }
 1160|  95.8k|            }
 1161|  47.1k|            ++it;
 1162|  47.1k|         }
 1163|       |      }
 1164|       |      else {
 1165|       |         uint64_t ascii_acc{};
 1166|       |         skip_string_view(ctx, it, end, ascii_acc);
 1167|       |         if (bool(ctx.error)) [[unlikely]] {
 1168|       |            return;
 1169|       |         }
 1170|       |         if (validate_utf8_span<Opts>(ctx, utf8_start, it, ascii_acc)) [[unlikely]] {
 1171|       |            return;
 1172|       |         }
 1173|       |         ++it; // skip the quote
 1174|       |      }
 1175|   275k|   }
_ZN3glz18validate_utf8_spanITnDaXtlNS_16skip_string_optsELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextEccEEbOT0_PKT1_PKT2_m:
  873|   252k|   {
  874|       |      if constexpr (not check_validate_utf8(Opts)) {
  875|       |         // Everything the caller computed for us is dead, which lets its scan loop drop the
  876|       |         // accumulator entirely.
  877|       |         (void)ctx, (void)start, (void)fin, (void)ascii_acc;
  878|       |         return false;
  879|       |      }
  880|   252k|      else {
  881|   252k|         if ((ascii_acc & repeat_byte8(0b10000000)) == 0) {
  ------------------
  |  Branch (881:14): [True: 0, False: 252k]
  ------------------
  882|      0|            return false; // pure ASCII is trivially well formed UTF-8
  883|      0|         }
  884|   252k|         if (!validate_utf8(start, size_t(fin - start))) [[unlikely]] {
  ------------------
  |  Branch (884:14): [True: 686, False: 252k]
  ------------------
  885|    686|            ctx.error = error_code::invalid_utf8;
  886|    686|            return true;
  887|    686|         }
  888|   252k|         return false;
  889|   252k|      }
  890|   252k|   }
_ZN3glz23skip_unicode_code_pointIcEEbRPKT_S3_:
  402|   191k|   {
  403|   191k|      using namespace unicode;
  404|   191k|      if (it + 4 >= end) [[unlikely]] {
  ------------------
  |  Branch (404:11): [True: 5.77k, False: 185k]
  ------------------
  405|  5.77k|         return false;
  406|  5.77k|      }
  407|       |
  408|   185k|      const uint32_t high = hex_to_u32(it);
  409|   185k|      if (high == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (409:11): [True: 2.43k, False: 183k]
  ------------------
  410|  2.43k|         return false;
  411|  2.43k|      }
  412|   183k|      it += 4; // skip the code point characters
  413|       |
  414|   183k|      uint32_t code_point;
  415|       |
  416|   183k|      if ((high & generic_surrogate_mask) == generic_surrogate_value) {
  ------------------
  |  Branch (416:11): [True: 11.5k, False: 171k]
  ------------------
  417|       |         // surrogate pair code points
  418|  11.5k|         if ((high & surrogate_mask) != high_surrogate_value) [[unlikely]] {
  ------------------
  |  Branch (418:14): [True: 1.16k, False: 10.3k]
  ------------------
  419|  1.16k|            return false;
  420|  1.16k|         }
  421|       |
  422|  10.3k|         if (it + 6 >= end) [[unlikely]] {
  ------------------
  |  Branch (422:14): [True: 1.15k, False: 9.22k]
  ------------------
  423|  1.15k|            return false;
  424|  1.15k|         }
  425|       |         // The next two characters must be `\u`
  426|  9.22k|         uint16_t u;
  427|  9.22k|         std::memcpy(&u, it, 2);
  428|  9.22k|         if (u != to_uint16_t(R"(\u)")) [[unlikely]] {
  ------------------
  |  Branch (428:14): [True: 1.28k, False: 7.93k]
  ------------------
  429|  1.28k|            return false;
  430|  1.28k|         }
  431|  7.93k|         it += 2;
  432|       |         // verify that second unicode escape sequence is present
  433|  7.93k|         const uint32_t low = hex_to_u32(it);
  434|  7.93k|         if (low == 0xFFFFFFFFu) [[unlikely]] {
  ------------------
  |  Branch (434:14): [True: 1.03k, False: 6.90k]
  ------------------
  435|  1.03k|            return false;
  436|  1.03k|         }
  437|  6.90k|         it += 4;
  438|       |
  439|  6.90k|         if ((low & surrogate_mask) != low_surrogate_value) [[unlikely]] {
  ------------------
  |  Branch (439:14): [True: 2.65k, False: 4.24k]
  ------------------
  440|  2.65k|            return false;
  441|  2.65k|         }
  442|       |
  443|  4.24k|         code_point = (high & surrogate_codepoint_mask) << surrogate_codepoint_bits;
  444|  4.24k|         code_point |= (low & surrogate_codepoint_mask);
  445|  4.24k|         code_point += surrogate_codepoint_offset;
  446|  4.24k|      }
  447|   171k|      else {
  448|   171k|         code_point = high;
  449|   171k|      }
  450|   176k|      return skip_code_point(code_point) > 0;
  451|   183k|   }
_ZN3glz15skip_code_pointEj:
  276|   176k|   {
  277|   176k|      if (code_point <= 0x7F) {
  ------------------
  |  Branch (277:11): [True: 9.95k, False: 166k]
  ------------------
  278|  9.95k|         return 1;
  279|  9.95k|      }
  280|   166k|      if (code_point <= 0x7FF) {
  ------------------
  |  Branch (280:11): [True: 125k, False: 41.0k]
  ------------------
  281|   125k|         return 2;
  282|   125k|      }
  283|  41.0k|      if (code_point <= 0xFFFF) {
  ------------------
  |  Branch (283:11): [True: 36.8k, False: 4.24k]
  ------------------
  284|  36.8k|         return 3;
  285|  36.8k|      }
  286|  4.24k|      if (code_point <= 0x10FFFF) {
  ------------------
  |  Branch (286:11): [True: 4.24k, False: 0]
  ------------------
  287|  4.24k|         return 4;
  288|  4.24k|      }
  289|      0|      return 0;
  290|  4.24k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEvOT1_OT2_T3_:
  539|  4.57k|   {
  540|  4.57k|      static constexpr auto S = str.sv();
  541|  4.57k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 675, False: 3.90k]
  |  Branch (541:54): [True: 1.10k, False: 2.80k]
  ------------------
  542|  1.77k|         ctx.error = error_code::syntax_error;
  543|  1.77k|      }
  544|  2.80k|      else [[likely]] {
  545|  2.80k|         it += str.size();
  546|  2.80k|      }
  547|  4.57k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEvOT1_OT2_T3_:
  539|  3.02k|   {
  540|  3.02k|      static constexpr auto S = str.sv();
  541|  3.02k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 890, False: 2.13k]
  |  Branch (541:54): [True: 1.01k, False: 1.12k]
  ------------------
  542|  1.90k|         ctx.error = error_code::syntax_error;
  543|  1.90k|      }
  544|  1.12k|      else [[likely]] {
  545|  1.12k|         it += str.size();
  546|  1.12k|      }
  547|  3.02k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlNS_22registry_validate_optsIXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEEEEtlS5_Lj10ELb0ELb0ELb1ELb1EELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcSA_EEvOT1_OT2_T3_:
  539|  3.07k|   {
  540|  3.07k|      static constexpr auto S = str.sv();
  541|  3.07k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 681, False: 2.39k]
  |  Branch (541:54): [True: 875, False: 1.51k]
  ------------------
  542|  1.55k|         ctx.error = error_code::syntax_error;
  543|  1.55k|      }
  544|  1.51k|      else [[likely]] {
  545|  1.51k|         it += str.size();
  546|  1.51k|      }
  547|  3.07k|   }
_ZN3glz11skip_numberIXtlNS_16skip_number_optsELb1EEETkNS_10is_contextERNS_7contextERPKcS5_EEvOT0_OT1_T2_:
 1633|   307k|   {
 1634|       |      if constexpr (not Opts.validate) {
 1635|       |         if constexpr (Opts.null_terminated) {
 1636|       |            // Relies on the trailing '\0' sentinel (numeric_table['\0'] == false) to terminate.
 1637|       |            while (numeric_table[uint8_t(*it)]) {
 1638|       |               ++it;
 1639|       |            }
 1640|       |         }
 1641|       |         else {
 1642|       |            while (it < end && numeric_table[uint8_t(*it)]) {
 1643|       |               ++it;
 1644|       |            }
 1645|       |         }
 1646|       |      }
 1647|   307k|      else {
 1648|   307k|         skip_number_with_validation(ctx, it, end);
 1649|   307k|      }
 1650|   307k|   }
_ZN3glz27skip_number_with_validationITkNS_10is_contextERNS_7contextERPKcS4_EEvOT_OT0_T1_:
 1560|   307k|   {
 1561|       |      // Every standalone *it read below is guarded by it != end so the scan stays inside the
 1562|       |      // buffer for non-null-terminated input (the std::find_if_not calls are already bounded by
 1563|       |      // end). A null-terminated buffer is unaffected: it reaches end only once the number is
 1564|       |      // fully consumed, where these guards short-circuit exactly as the trailing '\0' sentinel
 1565|       |      // would have.
 1566|   307k|      it += (it != end) && (*it == '-');
  ------------------
  |  Branch (1566:13): [True: 307k, False: 0]
  |  Branch (1566:28): [True: 41.8k, False: 265k]
  ------------------
 1567|   307k|      const auto sig_start_it = it;
 1568|   307k|      auto frac_start_it = end;
 1569|   307k|      if (it != end && *it == '0') {
  ------------------
  |  Branch (1569:11): [True: 298k, False: 9.16k]
  |  Branch (1569:24): [True: 37.6k, False: 260k]
  ------------------
 1570|  37.6k|         ++it;
 1571|       |         // RFC 8259 section 6: number = [ minus ] int [ frac ] [ exp ]. The exponent may follow
 1572|       |         // the integer part directly, with no fractional part in between (e.g. "0e4").
 1573|  37.6k|         if (it != end && (*it | ('E' ^ 'e')) == 'e') {
  ------------------
  |  Branch (1573:14): [True: 27.5k, False: 10.0k]
  |  Branch (1573:27): [True: 4.57k, False: 22.9k]
  ------------------
 1574|  4.57k|            ++it;
 1575|  4.57k|            goto exp_start;
 1576|  4.57k|         }
 1577|  33.0k|         if (it == end || *it != '.') {
  ------------------
  |  Branch (1577:14): [True: 10.0k, False: 22.9k]
  |  Branch (1577:27): [True: 18.9k, False: 4.01k]
  ------------------
 1578|  29.0k|            return;
 1579|  29.0k|         }
 1580|  4.01k|         ++it;
 1581|  4.01k|         goto frac_start;
 1582|  33.0k|      }
 1583|   270k|      it = std::find_if_not(it, end, is_digit);
 1584|   270k|      if (it == sig_start_it) {
  ------------------
  |  Branch (1584:11): [True: 66.5k, False: 203k]
  ------------------
 1585|  66.5k|         ctx.error = error_code::syntax_error;
 1586|  66.5k|         return;
 1587|  66.5k|      }
 1588|   203k|      if (it != end && (*it | ('E' ^ 'e')) == 'e') {
  ------------------
  |  Branch (1588:11): [True: 164k, False: 39.1k]
  |  Branch (1588:24): [True: 16.6k, False: 147k]
  ------------------
 1589|  16.6k|         ++it;
 1590|  16.6k|         goto exp_start;
 1591|  16.6k|      }
 1592|   187k|      if (it == end || *it != '.') return;
  ------------------
  |  Branch (1592:11): [True: 39.1k, False: 147k]
  |  Branch (1592:24): [True: 138k, False: 9.63k]
  ------------------
 1593|  9.63k|      ++it;
 1594|  13.6k|   frac_start:
 1595|  13.6k|      frac_start_it = it;
 1596|  13.6k|      it = std::find_if_not(it, end, is_digit);
 1597|  13.6k|      if (it == frac_start_it) {
  ------------------
  |  Branch (1597:11): [True: 1.25k, False: 12.3k]
  ------------------
 1598|  1.25k|         ctx.error = error_code::syntax_error;
 1599|  1.25k|         return;
 1600|  1.25k|      }
 1601|  12.3k|      if (it == end || (*it | ('E' ^ 'e')) != 'e') return;
  ------------------
  |  Branch (1601:11): [True: 1.29k, False: 11.0k]
  |  Branch (1601:24): [True: 8.55k, False: 2.53k]
  ------------------
 1602|  2.53k|      ++it;
 1603|  23.7k|   exp_start:
 1604|  23.7k|      it += (it != end) && (*it == '+' || *it == '-');
  ------------------
  |  Branch (1604:13): [True: 23.0k, False: 637]
  |  Branch (1604:29): [True: 7.37k, False: 15.7k]
  |  Branch (1604:43): [True: 1.08k, False: 14.6k]
  ------------------
 1605|  23.7k|      const auto exp_start_it = it;
 1606|  23.7k|      it = std::find_if_not(it, end, is_digit);
 1607|  23.7k|      if (it == exp_start_it) {
  ------------------
  |  Branch (1607:11): [True: 2.17k, False: 21.5k]
  ------------------
 1608|  2.17k|         ctx.error = error_code::syntax_error;
 1609|  2.17k|         return;
 1610|  2.17k|      }
 1611|  23.7k|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc117ELc108ELc108EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS5_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES7_SA_S9_EEvSE_OSF_T3_:
  539|    593|   {
  540|    593|      static constexpr auto S = str.sv();
  541|    593|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 0, False: 593]
  |  Branch (541:54): [True: 0, False: 593]
  ------------------
  542|      0|         ctx.error = error_code::syntax_error;
  543|      0|      }
  544|    593|      else [[likely]] {
  545|    593|         it += str.size();
  546|    593|      }
  547|    593|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm5EEEtlA5_cLc97ELc108ELc115ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS5_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES7_SA_S9_EEvSE_OSF_T3_:
  539|    594|   {
  540|    594|      static constexpr auto S = str.sv();
  541|    594|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 0, False: 594]
  |  Branch (541:54): [True: 0, False: 594]
  ------------------
  542|      0|         ctx.error = error_code::syntax_error;
  543|      0|      }
  544|    594|      else [[likely]] {
  545|    594|         it += str.size();
  546|    594|      }
  547|    594|   }
_ZN3glz5matchITnNS_14string_literalEXtlNS1_ILm4EEEtlA4_cLc114ELc117ELc101EEEETnDaXtlZNS_11parse_valueITnDaXtlNS_4optsELj10ELb0ELb0ELb1ELb1EEETkNS_10is_contextERNS_7contextERPKcS9_EEDaOT0_OT1_T2_E21opts_validate_skippedtlS5_Lj10ELb0ELb0ELb1ELb1EELb1EEETkNS_10is_contextES7_SA_S9_EEvSE_OSF_T3_:
  539|  1.01k|   {
  540|  1.01k|      static constexpr auto S = str.sv();
  541|  1.01k|      if ((end - it < std::ptrdiff_t(str.size())) || not comparitor<S>(it)) [[unlikely]] {
  ------------------
  |  Branch (541:11): [True: 0, False: 1.01k]
  |  Branch (541:54): [True: 0, False: 1.01k]
  ------------------
  542|      0|         ctx.error = error_code::syntax_error;
  543|      0|      }
  544|  1.01k|      else [[likely]] {
  545|  1.01k|         it += str.size();
  546|  1.01k|      }
  547|  1.01k|   }

_ZNK3glz14string_literalILm4EE4sizeEv:
   25|  18.5k|      [[nodiscard]] constexpr size_t size() const noexcept { return length; }
_ZNK3glz14string_literalILm5EE4sizeEv:
   25|   463k|      [[nodiscard]] constexpr size_t size() const noexcept { return length; }

_ZN3glz6detail15get_source_infoITkNS_10contiguousENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEEENS0_11source_infoERKT_m:
   51|  4.29M|      {
   52|  4.29M|         using V = std::decay_t<decltype(*buffer.data())>;
   53|       |
   54|       |         if constexpr (std::same_as<V, std::byte>) {
   55|       |            return {.context = "", .index = index};
   56|       |         }
   57|  4.29M|         else {
   58|  4.29M|            const std::string_view text{reinterpret_cast<const char*>(buffer.data()), buffer.size()};
   59|  4.29M|            if (index > text.size()) {
  ------------------
  |  Branch (59:17): [True: 0, False: 4.29M]
  ------------------
   60|      0|               return {.context = "", .index = index};
   61|      0|            }
   62|       |
   63|       |            // An error at the end of the input (a truncated document, a missing closing bracket)
   64|       |            // has no character of its own. Point just past the last character that is not
   65|       |            // trailing whitespace, so the message still shows the line where the input stops.
   66|       |            // The reported index is left unchanged.
   67|  4.29M|            size_t pos = index;
   68|  4.29M|            if (pos == text.size()) {
  ------------------
  |  Branch (68:17): [True: 4.04M, False: 245k]
  ------------------
   69|  4.04M|               const size_t last = text.find_last_not_of(" \t\r\n");
   70|  4.04M|               if (last == text.npos) {
  ------------------
  |  Branch (70:20): [True: 4.04M, False: 7.26k]
  ------------------
   71|  4.04M|                  return {.context = "", .index = index};
   72|  4.04M|               }
   73|  7.26k|               pos = last + 1;
   74|  7.26k|            }
   75|       |
   76|       |            // The line the error sits on starts just after the newline before it, or at the
   77|       |            // beginning when there is none. Both the column and the context start from that one
   78|       |            // position. Searching from pos - 1 leaves pos itself out, so a newline *at* the
   79|       |            // error belongs to the line it ends rather than the one it opens.
   80|   252k|            const size_t prev_newline = pos ? text.rfind('\n', pos - 1) : text.npos;
  ------------------
  |  Branch (80:41): [True: 114k, False: 137k]
  ------------------
   81|   252k|            const size_t offset = (prev_newline == text.npos) ? 0 : prev_newline + 1;
  ------------------
  |  Branch (81:35): [True: 243k, False: 9.29k]
  ------------------
   82|   252k|            const size_t column = pos - offset + 1;
   83|   252k|            const size_t line = size_t(std::count(text.begin(), text.begin() + pos, '\n') + 1);
   84|       |
   85|       |            // The context runs to the end of the line. Searching from pos itself means that a
   86|       |            // newline at the error ends the context, instead of pulling in the line after it. An
   87|       |            // error on an empty line therefore has an empty context, but still a line and column.
   88|   252k|            size_t context_begin = offset;
   89|   252k|            size_t context_end = (std::min)(text.find('\n', pos), text.size());
   90|       |
   91|       |            // Binary input (BEVE, CBOR, MessagePack, BSON) is often held in a std::string, so it
   92|       |            // reaches this text path, where its line and column mean nothing. Without the format
   93|       |            // this is a best-effort guess: a line holding control characters other than tab and
   94|       |            // carriage return is taken to be binary, and only the index is reported. Binary data
   95|       |            // without such bytes is shown as text, with any control characters made spaces. The
   96|       |            // byte at the error is exempt, because a text reader that rejects a raw control
   97|       |            // character reports the error at that character.
   98|   192M|            for (size_t i = offset; i < context_end; ++i) {
  ------------------
  |  Branch (98:37): [True: 192M, False: 220k]
  ------------------
   99|   192M|               const char c = text[i];
  100|   192M|               if (i != pos && c != '\t' && c != '\r' && is_control_char(c)) {
  ------------------
  |  Branch (100:20): [True: 191M, False: 241k]
  |  Branch (100:32): [True: 167M, False: 24.7M]
  |  Branch (100:45): [True: 166M, False: 378k]
  |  Branch (100:58): [True: 31.9k, False: 166M]
  ------------------
  101|  31.9k|                  return {.context = "", .index = index};
  102|  31.9k|               }
  103|   192M|            }
  104|       |
  105|   220k|            size_t front_truncation = 0;
  106|   220k|            size_t rear_truncation = 0;
  107|       |
  108|   220k|            if (context_end - context_begin > 64) {
  ------------------
  |  Branch (108:17): [True: 23.9k, False: 196k]
  ------------------
  109|       |               // reduce the context length so that we can more easily see errors, especially for non-prettified buffers
  110|  23.9k|               if (column <= 32) {
  ------------------
  |  Branch (110:20): [True: 8.60k, False: 15.3k]
  ------------------
  111|  8.60k|                  rear_truncation = 64;
  112|  8.60k|                  context_end = context_begin + rear_truncation;
  113|  8.60k|               }
  114|  15.3k|               else {
  115|  15.3k|                  front_truncation = column - 32;
  116|  15.3k|                  context_begin += front_truncation;
  117|  15.3k|                  if (context_end - context_begin > 64) {
  ------------------
  |  Branch (117:23): [True: 6.61k, False: 8.71k]
  ------------------
  118|  6.61k|                     rear_truncation = front_truncation + 64;
  119|  6.61k|                     context_end = offset + rear_truncation;
  120|  6.61k|                  }
  121|  15.3k|               }
  122|  23.9k|            }
  123|       |
  124|   220k|            std::string context{text.substr(context_begin, context_end - context_begin)};
  125|   220k|            convert_to_printable_spaces(context);
  126|   220k|            return {line, column, context, index, front_truncation, rear_truncation};
  127|   252k|         }
  128|  4.29M|      }
_ZN3glz6detail15is_control_charEc:
   31|   170M|      {
   32|   170M|         const auto u = static_cast<uint8_t>(c);
   33|   170M|         return u < 0x20 || u == 0x7F;
  ------------------
  |  Branch (33:17): [True: 101k, False: 170M]
  |  Branch (33:29): [True: 3.15k, False: 170M]
  ------------------
   34|   170M|      }
_ZN3glz6detail27convert_to_printable_spacesERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   40|   220k|      {
   41|  3.57M|         for (auto& c : input) {
  ------------------
  |  Branch (41:23): [True: 3.57M, False: 220k]
  ------------------
   42|  3.57M|            if (is_control_char(c)) {
  ------------------
  |  Branch (42:17): [True: 73.0k, False: 3.50M]
  ------------------
   43|  73.0k|               c = ' ';
   44|  73.0k|            }
   45|  3.57M|         }
   46|   220k|      }
_ZN3glz6detail21generate_error_stringENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERKNS0_11source_infoES5_:
  149|  4.29M|      {
  150|  4.29M|         std::string b{};
  151|  4.29M|         b.resize(error.size() + info.context.size() + filename.size() + 128);
  152|  4.29M|         size_t ix{};
  153|       |
  154|  4.29M|         if (not filename.empty()) {
  ------------------
  |  Branch (154:14): [True: 0, False: 4.29M]
  ------------------
  155|      0|            dump_not_empty(filename, b, ix);
  156|      0|            dump(':', b, ix);
  157|      0|         }
  158|       |
  159|  4.29M|         glz::context ctx{};
  160|       |
  161|       |         // Diagnostic numbers (index/line/column) are always formatted with size-optimized
  162|       |         // integer conversion: error formatting is never a throughput path, and this keeps
  163|       |         // glz::format_error from pulling in the 40 KB integer table regardless of the
  164|       |         // optimization level used elsewhere in the program.
  165|       |         // Line numbers start at 1, so line 0 means the location is unknown.
  166|  4.29M|         if (info.line == 0) {
  ------------------
  |  Branch (166:14): [True: 4.07M, False: 220k]
  ------------------
  167|  4.07M|            dump("index ", b, ix);
  168|  4.07M|            write_chars::op<opts_size{}>(info.index, ctx, b, ix);
  169|  4.07M|            dump(": ", b, ix);
  170|  4.07M|            dump_maybe_empty(error, b, ix);
  171|  4.07M|         }
  172|   220k|         else {
  173|   220k|            write_chars::op<opts_size{}>(info.line, ctx, b, ix);
  174|   220k|            dump(':', b, ix);
  175|   220k|            write_chars::op<opts_size{}>(info.column, ctx, b, ix);
  176|   220k|            dump(": ", b, ix);
  177|   220k|            dump_maybe_empty(error, b, ix);
  178|   220k|            dump('\n', b, ix);
  179|   220k|            if (info.front_truncation) {
  ------------------
  |  Branch (179:17): [True: 15.3k, False: 205k]
  ------------------
  180|  15.3k|               if (info.rear_truncation) {
  ------------------
  |  Branch (180:20): [True: 6.61k, False: 8.71k]
  ------------------
  181|  6.61k|                  dump("...", b, ix);
  182|  6.61k|                  dump_maybe_empty(info.context, b, ix);
  183|  6.61k|                  dump("...\n   ", b, ix);
  184|  6.61k|               }
  185|  8.71k|               else {
  186|  8.71k|                  dump("...", b, ix);
  187|  8.71k|                  dump_maybe_empty(info.context, b, ix);
  188|  8.71k|                  dump("\n   ", b, ix);
  189|  8.71k|               }
  190|  15.3k|            }
  191|   205k|            else {
  192|   205k|               dump("   ", b, ix);
  193|   205k|               dump_maybe_empty(info.context, b, ix);
  194|   205k|               dump("\n   ", b, ix);
  195|   205k|            }
  196|   220k|            dumpn(' ', info.column - 1 - info.front_truncation, b, ix);
  197|   220k|            dump('^', b, ix);
  198|   220k|         }
  199|       |
  200|  4.29M|         b.resize(ix);
  201|  4.29M|         return b;
  202|  4.29M|      }

_ZN3glz8to_charsITkNSt3__114floating_pointEdLb0EEEPcS2_T_:
 1118|  2.83k|   {
 1119|  2.83k|      static_assert(std::is_same_v<T, float> || std::is_same_v<T, double>);
 1120|  2.83k|      return zmij::detail::write<T, OptSize>(val, buf);
 1121|  2.83k|   }
_ZN3glz4zmij6detail5writeIdLb0EEEPcT_S3_:
  975|  2.83k|      {
  976|  2.83k|         using namespace detail_impl;
  977|  2.83k|         using traits = float_traits<Float>;
  978|  2.83k|         auto bits = traits::to_bits(value);
  979|  2.83k|         auto bin_exp = traits::get_exp(bits);
  980|  2.83k|         auto bin_sig = traits::get_sig(bits);
  981|       |
  982|  2.83k|         *buffer = '-';
  983|  2.83k|         buffer += traits::is_negative(bits);
  984|       |
  985|  2.83k|         const auto* c = &consts_v<OptSize>;
  986|  2.83k|         ZMIJ_ASM(("" : "+r"(c)));
  ------------------
  |  |  126|  2.83k|#define ZMIJ_ASM(x) asm x
  ------------------
  987|  2.83k|         int64_t threshold = traits::num_bits == 64 ? static_cast<int64_t>(c->threshold) : 10'000'000;
  ------------------
  |  Branch (987:30): [True: 2.83k, Folded]
  ------------------
  988|       |
  989|  2.83k|         to_decimal_result dec;
  990|  2.83k|         bool is_normal = unsigned(bin_exp - 1) < unsigned(traits::exp_mask - 1);
  991|  2.83k|         if (!is_normal) [[unlikely]] {
  ------------------
  |  Branch (991:14): [True: 1.17k, False: 1.66k]
  ------------------
  992|  1.17k|            if (bin_exp != 0) {
  ------------------
  |  Branch (992:17): [True: 0, False: 1.17k]
  ------------------
  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|      0|               buffer -= traits::is_negative(bits);
 1000|      0|               memcpy(buffer, "null", 4);
 1001|      0|               return buffer + 4;
 1002|      0|#endif
 1003|      0|            }
 1004|  1.17k|            if (bin_sig == 0) {
  ------------------
  |  Branch (1004:17): [True: 726, False: 446]
  ------------------
 1005|    726|               memcpy(buffer, "0", 2);
 1006|    726|               return buffer + 1;
 1007|    726|            }
 1008|    446|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig, 1, true, *c);
 1009|    446|            int64_t dec_sig = dec.sig * 10 + (dec.has_last_digit ? dec.last_digit : 0);
  ------------------
  |  Branch (1009:47): [True: 73, False: 373]
  ------------------
 1010|    446|            int32_t dec_exp = dec.exp;
 1011|  1.94k|            while (dec_sig < threshold) {
  ------------------
  |  Branch (1011:20): [True: 1.50k, False: 446]
  ------------------
 1012|  1.50k|               dec_sig *= 10;
 1013|  1.50k|               --dec_exp;
 1014|  1.50k|            }
 1015|    446|            int64_t d = static_cast<int64_t>(detail_impl::div10(static_cast<uint64_t>(dec_sig)));
 1016|    446|            int32_t last_digit = static_cast<int32_t>(dec_sig - d * 10);
 1017|    446|            dec = {d, dec_exp, last_digit, last_digit != 0};
 1018|    446|         }
 1019|  1.66k|         else {
 1020|  1.66k|            dec = detail_impl::to_decimal<Float, typename traits::sig_type, OptSize>(bin_sig | traits::implicit_bit,
 1021|  1.66k|                                                                                     bin_exp, bin_sig != 0, *c);
 1022|  1.66k|         }
 1023|  2.11k|         bool extra_digit = dec.sig >= threshold;
 1024|  2.11k|         int dec_exp = dec.exp + traits::max_digits10 - 2 + extra_digit;
 1025|  2.11k|         if (traits::num_bits == 32 && dec.sig < 1'000'000) [[unlikely]] {
  ------------------
  |  Branch (1025:14): [Folded, False: 2.11k]
  |  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|  2.11k|         char* start = buffer;
 1032|  2.11k|         auto dig = to_digits<traits::num_bits, OptSize>(static_cast<uint64_t>(dec.sig), extra_digit, *c);
 1033|  2.11k|         constexpr int bcd_size = traits::num_bits == 64 ? 16 : 8;
  ------------------
  |  Branch (1033:35): [True: 0, Folded]
  ------------------
 1034|  2.11k|         if (dec_exp >= traits::min_fixed_dec_exp && dec_exp <= traits::max_fixed_dec_exp) {
  ------------------
  |  Branch (1034:14): [True: 1.56k, False: 545]
  |  Branch (1034:54): [True: 844, False: 722]
  ------------------
 1035|    844|            memcpy(start, &zeros_v, 8);
 1036|    844|            const auto& fmt = dec_exp_formats.get<traits>(dec_exp);
 1037|    844|            buffer += fmt.start_pos;
 1038|    844|            memcpy(buffer, &dig.digits, bcd_size);
 1039|    844|            memmove(buffer, buffer + !extra_digit, bcd_size);
 1040|    844|            buffer[bcd_size + extra_digit - 1] = static_cast<char>('0' + (dec.has_last_digit ? dec.last_digit : 0));
  ------------------
  |  Branch (1040:75): [True: 178, False: 666]
  ------------------
 1041|    844|            memmove(start + fmt.shift_pos, start + fmt.point_pos, bcd_size);
 1042|    844|            start[fmt.point_pos] = '.';
 1043|    844|            int num_digits = dec.has_last_digit ? bcd_size : dig.num_digits - 1;
  ------------------
  |  Branch (1043:30): [True: 178, False: 666]
  ------------------
 1044|    844|            return buffer + fmt.exp_pos[num_digits + extra_digit - 1];
 1045|    844|         }
 1046|  1.26k|         buffer += extra_digit;
 1047|  1.26k|         memcpy(buffer, &dig.digits, bcd_size);
 1048|  1.26k|         buffer[bcd_size] = static_cast<char>('0' + dec.last_digit);
 1049|  1.26k|         buffer += dec.has_last_digit ? bcd_size + 1 : dig.num_digits;
  ------------------
  |  Branch (1049:20): [True: 402, False: 865]
  ------------------
 1050|  1.26k|         start[0] = start[1];
 1051|  1.26k|         start[1] = '.';
 1052|  1.26k|         buffer -= (buffer - 1 == start + 1);
 1053|       |
 1054|  1.26k|         if constexpr (exp_string_table<OptSize>::enable) {
 1055|  1.26k|            uint64_t exp_data = exp_strings_v<OptSize>.data[dec_exp + exp_string_table<OptSize>::offset];
 1056|  1.26k|            int len = int(exp_data >> 48);
 1057|  1.26k|            if (is_big_endian) exp_data = bswap64(exp_data);
  ------------------
  |  Branch (1057:17): [Folded, False: 1.26k]
  ------------------
 1058|  1.26k|            memcpy(buffer, &exp_data, traits::max_exponent10 >= 100 ? 8 : 4);
  ------------------
  |  Branch (1058:39): [True: 1.26k, Folded]
  ------------------
 1059|  1.26k|            return buffer + len;
 1060|  1.26k|         }
 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.26k|         buffer[0] = 'E';
 1067|  1.26k|         buffer[1] = '-';
 1068|  1.26k|         buffer += 1 + unsigned(neg);
 1069|  1.26k|         dec_exp = neg ? -dec_exp : dec_exp;
  ------------------
  |  Branch (1069:20): [True: 0, False: 1.26k]
  ------------------
 1070|  1.26k|         unsigned hundreds_written = 0;
 1071|  1.26k|         if constexpr (traits::max_exponent10 >= 100) {
 1072|  1.26k|            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|  1.26k|            else {
 1077|  1.26k|               digit = static_cast<int32_t>((uint32_t(dec_exp) * div100_sig) >> div100_exp);
 1078|  1.26k|            }
 1079|  1.26k|            *buffer = static_cast<char>('0' + digit);
 1080|  1.26k|            hundreds_written = unsigned(dec_exp >= 100);
 1081|  1.26k|            buffer += hundreds_written;
 1082|  1.26k|            dec_exp -= digit * 100;
 1083|  1.26k|         }
 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.26k|         const char* d2 = digits2(dec_exp);
 1087|  1.26k|         *buffer = d2[0];
 1088|  1.26k|         buffer += hundreds_written | unsigned(dec_exp >= 10);
 1089|  1.26k|         *buffer = d2[1];
 1090|  1.26k|         return buffer + 1;
 1091|  2.11k|      }
_ZN3glz4zmij11detail_impl12float_traitsIdE7to_bitsEd:
  358|  2.83k|         {
  359|  2.83k|            sig_type bits;
  360|  2.83k|            memcpy(&bits, &value, sizeof(value));
  361|  2.83k|            return bits;
  362|  2.83k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_expEm:
  367|  2.83k|         {
  368|  2.83k|            return static_cast<int32_t>((bits << 1) >> (num_sig_bits + 1));
  369|  2.83k|         }
_ZN3glz4zmij11detail_impl12float_traitsIdE7get_sigEm:
  365|  2.83k|         static auto get_sig(sig_type bits) noexcept -> sig_type { return bits & (implicit_bit - 1); }
_ZN3glz4zmij11detail_impl12float_traitsIdE11is_negativeEm:
  364|  2.83k|         static auto is_negative(sig_type bits) noexcept -> bool { return bits >> (num_bits - 1); }
_ZN3glz4zmij11detail_impl10to_decimalIdmLb0EEENS1_17to_decimal_resultET0_lbRKNS1_9constantsIXT1_EEE:
  868|  2.11k|      {
  869|  2.11k|         using traits = float_traits<Float>;
  870|  2.11k|         int64_t bin_exp = raw_exp - traits::exp_offset;
  871|  2.11k|         constexpr int num_bits = std::numeric_limits<UInt>::digits;
  872|       |
  873|  2.11k|         constexpr uint64_t log10_2_sig = 78'913;
  874|  2.11k|         constexpr int32_t log10_2_exp = 18;
  875|  2.11k|         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|  2.11k|         else {
  881|  2.11k|            dec_exp = compute_dec_exp(bin_exp);
  882|  2.11k|         }
  883|  2.11k|         uint64_t even = 1 - (bin_sig & 1);
  884|  2.11k|         constexpr int32_t extra_shift = exp_shift_table<OptSize>::extra_shift;
  885|       |
  886|  2.11k|         if (!regular) [[unlikely]] {
  ------------------
  |  Branch (886:14): [True: 272, False: 1.83k]
  ------------------
  887|    272|            int32_t irregular_dec_exp = compute_dec_exp(bin_exp, false);
  888|    272|            int32_t shift = compute_exp_shift(bin_exp, irregular_dec_exp + 1) + extra_shift;
  889|    272|            uint128 pow10 = c.pow10_significands[-irregular_dec_exp - 1];
  890|    272|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  891|       |
  892|    272|            int64_t integral = p.hi >> extra_shift;
  893|    272|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  894|       |
  895|    272|            uint64_t half_ulp = pow10.hi >> (extra_shift + 1 - shift);
  896|    272|            bool round_up = half_ulp > ~uint64_t(0) - fractional;
  897|    272|            bool round_down = (half_ulp >> 1) > fractional;
  898|    272|            integral += round_up;
  899|       |
  900|    272|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, (uint64_t(1) << 63) - 1));
  901|    272|            int32_t lo = static_cast<int32_t>(umul128_add_hi64(fractional - (half_ulp >> 1), 10, ~uint64_t(0)));
  902|    272|            if (digit < lo) digit = lo;
  ------------------
  |  Branch (902:17): [True: 237, False: 35]
  ------------------
  903|    272|            return {integral, irregular_dec_exp, digit, (round_up + round_down) == 0};
  904|    272|         }
  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|  1.83k|         else {
  928|  1.83k|            int32_t shift = exp_shift_table<OptSize>::enable ? exp_shifts_v<OptSize>.data[bin_exp + traits::exp_offset]
  ------------------
  |  Branch (928:29): [True: 1.83k, Folded]
  ------------------
  929|  1.83k|                                                             : compute_exp_shift(bin_exp, dec_exp + 1) + extra_shift;
  930|  1.83k|            ZMIJ_ASM(("" : "+r"(dec_exp)));
  ------------------
  |  |  126|  1.83k|#define ZMIJ_ASM(x) asm x
  ------------------
  931|  1.83k|            uint128 pow10 = c.pow10_significands[-dec_exp - 1];
  932|  1.83k|            uint128 p = umul192_hi128(pow10.hi, pow10.lo, bin_sig << shift);
  933|  1.83k|            int64_t integral = p.hi >> extra_shift;
  934|  1.83k|            uint64_t fractional = p.hi << (64 - extra_shift) | p.lo >> extra_shift;
  935|  1.83k|            uint64_t half_ulp = (pow10.hi >> (extra_shift + 1 - shift)) + even;
  936|  1.83k|            bool round_up = fractional + half_ulp < fractional;
  937|  1.83k|            bool round_down = half_ulp > fractional;
  938|  1.83k|            integral += round_up;
  939|       |
  940|  1.83k|            int32_t digit = static_cast<int32_t>(umul128_add_hi64(fractional, 10, c.biased_half));
  941|  1.83k|            if (fractional == (1ull << 62)) [[unlikely]] {
  ------------------
  |  Branch (941:17): [True: 3, False: 1.83k]
  ------------------
  942|      3|               digit = 2;
  943|      3|            }
  944|  1.83k|            return {integral, dec_exp, digit, (round_up + round_down) == 0};
  945|  1.83k|         }
  946|  1.83k|      }
_ZN3glz4zmij11detail_impl15compute_dec_expElb:
  333|  2.38k|      {
  334|  2.38k|         assert(bin_exp >= -1334 && bin_exp <= 2620);
  ------------------
  |  Branch (334:10): [True: 2.38k, False: 0]
  |  Branch (334:10): [True: 2.38k, False: 0]
  |  Branch (334:10): [True: 2.38k, False: 0]
  ------------------
  335|  2.38k|         constexpr int log10_3_over_4_sig = 131'072;
  336|  2.38k|         constexpr int log10_2_sig = 315'653, log10_2_exp = 20;
  337|  2.38k|         return static_cast<int32_t>((bin_exp * log10_2_sig - !regular * log10_3_over_4_sig) >> log10_2_exp);
  338|  2.38k|      }
_ZN3glz4zmij11detail_impl17compute_exp_shiftEli:
  457|    272|      {
  458|    272|         assert(dec_exp >= -350 && dec_exp <= 350);
  ------------------
  |  Branch (458:10): [True: 272, False: 0]
  |  Branch (458:10): [True: 272, False: 0]
  |  Branch (458:10): [True: 272, False: 0]
  ------------------
  459|    272|         constexpr int log2_pow10_sig = 217'707, log2_pow10_exp = 16;
  460|    272|         int pow10_bin_exp = -dec_exp * log2_pow10_sig >> log2_pow10_exp;
  461|    272|         return static_cast<int32_t>(bin_exp + pow10_bin_exp + 1);
  462|    272|      }
_ZNK3glz4zmij11detail_impl23pow10_significand_tableILb0EEixEi:
  440|  2.11k|         {
  441|  2.11k|            constexpr int dec_exp_min = -293;
  442|  2.11k|            int i = dec_exp - dec_exp_min;
  443|  2.11k|            if (compress) return compute(i);
  ------------------
  |  Branch (443:17): [Folded, False: 2.11k]
  ------------------
  444|  2.11k|            if (!split_tables) return {data[i * 2], data[i * 2 + 1]};
  ------------------
  |  Branch (444:17): [True: 2.11k, 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|  2.11k|         }
_ZN3glz4zmij11detail_impl13umul192_hi128Emmm:
  308|  2.11k|      {
  309|  2.11k|         uint128_t p = umul128(x_hi, y);
  310|  2.11k|         uint64_t lo = uint64_t(p) + uint64_t(umul128(x_lo, y) >> 64);
  311|  2.11k|         return {uint64_t(p >> 64) + (lo < uint64_t(p)), lo};
  312|  2.11k|      }
_ZN3glz4zmij11detail_impl7umul128Emm:
  265|  4.66k|      {
  266|  4.66k|#if ZMIJ_USE_INT128
  267|  4.66k|         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|  4.66k|      }
_ZN3glz4zmij11detail_impl16umul128_add_hi64Emmm:
  298|  2.38k|      {
  299|  2.38k|#if ZMIJ_USE_INT128
  300|  2.38k|         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|  2.38k|      }
_ZN3glz4zmij11detail_impl5div10Em:
  326|    446|      {
  327|    446|         assert(x <= (1ull << 62));
  ------------------
  |  Branch (327:10): [True: 446, False: 0]
  ------------------
  328|    446|         constexpr uint64_t div10_sig64 = (1ull << 63) / 5 + 1;
  329|    446|         return ZMIJ_USE_INT128 ? umul128_hi64(x, div10_sig64) : x / 10;
  ------------------
  |  |  247|    446|#define ZMIJ_USE_INT128 1
  |  |  ------------------
  |  |  |  Branch (247:25): [True: 446, Folded]
  |  |  ------------------
  ------------------
  330|    446|      }
_ZN3glz4zmij11detail_impl12umul128_hi64Emm:
  295|    446|      constexpr auto umul128_hi64(uint64_t x, uint64_t y) noexcept -> uint64_t { return uint64_t(umul128(x, y) >> 64); }
_ZN3glz4zmij11detail_impl9to_digitsILi64ELb0EEENS1_10dec_digitsIXT_EEEmbRKNS1_9constantsIXT0_EEE:
  809|  2.11k|      {
  810|       |         if constexpr (num_bits == 32) {
  811|       |            auto result = to_bcd8<OptSize>(value);
  812|       |            return {result.bcd + zeros_v, result.len};
  813|       |         }
  814|  2.11k|         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|  2.11k|            uint32_t abbccddee = uint32_t(value / 100'000'000);
  834|  2.11k|            uint32_t ffgghhii = uint32_t(value % 100'000'000);
  835|       |
  836|  2.11k|            const __m128i zeros = _mm_load_si128(m128ptr(&c.zeros));
  837|  2.11k|            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|  2.11k|            auto bcd = _mm_shuffle_epi32(unshuffled_bcd, _MM_SHUFFLE(0, 1, 2, 3));
  843|  2.11k|#endif
  844|       |
  845|  2.11k|            __m128i mask128 = _mm_cmpgt_epi8(bcd, _mm_setzero_si128());
  846|  2.11k|            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|  2.11k|            int len = 63 - clz((mask << 1) | 1);
  851|  2.11k|#endif
  852|  2.11k|            return {_mm_or_si128(bcd, zeros), len};
  853|  2.11k|#endif
  854|  2.11k|         }
  855|  2.11k|      }
_ZN3glz4zmij11detail_impl20to_unshuffled_digitsILb0EEEDv2_xjjRKNS1_9constantsIXT_EEE:
  735|  2.11k|      {
  736|  2.11k|         const __m128i div10k = _mm_load_si128(m128ptr(&c.div10k));
  737|  2.11k|         const __m128i neg10k = _mm_load_si128(m128ptr(&c.neg10k));
  738|  2.11k|         __m128i x = _mm_set_epi64x(bbccddee, ffgghhii);
  739|  2.11k|         __m128i y = _mm_add_epi64(x, _mm_mul_epu32(neg10k, _mm_srli_epi64(_mm_mul_epu32(x, div10k), div10k_exp)));
  740|  2.11k|         return to_bcd_4x4(y, c);
  741|  2.11k|      }
_ZN3glz4zmij11detail_impl10to_bcd_4x4ILb0EEEDv2_xS3_RKNS1_9constantsIXT_EEE:
  712|  2.11k|      {
  713|  2.11k|         const __m128i div100 = _mm_load_si128(m128ptr(&c.div100));
  714|  2.11k|         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|  2.11k|         const __m128i hundred = _mm_load_si128(m128ptr(&c.hundred));
  723|  2.11k|         const __m128i moddiv10 = _mm_load_si128(m128ptr(&c.moddiv10));
  724|       |
  725|  2.11k|         __m128i y_div_100 = _mm_srli_epi16(_mm_mulhi_epu16(y, div100), 3);
  726|  2.11k|         __m128i y_mod_100 = _mm_sub_epi16(y, _mm_mullo_epi16(y_div_100, hundred));
  727|  2.11k|         __m128i z = _mm_or_si128(_mm_slli_epi32(y_mod_100, 16), y_div_100);
  728|  2.11k|         return _mm_sub_epi16(_mm_slli_epi16(z, 8), _mm_mullo_epi16(moddiv10, _mm_mulhi_epu16(z, div10)));
  729|  2.11k|#endif
  730|  2.11k|      }
_ZN3glz4zmij11detail_impl3clzEm:
  187|  2.11k|      {
  188|  2.11k|         assert(x != 0);
  ------------------
  |  Branch (188:10): [True: 2.11k, False: 0]
  ------------------
  189|  2.11k|#if ZMIJ_HAS_BUILTIN(__builtin_clzll)
  190|  2.11k|         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|  2.11k|      }
_ZNK3glz4zmij11detail_impl20dec_exp_format_table3getINS1_12float_traitsIdEEEERKNS2_5entryEi:
  559|    844|         {
  560|    844|            constexpr auto min = traits::min_fixed_dec_exp, max = Traits::max_fixed_dec_exp;
  561|    844|            unsigned i = unsigned(dec_exp - min);
  562|    844|            return data[i <= unsigned(max - min) ? i : num_entries - 1];
  ------------------
  |  Branch (562:25): [True: 844, False: 0]
  ------------------
  563|    844|         }

