LLVMFuzzerTestOneInput:
    3|  2.46k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    4|  2.46k|  JsonDocument doc;
    5|  2.46k|  DeserializationError error = deserializeJson(doc, data, size);
    6|  2.46k|  if (!error) {
  ------------------
  |  Branch (6:7): [True: 947, False: 1.51k]
  ------------------
    7|    947|    std::string json;
    8|    947|    serializeJson(doc, json);
    9|    947|  }
   10|  2.46k|  return 0;
   11|  2.46k|}

_ZN11ArduinoJson8V740HB426detail9ArrayData10addElementEPNS1_15ResourceManagerE:
   23|  11.1k|inline VariantData* ArrayData::addElement(ResourceManager* resources) {
   24|  11.1k|  auto slot = resources->allocVariant();
   25|  11.1k|  if (!slot)
  ------------------
  |  Branch (25:7): [True: 0, False: 11.1k]
  ------------------
   26|      0|    return nullptr;
   27|  11.1k|  CollectionData::appendOne(slot, resources);
   28|  11.1k|  return slot.ptr();
   29|  11.1k|}

_ZNK11ArduinoJson8V740HB426detail14CollectionData4headEv:
   95|    608|  SlotId head() const {
   96|    608|    return head_;
   97|    608|  }
_ZN11ArduinoJson8V740HB426detail14CollectionDatanwEmPv:
   74|  4.36k|  static void* operator new(size_t, void* p) noexcept {
   75|  4.36k|    return p;
   76|  4.36k|  }
_ZN11ArduinoJson8V740HB426detail18CollectionIteratorC2Ev:
   22|  2.12k|  CollectionIterator() : slot_(nullptr), currentId_(NULL_SLOT) {}
_ZN11ArduinoJson8V740HB426detail18CollectionIteratorptEv:
   38|  3.84k|  VariantData* operator->() {
   39|  3.84k|    ARDUINOJSON_ASSERT(slot_ != nullptr);
  ------------------
  |  |   11|  3.84k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   40|  3.84k|    return data();
   41|  3.84k|  }
_ZNK11ArduinoJson8V740HB426detail18CollectionIterator4doneEv:
   26|  11.9k|  bool done() const {
   27|  11.9k|    return slot_ == nullptr;
   28|  11.9k|  }
_ZN11ArduinoJson8V740HB426detail18CollectionIterator4dataEv:
   53|  4.33k|  VariantData* data() {
   54|  4.33k|    return reinterpret_cast<VariantData*>(slot_);
   55|  4.33k|  }

_ZN11ArduinoJson8V740HB426detail14CollectionData9appendOneENS1_4SlotINS1_11VariantDataEEEPKNS1_15ResourceManagerE:
   34|  11.1k|                                      const ResourceManager* resources) {
   35|  11.1k|  if (tail_ != NULL_SLOT) {
  ------------------
  |  Branch (35:7): [True: 8.79k, False: 2.39k]
  ------------------
   36|  8.79k|    auto tail = resources->getVariant(tail_);
   37|  8.79k|    tail->setNext(slot.id());
   38|  8.79k|    tail_ = slot.id();
   39|  8.79k|  } else {
   40|  2.39k|    head_ = slot.id();
   41|  2.39k|    tail_ = slot.id();
   42|  2.39k|  }
   43|  11.1k|}
_ZNK11ArduinoJson8V740HB426detail14CollectionData14createIteratorEPKNS1_15ResourceManagerE:
   29|  2.60k|    const ResourceManager* resources) const {
   30|  2.60k|  return iterator(resources->getVariant(head_), head_);
   31|  2.60k|}
_ZN11ArduinoJson8V740HB426detail18CollectionIteratorC2EPNS1_11VariantDataEj:
   16|  2.60k|    : slot_(slot), currentId_(slotId) {
   17|  2.60k|  nextId_ = slot_ ? slot_->next() : NULL_SLOT;
  ------------------
  |  Branch (17:13): [True: 1.32k, False: 1.27k]
  ------------------
   18|  2.60k|}
_ZN11ArduinoJson8V740HB426detail18CollectionIterator4nextEPKNS1_15ResourceManagerE:
   20|  7.20k|inline void CollectionIterator::next(const ResourceManager* resources) {
   21|  7.20k|  ARDUINOJSON_ASSERT(currentId_ != NULL_SLOT);
  ------------------
  |  |   11|  7.20k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   22|  7.20k|  slot_ = resources->getVariant(nextId_);
   23|  7.20k|  currentId_ = nextId_;
   24|  7.20k|  if (slot_)
  ------------------
  |  Branch (24:7): [True: 6.36k, False: 844]
  ------------------
   25|  6.36k|    nextId_ = slot_->next();
   26|  7.20k|}
_ZN11ArduinoJson8V740HB426detail14CollectionData10appendPairENS1_4SlotINS1_11VariantDataEEES5_PKNS1_15ResourceManagerE:
   47|  2.12k|                                       const ResourceManager* resources) {
   48|  2.12k|  key->setNext(value.id());
   49|       |
   50|  2.12k|  if (tail_ != NULL_SLOT) {
  ------------------
  |  Branch (50:7): [True: 844, False: 1.27k]
  ------------------
   51|    844|    auto tail = resources->getVariant(tail_);
   52|    844|    tail->setNext(key.id());
   53|    844|    tail_ = value.id();
   54|  1.27k|  } else {
   55|  1.27k|    head_ = key.id();
   56|  1.27k|    tail_ = value.id();
   57|  1.27k|  }
   58|  2.12k|}
_ZN11ArduinoJson8V740HB426detail14CollectionData5clearEPNS1_15ResourceManagerE:
   60|    391|inline void CollectionData::clear(ResourceManager* resources) {
   61|    391|  auto next = head_;
   62|  1.64k|  while (next != NULL_SLOT) {
  ------------------
  |  Branch (62:10): [True: 1.25k, False: 391]
  ------------------
   63|  1.25k|    auto currId = next;
   64|  1.25k|    auto slot = resources->getVariant(next);
   65|  1.25k|    next = slot->next();
   66|  1.25k|    resources->freeVariant({slot, currId});
   67|  1.25k|  }
   68|       |
   69|    391|  head_ = NULL_SLOT;
   70|    391|  tail_ = NULL_SLOT;
   71|    391|}

_ZNK11ArduinoJson8V740HB4220DeserializationErrorcvbEv:
   56|  2.46k|  explicit operator bool() const {
   57|  2.46k|    return code_ != Ok;
   58|  2.46k|  }
_ZN11ArduinoJson8V740HB4220DeserializationErrorC2ENS1_4CodeE:
   29|  2.46k|  DeserializationError(Code c) : code_(c) {}

_ZN11ArduinoJson8V740HB426detail26makeDeserializationOptionsENS0_21DeserializationOption12NestingLimitE:
   31|  2.46k|    DeserializationOption::NestingLimit nestingLimit = {}) {
   32|  2.46k|  return {{}, nestingLimit};
   33|  2.46k|}

_ZNK11ArduinoJson8V740HB426detail14AllowAllFilter10allowArrayEv:
   58|  2.60k|  bool allowArray() const {
   59|  2.60k|    return true;
   60|  2.60k|  }
_ZNK11ArduinoJson8V740HB426detail14AllowAllFilterixImEES2_RKT_:
   71|  2.39k|  AllowAllFilter operator[](const TKey&) const {
   72|  2.39k|    return AllowAllFilter();
   73|  2.39k|  }
_ZNK11ArduinoJson8V740HB426detail14AllowAllFilter5allowEv:
   54|  13.7k|  bool allow() const {
   55|  13.7k|    return true;
   56|  13.7k|  }
_ZNK11ArduinoJson8V740HB426detail14AllowAllFilter11allowObjectEv:
   62|  1.75k|  bool allowObject() const {
   63|  1.75k|    return true;
   64|  1.75k|  }
_ZNK11ArduinoJson8V740HB426detail14AllowAllFilterixINS0_10JsonStringEEES2_RKT_:
   71|  2.60k|  AllowAllFilter operator[](const TKey&) const {
   72|  2.60k|    return AllowAllFilter();
   73|  2.60k|  }
_ZNK11ArduinoJson8V740HB426detail14AllowAllFilter10allowValueEv:
   66|  11.2k|  bool allowValue() const {
   67|  11.2k|    return true;
   68|  11.2k|  }

_ZNK11ArduinoJson8V740HB4221DeserializationOption12NestingLimit7reachedEv:
   23|  4.36k|  bool reached() const {
   24|  4.36k|    return value_ == 0;
   25|  4.36k|  }
_ZNK11ArduinoJson8V740HB4221DeserializationOption12NestingLimit9decrementEv:
   18|  13.7k|  NestingLimit decrement() const {
   19|  13.7k|    ARDUINOJSON_ASSERT(value_ > 0);
  ------------------
  |  |   11|  13.7k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   20|  13.7k|    return NestingLimit(static_cast<uint8_t>(value_ - 1));
   21|  13.7k|  }
_ZN11ArduinoJson8V740HB4221DeserializationOption12NestingLimitC2Eh:
   16|  13.7k|  explicit NestingLimit(uint8_t n) : value_(n) {}
_ZN11ArduinoJson8V740HB4221DeserializationOption12NestingLimitC2Ev:
   15|  2.46k|  NestingLimit() : value_(ARDUINOJSON_DEFAULT_NESTING_LIMIT) {}
  ------------------
  |  |   93|  2.46k|#  define ARDUINOJSON_DEFAULT_NESTING_LIMIT 10
  ------------------

_ZN11ArduinoJson8V740HB426detail10makeReaderIKhEENS1_13BoundedReaderIPT_vEES6_m:
   70|  2.46k|BoundedReader<TChar*> makeReader(TChar* input, size_t inputSize) {
   71|  2.46k|  return BoundedReader<TChar*>{input, inputSize};
   72|  2.46k|}

_ZN11ArduinoJson8V740HB426detail14IteratorReaderIPKcE4readEv:
   19|  75.2k|  int read() {
   20|  75.2k|    if (ptr_ < end_)
  ------------------
  |  Branch (20:9): [True: 73.2k, False: 1.95k]
  ------------------
   21|  73.2k|      return static_cast<unsigned char>(*ptr_++);
   22|  1.95k|    else
   23|  1.95k|      return -1;
   24|  75.2k|  }
_ZN11ArduinoJson8V740HB426detail14IteratorReaderIPKcEC2ES4_S4_:
   17|  2.46k|      : ptr_(begin), end_(end) {}

_ZN11ArduinoJson8V740HB426detail13BoundedReaderIPKhvEC2EPKvm:
   45|  2.46k|      : IteratorReader<const char*>(reinterpret_cast<const char*>(ptr),
   46|  2.46k|                                    reinterpret_cast<const char*>(ptr) + len) {}

_ZN11ArduinoJson8V740HB426detail11deserializeINS1_16JsonDeserializerERNS0_12JsonDocumentEKhmJETnNS1_9enable_ifIXsr11is_integralIT2_EE5valueEiE4typeELi0EEENS0_20DeserializationErrorEOT0_PT1_S8_DpT3_:
   74|  2.46k|                                 Size inputSize, Args... args) {
   75|  2.46k|  return doDeserialize<TDeserializer>(dst, makeReader(input, size_t(inputSize)),
   76|  2.46k|                                      makeDeserializationOptions(args...));
   77|  2.46k|}
_ZN11ArduinoJson8V740HB426detail13doDeserializeINS1_16JsonDeserializerERNS0_12JsonDocumentENS1_13BoundedReaderIPKhvEENS1_22DeserializationOptionsINS1_14AllowAllFilterEEEEENS0_20DeserializationErrorEOT0_T1_T2_:
   46|  2.46k|                                   TOptions options) {
   47|  2.46k|  auto data = VariantAttorney::getOrCreateData(dst);
   48|  2.46k|  if (!data)
  ------------------
  |  Branch (48:7): [True: 0, False: 2.46k]
  ------------------
   49|      0|    return DeserializationError::NoMemory;
   50|  2.46k|  auto resources = VariantAttorney::getResourceManager(dst);
   51|  2.46k|  dst.clear();
   52|  2.46k|  auto err = TDeserializer<TReader>(resources, reader)
   53|  2.46k|                 .parse(*data, options.filter, options.nestingLimit);
   54|  2.46k|  shrinkJsonDocument(dst);
   55|  2.46k|  return err;
   56|  2.46k|}
_ZN11ArduinoJson8V740HB426detail18shrinkJsonDocumentERNS0_12JsonDocumentE:
   38|  2.46k|inline void shrinkJsonDocument(JsonDocument& doc) {
   39|  2.46k|  doc.shrinkToFit();
   40|  2.46k|}

_ZN11ArduinoJson8V740HB4212JsonDocumentC2EPNS0_9AllocatorE:
   25|  2.46k|      : resources_(alloc) {}
_ZNK11ArduinoJson8V740HB4212JsonDocumentcvNS0_16JsonVariantConstEEv:
  332|    947|  operator JsonVariantConst() const {
  333|    947|    return getVariant();
  334|    947|  }
_ZNK11ArduinoJson8V740HB4212JsonDocument10getVariantEv:
  398|    947|  JsonVariantConst getVariant() const {
  399|    947|    return JsonVariantConst(&data_, &resources_);
  400|    947|  }
_ZN11ArduinoJson8V740HB4212JsonDocument15getOrCreateDataEv:
  414|  2.46k|  detail::VariantData* getOrCreateData() {
  415|  2.46k|    return &data_;
  416|  2.46k|  }
_ZN11ArduinoJson8V740HB4212JsonDocument18getResourceManagerEv:
  402|  2.46k|  detail::ResourceManager* getResourceManager() {
  403|  2.46k|    return &resources_;
  404|  2.46k|  }
_ZN11ArduinoJson8V740HB4212JsonDocument5clearEv:
   89|  2.46k|  void clear() {
   90|  2.46k|    resources_.clear();
   91|  2.46k|    data_.reset();
   92|  2.46k|  }
_ZN11ArduinoJson8V740HB4212JsonDocument11shrinkToFitEv:
   69|  2.46k|  void shrinkToFit() {
   70|  2.46k|    resources_.shrinkToFit();
   71|  2.46k|  }

_ZN11ArduinoJson8V740HB426detail14EscapeSequence10escapeCharEc:
   14|  1.00k|  static char escapeChar(char c) {
   15|  1.00k|    const char* p = escapeTable(true);
   16|  7.53k|    while (p[0] && p[1] != c) {
  ------------------
  |  Branch (16:12): [True: 6.76k, False: 763]
  |  Branch (16:20): [True: 6.52k, False: 241]
  ------------------
   17|  6.52k|      p += 2;
   18|  6.52k|    }
   19|  1.00k|    return p[0];
   20|  1.00k|  }
_ZN11ArduinoJson8V740HB426detail14EscapeSequence11escapeTableEb:
   35|  1.09k|  static const char* escapeTable(bool isSerializing) {
   36|  1.09k|    return &"//''\"\"\\\\b\bf\fn\nr\rt\t"[isSerializing ? 4 : 0];
  ------------------
  |  Branch (36:43): [True: 1.00k, False: 86]
  ------------------
   37|  1.09k|  }
_ZN11ArduinoJson8V740HB426detail14EscapeSequence12unescapeCharEc:
   23|     86|  static char unescapeChar(char c) {
   24|     86|    const char* p = escapeTable(false);
   25|    523|    for (;;) {
   26|    523|      if (p[0] == '\0')
  ------------------
  |  Branch (26:11): [True: 11, False: 512]
  ------------------
   27|     11|        return 0;
   28|    512|      if (p[0] == c)
  ------------------
  |  Branch (28:11): [True: 75, False: 437]
  ------------------
   29|     75|        return p[1];
   30|    437|      p += 2;
   31|    437|    }
   32|     86|  }

_ZN11ArduinoJson8V740HB4215deserializeJsonIRNS0_12JsonDocumentEKhJRmETnNS0_6detail9enable_ifIXsr6detail26is_deserialize_destinationIT_EE5valueEiE4typeELi0EEENS0_20DeserializationErrorEOS8_PT0_DpOT1_:
  714|  2.46k|                                            Args&&... args) {
  715|  2.46k|  using namespace detail;
  716|  2.46k|  return deserialize<JsonDeserializer>(detail::forward<TDestination>(dst),
  717|  2.46k|                                       input, detail::forward<Args>(args)...);
  718|  2.46k|}
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEEC2EPNS1_15ResourceManagerES6_:
   25|  2.46k|      : stringBuilder_(resources),
   26|  2.46k|        foundSomething_(false),
   27|  2.46k|        latch_(reader),
   28|  2.46k|        resources_(resources) {}
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE5parseINS1_14AllowAllFilterEEENS0_20DeserializationErrorERNS1_11VariantDataET_NS0_21DeserializationOption12NestingLimitE:
   32|  2.46k|                             DeserializationOption::NestingLimit nestingLimit) {
   33|  2.46k|    DeserializationError::Code err;
   34|       |
   35|  2.46k|    err = parseVariant(variant, filter, nestingLimit);
   36|       |
   37|  2.46k|    if (!err && latch_.last() != 0 && variant.isFloat()) {
  ------------------
  |  Branch (37:9): [True: 953, False: 1.51k]
  |  Branch (37:17): [True: 264, False: 689]
  |  Branch (37:39): [True: 6, False: 258]
  ------------------
   38|       |      // We don't detect trailing characters earlier, so we need to check now
   39|      6|      return DeserializationError::InvalidInput;
   40|      6|    }
   41|       |
   42|  2.45k|    return err;
   43|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE12parseVariantINS1_14AllowAllFilterEEENS0_20DeserializationError4CodeERNS1_11VariantDataET_NS0_21DeserializationOption12NestingLimitE:
   64|  16.2k|      DeserializationOption::NestingLimit nestingLimit) {
   65|  16.2k|    DeserializationError::Code err;
   66|       |
   67|  16.2k|    err = skipSpacesAndComments();
   68|  16.2k|    if (err)
  ------------------
  |  Branch (68:9): [True: 332, False: 15.9k]
  ------------------
   69|    332|      return err;
   70|       |
   71|  15.9k|    switch (current()) {
   72|  2.60k|      case '[':
  ------------------
  |  Branch (72:7): [True: 2.60k, False: 13.3k]
  ------------------
   73|  2.60k|        if (filter.allowArray())
  ------------------
  |  Branch (73:13): [True: 2.60k, False: 0]
  ------------------
   74|  2.60k|          return parseArray(variant.toArray(), filter, nestingLimit);
   75|      0|        else
   76|      0|          return skipArray(nestingLimit);
   77|       |
   78|  1.75k|      case '{':
  ------------------
  |  Branch (78:7): [True: 1.75k, False: 14.1k]
  ------------------
   79|  1.75k|        if (filter.allowObject())
  ------------------
  |  Branch (79:13): [True: 1.75k, False: 0]
  ------------------
   80|  1.75k|          return parseObject(variant.toObject(), filter, nestingLimit);
   81|      0|        else
   82|      0|          return skipObject(nestingLimit);
   83|       |
   84|    759|      case '\"':
  ------------------
  |  Branch (84:7): [True: 759, False: 15.1k]
  ------------------
   85|  1.28k|      case '\'':
  ------------------
  |  Branch (85:7): [True: 523, False: 15.3k]
  ------------------
   86|  1.28k|        if (filter.allowValue())
  ------------------
  |  Branch (86:13): [True: 1.28k, False: 0]
  ------------------
   87|  1.28k|          return parseStringValue(variant);
   88|      0|        else
   89|      0|          return skipQuotedString();
   90|       |
   91|    277|      case 't':
  ------------------
  |  Branch (91:7): [True: 277, False: 15.6k]
  ------------------
   92|    277|        if (filter.allowValue())
  ------------------
  |  Branch (92:13): [True: 277, False: 0]
  ------------------
   93|    277|          variant.setBoolean(true);
   94|    277|        return skipKeyword("true");
   95|       |
   96|    248|      case 'f':
  ------------------
  |  Branch (96:7): [True: 248, False: 15.6k]
  ------------------
   97|    248|        if (filter.allowValue())
  ------------------
  |  Branch (97:13): [True: 248, False: 0]
  ------------------
   98|    248|          variant.setBoolean(false);
   99|    248|        return skipKeyword("false");
  100|       |
  101|    279|      case 'n':
  ------------------
  |  Branch (101:7): [True: 279, False: 15.6k]
  ------------------
  102|       |        // the variant should already by null, except if the same object key was
  103|       |        // used twice, as in {"a":1,"a":null}
  104|    279|        return skipKeyword("null");
  105|       |
  106|  9.47k|      default:
  ------------------
  |  Branch (106:7): [True: 9.47k, False: 6.44k]
  ------------------
  107|  9.47k|        if (filter.allowValue())
  ------------------
  |  Branch (107:13): [True: 9.47k, False: 0]
  ------------------
  108|  9.47k|          return parseNumericValue(variant);
  109|      0|        else
  110|      0|          return skipNumericValue();
  111|  15.9k|    }
  112|  15.9k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE21skipSpacesAndCommentsEv:
  604|  36.8k|  DeserializationError::Code skipSpacesAndComments() {
  605|  42.9k|    for (;;) {
  606|  42.9k|      switch (current()) {
  607|       |        // end of string
  608|    931|        case '\0':
  ------------------
  |  Branch (608:9): [True: 931, False: 41.9k]
  ------------------
  609|    931|          return foundSomething_ ? DeserializationError::IncompleteInput
  ------------------
  |  Branch (609:18): [True: 898, False: 33]
  ------------------
  610|    931|                                 : DeserializationError::EmptyInput;
  611|       |
  612|       |        // spaces
  613|  1.57k|        case ' ':
  ------------------
  |  Branch (613:9): [True: 1.57k, False: 41.3k]
  ------------------
  614|  2.96k|        case '\t':
  ------------------
  |  Branch (614:9): [True: 1.39k, False: 41.5k]
  ------------------
  615|  4.37k|        case '\r':
  ------------------
  |  Branch (615:9): [True: 1.40k, False: 41.5k]
  ------------------
  616|  6.07k|        case '\n':
  ------------------
  |  Branch (616:9): [True: 1.69k, False: 41.2k]
  ------------------
  617|  6.07k|          move();
  618|  6.07k|          continue;
  619|       |
  620|       |#if ARDUINOJSON_ENABLE_COMMENTS
  621|       |        // comments
  622|       |        case '/':
  623|       |          move();  // skip '/'
  624|       |          switch (current()) {
  625|       |            // block comment
  626|       |            case '*': {
  627|       |              move();  // skip '*'
  628|       |              bool wasStar = false;
  629|       |              for (;;) {
  630|       |                char c = current();
  631|       |                if (c == '\0')
  632|       |                  return DeserializationError::IncompleteInput;
  633|       |                if (c == '/' && wasStar) {
  634|       |                  move();
  635|       |                  break;
  636|       |                }
  637|       |                wasStar = c == '*';
  638|       |                move();
  639|       |              }
  640|       |              break;
  641|       |            }
  642|       |
  643|       |            // trailing comment
  644|       |            case '/':
  645|       |              // no need to skip "//"
  646|       |              for (;;) {
  647|       |                move();
  648|       |                char c = current();
  649|       |                if (c == '\0')
  650|       |                  return DeserializationError::IncompleteInput;
  651|       |                if (c == '\n')
  652|       |                  break;
  653|       |              }
  654|       |              break;
  655|       |
  656|       |            // not a comment, just a '/'
  657|       |            default:
  658|       |              return DeserializationError::InvalidInput;
  659|       |          }
  660|       |          break;
  661|       |#endif
  662|       |
  663|  35.9k|        default:
  ------------------
  |  Branch (663:9): [True: 35.9k, False: 7.00k]
  ------------------
  664|  35.9k|          foundSomething_ = true;
  665|  35.9k|          return DeserializationError::Ok;
  666|  42.9k|      }
  667|  42.9k|    }
  668|  36.8k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE4moveEv:
   50|  73.2k|  void move() {
   51|  73.2k|    latch_.clear();
   52|  73.2k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE7currentEv:
   46|   155k|  char current() {
   47|   155k|    return latch_.current();
   48|   155k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE10parseArrayINS1_14AllowAllFilterEEENS0_20DeserializationError4CodeERNS1_9ArrayDataET_NS0_21DeserializationOption12NestingLimitE:
  150|  2.60k|      DeserializationOption::NestingLimit nestingLimit) {
  151|  2.60k|    DeserializationError::Code err;
  152|       |
  153|  2.60k|    if (nestingLimit.reached())
  ------------------
  |  Branch (153:9): [True: 5, False: 2.60k]
  ------------------
  154|      5|      return DeserializationError::TooDeep;
  155|       |
  156|       |    // Skip opening braket
  157|  2.60k|    ARDUINOJSON_ASSERT(current() == '[');
  ------------------
  |  |   11|  2.60k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  158|  2.60k|    move();
  159|       |
  160|       |    // Skip spaces
  161|  2.60k|    err = skipSpacesAndComments();
  162|  2.60k|    if (err)
  ------------------
  |  Branch (162:9): [True: 42, False: 2.55k]
  ------------------
  163|     42|      return err;
  164|       |
  165|       |    // Empty array?
  166|  2.55k|    if (eat(']'))
  ------------------
  |  Branch (166:9): [True: 169, False: 2.39k]
  ------------------
  167|    169|      return DeserializationError::Ok;
  168|       |
  169|  2.39k|    TFilter elementFilter = filter[0UL];
  170|       |
  171|       |    // Read each value
  172|  11.1k|    for (;;) {
  173|  11.1k|      if (elementFilter.allow()) {
  ------------------
  |  Branch (173:11): [True: 11.1k, False: 0]
  ------------------
  174|       |        // Allocate slot in array
  175|  11.1k|        VariantData* value = array.addElement(resources_);
  176|  11.1k|        if (!value)
  ------------------
  |  Branch (176:13): [True: 0, False: 11.1k]
  ------------------
  177|      0|          return DeserializationError::NoMemory;
  178|       |
  179|       |        // 1 - Parse value
  180|  11.1k|        err = parseVariant(*value, elementFilter, nestingLimit.decrement());
  181|  11.1k|        if (err)
  ------------------
  |  Branch (181:13): [True: 945, False: 10.2k]
  ------------------
  182|    945|          return err;
  183|  11.1k|      } else {
  184|      0|        err = skipVariant(nestingLimit.decrement());
  185|      0|        if (err)
  ------------------
  |  Branch (185:13): [True: 0, False: 0]
  ------------------
  186|      0|          return err;
  187|      0|      }
  188|       |
  189|       |      // 2 - Skip spaces
  190|  10.2k|      err = skipSpacesAndComments();
  191|  10.2k|      if (err)
  ------------------
  |  Branch (191:11): [True: 269, False: 9.96k]
  ------------------
  192|    269|        return err;
  193|       |
  194|       |      // 3 - More values?
  195|  9.96k|      if (eat(']'))
  ------------------
  |  Branch (195:11): [True: 1.15k, False: 8.80k]
  ------------------
  196|  1.15k|        return DeserializationError::Ok;
  197|  8.80k|      if (!eat(','))
  ------------------
  |  Branch (197:11): [True: 17, False: 8.79k]
  ------------------
  198|     17|        return DeserializationError::InvalidInput;
  199|  8.80k|    }
  200|  2.39k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE3eatEc:
   54|  28.8k|  bool eat(char charToSkip) {
   55|  28.8k|    if (current() != charToSkip)
  ------------------
  |  Branch (55:9): [True: 14.1k, False: 14.7k]
  ------------------
   56|  14.1k|      return false;
   57|  14.7k|    move();
   58|  14.7k|    return true;
   59|  28.8k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE11parseObjectINS1_14AllowAllFilterEEENS0_20DeserializationError4CodeERNS1_10ObjectDataET_NS0_21DeserializationOption12NestingLimitE:
  236|  1.75k|      DeserializationOption::NestingLimit nestingLimit) {
  237|  1.75k|    DeserializationError::Code err;
  238|       |
  239|  1.75k|    if (nestingLimit.reached())
  ------------------
  |  Branch (239:9): [True: 1, False: 1.75k]
  ------------------
  240|      1|      return DeserializationError::TooDeep;
  241|       |
  242|       |    // Skip opening brace
  243|  1.75k|    ARDUINOJSON_ASSERT(current() == '{');
  ------------------
  |  |   11|  1.75k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  244|  1.75k|    move();
  245|       |
  246|       |    // Skip spaces
  247|  1.75k|    err = skipSpacesAndComments();
  248|  1.75k|    if (err)
  ------------------
  |  Branch (248:9): [True: 45, False: 1.70k]
  ------------------
  249|     45|      return err;
  250|       |
  251|       |    // Empty object?
  252|  1.70k|    if (eat('}'))
  ------------------
  |  Branch (252:9): [True: 242, False: 1.46k]
  ------------------
  253|    242|      return DeserializationError::Ok;
  254|       |
  255|       |    // Read each key value pair
  256|  2.81k|    for (;;) {
  257|       |      // Parse key
  258|  2.81k|      err = parseKey();
  259|  2.81k|      if (err)
  ------------------
  |  Branch (259:11): [True: 50, False: 2.76k]
  ------------------
  260|     50|        return err;
  261|       |
  262|       |      // Skip spaces
  263|  2.76k|      err = skipSpacesAndComments();
  264|  2.76k|      if (err)
  ------------------
  |  Branch (264:11): [True: 130, False: 2.63k]
  ------------------
  265|    130|        return err;
  266|       |
  267|       |      // Colon
  268|  2.63k|      if (!eat(':'))
  ------------------
  |  Branch (268:11): [True: 25, False: 2.60k]
  ------------------
  269|     25|        return DeserializationError::InvalidInput;
  270|       |
  271|  2.60k|      JsonString key = stringBuilder_.str();
  272|       |
  273|  2.60k|      TFilter memberFilter = filter[key];
  274|       |
  275|  2.60k|      if (memberFilter.allow()) {
  ------------------
  |  Branch (275:11): [True: 2.60k, False: 0]
  ------------------
  276|  2.60k|        auto member = object.getMember(adaptString(key), resources_);
  277|  2.60k|        if (!member) {
  ------------------
  |  Branch (277:13): [True: 2.12k, False: 485]
  ------------------
  278|  2.12k|          auto keyVariant = object.addPair(&member, resources_);
  279|  2.12k|          if (!keyVariant)
  ------------------
  |  Branch (279:15): [True: 0, False: 2.12k]
  ------------------
  280|      0|            return DeserializationError::NoMemory;
  281|       |
  282|  2.12k|          stringBuilder_.save(keyVariant);
  283|  2.12k|        } else {
  284|    485|          member->clear(resources_);
  285|    485|        }
  286|       |
  287|       |        // Parse value
  288|  2.60k|        err = parseVariant(*member, memberFilter, nestingLimit.decrement());
  289|  2.60k|        if (err)
  ------------------
  |  Branch (289:13): [True: 763, False: 1.84k]
  ------------------
  290|    763|          return err;
  291|  2.60k|      } else {
  292|      0|        err = skipVariant(nestingLimit.decrement());
  293|      0|        if (err)
  ------------------
  |  Branch (293:13): [True: 0, False: 0]
  ------------------
  294|      0|          return err;
  295|      0|      }
  296|       |
  297|       |      // Skip spaces
  298|  1.84k|      err = skipSpacesAndComments();
  299|  1.84k|      if (err)
  ------------------
  |  Branch (299:11): [True: 73, False: 1.77k]
  ------------------
  300|     73|        return err;
  301|       |
  302|       |      // More keys/values?
  303|  1.77k|      if (eat('}'))
  ------------------
  |  Branch (303:11): [True: 364, False: 1.40k]
  ------------------
  304|    364|        return DeserializationError::Ok;
  305|  1.40k|      if (!eat(','))
  ------------------
  |  Branch (305:11): [True: 21, False: 1.38k]
  ------------------
  306|     21|        return DeserializationError::InvalidInput;
  307|       |
  308|       |      // Skip spaces
  309|  1.38k|      err = skipSpacesAndComments();
  310|  1.38k|      if (err)
  ------------------
  |  Branch (310:11): [True: 40, False: 1.34k]
  ------------------
  311|     40|        return err;
  312|  1.38k|    }
  313|  1.46k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE8parseKeyEv:
  373|  2.81k|  DeserializationError::Code parseKey() {
  374|  2.81k|    stringBuilder_.startString();
  375|  2.81k|    if (isQuote(current())) {
  ------------------
  |  Branch (375:9): [True: 181, False: 2.63k]
  ------------------
  376|    181|      return parseQuotedString();
  377|  2.63k|    } else {
  378|  2.63k|      return parseNonQuotedString();
  379|  2.63k|    }
  380|  2.81k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE7isQuoteEc:
  593|  2.81k|  static inline bool isQuote(char c) {
  594|  2.81k|    return c == '\'' || c == '\"';
  ------------------
  |  Branch (594:12): [True: 83, False: 2.72k]
  |  Branch (594:25): [True: 98, False: 2.63k]
  ------------------
  595|  2.81k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE17parseQuotedStringEv:
  396|  1.46k|  DeserializationError::Code parseQuotedString() {
  397|  1.46k|#if ARDUINOJSON_DECODE_UNICODE
  398|  1.46k|    Utf16::Codepoint codepoint;
  399|  1.46k|    DeserializationError::Code err;
  400|  1.46k|#endif
  401|  1.46k|    const char stopChar = current();
  402|       |
  403|  1.46k|    move();
  404|  5.60k|    for (;;) {
  405|  5.60k|      char c = current();
  406|  5.60k|      move();
  407|  5.60k|      if (c == stopChar)
  ------------------
  |  Branch (407:11): [True: 1.21k, False: 4.39k]
  ------------------
  408|  1.21k|        break;
  409|       |
  410|  4.39k|      if (c == '\0')
  ------------------
  |  Branch (410:11): [True: 209, False: 4.18k]
  ------------------
  411|    209|        return DeserializationError::IncompleteInput;
  412|       |
  413|  4.18k|      if (c == '\\') {
  ------------------
  |  Branch (413:11): [True: 718, False: 3.46k]
  ------------------
  414|    718|        c = current();
  415|       |
  416|    718|        if (c == '\0')
  ------------------
  |  Branch (416:13): [True: 2, False: 716]
  ------------------
  417|      2|          return DeserializationError::IncompleteInput;
  418|       |
  419|    716|        if (c == 'u') {
  ------------------
  |  Branch (419:13): [True: 630, False: 86]
  ------------------
  420|    630|#if ARDUINOJSON_DECODE_UNICODE
  421|    630|          move();
  422|    630|          uint16_t codeunit;
  423|    630|          err = parseHex4(codeunit);
  424|    630|          if (err)
  ------------------
  |  Branch (424:15): [True: 24, False: 606]
  ------------------
  425|     24|            return err;
  426|    606|          if (codepoint.append(codeunit))
  ------------------
  |  Branch (426:15): [True: 525, False: 81]
  ------------------
  427|    525|            Utf8::encodeCodepoint(codepoint.value(), stringBuilder_);
  428|       |#else
  429|       |          stringBuilder_.append('\\');
  430|       |#endif
  431|    606|          continue;
  432|    630|        }
  433|       |
  434|       |        // replace char
  435|     86|        c = EscapeSequence::unescapeChar(c);
  436|     86|        if (c == '\0')
  ------------------
  |  Branch (436:13): [True: 11, False: 75]
  ------------------
  437|     11|          return DeserializationError::InvalidInput;
  438|     75|        move();
  439|     75|      }
  440|       |
  441|  3.53k|      stringBuilder_.append(c);
  442|  3.53k|    }
  443|       |
  444|  1.21k|    if (!stringBuilder_.isValid())
  ------------------
  |  Branch (444:9): [True: 0, False: 1.21k]
  ------------------
  445|      0|      return DeserializationError::NoMemory;
  446|       |
  447|  1.21k|    return DeserializationError::Ok;
  448|  1.21k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE9parseHex4ERt:
  560|    630|  DeserializationError::Code parseHex4(uint16_t& result) {
  561|    630|    result = 0;
  562|  3.07k|    for (uint8_t i = 0; i < 4; ++i) {
  ------------------
  |  Branch (562:25): [True: 2.46k, False: 606]
  ------------------
  563|  2.46k|      char digit = current();
  564|  2.46k|      if (!digit)
  ------------------
  |  Branch (564:11): [True: 14, False: 2.45k]
  ------------------
  565|     14|        return DeserializationError::IncompleteInput;
  566|  2.45k|      uint8_t value = decodeHex(digit);
  567|  2.45k|      if (value > 0x0F)
  ------------------
  |  Branch (567:11): [True: 10, False: 2.44k]
  ------------------
  568|     10|        return DeserializationError::InvalidInput;
  569|  2.44k|      result = uint16_t((result << 4) | value);
  570|  2.44k|      move();
  571|  2.44k|    }
  572|    606|    return DeserializationError::Ok;
  573|    630|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE9decodeHexEc:
  597|  2.45k|  static inline uint8_t decodeHex(char c) {
  598|  2.45k|    if (c < 'A')
  ------------------
  |  Branch (598:9): [True: 1.64k, False: 814]
  ------------------
  599|  1.64k|      return uint8_t(c - '0');
  600|    814|    c = char(c & ~0x20);  // uppercase
  601|    814|    return uint8_t(c - 'A' + 10);
  602|  2.45k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE20parseNonQuotedStringEv:
  450|  2.63k|  DeserializationError::Code parseNonQuotedString() {
  451|  2.63k|    char c = current();
  452|  2.63k|    ARDUINOJSON_ASSERT(c);
  ------------------
  |  |   11|  2.63k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  453|       |
  454|  2.63k|    if (canBeInNonQuotedString(c)) {  // no quotes
  ------------------
  |  Branch (454:9): [True: 2.58k, False: 42]
  ------------------
  455|  5.24k|      do {
  456|  5.24k|        move();
  457|  5.24k|        stringBuilder_.append(c);
  458|  5.24k|        c = current();
  459|  5.24k|      } while (canBeInNonQuotedString(c));
  ------------------
  |  Branch (459:16): [True: 2.65k, False: 2.58k]
  ------------------
  460|  2.58k|    } else {
  461|     42|      return DeserializationError::InvalidInput;
  462|     42|    }
  463|       |
  464|  2.58k|    if (!stringBuilder_.isValid())
  ------------------
  |  Branch (464:9): [True: 0, False: 2.58k]
  ------------------
  465|      0|      return DeserializationError::NoMemory;
  466|       |
  467|  2.58k|    return DeserializationError::Ok;
  468|  2.58k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE22canBeInNonQuotedStringEc:
  588|  7.87k|  static inline bool canBeInNonQuotedString(char c) {
  589|  7.87k|    return isBetween(c, '0', '9') || isBetween(c, '_', 'z') ||
  ------------------
  |  Branch (589:12): [True: 1.78k, False: 6.09k]
  |  Branch (589:38): [True: 1.85k, False: 4.23k]
  ------------------
  590|  7.87k|           isBetween(c, 'A', 'Z');
  ------------------
  |  Branch (590:12): [True: 1.60k, False: 2.63k]
  ------------------
  591|  7.87k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE9isBetweenEccc:
  575|  57.0k|  static inline bool isBetween(char c, char min, char max) {
  576|  57.0k|    return min <= c && c <= max;
  ------------------
  |  Branch (576:12): [True: 35.2k, False: 21.7k]
  |  Branch (576:24): [True: 26.4k, False: 8.83k]
  ------------------
  577|  57.0k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE16parseStringValueERNS1_11VariantDataE:
  382|  1.28k|  DeserializationError::Code parseStringValue(VariantData& variant) {
  383|  1.28k|    DeserializationError::Code err;
  384|       |
  385|  1.28k|    stringBuilder_.startString();
  386|       |
  387|  1.28k|    err = parseQuotedString();
  388|  1.28k|    if (err)
  ------------------
  |  Branch (388:9): [True: 238, False: 1.04k]
  ------------------
  389|    238|      return err;
  390|       |
  391|  1.04k|    stringBuilder_.save(&variant);
  392|       |
  393|  1.04k|    return DeserializationError::Ok;
  394|  1.28k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE11skipKeywordEPKc:
  670|    804|  DeserializationError::Code skipKeyword(const char* s) {
  671|  4.02k|    while (*s) {
  ------------------
  |  Branch (671:12): [True: 3.30k, False: 722]
  ------------------
  672|  3.30k|      char c = current();
  673|  3.30k|      if (c == '\0')
  ------------------
  |  Branch (673:11): [True: 37, False: 3.26k]
  ------------------
  674|     37|        return DeserializationError::IncompleteInput;
  675|  3.26k|      if (*s != c)
  ------------------
  |  Branch (675:11): [True: 45, False: 3.21k]
  ------------------
  676|     45|        return DeserializationError::InvalidInput;
  677|  3.21k|      ++s;
  678|  3.21k|      move();
  679|  3.21k|    }
  680|    722|    return DeserializationError::Ok;
  681|    804|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE17parseNumericValueERNS1_11VariantDataE:
  507|  9.47k|  DeserializationError::Code parseNumericValue(VariantData& result) {
  508|  9.47k|    uint8_t n = 0;
  509|       |
  510|  9.47k|    char c = current();
  511|  38.8k|    while (canBeInNumber(c) && n < 63) {
  ------------------
  |  Branch (511:12): [True: 29.4k, False: 9.47k]
  |  Branch (511:32): [True: 29.4k, False: 2]
  ------------------
  512|  29.4k|      move();
  513|  29.4k|      buffer_[n++] = c;
  514|  29.4k|      c = current();
  515|  29.4k|    }
  516|  9.47k|    buffer_[n] = 0;
  517|       |
  518|  9.47k|    auto number = parseNumber(buffer_);
  519|  9.47k|    switch (number.type()) {
  520|  2.96k|      case NumberType::UnsignedInteger:
  ------------------
  |  Branch (520:7): [True: 2.96k, False: 6.51k]
  ------------------
  521|  2.96k|        if (result.setInteger(number.asUnsignedInteger(), resources_))
  ------------------
  |  Branch (521:13): [True: 2.96k, False: 0]
  ------------------
  522|  2.96k|          return DeserializationError::Ok;
  523|      0|        else
  524|      0|          return DeserializationError::NoMemory;
  525|       |
  526|    578|      case NumberType::SignedInteger:
  ------------------
  |  Branch (526:7): [True: 578, False: 8.89k]
  ------------------
  527|    578|        if (result.setInteger(number.asSignedInteger(), resources_))
  ------------------
  |  Branch (527:13): [True: 578, False: 0]
  ------------------
  528|    578|          return DeserializationError::Ok;
  529|      0|        else
  530|      0|          return DeserializationError::NoMemory;
  531|       |
  532|  4.76k|      case NumberType::Float:
  ------------------
  |  Branch (532:7): [True: 4.76k, False: 4.70k]
  ------------------
  533|  4.76k|        if (result.setFloat(number.asFloat(), resources_))
  ------------------
  |  Branch (533:13): [True: 4.76k, False: 0]
  ------------------
  534|  4.76k|          return DeserializationError::Ok;
  535|      0|        else
  536|      0|          return DeserializationError::NoMemory;
  537|       |
  538|      0|#if ARDUINOJSON_USE_DOUBLE
  539|  1.02k|      case NumberType::Double:
  ------------------
  |  Branch (539:7): [True: 1.02k, False: 8.45k]
  ------------------
  540|  1.02k|        if (result.setFloat(number.asDouble(), resources_))
  ------------------
  |  Branch (540:13): [True: 1.02k, False: 0]
  ------------------
  541|  1.02k|          return DeserializationError::Ok;
  542|      0|        else
  543|      0|          return DeserializationError::NoMemory;
  544|      0|#endif
  545|       |
  546|    142|      default:
  ------------------
  |  Branch (546:7): [True: 142, False: 9.33k]
  ------------------
  547|    142|        return DeserializationError::InvalidInput;
  548|  9.47k|    }
  549|  9.47k|  }
_ZN11ArduinoJson8V740HB426detail16JsonDeserializerINS1_13BoundedReaderIPKhvEEE13canBeInNumberEc:
  579|  38.8k|  static inline bool canBeInNumber(char c) {
  580|  38.8k|    return isBetween(c, '0', '9') || c == '+' || c == '-' || c == '.' ||
  ------------------
  |  Branch (580:12): [True: 21.2k, False: 17.6k]
  |  Branch (580:38): [True: 428, False: 17.2k]
  |  Branch (580:50): [True: 1.42k, False: 15.8k]
  |  Branch (580:62): [True: 4.17k, False: 11.6k]
  ------------------
  581|       |#if ARDUINOJSON_ENABLE_NAN || ARDUINOJSON_ENABLE_INFINITY
  582|       |           isBetween(c, 'A', 'Z') || isBetween(c, 'a', 'z');
  583|       |#else
  584|  38.8k|           c == 'e' || c == 'E';
  ------------------
  |  Branch (584:12): [True: 585, False: 11.0k]
  |  Branch (584:24): [True: 1.57k, False: 9.47k]
  ------------------
  585|  38.8k|#endif
  586|  38.8k|  }

_ZN11ArduinoJson8V740HB4213serializeJsonINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEETnNS0_6detail9enable_ifIXntsr6detail10is_pointerIT_EE5valueEiE4typeELi0EEEmNS0_16JsonVariantConstERSB_:
  135|    947|size_t serializeJson(JsonVariantConst source, TDestination& destination) {
  136|    947|  using namespace detail;
  137|    947|  return serialize<JsonSerializer>(source, destination);
  138|    947|}
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEEC2ESB_PKNS1_15ResourceManagerE:
   20|    947|      : formatter_(writer), resources_(resources) {}
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitIfEENS1_9enable_ifIXsr17is_floating_pointIT_EE5valueEmE4typeESF_:
   66|  1.15k|  enable_if_t<is_floating_point<T>::value, size_t> visit(T value) {
   67|  1.15k|    formatter_.writeFloat(value);
   68|  1.15k|    return bytesWritten();
   69|  1.15k|  }
_ZNK11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12bytesWrittenEv:
  107|  3.81k|  size_t bytesWritten() const {
  108|  3.81k|    return formatter_.bytesWritten();
  109|  3.81k|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitIdEENS1_9enable_ifIXsr17is_floating_pointIT_EE5valueEmE4typeESF_:
   66|    318|  enable_if_t<is_floating_point<T>::value, size_t> visit(T value) {
   67|    318|    formatter_.writeFloat(value);
   68|    318|    return bytesWritten();
   69|    318|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitERKNS1_9ArrayDataE:
   22|    433|  size_t visit(const ArrayData& array) {
   23|    433|    write('[');
   24|       |
   25|    433|    auto slotId = array.head();
   26|       |
   27|  2.93k|    while (slotId != NULL_SLOT) {
  ------------------
  |  Branch (27:12): [True: 2.49k, False: 433]
  ------------------
   28|  2.49k|      auto slot = resources_->getVariant(slotId);
   29|       |
   30|  2.49k|      slot->accept(*this, resources_);
   31|       |
   32|  2.49k|      slotId = slot->next();
   33|       |
   34|  2.49k|      if (slotId != NULL_SLOT)
  ------------------
  |  Branch (34:11): [True: 2.14k, False: 357]
  ------------------
   35|  2.14k|        write(',');
   36|  2.49k|    }
   37|       |
   38|    433|    write(']');
   39|    433|    return bytesWritten();
   40|    433|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5writeEc:
  111|  3.62k|  void write(char c) {
  112|  3.62k|    formatter_.writeRaw(c);
  113|  3.62k|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitERKNS1_10ObjectDataE:
   42|    175|  size_t visit(const ObjectData& object) {
   43|    175|    write('{');
   44|       |
   45|    175|    auto slotId = object.head();
   46|       |
   47|    175|    bool isKey = true;
   48|       |
   49|    547|    while (slotId != NULL_SLOT) {
  ------------------
  |  Branch (49:12): [True: 372, False: 175]
  ------------------
   50|    372|      auto slot = resources_->getVariant(slotId);
   51|    372|      slot->accept(*this, resources_);
   52|       |
   53|    372|      slotId = slot->next();
   54|       |
   55|    372|      if (slotId != NULL_SLOT)
  ------------------
  |  Branch (55:11): [True: 264, False: 108]
  ------------------
   56|    264|        write(isKey ? ':' : ',');
  ------------------
  |  Branch (56:15): [True: 186, False: 78]
  ------------------
   57|       |
   58|    372|      isKey = !isKey;
   59|    372|    }
   60|       |
   61|    175|    write('}');
   62|    175|    return bytesWritten();
   63|    175|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitENS0_10JsonStringE:
   76|    321|  size_t visit(JsonString value) {
   77|    321|    formatter_.writeString(value.c_str(), value.size());
   78|    321|    return bytesWritten();
   79|    321|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitEl:
   86|    422|  size_t visit(JsonInteger value) {
   87|    422|    formatter_.writeInteger(value);
   88|    422|    return bytesWritten();
   89|    422|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitEm:
   91|    794|  size_t visit(JsonUInt value) {
   92|    794|    formatter_.writeInteger(value);
   93|    794|    return bytesWritten();
   94|    794|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitEb:
   96|    132|  size_t visit(bool value) {
   97|    132|    formatter_.writeBoolean(value);
   98|    132|    return bytesWritten();
   99|    132|  }
_ZN11ArduinoJson8V740HB426detail14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5visitEDn:
  101|     66|  size_t visit(nullptr_t) {
  102|     66|    formatter_.writeRaw("null");
  103|     66|    return bytesWritten();
  104|     66|  }

_ZN11ArduinoJson8V740HB426detail5LatchINS1_13BoundedReaderIPKhvEEEC2ES6_:
   14|  2.46k|  Latch(TReader reader) : reader_(reader), loaded_(false) {
   15|  2.46k|#if ARDUINOJSON_DEBUG
   16|  2.46k|    ended_ = false;
   17|  2.46k|#endif
   18|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail5LatchINS1_13BoundedReaderIPKhvEEE5clearEv:
   20|  73.2k|  void clear() {
   21|  73.2k|    loaded_ = false;
   22|  73.2k|  }
_ZN11ArduinoJson8V740HB426detail5LatchINS1_13BoundedReaderIPKhvEEE7currentEv:
   28|   155k|  FORCE_INLINE char current() {
   29|   155k|    if (!loaded_) {
  ------------------
  |  Branch (29:9): [True: 75.2k, False: 79.9k]
  ------------------
   30|  75.2k|      load();
   31|  75.2k|    }
   32|   155k|    return current_;
   33|   155k|  }
_ZN11ArduinoJson8V740HB426detail5LatchINS1_13BoundedReaderIPKhvEEE4loadEv:
   36|  75.2k|  void load() {
   37|  75.2k|    ARDUINOJSON_ASSERT(!ended_);
  ------------------
  |  |   11|  75.2k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   38|  75.2k|    int c = reader_.read();
   39|  75.2k|#if ARDUINOJSON_DEBUG
   40|  75.2k|    if (c <= 0)
  ------------------
  |  Branch (40:9): [True: 1.97k, False: 73.2k]
  ------------------
   41|  1.97k|      ended_ = true;
   42|  75.2k|#endif
   43|  75.2k|    current_ = static_cast<char>(c > 0 ? c : 0);
  ------------------
  |  Branch (43:34): [True: 73.2k, False: 1.97k]
  ------------------
   44|  75.2k|    loaded_ = true;
   45|  75.2k|  }
_ZNK11ArduinoJson8V740HB426detail5LatchINS1_13BoundedReaderIPKhvEEE4lastEv:
   24|    953|  int last() const {
   25|    953|    return current_;
   26|    953|  }

_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEEC2ESB_:
   23|    947|  explicit TextFormatter(TWriter writer) : writer_(writer) {}
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE10writeFloatIfEEvT_:
   68|  1.15k|  void writeFloat(T value) {
   69|  1.15k|    writeFloat(JsonFloat(value), sizeof(T) >= 8 ? 9 : 6);
  ------------------
  |  Branch (69:34): [Folded - Ignored]
  ------------------
   70|  1.15k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE10writeFloatEda:
   72|  1.47k|  void writeFloat(JsonFloat value, int8_t decimalPlaces) {
   73|  1.47k|    if (isnan(value))
  ------------------
  |  Branch (73:9): [True: 0, False: 1.47k]
  ------------------
   74|      0|      return writeRaw(ARDUINOJSON_ENABLE_NAN ? "NaN" : "null");
  ------------------
  |  |  219|      0|#  define ARDUINOJSON_ENABLE_NAN 0
  |  |  ------------------
  |  |  |  Branch (219:34): [Folded - Ignored]
  |  |  ------------------
  ------------------
   75|       |
   76|       |#if ARDUINOJSON_ENABLE_INFINITY
   77|       |    if (value < 0.0) {
   78|       |      writeRaw('-');
   79|       |      value = -value;
   80|       |    }
   81|       |
   82|       |    if (isinf(value))
   83|       |      return writeRaw("Infinity");
   84|       |#else
   85|  1.47k|    if (isinf(value))
  ------------------
  |  Branch (85:9): [True: 68, False: 1.40k]
  ------------------
   86|     68|      return writeRaw("null");
   87|       |
   88|  1.40k|    if (value < 0.0) {
  ------------------
  |  Branch (88:9): [True: 71, False: 1.33k]
  ------------------
   89|     71|      writeRaw('-');
   90|     71|      value = -value;
   91|     71|    }
   92|  1.40k|#endif
   93|       |
   94|  1.40k|    auto parts = decomposeFloat(value, decimalPlaces);
   95|       |
   96|  1.40k|    writeInteger(parts.integral);
   97|  1.40k|    if (parts.decimalPlaces)
  ------------------
  |  Branch (97:9): [True: 284, False: 1.12k]
  ------------------
   98|    284|      writeDecimals(parts.decimal, parts.decimalPlaces);
   99|       |
  100|  1.40k|    if (parts.exponent) {
  ------------------
  |  Branch (100:9): [True: 515, False: 890]
  ------------------
  101|    515|      writeRaw('e');
  102|    515|      writeInteger(parts.exponent);
  103|    515|    }
  104|  1.40k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE8writeRawEPKc:
  152|    332|  void writeRaw(const char* s) {
  153|    332|    writer_.write(reinterpret_cast<const uint8_t*>(s), strlen(s));
  154|    332|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE8writeRawEc:
  169|  6.49k|  void writeRaw(char c) {
  170|  6.49k|    writer_.write(static_cast<uint8_t>(c));
  171|  6.49k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12writeIntegerIjEENS1_9enable_ifIXsr11is_unsignedIT_EE5valueEvE4typeESF_:
  120|  1.40k|  enable_if_t<is_unsigned<T>::value> writeInteger(T value) {
  121|  1.40k|    char buffer[22];
  122|  1.40k|    char* end = buffer + sizeof(buffer);
  123|  1.40k|    char* begin = end;
  124|       |
  125|       |    // write the string in reverse order
  126|  2.47k|    do {
  127|  2.47k|      *--begin = char(value % 10 + '0');
  128|  2.47k|      value = T(value / 10);
  129|  2.47k|    } while (value);
  ------------------
  |  Branch (129:14): [True: 1.06k, False: 1.40k]
  ------------------
  130|       |
  131|       |    // and dump it in the right order
  132|  1.40k|    writeRaw(begin, end);
  133|  1.40k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE8writeRawEPKcSE_:
  160|  3.42k|  void writeRaw(const char* begin, const char* end) {
  161|  3.42k|    writer_.write(reinterpret_cast<const uint8_t*>(begin),
  162|  3.42k|                  static_cast<size_t>(end - begin));
  163|  3.42k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE13writeDecimalsEja:
  135|    284|  void writeDecimals(uint32_t value, int8_t width) {
  136|       |    // buffer should be big enough for all digits and the dot
  137|    284|    char buffer[16];
  138|    284|    char* end = buffer + sizeof(buffer);
  139|    284|    char* begin = end;
  140|       |
  141|       |    // write the string in reverse order
  142|  1.82k|    while (width--) {
  ------------------
  |  Branch (142:12): [True: 1.53k, False: 284]
  ------------------
  143|  1.53k|      *--begin = char(value % 10 + '0');
  144|  1.53k|      value /= 10;
  145|  1.53k|    }
  146|    284|    *--begin = '.';
  147|       |
  148|       |    // and dump it in the right order
  149|    284|    writeRaw(begin, end);
  150|    284|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12writeIntegerIsEENS1_9enable_ifIXsr9is_signedIT_EE5valueEvE4typeESF_:
  107|    515|  enable_if_t<is_signed<T>::value> writeInteger(T value) {
  108|    515|    using unsigned_type = make_unsigned_t<T>;
  109|    515|    unsigned_type unsigned_value;
  110|    515|    if (value < 0) {
  ------------------
  |  Branch (110:9): [True: 114, False: 401]
  ------------------
  111|    114|      writeRaw('-');
  112|    114|      unsigned_value = unsigned_type(unsigned_type(~value) + 1);
  113|    401|    } else {
  114|    401|      unsigned_value = unsigned_type(value);
  115|    401|    }
  116|    515|    writeInteger(unsigned_value);
  117|    515|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12writeIntegerItEENS1_9enable_ifIXsr11is_unsignedIT_EE5valueEvE4typeESF_:
  120|    515|  enable_if_t<is_unsigned<T>::value> writeInteger(T value) {
  121|    515|    char buffer[22];
  122|    515|    char* end = buffer + sizeof(buffer);
  123|    515|    char* begin = end;
  124|       |
  125|       |    // write the string in reverse order
  126|    937|    do {
  127|    937|      *--begin = char(value % 10 + '0');
  128|    937|      value = T(value / 10);
  129|    937|    } while (value);
  ------------------
  |  Branch (129:14): [True: 422, False: 515]
  ------------------
  130|       |
  131|       |    // and dump it in the right order
  132|    515|    writeRaw(begin, end);
  133|    515|  }
_ZNK11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12bytesWrittenEv:
   28|  3.81k|  size_t bytesWritten() const {
   29|  3.81k|    return writer_.count();
   30|  3.81k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE10writeFloatIdEEvT_:
   68|    318|  void writeFloat(T value) {
   69|    318|    writeFloat(JsonFloat(value), sizeof(T) >= 8 ? 9 : 6);
  ------------------
  |  Branch (69:34): [Folded - Ignored]
  ------------------
   70|    318|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE11writeStringEPKcm:
   47|    321|  void writeString(const char* value, size_t n) {
   48|    321|    ARDUINOJSON_ASSERT(value != NULL);
  ------------------
  |  |   11|    321|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   49|    321|    writeRaw('\"');
   50|  1.32k|    while (n--)
  ------------------
  |  Branch (50:12): [True: 1.00k, False: 321]
  ------------------
   51|  1.00k|      writeChar(*value++);
   52|    321|    writeRaw('\"');
   53|    321|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE9writeCharEc:
   55|  1.00k|  void writeChar(char c) {
   56|  1.00k|    char specialChar = EscapeSequence::escapeChar(c);
   57|  1.00k|    if (specialChar) {
  ------------------
  |  Branch (57:9): [True: 241, False: 763]
  ------------------
   58|    241|      writeRaw('\\');
   59|    241|      writeRaw(specialChar);
   60|    763|    } else if (c) {
  ------------------
  |  Branch (60:16): [True: 697, False: 66]
  ------------------
   61|    697|      writeRaw(c);
   62|    697|    } else {
   63|     66|      writeRaw("\\u0000");
   64|     66|    }
   65|  1.00k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12writeIntegerIlEENS1_9enable_ifIXsr9is_signedIT_EE5valueEvE4typeESF_:
  107|    422|  enable_if_t<is_signed<T>::value> writeInteger(T value) {
  108|    422|    using unsigned_type = make_unsigned_t<T>;
  109|    422|    unsigned_type unsigned_value;
  110|    422|    if (value < 0) {
  ------------------
  |  Branch (110:9): [True: 356, False: 66]
  ------------------
  111|    356|      writeRaw('-');
  112|    356|      unsigned_value = unsigned_type(unsigned_type(~value) + 1);
  113|    356|    } else {
  114|     66|      unsigned_value = unsigned_type(value);
  115|     66|    }
  116|    422|    writeInteger(unsigned_value);
  117|    422|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12writeIntegerImEENS1_9enable_ifIXsr11is_unsignedIT_EE5valueEvE4typeESF_:
  120|  1.21k|  enable_if_t<is_unsigned<T>::value> writeInteger(T value) {
  121|  1.21k|    char buffer[22];
  122|  1.21k|    char* end = buffer + sizeof(buffer);
  123|  1.21k|    char* begin = end;
  124|       |
  125|       |    // write the string in reverse order
  126|  7.57k|    do {
  127|  7.57k|      *--begin = char(value % 10 + '0');
  128|  7.57k|      value = T(value / 10);
  129|  7.57k|    } while (value);
  ------------------
  |  Branch (129:14): [True: 6.36k, False: 1.21k]
  ------------------
  130|       |
  131|       |    // and dump it in the right order
  132|  1.21k|    writeRaw(begin, end);
  133|  1.21k|  }
_ZN11ArduinoJson8V740HB426detail13TextFormatterINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE12writeBooleanEb:
   32|    132|  void writeBoolean(bool value) {
   33|    132|    if (value)
  ------------------
  |  Branch (33:9): [True: 66, False: 66]
  ------------------
   34|     66|      writeRaw("true");
   35|     66|    else
   36|     66|      writeRaw("false");
   37|    132|  }

_ZN11ArduinoJson8V740HB426detail5Utf169CodepointC2Ev:
   34|  1.46k|  Codepoint() : highSurrogate_(0), codepoint_(0) {}
_ZN11ArduinoJson8V740HB426detail5Utf169Codepoint6appendEt:
   36|    606|  bool append(uint16_t codeunit) {
   37|    606|    if (isHighSurrogate(codeunit)) {
  ------------------
  |  Branch (37:9): [True: 81, False: 525]
  ------------------
   38|     81|      highSurrogate_ = codeunit & 0x3FF;
   39|     81|      return false;
   40|     81|    }
   41|       |
   42|    525|    if (isLowSurrogate(codeunit)) {
  ------------------
  |  Branch (42:9): [True: 161, False: 364]
  ------------------
   43|    161|      codepoint_ =
   44|    161|          uint32_t(0x10000 + ((highSurrogate_ << 10) | (codeunit & 0x3FF)));
   45|    161|      return true;
   46|    161|    }
   47|       |
   48|    364|    codepoint_ = codeunit;
   49|    364|    return true;
   50|    525|  }
_ZN11ArduinoJson8V740HB426detail5Utf1615isHighSurrogateEt:
   24|    606|inline bool isHighSurrogate(uint16_t codeunit) {
   25|    606|  return codeunit >= 0xD800 && codeunit < 0xDC00;
  ------------------
  |  Branch (25:10): [True: 259, False: 347]
  |  Branch (25:32): [True: 81, False: 178]
  ------------------
   26|    606|}
_ZN11ArduinoJson8V740HB426detail5Utf1614isLowSurrogateEt:
   28|    525|inline bool isLowSurrogate(uint16_t codeunit) {
   29|    525|  return codeunit >= 0xDC00 && codeunit < 0xE000;
  ------------------
  |  Branch (29:10): [True: 178, False: 347]
  |  Branch (29:32): [True: 161, False: 17]
  ------------------
   30|    525|}
_ZNK11ArduinoJson8V740HB426detail5Utf169Codepoint5valueEv:
   52|    525|  uint32_t value() const {
   53|    525|    return codepoint_;
   54|    525|  }

_ZN11ArduinoJson8V740HB426detail4Utf815encodeCodepointINS1_13StringBuilderEEEvjRT_:
   13|    525|inline void encodeCodepoint(uint32_t codepoint32, TStringBuilder& str) {
   14|       |  // this function was optimize for code size on AVR
   15|       |
   16|    525|  if (codepoint32 < 0x80) {
  ------------------
  |  Branch (16:7): [True: 191, False: 334]
  ------------------
   17|    191|    str.append(char(codepoint32));
   18|    334|  } else {
   19|       |    // a buffer to store the string in reverse
   20|    334|    char buf[5];
   21|    334|    char* p = buf;
   22|       |
   23|    334|    *(p++) = 0;
   24|    334|    *(p++) = char((codepoint32 | 0x80) & 0xBF);
   25|    334|    uint16_t codepoint16 = uint16_t(codepoint32 >> 6);
   26|    334|    if (codepoint16 < 0x20) {  // 0x800
  ------------------
  |  Branch (26:9): [True: 71, False: 263]
  ------------------
   27|     71|      *(p++) = char(codepoint16 | 0xC0);
   28|    263|    } else {
   29|    263|      *(p++) = char((codepoint16 | 0x80) & 0xBF);
   30|    263|      codepoint16 = uint16_t(codepoint16 >> 6);
   31|    263|      if (codepoint16 < 0x10) {  // 0x10000
  ------------------
  |  Branch (31:11): [True: 102, False: 161]
  ------------------
   32|    102|        *(p++) = char(codepoint16 | 0xE0);
   33|    161|      } else {
   34|    161|        *(p++) = char((codepoint16 | 0x80) & 0xBF);
   35|    161|        codepoint16 = uint16_t(codepoint16 >> 6);
   36|    161|        *(p++) = char(codepoint16 | 0xF0);
   37|    161|      }
   38|    263|    }
   39|       |
   40|  1.42k|    while (*(--p)) {
  ------------------
  |  Branch (40:12): [True: 1.09k, False: 334]
  ------------------
   41|  1.09k|      str.append(*p);
   42|  1.09k|    }
   43|    334|  }
   44|    525|}

_ZN11ArduinoJson8V740HB426detail16DefaultAllocator8instanceEv:
   38|  2.46k|  static Allocator* instance() {
   39|  2.46k|    static DefaultAllocator allocator;
   40|  2.46k|    return &allocator;
   41|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail16DefaultAllocator8allocateEm:
   26|  2.59k|  void* allocate(size_t size) override {
   27|  2.59k|    return malloc(size);
   28|  2.59k|  }
_ZN11ArduinoJson8V740HB426detail16DefaultAllocator10deallocateEPv:
   30|  2.59k|  void deallocate(void* ptr) override {
   31|  2.59k|    free(ptr);
   32|  2.59k|  }
_ZN11ArduinoJson8V740HB426detail16DefaultAllocator10reallocateEPvm:
   34|  1.85k|  void* reallocate(void* ptr, size_t new_size) override {
   35|  1.85k|    return realloc(ptr, new_size);
   36|  1.85k|  }

_ZN11ArduinoJson8V740HB426detail10MemoryPoolINS1_15ResourceManager8SlotDataEE7destroyEPNS0_9AllocatorE:
   57|  1.57k|  void destroy(Allocator* allocator) {
   58|  1.57k|    if (slots_)
  ------------------
  |  Branch (58:9): [True: 1.57k, False: 0]
  ------------------
   59|  1.57k|      allocator->deallocate(slots_);
   60|  1.57k|    slots_ = nullptr;
   61|  1.57k|    capacity_ = 0;
   62|  1.57k|    usage_ = 0;
   63|  1.57k|  }
_ZNK11ArduinoJson8V740HB426detail10MemoryPoolINS1_15ResourceManager8SlotDataEE7getSlotEj:
   74|  22.3k|  T* getSlot(SlotId id) const {
   75|  22.3k|    ARDUINOJSON_ASSERT(id < usage_);
  ------------------
  |  |   11|  22.3k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   76|  22.3k|    return slots_ + id;
   77|  22.3k|  }
_ZN11ArduinoJson8V740HB426detail4SlotINS1_15ResourceManager8SlotDataEEC2EPS4_j:
   21|  34.3k|  Slot(T* p, SlotId id) : ptr_(p), id_(id) {
   22|  34.3k|    ARDUINOJSON_ASSERT((p == nullptr) == (id == NULL_SLOT));
  ------------------
  |  |   11|  34.3k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   23|  34.3k|  }
_ZN11ArduinoJson8V740HB426detail10MemoryPoolINS1_15ResourceManager8SlotDataEE9allocSlotEv:
   65|  16.4k|  Slot<T> allocSlot() {
   66|  16.4k|    if (!slots_)
  ------------------
  |  Branch (66:9): [True: 0, False: 16.4k]
  ------------------
   67|      0|      return {};
   68|  16.4k|    if (usage_ >= capacity_)
  ------------------
  |  Branch (68:9): [True: 0, False: 16.4k]
  ------------------
   69|      0|      return {};
   70|  16.4k|    auto index = usage_++;
   71|  16.4k|    return {slots_ + index, SlotId(index)};
   72|  16.4k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_15ResourceManager8SlotDataEE3ptrEv:
   33|  17.7k|  T* ptr() const {
   34|  17.7k|    return ptr_;
   35|  17.7k|  }
_ZN11ArduinoJson8V740HB426detail10MemoryPoolINS1_15ResourceManager8SlotDataEE6createEjPNS0_9AllocatorE:
   50|  1.57k|  void create(SlotCount cap, Allocator* allocator) {
   51|  1.57k|    ARDUINOJSON_ASSERT(cap > 0);
  ------------------
  |  |   11|  1.57k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   52|  1.57k|    slots_ = reinterpret_cast<T*>(allocator->allocate(slotsToBytes(cap)));
   53|  1.57k|    capacity_ = slots_ ? cap : 0;
  ------------------
  |  Branch (53:17): [True: 1.57k, False: 0]
  ------------------
   54|  1.57k|    usage_ = 0;
   55|  1.57k|  }
_ZN11ArduinoJson8V740HB426detail10MemoryPoolINS1_15ResourceManager8SlotDataEE12slotsToBytesEj:
  100|  3.15k|  static size_t slotsToBytes(SlotCount n) {
  101|  3.15k|    return n * sizeof(T);
  102|  3.15k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_15ResourceManager8SlotDataEEcvbEv:
   25|  47.8k|  explicit operator bool() const {
   26|  47.8k|    return ptr_ != nullptr;
   27|  47.8k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_15ResourceManager8SlotDataEEptEv:
   37|  16.5k|  T* operator->() const {
   38|  16.5k|    ARDUINOJSON_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   11|  16.5k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   39|  16.5k|    return ptr_;
   40|  16.5k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_15ResourceManager8SlotDataEE2idEv:
   29|  34.3k|  SlotId id() const {
   30|  34.3k|    return id_;
   31|  34.3k|  }
_ZN11ArduinoJson8V740HB426detail4SlotINS1_11VariantDataEEC2EPS3_j:
   21|  16.6k|  Slot(T* p, SlotId id) : ptr_(p), id_(id) {
   22|  16.6k|    ARDUINOJSON_ASSERT((p == nullptr) == (id == NULL_SLOT));
  ------------------
  |  |   11|  16.6k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   23|  16.6k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_11VariantDataEEcvbEv:
   25|  15.4k|  explicit operator bool() const {
   26|  15.4k|    return ptr_ != nullptr;
   27|  15.4k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_11VariantDataEE2idEv:
   29|  29.9k|  SlotId id() const {
   30|  29.9k|    return id_;
   31|  29.9k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_11VariantDataEE3ptrEv:
   33|  16.6k|  T* ptr() const {
   34|  16.6k|    return ptr_;
   35|  16.6k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_11VariantDataEEptEv:
   37|  3.37k|  T* operator->() const {
   38|  3.37k|    ARDUINOJSON_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   11|  3.37k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   39|  3.37k|    return ptr_;
   40|  3.37k|  }
_ZN11ArduinoJson8V740HB426detail4SlotINS1_16VariantExtensionEEC2EPS3_j:
   21|  1.17k|  Slot(T* p, SlotId id) : ptr_(p), id_(id) {
   22|  1.17k|    ARDUINOJSON_ASSERT((p == nullptr) == (id == NULL_SLOT));
  ------------------
  |  |   11|  1.17k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   23|  1.17k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_16VariantExtensionEEcvbEv:
   25|  1.17k|  explicit operator bool() const {
   26|  1.17k|    return ptr_ != nullptr;
   27|  1.17k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_16VariantExtensionEE2idEv:
   29|  1.17k|  SlotId id() const {
   30|  1.17k|    return id_;
   31|  1.17k|  }
_ZNK11ArduinoJson8V740HB426detail4SlotINS1_16VariantExtensionEEptEv:
   37|  1.17k|  T* operator->() const {
   38|  1.17k|    ARDUINOJSON_ASSERT(ptr_ != nullptr);
  ------------------
  |  |   11|  1.17k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   39|  1.17k|    return ptr_;
   40|  1.17k|  }
_ZN11ArduinoJson8V740HB426detail10MemoryPoolINS1_15ResourceManager8SlotDataEE11shrinkToFitEPNS0_9AllocatorE:
   83|  1.57k|  void shrinkToFit(Allocator* allocator) {
   84|  1.57k|    auto newSlots = reinterpret_cast<T*>(
   85|  1.57k|        allocator->reallocate(slots_, slotsToBytes(usage_)));
   86|  1.57k|    if (newSlots) {
  ------------------
  |  Branch (86:9): [True: 1.57k, False: 0]
  ------------------
   87|  1.57k|      slots_ = newSlots;
   88|  1.57k|      capacity_ = usage_;
   89|  1.57k|    }
   90|  1.57k|  }

_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEEC2Ev:
   28|  2.46k|  MemoryPoolList() = default;
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE5clearEPNS0_9AllocatorE:
  117|  4.93k|  void clear(Allocator* allocator) {
  118|  6.50k|    for (PoolCount i = 0; i < count_; i++)
  ------------------
  |  Branch (118:27): [True: 1.57k, False: 4.93k]
  ------------------
  119|  1.57k|      pools_[i].destroy(allocator);
  120|  4.93k|    count_ = 0;
  121|  4.93k|    freeList_ = NULL_SLOT;
  122|  4.93k|    if (pools_ != preallocatedPools_) {
  ------------------
  |  Branch (122:9): [True: 0, False: 4.93k]
  ------------------
  123|      0|      allocator->deallocate(pools_);
  124|      0|      pools_ = preallocatedPools_;
  125|      0|      capacity_ = ARDUINOJSON_INITIAL_POOL_COUNT;
  ------------------
  |  |  124|      0|#  define ARDUINOJSON_INITIAL_POOL_COUNT 4
  ------------------
  126|      0|    }
  127|  4.93k|  }
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEED2Ev:
   30|  2.46k|  ~MemoryPoolList() {
   31|  2.46k|    ARDUINOJSON_ASSERT(count_ == 0);
  ------------------
  |  |   11|  2.46k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   32|  2.46k|  }
_ZNK11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE7getSlotEj:
  108|  24.5k|  T* getSlot(SlotId id) const {
  109|  24.5k|    if (id == NULL_SLOT)
  ------------------
  |  Branch (109:9): [True: 2.12k, False: 22.3k]
  ------------------
  110|  2.12k|      return nullptr;
  111|  22.3k|    auto poolIndex = SlotId(id / ARDUINOJSON_POOL_CAPACITY);
  ------------------
  |  |  118|  22.3k|#    define ARDUINOJSON_POOL_CAPACITY 256  // 4096 bytes
  ------------------
  112|  22.3k|    auto indexInPool = SlotId(id % ARDUINOJSON_POOL_CAPACITY);
  ------------------
  |  |  118|  22.3k|#    define ARDUINOJSON_POOL_CAPACITY 256  // 4096 bytes
  ------------------
  113|  22.3k|    ARDUINOJSON_ASSERT(poolIndex < count_);
  ------------------
  |  |   11|  22.3k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  114|  22.3k|    return pools_[poolIndex].getSlot(indexInPool);
  115|  22.3k|  }
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE9allocSlotEPNS0_9AllocatorE:
   82|  16.5k|  Slot<T> allocSlot(Allocator* allocator) {
   83|       |    // try to allocate from free list
   84|  16.5k|    if (freeList_ != NULL_SLOT) {
  ------------------
  |  Branch (84:9): [True: 176, False: 16.4k]
  ------------------
   85|    176|      return allocFromFreeList();
   86|    176|    }
   87|       |
   88|       |    // try to allocate from last pool (other pools are full)
   89|  16.4k|    if (count_) {
  ------------------
  |  Branch (89:9): [True: 14.8k, False: 1.57k]
  ------------------
   90|  14.8k|      auto slot = allocFromLastPool();
   91|  14.8k|      if (slot)
  ------------------
  |  Branch (91:11): [True: 14.8k, False: 0]
  ------------------
   92|  14.8k|        return slot;
   93|  14.8k|    }
   94|       |
   95|       |    // create a new pool and try again
   96|  1.57k|    auto pool = addPool(allocator);
   97|  1.57k|    if (!pool)
  ------------------
  |  Branch (97:9): [True: 0, False: 1.57k]
  ------------------
   98|      0|      return {};
   99|       |
  100|  1.57k|    return allocFromLastPool();
  101|  1.57k|  }
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE17allocFromFreeListEv:
  152|    176|  Slot<T> allocFromFreeList() {
  153|    176|    ARDUINOJSON_ASSERT(freeList_ != NULL_SLOT);
  ------------------
  |  |   11|    176|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  154|    176|    auto id = freeList_;
  155|    176|    auto slot = getSlot(freeList_);
  156|    176|    freeList_ = reinterpret_cast<FreeSlot*>(slot)->next;
  157|    176|    return {slot, id};
  158|    176|  }
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE17allocFromLastPoolEv:
  160|  16.4k|  Slot<T> allocFromLastPool() {
  161|  16.4k|    ARDUINOJSON_ASSERT(count_ > 0);
  ------------------
  |  |   11|  16.4k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  162|  16.4k|    auto poolIndex = SlotId(count_ - 1);
  163|  16.4k|    auto slot = pools_[poolIndex].allocSlot();
  164|  16.4k|    if (!slot)
  ------------------
  |  Branch (164:9): [True: 0, False: 16.4k]
  ------------------
  165|      0|      return {};
  166|  16.4k|    return {slot.ptr(),
  167|  16.4k|            SlotId(poolIndex * ARDUINOJSON_POOL_CAPACITY + slot.id())};
  ------------------
  |  |  118|  16.4k|#    define ARDUINOJSON_POOL_CAPACITY 256  // 4096 bytes
  ------------------
  168|  16.4k|  }
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE7addPoolEPNS0_9AllocatorE:
  170|  1.57k|  Pool* addPool(Allocator* allocator) {
  171|  1.57k|    if (count_ == capacity_ && !increaseCapacity(allocator))
  ------------------
  |  Branch (171:9): [True: 0, False: 1.57k]
  |  Branch (171:32): [True: 0, False: 0]
  ------------------
  172|      0|      return nullptr;
  173|  1.57k|    auto pool = &pools_[count_++];
  174|  1.57k|    SlotCount poolCapacity = ARDUINOJSON_POOL_CAPACITY;
  ------------------
  |  |  118|  1.57k|#    define ARDUINOJSON_POOL_CAPACITY 256  // 4096 bytes
  ------------------
  175|  1.57k|    if (count_ == maxPools)  // last pool is smaller because of NULL_SLOT
  ------------------
  |  Branch (175:9): [True: 0, False: 1.57k]
  ------------------
  176|      0|      poolCapacity--;
  177|  1.57k|    pool->create(poolCapacity, allocator);
  178|  1.57k|    return pool;
  179|  1.57k|  }
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE8freeSlotENS1_4SlotIS4_EE:
  103|  1.32k|  void freeSlot(Slot<T> slot) {
  104|  1.32k|    reinterpret_cast<FreeSlot*>(slot.ptr())->next = freeList_;
  105|  1.32k|    freeList_ = slot.id();
  106|  1.32k|  }
_ZN11ArduinoJson8V740HB426detail14MemoryPoolListINS1_15ResourceManager8SlotDataEE11shrinkToFitEPNS0_9AllocatorE:
  140|  2.46k|  void shrinkToFit(Allocator* allocator) {
  141|  2.46k|    if (count_ > 0)
  ------------------
  |  Branch (141:9): [True: 1.57k, False: 887]
  ------------------
  142|  1.57k|      pools_[count_ - 1].shrinkToFit(allocator);
  143|  2.46k|    if (pools_ != preallocatedPools_ && count_ != capacity_) {
  ------------------
  |  Branch (143:9): [True: 0, False: 2.46k]
  |  Branch (143:41): [True: 0, False: 0]
  ------------------
  144|      0|      pools_ = static_cast<Pool*>(
  145|      0|          allocator->reallocate(pools_, count_ * sizeof(Pool)));
  146|      0|      ARDUINOJSON_ASSERT(pools_ != nullptr);  // realloc to smaller can't fail
  ------------------
  |  |   11|      0|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  147|      0|      capacity_ = count_;
  148|      0|    }
  149|  2.46k|  }

_ZN11ArduinoJson8V740HB426detail15ResourceManagerC2EPNS0_9AllocatorE:
   32|  2.46k|      : allocator_(allocator), overflowed_(false) {}
_ZN11ArduinoJson8V740HB426detail15ResourceManagerD2Ev:
   34|  2.46k|  ~ResourceManager() {
   35|  2.46k|    stringPool_.clear(allocator_);
   36|  2.46k|    variantPools_.clear(allocator_);
   37|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail15ResourceManager5clearEv:
  114|  2.46k|  void clear() {
  115|  2.46k|    variantPools_.clear(allocator_);
  116|  2.46k|    overflowed_ = false;
  117|  2.46k|    stringPool_.clear(allocator_);
  118|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail15ResourceManager13destroyStringEPNS1_10StringNodeE:
  106|    885|  void destroyString(StringNode* node) {
  107|    885|    StringNode::destroy(node, allocator_);
  108|    885|  }
_ZN11ArduinoJson8V740HB426detail15ResourceManager12createStringEm:
   92|  1.01k|  StringNode* createString(size_t length) {
   93|  1.01k|    auto node = StringNode::create(length, allocator_);
   94|  1.01k|    if (!node)
  ------------------
  |  Branch (94:9): [True: 0, False: 1.01k]
  ------------------
   95|      0|      overflowed_ = true;
   96|  1.01k|    return node;
   97|  1.01k|  }
_ZN11ArduinoJson8V740HB426detail15ResourceManager12resizeStringEPNS1_10StringNodeEm:
   99|    281|  StringNode* resizeString(StringNode* node, size_t length) {
  100|    281|    node = StringNode::resize(node, length, allocator_);
  101|    281|    if (!node)
  ------------------
  |  Branch (101:9): [True: 0, False: 281]
  ------------------
  102|      0|      overflowed_ = true;
  103|    281|    return node;
  104|    281|  }
_ZNK11ArduinoJson8V740HB426detail15ResourceManager9getStringINS1_9RamStringEEEPNS1_10StringNodeERKT_:
   88|    133|  StringNode* getString(const TAdaptedString& str) const {
   89|    133|    return stringPool_.get(str);
   90|    133|  }
_ZN11ArduinoJson8V740HB426detail15ResourceManager10saveStringEPNS1_10StringNodeE:
   83|    129|  void saveString(StringNode* node) {
   84|    129|    stringPool_.add(node);
   85|    129|  }
_ZN11ArduinoJson8V740HB426detail15ResourceManager11shrinkToFitEv:
  120|  2.46k|  void shrinkToFit() {
  121|  2.46k|    variantPools_.shrinkToFit(allocator_);
  122|  2.46k|  }

_ZNK11ArduinoJson8V740HB426detail15ResourceManager12getExtensionEj:
   47|    772|inline VariantExtension* ResourceManager::getExtension(SlotId id) const {
   48|    772|  return &variantPools_.getSlot(id)->extension;
   49|    772|}
_ZNK11ArduinoJson8V740HB426detail15ResourceManager10getVariantEj:
   28|  23.5k|inline VariantData* ResourceManager::getVariant(SlotId id) const {
   29|  23.5k|  return reinterpret_cast<VariantData*>(variantPools_.getSlot(id));
   30|  23.5k|}
_ZN11ArduinoJson8V740HB426detail15ResourceManager12allocVariantEv:
   14|  15.4k|inline Slot<VariantData> ResourceManager::allocVariant() {
   15|  15.4k|  auto p = variantPools_.allocSlot(allocator_);
   16|  15.4k|  if (!p) {
  ------------------
  |  Branch (16:7): [True: 0, False: 15.4k]
  ------------------
   17|      0|    overflowed_ = true;
   18|      0|    return {};
   19|      0|  }
   20|  15.4k|  return {new (&p->variant) VariantData, p.id()};
   21|  15.4k|}
_ZN11ArduinoJson8V740HB426detail15ResourceManager13freeExtensionEj:
   42|     78|inline void ResourceManager::freeExtension(SlotId id) {
   43|     78|  auto p = getExtension(id);
   44|     78|  variantPools_.freeSlot({reinterpret_cast<SlotData*>(p), id});
   45|     78|}
_ZN11ArduinoJson8V740HB426detail15ResourceManager11freeVariantENS1_4SlotINS1_11VariantDataEEE:
   23|  1.25k|inline void ResourceManager::freeVariant(Slot<VariantData> variant) {
   24|  1.25k|  variant->clear(this);
   25|  1.25k|  variantPools_.freeSlot({alias_cast<SlotData*>(variant.ptr()), variant.id()});
   26|  1.25k|}
_ZN11ArduinoJson8V740HB426detail15ResourceManager14allocExtensionEv:
   33|  1.17k|inline Slot<VariantExtension> ResourceManager::allocExtension() {
   34|  1.17k|  auto p = variantPools_.allocSlot(allocator_);
   35|  1.17k|  if (!p) {
  ------------------
  |  Branch (35:7): [True: 0, False: 1.17k]
  ------------------
   36|      0|    overflowed_ = true;
   37|      0|    return {};
   38|      0|  }
   39|  1.17k|  return {&p->extension, p.id()};
   40|  1.17k|}

_ZN11ArduinoJson8V740HB426detail13StringBuilderC2EPNS1_15ResourceManagerE:
   15|  2.46k|  StringBuilder(ResourceManager* resources) : resources_(resources) {}
_ZN11ArduinoJson8V740HB426detail13StringBuilderD2Ev:
   17|  2.46k|  ~StringBuilder() {
   18|  2.46k|    if (node_)
  ------------------
  |  Branch (18:9): [True: 885, False: 1.58k]
  ------------------
   19|    885|      resources_->destroyString(node_);
   20|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail13StringBuilder11startStringEv:
   22|  4.09k|  void startString() {
   23|  4.09k|    size_ = 0;
   24|  4.09k|    if (!node_)
  ------------------
  |  Branch (24:9): [True: 1.01k, False: 3.08k]
  ------------------
   25|  1.01k|      node_ = resources_->createString(initialCapacity);
   26|  4.09k|  }
_ZN11ArduinoJson8V740HB426detail13StringBuilder6appendEc:
   61|  10.0k|  void append(char c) {
   62|  10.0k|    if (node_ && size_ == node_->length)
  ------------------
  |  Branch (62:9): [True: 10.0k, False: 0]
  |  Branch (62:18): [True: 152, False: 9.91k]
  ------------------
   63|    152|      node_ = resources_->resizeString(node_, size_ * 2U + 1);
   64|  10.0k|    if (node_)
  ------------------
  |  Branch (64:9): [True: 10.0k, False: 0]
  ------------------
   65|  10.0k|      node_->data[size_++] = c;
   66|  10.0k|  }
_ZNK11ArduinoJson8V740HB426detail13StringBuilder7isValidEv:
   68|  3.80k|  bool isValid() const {
   69|  3.80k|    return node_ != nullptr;
   70|  3.80k|  }
_ZNK11ArduinoJson8V740HB426detail13StringBuilder3strEv:
   76|  2.60k|  JsonString str() const {
   77|  2.60k|    ARDUINOJSON_ASSERT(node_ != nullptr);
  ------------------
  |  |   11|  2.60k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   78|  2.60k|    node_->data[size_] = 0;
   79|  2.60k|    return JsonString(node_->data, size_);
   80|  2.60k|  }
_ZN11ArduinoJson8V740HB426detail13StringBuilder4saveEPNS1_11VariantDataE:
   28|  3.16k|  void save(VariantData* variant) {
   29|  3.16k|    ARDUINOJSON_ASSERT(variant != nullptr);
  ------------------
  |  |   11|  3.16k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   30|  3.16k|    ARDUINOJSON_ASSERT(node_ != nullptr);
  ------------------
  |  |   11|  3.16k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   31|       |
   32|  3.16k|    char* p = node_->data;
   33|  3.16k|    if (isTinyString(p, size_)) {
  ------------------
  |  Branch (33:9): [True: 3.03k, False: 133]
  ------------------
   34|  3.03k|      variant->setTinyString(p, static_cast<uint8_t>(size_));
   35|  3.03k|      return;
   36|  3.03k|    }
   37|       |
   38|    133|    p[size_] = 0;
   39|    133|    StringNode* node = resources_->getString(adaptString(p, size_));
   40|    133|    if (!node) {
  ------------------
  |  Branch (40:9): [True: 129, False: 4]
  ------------------
   41|    129|      node = resources_->resizeString(node_, size_);
   42|    129|      ARDUINOJSON_ASSERT(node != nullptr);  // realloc to smaller can't fail
  ------------------
  |  |   11|    129|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   43|    129|      resources_->saveString(node);
   44|    129|      node_ = nullptr;  // next time we need a new string
   45|    129|    } else {
   46|      4|      node->references++;
   47|      4|    }
   48|    133|    variant->setOwnedString(node);
   49|    133|  }

_ZN11ArduinoJson8V740HB426detail10StringNode7destroyEPS2_PNS0_9AllocatorE:
   65|  1.01k|  static void destroy(StringNode* node, Allocator* allocator) {
   66|  1.01k|    allocator->deallocate(node);
   67|  1.01k|  }
_ZN11ArduinoJson8V740HB426detail10StringNode6createEmPNS0_9AllocatorE:
   35|  1.01k|  static StringNode* create(size_t length, Allocator* allocator) {
   36|  1.01k|    if (length > maxLength)
  ------------------
  |  Branch (36:9): [True: 0, False: 1.01k]
  ------------------
   37|      0|      return nullptr;
   38|  1.01k|    auto size = sizeForLength(length);
   39|  1.01k|    if (size < length)  // integer overflow
  ------------------
  |  Branch (39:9): [True: 0, False: 1.01k]
  ------------------
   40|      0|      return nullptr;   // (not testable on 64-bit)
   41|  1.01k|    auto node = reinterpret_cast<StringNode*>(allocator->allocate(size));
   42|  1.01k|    if (node) {
  ------------------
  |  Branch (42:9): [True: 1.01k, False: 0]
  ------------------
   43|  1.01k|      node->length = length_type(length);
   44|  1.01k|      node->references = 1;
   45|  1.01k|    }
   46|  1.01k|    return node;
   47|  1.01k|  }
_ZN11ArduinoJson8V740HB426detail10StringNode13sizeForLengthEm:
   31|  1.29k|  static constexpr size_t sizeForLength(size_t n) {
   32|  1.29k|    return n + 1 + offsetof(StringNode, data);
   33|  1.29k|  }
_ZN11ArduinoJson8V740HB426detail10StringNode6resizeEPS2_mPNS0_9AllocatorE:
   50|    281|                            Allocator* allocator) {
   51|    281|    ARDUINOJSON_ASSERT(node != nullptr);
  ------------------
  |  |   11|    281|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   52|    281|    StringNode* newNode;
   53|    281|    if (length <= maxLength)
  ------------------
  |  Branch (53:9): [True: 281, False: 0]
  ------------------
   54|    281|      newNode = reinterpret_cast<StringNode*>(
   55|    281|          allocator->reallocate(node, sizeForLength(length)));
   56|      0|    else
   57|      0|      newNode = nullptr;
   58|    281|    if (newNode)
  ------------------
  |  Branch (58:9): [True: 281, False: 0]
  ------------------
   59|    281|      newNode->length = length_type(length);
   60|      0|    else
   61|      0|      allocator->deallocate(node);
   62|    281|    return newNode;
   63|    281|  }

_ZN11ArduinoJson8V740HB426detail10StringPoolC2Ev:
   17|  2.46k|  StringPool() = default;
_ZN11ArduinoJson8V740HB426detail10StringPool5clearEPNS0_9AllocatorE:
   29|  4.93k|  void clear(Allocator* allocator) {
   30|  5.05k|    while (strings_) {
  ------------------
  |  Branch (30:12): [True: 129, False: 4.93k]
  ------------------
   31|    129|      auto node = strings_;
   32|    129|      strings_ = node->next;
   33|    129|      StringNode::destroy(node, allocator);
   34|    129|    }
   35|  4.93k|  }
_ZN11ArduinoJson8V740HB426detail10StringPoolD2Ev:
   21|  2.46k|  ~StringPool() {
   22|  2.46k|    ARDUINOJSON_ASSERT(strings_ == nullptr);
  ------------------
  |  |   11|  2.46k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   23|  2.46k|  }
_ZNK11ArduinoJson8V740HB426detail10StringPool3getINS1_9RamStringEEEPNS1_10StringNodeERKT_:
   73|    133|  StringNode* get(const TAdaptedString& str) const {
   74|    272|    for (auto node = strings_; node; node = node->next) {
  ------------------
  |  Branch (74:32): [True: 143, False: 129]
  ------------------
   75|    143|      if (stringEquals(str, adaptString(node->data, node->length)))
  ------------------
  |  Branch (75:11): [True: 4, False: 139]
  ------------------
   76|      4|        return node;
   77|    143|    }
   78|    129|    return nullptr;
   79|    133|  }
_ZN11ArduinoJson8V740HB426detail10StringPool3addEPNS1_10StringNodeE:
   66|    129|  void add(StringNode* node) {
   67|    129|    ARDUINOJSON_ASSERT(node != nullptr);
  ------------------
  |  |   11|    129|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   68|    129|    node->next = strings_;
   69|    129|    strings_ = node;
   70|    129|  }

_ZN11ArduinoJson8V740HB426detail14decomposeFloatEda:
   56|  1.40k|inline FloatParts decomposeFloat(JsonFloat value, int8_t decimalPlaces) {
   57|  1.40k|  uint32_t maxDecimalPart = pow10(decimalPlaces);
   58|       |
   59|  1.40k|  int16_t exponent = normalize(value);
   60|       |
   61|  1.40k|  uint32_t integral = uint32_t(value);
   62|       |  // reduce number of decimal places by the number of integral places
   63|  2.47k|  for (uint32_t tmp = integral; tmp >= 10; tmp /= 10) {
  ------------------
  |  Branch (63:33): [True: 1.06k, False: 1.40k]
  ------------------
   64|  1.06k|    maxDecimalPart /= 10;
   65|  1.06k|    decimalPlaces--;
   66|  1.06k|  }
   67|       |
   68|  1.40k|  JsonFloat remainder =
   69|  1.40k|      (value - JsonFloat(integral)) * JsonFloat(maxDecimalPart);
   70|       |
   71|  1.40k|  uint32_t decimal = uint32_t(remainder);
   72|  1.40k|  remainder = remainder - JsonFloat(decimal);
   73|       |
   74|       |  // rounding:
   75|       |  // increment by 1 if remainder >= 0.5
   76|  1.40k|  decimal += uint32_t(remainder * 2);
   77|  1.40k|  if (decimal >= maxDecimalPart) {
  ------------------
  |  Branch (77:7): [True: 219, False: 1.18k]
  ------------------
   78|    219|    decimal = 0;
   79|    219|    integral++;
   80|    219|    if (exponent && integral >= 10) {
  ------------------
  |  Branch (80:9): [True: 185, False: 34]
  |  Branch (80:21): [True: 102, False: 83]
  ------------------
   81|    102|      exponent++;
   82|    102|      integral = 1;
   83|    102|    }
   84|    219|  }
   85|       |
   86|       |  // remove trailing zeros
   87|  8.18k|  while (decimal % 10 == 0 && decimalPlaces > 0) {
  ------------------
  |  Branch (87:10): [True: 7.89k, False: 284]
  |  Branch (87:31): [True: 6.77k, False: 1.12k]
  ------------------
   88|  6.77k|    decimal /= 10;
   89|  6.77k|    decimalPlaces--;
   90|  6.77k|  }
   91|       |
   92|  1.40k|  return {integral, decimal, exponent, decimalPlaces};
   93|  1.40k|}
_ZN11ArduinoJson8V740HB426detail5pow10Ei:
   52|  10.7k|constexpr uint32_t pow10(int exponent) {
   53|  10.7k|  return (exponent == 0) ? 1 : 10 * pow10(exponent - 1);
  ------------------
  |  Branch (53:10): [True: 1.40k, False: 9.38k]
  ------------------
   54|  10.7k|}
_ZN11ArduinoJson8V740HB426detail9normalizeIdEEsRT_:
   22|  1.40k|inline int16_t normalize(TFloat& value) {
   23|  1.40k|  using traits = FloatTraits<TFloat>;
   24|  1.40k|  int16_t powersOf10 = 0;
   25|       |
   26|  1.40k|  int8_t index = sizeof(TFloat) == 8 ? 8 : 5;
  ------------------
  |  Branch (26:18): [Folded - Ignored]
  ------------------
   27|  1.40k|  int bit = 1 << index;
   28|       |
   29|  1.40k|  if (value >= ARDUINOJSON_POSITIVE_EXPONENTIATION_THRESHOLD) {
  ------------------
  |  |  232|  1.40k|#  define ARDUINOJSON_POSITIVE_EXPONENTIATION_THRESHOLD 1e7
  ------------------
  |  Branch (29:7): [True: 401, False: 1.00k]
  ------------------
   30|  4.01k|    for (; index >= 0; index--) {
  ------------------
  |  Branch (30:12): [True: 3.60k, False: 401]
  ------------------
   31|  3.60k|      if (value >= traits::positiveBinaryPowersOfTen()[index]) {
  ------------------
  |  Branch (31:11): [True: 1.39k, False: 2.21k]
  ------------------
   32|  1.39k|        value *= traits::negativeBinaryPowersOfTen()[index];
   33|  1.39k|        powersOf10 = int16_t(powersOf10 + bit);
   34|  1.39k|      }
   35|  3.60k|      bit >>= 1;
   36|  3.60k|    }
   37|    401|  }
   38|       |
   39|  1.40k|  if (value > 0 && value <= ARDUINOJSON_NEGATIVE_EXPONENTIATION_THRESHOLD) {
  ------------------
  |  |  238|    933|#  define ARDUINOJSON_NEGATIVE_EXPONENTIATION_THRESHOLD 1e-5
  ------------------
  |  Branch (39:7): [True: 933, False: 472]
  |  Branch (39:20): [True: 114, False: 819]
  ------------------
   40|  1.14k|    for (; index >= 0; index--) {
  ------------------
  |  Branch (40:12): [True: 1.02k, False: 114]
  ------------------
   41|  1.02k|      if (value < traits::negativeBinaryPowersOfTen()[index] * 10) {
  ------------------
  |  Branch (41:11): [True: 369, False: 657]
  ------------------
   42|    369|        value *= traits::positiveBinaryPowersOfTen()[index];
   43|    369|        powersOf10 = int16_t(powersOf10 - bit);
   44|    369|      }
   45|  1.02k|      bit >>= 1;
   46|  1.02k|    }
   47|    114|  }
   48|       |
   49|  1.40k|  return powersOf10;
   50|  1.40k|}

_ZN11ArduinoJson8V740HB426detail11FloatTraitsIdLm8EE25positiveBinaryPowersOfTenEv:
   32|  4.58k|  static pgm_ptr<T> positiveBinaryPowersOfTen() {
   33|  4.58k|    ARDUINOJSON_DEFINE_PROGMEM_ARRAY(  //
  ------------------
  |  |   44|  4.58k|      static type const name[] = __VA_ARGS__;
  ------------------
   34|  4.58k|        uint64_t, factors,
   35|  4.58k|        {
   36|  4.58k|            0x4024000000000000,  // 1e1
   37|  4.58k|            0x4059000000000000,  // 1e2
   38|  4.58k|            0x40C3880000000000,  // 1e4
   39|  4.58k|            0x4197D78400000000,  // 1e8
   40|  4.58k|            0x4341C37937E08000,  // 1e16
   41|  4.58k|            0x4693B8B5B5056E17,  // 1e32
   42|  4.58k|            0x4D384F03E93FF9F5,  // 1e64
   43|  4.58k|            0x5A827748F9301D32,  // 1e128
   44|  4.58k|            0x75154FDD7F73BF3C,  // 1e256
   45|  4.58k|        });
   46|  4.58k|    return pgm_ptr<T>(reinterpret_cast<const T*>(factors));
   47|  4.58k|  }
_ZN11ArduinoJson8V740HB426detail11FloatTraitsIdLm8EE25negativeBinaryPowersOfTenEv:
   49|  2.69k|  static pgm_ptr<T> negativeBinaryPowersOfTen() {
   50|  2.69k|    ARDUINOJSON_DEFINE_PROGMEM_ARRAY(  //
  ------------------
  |  |   44|  2.69k|      static type const name[] = __VA_ARGS__;
  ------------------
   51|  2.69k|        uint64_t, factors,
   52|  2.69k|        {
   53|  2.69k|            0x3FB999999999999A,  // 1e-1
   54|  2.69k|            0x3F847AE147AE147B,  // 1e-2
   55|  2.69k|            0x3F1A36E2EB1C432D,  // 1e-4
   56|  2.69k|            0x3E45798EE2308C3A,  // 1e-8
   57|  2.69k|            0x3C9CD2B297D889BC,  // 1e-16
   58|  2.69k|            0x3949F623D5A8A733,  // 1e-32
   59|  2.69k|            0x32A50FFD44F4A73D,  // 1e-64
   60|  2.69k|            0x255BBA08CF8C979D,  // 1e-128
   61|  2.69k|            0x0AC8062864AC6F43   // 1e-256
   62|  2.69k|        });
   63|  2.69k|    return pgm_ptr<T>(reinterpret_cast<const T*>(factors));
   64|  2.69k|  }
_ZN11ArduinoJson8V740HB426detail11FloatTraitsIdLm8EE3infEv:
   70|    140|  static T inf() {
   71|    140|    return forge(0x7ff0000000000000);
   72|    140|  }
_ZN11ArduinoJson8V740HB426detail11FloatTraitsIdLm8EE5forgeEm:
  101|    140|  static T forge(uint64_t bits) {
  102|    140|    return alias_cast<T>(bits);
  103|    140|  }
_ZN11ArduinoJson8V740HB426detail10make_floatIdiEET_S3_T0_:
  196|    886|inline TFloat make_float(TFloat m, TExponent e) {
  197|    886|  using traits = FloatTraits<TFloat>;
  198|       |
  199|    886|  auto powersOfTen = e > 0 ? traits::positiveBinaryPowersOfTen()
  ------------------
  |  Branch (199:22): [True: 605, False: 281]
  ------------------
  200|    886|                           : traits::negativeBinaryPowersOfTen();
  201|    886|  if (e <= 0)
  ------------------
  |  Branch (201:7): [True: 281, False: 605]
  ------------------
  202|    281|    e = TExponent(-e);
  203|       |
  204|  5.36k|  for (uint8_t index = 0; e != 0; index++) {
  ------------------
  |  Branch (204:27): [True: 4.47k, False: 886]
  ------------------
  205|  4.47k|    if (e & 1)
  ------------------
  |  Branch (205:9): [True: 2.94k, False: 1.53k]
  ------------------
  206|  2.94k|      m *= powersOfTen[index];
  207|  4.47k|    e >>= 1;
  208|  4.47k|  }
  209|    886|  return m;
  210|    886|}
_ZN11ArduinoJson8V740HB426detail10make_floatIfiEET_S3_T0_:
  196|  4.70k|inline TFloat make_float(TFloat m, TExponent e) {
  197|  4.70k|  using traits = FloatTraits<TFloat>;
  198|       |
  199|  4.70k|  auto powersOfTen = e > 0 ? traits::positiveBinaryPowersOfTen()
  ------------------
  |  Branch (199:22): [True: 469, False: 4.23k]
  ------------------
  200|  4.70k|                           : traits::negativeBinaryPowersOfTen();
  201|  4.70k|  if (e <= 0)
  ------------------
  |  Branch (201:7): [True: 4.23k, False: 469]
  ------------------
  202|  4.23k|    e = TExponent(-e);
  203|       |
  204|  7.28k|  for (uint8_t index = 0; e != 0; index++) {
  ------------------
  |  Branch (204:27): [True: 2.58k, False: 4.70k]
  ------------------
  205|  2.58k|    if (e & 1)
  ------------------
  |  Branch (205:9): [True: 1.34k, False: 1.24k]
  ------------------
  206|  1.34k|      m *= powersOfTen[index];
  207|  2.58k|    e >>= 1;
  208|  2.58k|  }
  209|  4.70k|  return m;
  210|  4.70k|}
_ZN11ArduinoJson8V740HB426detail11FloatTraitsIfLm4EE25positiveBinaryPowersOfTenEv:
  116|    469|  static pgm_ptr<T> positiveBinaryPowersOfTen() {
  117|    469|    ARDUINOJSON_DEFINE_PROGMEM_ARRAY(uint32_t, factors,
  ------------------
  |  |   44|    469|      static type const name[] = __VA_ARGS__;
  ------------------
  118|    469|                                     {
  119|    469|                                         0x41200000,  // 1e1f
  120|    469|                                         0x42c80000,  // 1e2f
  121|    469|                                         0x461c4000,  // 1e4f
  122|    469|                                         0x4cbebc20,  // 1e8f
  123|    469|                                         0x5a0e1bca,  // 1e16f
  124|    469|                                         0x749dc5ae   // 1e32f
  125|    469|                                     });
  126|    469|    return pgm_ptr<T>(reinterpret_cast<const T*>(factors));
  127|    469|  }
_ZN11ArduinoJson8V740HB426detail11FloatTraitsIfLm4EE25negativeBinaryPowersOfTenEv:
  129|  4.23k|  static pgm_ptr<T> negativeBinaryPowersOfTen() {
  130|  4.23k|    ARDUINOJSON_DEFINE_PROGMEM_ARRAY(uint32_t, factors,
  ------------------
  |  |   44|  4.23k|      static type const name[] = __VA_ARGS__;
  ------------------
  131|  4.23k|                                     {
  132|  4.23k|                                         0x3dcccccd,  // 1e-1f
  133|  4.23k|                                         0x3c23d70a,  // 1e-2f
  134|  4.23k|                                         0x38d1b717,  // 1e-4f
  135|  4.23k|                                         0x322bcc77,  // 1e-8f
  136|  4.23k|                                         0x24e69595,  // 1e-16f
  137|  4.23k|                                         0x0a4fb11f   // 1e-32f
  138|  4.23k|                                     });
  139|  4.23k|    return pgm_ptr<T>(reinterpret_cast<const T*>(factors));
  140|  4.23k|  }

_ZN11ArduinoJson8V740HB426detail16canConvertNumberIjmEENS1_9enable_ifIXaaaaaasr11is_integralIT0_EE5valuesr11is_unsignedIS4_EE5valuesr11is_integralIT_EE5valuelestS5_stS4_EbE4typeES4_:
   28|  2.96k|canConvertNumber(TIn value) {
   29|  2.96k|  return value <= TIn(numeric_limits<TOut>::highest());
   30|  2.96k|}
_ZN11ArduinoJson8V740HB426detail16canConvertNumberIilEENS1_9enable_ifIXaaaaaaaasr11is_integralIT0_EE5valuesr9is_signedIS4_EE5valuesr11is_integralIT_EE5valuesr9is_signedIS5_EE5valueltstS5_stS4_EbE4typeES4_:
   55|    578|canConvertNumber(TIn value) {
   56|    578|  return value >= TIn(numeric_limits<TOut>::lowest()) &&
  ------------------
  |  Branch (56:10): [True: 316, False: 262]
  ------------------
   57|    578|         value <= TIn(numeric_limits<TOut>::highest());
  ------------------
  |  Branch (57:10): [True: 316, False: 0]
  ------------------
   58|    578|}

_ZN11ArduinoJson8V740HB426detail11parseNumberEPKc:
  105|  9.47k|inline Number parseNumber(const char* s) {
  106|  9.47k|  using traits = FloatTraits<JsonFloat>;
  107|  9.47k|  using mantissa_t = largest_type<traits::mantissa_type, JsonUInt>;
  108|  9.47k|  using exponent_t = traits::exponent_type;
  109|       |
  110|  9.47k|  ARDUINOJSON_ASSERT(s != 0);
  ------------------
  |  |   11|  9.47k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  111|       |
  112|  9.47k|  bool is_negative = false;
  113|  9.47k|  switch (*s) {
  ------------------
  |  Branch (113:11): [True: 8.51k, False: 966]
  ------------------
  114|    891|    case '-':
  ------------------
  |  Branch (114:5): [True: 891, False: 8.58k]
  ------------------
  115|    891|      is_negative = true;
  116|    891|      s++;
  117|    891|      break;
  118|     75|    case '+':
  ------------------
  |  Branch (118:5): [True: 75, False: 9.40k]
  ------------------
  119|     75|      s++;
  120|     75|      break;
  121|  9.47k|  }
  122|       |
  123|       |#if ARDUINOJSON_ENABLE_NAN
  124|       |  if (*s == 'n' || *s == 'N') {
  125|       |    return Number(traits::nan());
  126|       |  }
  127|       |#endif
  128|       |
  129|       |#if ARDUINOJSON_ENABLE_INFINITY
  130|       |  if (*s == 'i' || *s == 'I') {
  131|       |    return Number(is_negative ? -traits::inf() : traits::inf());
  132|       |  }
  133|       |#endif
  134|       |
  135|  9.47k|  if (!isdigit(*s) && *s != '.')
  ------------------
  |  Branch (135:7): [True: 3.88k, False: 5.59k]
  |  Branch (135:23): [True: 98, False: 3.78k]
  ------------------
  136|     98|    return Number();
  137|       |
  138|  9.37k|  mantissa_t mantissa = 0;
  139|  9.37k|  exponent_t exponent_offset = 0;
  140|  9.37k|  const mantissa_t maxUint = JsonUInt(-1);
  141|       |
  142|  26.4k|  while (isdigit(*s)) {
  ------------------
  |  Branch (142:10): [True: 17.1k, False: 9.29k]
  ------------------
  143|  17.1k|    uint8_t digit = uint8_t(*s - '0');
  144|  17.1k|    if (mantissa > maxUint / 10)
  ------------------
  |  Branch (144:9): [True: 63, False: 17.0k]
  ------------------
  145|     63|      break;
  146|  17.0k|    mantissa *= 10;
  147|  17.0k|    if (mantissa > maxUint - digit)
  ------------------
  |  Branch (147:9): [True: 18, False: 17.0k]
  ------------------
  148|     18|      break;
  149|  17.0k|    mantissa += digit;
  150|  17.0k|    s++;
  151|  17.0k|  }
  152|       |
  153|  9.37k|  if (*s == '\0') {
  ------------------
  |  Branch (153:7): [True: 3.56k, False: 5.81k]
  ------------------
  154|  3.56k|    if (is_negative) {
  ------------------
  |  Branch (154:9): [True: 598, False: 2.96k]
  ------------------
  155|    598|      const mantissa_t sintMantissaMax = mantissa_t(1)
  156|    598|                                         << (sizeof(JsonInteger) * 8 - 1);
  157|    598|      if (mantissa <= sintMantissaMax) {
  ------------------
  |  Branch (157:11): [True: 578, False: 20]
  ------------------
  158|    578|        return Number(JsonInteger(~mantissa + 1));
  159|    578|      }
  160|  2.96k|    } else {
  161|  2.96k|      return Number(JsonUInt(mantissa));
  162|  2.96k|    }
  163|  3.56k|  }
  164|       |
  165|       |  // avoid mantissa overflow
  166|  6.26k|  while (mantissa > traits::mantissa_max) {
  ------------------
  |  Branch (166:10): [True: 430, False: 5.83k]
  ------------------
  167|    430|    mantissa /= 10;
  168|    430|    exponent_offset++;
  169|    430|  }
  170|       |
  171|       |  // remaing digits can't fit in the mantissa
  172|  6.20k|  while (isdigit(*s)) {
  ------------------
  |  Branch (172:10): [True: 364, False: 5.83k]
  ------------------
  173|    364|    exponent_offset++;
  174|    364|    s++;
  175|    364|  }
  176|       |
  177|  5.83k|  if (*s == '.') {
  ------------------
  |  Branch (177:7): [True: 3.99k, False: 1.84k]
  ------------------
  178|  3.99k|    s++;
  179|  4.86k|    while (isdigit(*s)) {
  ------------------
  |  Branch (179:12): [True: 864, False: 3.99k]
  ------------------
  180|    864|      if (mantissa < traits::mantissa_max / 10) {
  ------------------
  |  Branch (180:11): [True: 670, False: 194]
  ------------------
  181|    670|        mantissa = mantissa * 10 + uint8_t(*s - '0');
  182|    670|        exponent_offset--;
  183|    670|      }
  184|    864|      s++;
  185|    864|    }
  186|  3.99k|  }
  187|       |
  188|  5.83k|  int exponent = 0;
  189|  5.83k|  if (*s == 'e' || *s == 'E') {
  ------------------
  |  Branch (189:7): [True: 391, False: 5.44k]
  |  Branch (189:20): [True: 1.34k, False: 4.10k]
  ------------------
  190|  1.73k|    s++;
  191|  1.73k|    bool negative_exponent = false;
  192|  1.73k|    if (*s == '-') {
  ------------------
  |  Branch (192:9): [True: 312, False: 1.42k]
  ------------------
  193|    312|      negative_exponent = true;
  194|    312|      s++;
  195|  1.42k|    } else if (*s == '+') {
  ------------------
  |  Branch (195:16): [True: 66, False: 1.35k]
  ------------------
  196|     66|      s++;
  197|     66|    }
  198|       |
  199|  4.36k|    while (isdigit(*s)) {
  ------------------
  |  Branch (199:12): [True: 2.83k, False: 1.52k]
  ------------------
  200|  2.83k|      exponent = exponent * 10 + (*s - '0');
  201|  2.83k|      if (exponent + exponent_offset > traits::exponent_max) {
  ------------------
  |  Branch (201:11): [True: 206, False: 2.62k]
  ------------------
  202|    206|        if (negative_exponent)
  ------------------
  |  Branch (202:13): [True: 66, False: 140]
  ------------------
  203|     66|          return Number(is_negative ? -0.0f : 0.0f);
  ------------------
  |  Branch (203:25): [True: 0, False: 66]
  ------------------
  204|    140|        else
  205|    140|          return Number(is_negative ? -traits::inf() : traits::inf());
  ------------------
  |  Branch (205:25): [True: 66, False: 74]
  ------------------
  206|    206|      }
  207|  2.62k|      s++;
  208|  2.62k|    }
  209|  1.52k|    if (negative_exponent)
  ------------------
  |  Branch (209:9): [True: 246, False: 1.28k]
  ------------------
  210|    246|      exponent = -exponent;
  211|  1.52k|  }
  212|  5.63k|  exponent += exponent_offset;
  213|       |
  214|       |  // we should be at the end of the string, otherwise it's an error
  215|  5.63k|  if (*s != '\0')
  ------------------
  |  Branch (215:7): [True: 44, False: 5.58k]
  ------------------
  216|     44|    return Number();
  217|       |
  218|  5.58k|#if ARDUINOJSON_USE_DOUBLE
  219|  5.58k|  bool isDouble = exponent < -FloatTraits<float>::exponent_max ||
  ------------------
  |  Branch (219:19): [True: 104, False: 5.48k]
  ------------------
  220|  5.58k|                  exponent > FloatTraits<float>::exponent_max ||
  ------------------
  |  Branch (220:19): [True: 487, False: 4.99k]
  ------------------
  221|  5.58k|                  mantissa > FloatTraits<float>::mantissa_max;
  ------------------
  |  Branch (221:19): [True: 295, False: 4.70k]
  ------------------
  222|  5.58k|  if (isDouble) {
  ------------------
  |  Branch (222:7): [True: 886, False: 4.70k]
  ------------------
  223|    886|    auto final_result = make_float(double(mantissa), exponent);
  224|    886|    return Number(is_negative ? -final_result : final_result);
  ------------------
  |  Branch (224:19): [True: 87, False: 799]
  ------------------
  225|    886|  } else
  226|  4.70k|#endif
  227|  4.70k|  {
  228|  4.70k|    auto final_result = make_float(float(mantissa), exponent);
  229|  4.70k|    return Number(is_negative ? -final_result : final_result);
  ------------------
  |  Branch (229:19): [True: 142, False: 4.55k]
  ------------------
  230|  4.70k|  }
  231|  5.58k|}
_ZN11ArduinoJson8V740HB426detail6NumberC2Ev:
   52|    142|  Number() : type_(NumberType::Invalid) {}
_ZN11ArduinoJson8V740HB426detail11NumberValueC2Ev:
   31|    142|  NumberValue() {}
_ZN11ArduinoJson8V740HB426detail6NumberC2El:
   54|    578|  Number(JsonInteger value) : type_(NumberType::SignedInteger), value_(value) {}
_ZN11ArduinoJson8V740HB426detail11NumberValueC2El:
   33|    578|  NumberValue(JsonInteger x) : asSignedInteger(x) {}
_ZN11ArduinoJson8V740HB426detail6NumberC2Em:
   55|  2.96k|  Number(JsonUInt value) : type_(NumberType::UnsignedInteger), value_(value) {}
_ZN11ArduinoJson8V740HB426detail11NumberValueC2Em:
   34|  2.96k|  NumberValue(JsonUInt x) : asUnsignedInteger(x) {}
_ZN11ArduinoJson8V740HB426detail6NumberC2Ef:
   53|  4.76k|  Number(float value) : type_(NumberType::Float), value_(value) {}
_ZN11ArduinoJson8V740HB426detail11NumberValueC2Ef:
   32|  4.76k|  NumberValue(float x) : asFloat(x) {}
_ZN11ArduinoJson8V740HB426detail6NumberC2Ed:
   57|  1.02k|  Number(double value) : type_(NumberType::Double), value_(value) {}
_ZN11ArduinoJson8V740HB426detail11NumberValueC2Ed:
   36|  1.02k|  NumberValue(double x) : asDouble(x) {}
_ZNK11ArduinoJson8V740HB426detail6Number4typeEv:
   78|  9.47k|  NumberType type() const {
   79|  9.47k|    return type_;
   80|  9.47k|  }
_ZNK11ArduinoJson8V740HB426detail6Number17asUnsignedIntegerEv:
   87|  2.96k|  JsonUInt asUnsignedInteger() const {
   88|  2.96k|    ARDUINOJSON_ASSERT(type_ == NumberType::UnsignedInteger);
  ------------------
  |  |   11|  2.96k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   89|  2.96k|    return value_.asUnsignedInteger;
   90|  2.96k|  }
_ZNK11ArduinoJson8V740HB426detail6Number15asSignedIntegerEv:
   82|    578|  JsonInteger asSignedInteger() const {
   83|    578|    ARDUINOJSON_ASSERT(type_ == NumberType::SignedInteger);
  ------------------
  |  |   11|    578|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   84|    578|    return value_.asSignedInteger;
   85|    578|  }
_ZNK11ArduinoJson8V740HB426detail6Number7asFloatEv:
   92|  4.76k|  float asFloat() const {
   93|  4.76k|    ARDUINOJSON_ASSERT(type_ == NumberType::Float);
  ------------------
  |  |   11|  4.76k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   94|  4.76k|    return value_.asFloat;
   95|  4.76k|  }
_ZNK11ArduinoJson8V740HB426detail6Number8asDoubleEv:
   98|  1.02k|  double asDouble() const {
   99|  1.02k|    ARDUINOJSON_ASSERT(type_ == NumberType::Double);
  ------------------
  |  |   11|  1.02k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  100|  1.02k|    return value_.asDouble;
  101|  1.02k|  }

_ZNK11ArduinoJson8V740HB426detail10ObjectData9getMemberINS1_9RamStringEEEPNS1_11VariantDataET_PKNS1_15ResourceManagerE:
   15|  2.60k|    TAdaptedString key, const ResourceManager* resources) const {
   16|  2.60k|  auto it = findKey(key, resources);
   17|  2.60k|  if (it.done())
  ------------------
  |  Branch (17:7): [True: 2.12k, False: 485]
  ------------------
   18|  2.12k|    return nullptr;
   19|    485|  it.next(resources);
   20|    485|  return it.data();
   21|  2.60k|}
_ZNK11ArduinoJson8V740HB426detail10ObjectData7findKeyINS1_9RamStringEEENS1_18CollectionIteratorET_PKNS1_15ResourceManagerE:
   34|  2.60k|    TAdaptedString key, const ResourceManager* resources) const {
   35|  2.60k|  if (key.isNull())
  ------------------
  |  Branch (35:7): [True: 0, False: 2.60k]
  ------------------
   36|      0|    return iterator();
   37|  2.60k|  bool isKey = true;
   38|  9.32k|  for (auto it = createIterator(resources); !it.done(); it.next(resources)) {
  ------------------
  |  Branch (38:45): [True: 7.20k, False: 2.12k]
  ------------------
   39|  7.20k|    if (isKey && stringEquals(key, adaptString(it->asString())))
  ------------------
  |  Branch (39:9): [True: 3.84k, False: 3.36k]
  |  Branch (39:9): [True: 485, False: 6.72k]
  |  Branch (39:18): [True: 485, False: 3.36k]
  ------------------
   40|    485|      return it;
   41|  6.72k|    isKey = !isKey;
   42|  6.72k|  }
   43|  2.12k|  return iterator();
   44|  2.60k|}
_ZN11ArduinoJson8V740HB426detail10ObjectData7addPairEPPNS1_11VariantDataEPNS1_15ResourceManagerE:
   72|  2.12k|                                        ResourceManager* resources) {
   73|  2.12k|  auto keySlot = resources->allocVariant();
   74|  2.12k|  if (!keySlot)
  ------------------
  |  Branch (74:7): [True: 0, False: 2.12k]
  ------------------
   75|      0|    return nullptr;
   76|       |
   77|  2.12k|  auto valueSlot = resources->allocVariant();
   78|  2.12k|  if (!valueSlot)
  ------------------
  |  Branch (78:7): [True: 0, False: 2.12k]
  ------------------
   79|      0|    return nullptr;
   80|  2.12k|  *value = valueSlot.ptr();
   81|       |
   82|  2.12k|  CollectionData::appendPair(keySlot, valueSlot, resources);
   83|       |
   84|  2.12k|  return keySlot.ptr();
   85|  2.12k|}

_ZN11ArduinoJson8V740HB426detail10alias_castIPNS1_15ResourceManager8SlotDataEPNS1_11VariantDataEEET_T0_:
   24|  1.25k|T alias_cast(F raw_data) {
   25|  1.25k|  alias_cast_t<T, F> ac;
   26|  1.25k|  ac.raw = raw_data;
   27|  1.25k|  return ac.data;
   28|  1.25k|}
_ZN11ArduinoJson8V740HB426detail10alias_castIdmEET_T0_:
   24|    140|T alias_cast(F raw_data) {
   25|    140|  alias_cast_t<T, F> ac;
   26|    140|  ac.raw = raw_data;
   27|    140|  return ac.data;
   28|    140|}

_ZN11ArduinoJson8V740HB426detail7isdigitEc:
   12|  51.3k|inline bool isdigit(char c) {
   13|  51.3k|  return '0' <= c && c <= '9';
  ------------------
  |  Branch (13:10): [True: 30.2k, False: 21.0k]
  |  Branch (13:22): [True: 26.8k, False: 3.46k]
  ------------------
   14|  51.3k|}

_ZN11ArduinoJson8V740HB426detail14numeric_limitsIjvE7highestEv:
   25|  2.96k|  static constexpr T highest() {
   26|  2.96k|    return T(-1);
   27|  2.96k|  }
_ZN11ArduinoJson8V740HB426detail14numeric_limitsIivE6lowestEv:
   33|    894|  static constexpr T lowest() {
   34|    894|    return T(T(1) << (sizeof(T) * 8 - 1));
   35|    894|  }
_ZN11ArduinoJson8V740HB426detail14numeric_limitsIivE7highestEv:
   36|    316|  static constexpr T highest() {
   37|    316|    return T(~lowest());
   38|    316|  }

_ZN11ArduinoJson8V740HB426detail5isnanIdEEbT_:
   16|  1.47k|bool isnan(T x) {
   17|  1.47k|  return x != x;
   18|  1.47k|}
_ZN11ArduinoJson8V740HB426detail5isinfIdEEbT_:
   23|  1.47k|bool isinf(T x) {
   24|  1.47k|  return x != 0.0 && x * 2 == x;
  ------------------
  |  Branch (24:10): [True: 1.00k, False: 472]
  |  Branch (24:22): [True: 68, False: 933]
  ------------------
   25|  1.47k|}

_ZN11ArduinoJson8V740HB426detail7pgm_ptrIdEC2EPKd:
   57|  7.28k|  explicit pgm_ptr(const T* ptr) : ptr_(ptr) {}
_ZNK11ArduinoJson8V740HB426detail7pgm_ptrIdEixEl:
   59|  9.33k|  T operator[](intptr_t index) const {
   60|  9.33k|    return pgm_read(ptr_ + index);
   61|  9.33k|  }
_ZN11ArduinoJson8V740HB426detail8pgm_readIdEET_PKS3_:
   48|  9.33k|inline T pgm_read(const T* p) {
   49|  9.33k|  return *p;
   50|  9.33k|}
_ZN11ArduinoJson8V740HB426detail7pgm_ptrIfEC2EPKf:
   57|  4.70k|  explicit pgm_ptr(const T* ptr) : ptr_(ptr) {}
_ZNK11ArduinoJson8V740HB426detail7pgm_ptrIfEixEl:
   59|  1.34k|  T operator[](intptr_t index) const {
   60|  1.34k|    return pgm_read(ptr_ + index);
   61|  1.34k|  }
_ZN11ArduinoJson8V740HB426detail8pgm_readIfEET_PKS3_:
   48|  1.34k|inline T pgm_read(const T* p) {
   49|  1.34k|  return *p;
   50|  1.34k|}

_ZN11ArduinoJson8V740HB426detail7forwardINS0_10JsonStringEEEOT_RNS1_16remove_referenceIS4_E4typeE:
   14|  3.84k|T&& forward(remove_reference_t<T>& t) noexcept {
   15|  3.84k|  return static_cast<T&&>(t);
   16|  3.84k|}
_ZN11ArduinoJson8V740HB426detail7forwardIRNS0_10JsonStringEEEOT_RNS1_16remove_referenceIS5_E4typeE:
   14|  2.60k|T&& forward(remove_reference_t<T>& t) noexcept {
   15|  2.60k|  return static_cast<T&&>(t);
   16|  2.60k|}
_ZN11ArduinoJson8V740HB426detail7forwardIRNS0_12JsonDocumentEEEOT_RNS1_16remove_referenceIS5_E4typeE:
   14|  2.46k|T&& forward(remove_reference_t<T>& t) noexcept {
   15|  2.46k|  return static_cast<T&&>(t);
   16|  2.46k|}
_ZN11ArduinoJson8V740HB426detail7forwardIRmEEOT_RNS1_16remove_referenceIS4_E4typeE:
   14|  2.46k|T&& forward(remove_reference_t<T>& t) noexcept {
   15|  2.46k|  return static_cast<T&&>(t);
   16|  2.46k|}

_ZN11ArduinoJson8V740HB426detail17CountingDecoratorINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEEC2ERSB_:
   14|    947|  explicit CountingDecorator(TWriter& writer) : writer_(writer), count_(0) {}
_ZN11ArduinoJson8V740HB426detail17CountingDecoratorINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5writeEPKhm:
   20|  3.75k|  void write(const uint8_t* s, size_t n) {
   21|  3.75k|    count_ += writer_.write(s, n);
   22|  3.75k|  }
_ZN11ArduinoJson8V740HB426detail17CountingDecoratorINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5writeEh:
   16|  6.49k|  void write(uint8_t c) {
   17|  6.49k|    count_ += writer_.write(c);
   18|  6.49k|  }
_ZNK11ArduinoJson8V740HB426detail17CountingDecoratorINS1_6WriterINSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEvEEE5countEv:
   24|  3.81k|  size_t count() const {
   25|  3.81k|    return count_;
   26|  3.81k|  }

_ZN11ArduinoJson8V740HB426detail6WriterINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEvEC2ERS9_:
   24|    947|  Writer(TDestination& str) : str_(&str) {
   25|    947|    str.clear();
   26|    947|  }
_ZN11ArduinoJson8V740HB426detail6WriterINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEvE5writeEPKhm:
   33|  3.75k|  size_t write(const uint8_t* s, size_t n) {
   34|  3.75k|    str_->append(reinterpret_cast<const char*>(s), n);
   35|  3.75k|    return n;
   36|  3.75k|  }
_ZN11ArduinoJson8V740HB426detail6WriterINSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEEvE5writeEh:
   28|  6.49k|  size_t write(uint8_t c) {
   29|  6.49k|    str_->push_back(static_cast<char>(c));
   30|  6.49k|    return 1;
   31|  6.49k|  }

_ZN11ArduinoJson8V740HB426detail9serializeINS1_14JsonSerializerENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEEEEmNS0_16JsonVariantConstERT0_:
   21|    947|                 TDestination& destination) {
   22|    947|  Writer<TDestination> writer(destination);
   23|    947|  return doSerialize<TSerializer>(source, writer);
   24|    947|}
_ZN11ArduinoJson8V740HB426detail11doSerializeINS1_14JsonSerializerENS1_6WriterINSt3__112basic_stringIcNS5_11char_traitsIcEENS5_9allocatorIcEEEEvEEEEmNS0_16JsonVariantConstET0_:
   12|    947|size_t doSerialize(ArduinoJson::JsonVariantConst source, TWriter writer) {
   13|    947|  auto data = VariantAttorney::getData(source);
   14|    947|  auto resources = VariantAttorney::getResourceManager(source);
   15|    947|  TSerializer<TWriter> serializer(writer, resources);
   16|    947|  return VariantData::accept(data, resources, serializer);
   17|    947|}

_ZNK11ArduinoJson8V740HB426detail9RamString4dataEv:
   48|    321|  const char* data() const {
   49|    321|    return str_;
   50|    321|  }
_ZNK11ArduinoJson8V740HB426detail9RamString4sizeEv:
   38|  17.5k|  size_t size() const {
   39|  17.5k|    return size_;
   40|  17.5k|  }
_ZN11ArduinoJson8V740HB426detail9RamStringC2EPKcmb:
   30|  7.04k|      : str_(str), size_(sz & sizeMask), static_(isStatic) {
   31|  7.04k|    ARDUINOJSON_ASSERT(size_ == sz);
  ------------------
  |  |   11|  7.04k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   32|  7.04k|  }
_ZNK11ArduinoJson8V740HB426detail9RamString6isNullEv:
   34|  10.5k|  bool isNull() const {
   35|  10.5k|    return !str_;
   36|  10.5k|  }
_ZNK11ArduinoJson8V740HB426detail9RamStringixEm:
   42|  9.29k|  char operator[](size_t i) const {
   43|  9.29k|    ARDUINOJSON_ASSERT(str_ != 0);
  ------------------
  |  |   11|  9.29k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   44|  9.29k|    ARDUINOJSON_ASSERT(i <= size());
  ------------------
  |  |   11|  9.29k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   45|  9.29k|    return str_[i];
   46|  9.29k|  }
_ZN11ArduinoJson8V740HB426detail18SizedStringAdapterIPcvE5adaptEPKcm:
  113|    276|  static AdaptedString adapt(const TChar* p, size_t n) {
  114|    276|    return AdaptedString(reinterpret_cast<const char*>(p), n);
  115|    276|  }

_ZNK11ArduinoJson8V740HB4210JsonString5c_strEv:
   35|    321|  const char* c_str() const {
   36|    321|    return str_.data();
   37|    321|  }
_ZNK11ArduinoJson8V740HB4210JsonString4sizeEv:
   51|    321|  size_t size() const {
   52|    321|    return str_.size();
   53|    321|  }
_ZN11ArduinoJson8V740HB4210JsonStringC2EPKcb:
   25|  4.06k|      : str_(data, data ? ::strlen(data) : 0, isStatic) {}
  ------------------
  |  Branch (25:20): [True: 4.06k, False: 0]
  ------------------
_ZN11ArduinoJson8V740HB4210JsonStringC2ItTnNS0_6detail9enable_ifIXaasr6detail11is_integralIT_EE5valuentsr6detail7is_sameIS5_bEE5valueEiE4typeELi0EEEPKcS5_b:
   32|    106|      : str_(data, size_t(sz), isStatic) {}
_ZN11ArduinoJson8V740HB4210JsonStringC2ImTnNS0_6detail9enable_ifIXaasr6detail11is_integralIT_EE5valuentsr6detail7is_sameIS5_bEE5valueEiE4typeELi0EEEPKcS5_b:
   32|  2.60k|      : str_(data, size_t(sz), isStatic) {}
_ZN11ArduinoJson8V740HB426detail13StringAdapterINS0_10JsonStringEvE5adaptERKS3_:
   94|  6.45k|  static const AdaptedString& adapt(const JsonString& s) {
   95|  6.45k|    return s.str_;
   96|  6.45k|  }

_ZN11ArduinoJson8V740HB426detail11adaptStringINS0_10JsonStringEEENS1_13StringAdapterINS1_11conditionalIXsr15IsStringLiteralIT_EE5valueES6_NS1_9remove_cvINS1_16remove_referenceIS6_E4typeEE4typeEE4typeEvE13AdaptedStringEOS6_:
   33|  3.84k|AdaptedString<TString> adaptString(TString&& s) {
   34|  3.84k|  return StringAdapterFor<TString>::adapt(detail::forward<TString>(s));
   35|  3.84k|}
_ZN11ArduinoJson8V740HB426detail11adaptStringIRNS0_10JsonStringEEENS1_13StringAdapterINS1_11conditionalIXsr15IsStringLiteralIT_EE5valueES7_NS1_9remove_cvINS1_16remove_referenceIS7_E4typeEE4typeEE4typeEvE13AdaptedStringEOS7_:
   33|  2.60k|AdaptedString<TString> adaptString(TString&& s) {
   34|  2.60k|  return StringAdapterFor<TString>::adapt(detail::forward<TString>(s));
   35|  2.60k|}
_ZN11ArduinoJson8V740HB426detail11adaptStringIcEENS1_13StringAdapterINS1_11conditionalIXsr15IsStringLiteralIPT_EE5valueES6_NS1_9remove_cvINS1_16remove_referenceIS6_E4typeEE4typeEE4typeEvE13AdaptedStringES6_m:
   43|    276|AdaptedString<TChar*> adaptString(TChar* p, size_t n) {
   44|    276|  return SizedStringAdapter<TChar*>::adapt(p, n);
   45|    276|}

_ZN11ArduinoJson8V740HB426detail12stringEqualsINS1_9RamStringES3_EENS1_9enable_ifIXlesrT_11typeSortKeysrT0_11typeSortKeyEbE4typeES5_S6_:
   44|  3.98k|stringEquals(TAdaptedString1 s1, TAdaptedString2 s2) {
   45|  3.98k|  ARDUINOJSON_ASSERT(!s1.isNull());
  ------------------
  |  |   11|  3.98k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   46|  3.98k|  ARDUINOJSON_ASSERT(!s2.isNull());
  ------------------
  |  |   11|  3.98k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   47|  3.98k|  size_t size1 = s1.size();
   48|  3.98k|  size_t size2 = s2.size();
   49|  3.98k|  if (size1 != size2)
  ------------------
  |  Branch (49:7): [True: 241, False: 3.74k]
  ------------------
   50|    241|    return false;
   51|  5.13k|  for (size_t i = 0; i < size1; i++) {
  ------------------
  |  Branch (51:22): [True: 4.64k, False: 489]
  ------------------
   52|  4.64k|    if (s1[i] != s2[i])
  ------------------
  |  Branch (52:9): [True: 3.25k, False: 1.39k]
  ------------------
   53|  3.25k|      return false;
   54|  4.64k|  }
   55|    489|  return true;
   56|  3.74k|}

_ZN11ArduinoJson8V740HB4216JsonVariantConstC2EPKNS0_6detail11VariantDataEPKNS2_15ResourceManagerE:
   43|    947|      : data_(data), resources_(resources) {}
_ZNK11ArduinoJson8V740HB4216JsonVariantConst7getDataEv:
  184|    947|  const detail::VariantData* getData() const {
  185|    947|    return data_;
  186|    947|  }
_ZNK11ArduinoJson8V740HB4216JsonVariantConst18getResourceManagerEv:
  188|    947|  const detail::ResourceManager* getResourceManager() const {
  189|    947|    return resources_;
  190|    947|  }

_ZN11ArduinoJson8V740HB426detail15VariantAttorney7getDataINS0_16JsonVariantConstEEEDTcldtfp_7getDataEERT_:
   25|    947|  static auto getData(TClient& client) -> decltype(client.getData()) {
   26|    947|    return client.getData();
   27|    947|  }
_ZN11ArduinoJson8V740HB426detail15VariantAttorney18getResourceManagerINS0_16JsonVariantConstEEEDTcldtfp_18getResourceManagerEERT_:
   20|    947|      -> decltype(client.getResourceManager()) {
   21|    947|    return client.getResourceManager();
   22|    947|  }
_ZN11ArduinoJson8V740HB426detail15VariantAttorney15getOrCreateDataINS0_12JsonDocumentEEEPNS1_11VariantDataERT_:
   30|  2.46k|  static VariantData* getOrCreateData(TClient& client) {
   31|  2.46k|    return client.getOrCreateData();
   32|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail15VariantAttorney18getResourceManagerINS0_12JsonDocumentEEEDTcldtfp_18getResourceManagerEERT_:
   20|  2.46k|      -> decltype(client.getResourceManager()) {
   21|  2.46k|    return client.getResourceManager();
   22|  2.46k|  }

_ZN11ArduinoJson8V740HB426detail14VariantContentC2Ev:
   53|  17.8k|  VariantContent() {}
_ZN11ArduinoJson8V740HB426detailanENS1_11VariantTypeENS1_15VariantTypeBitsE:
   46|  9.28k|inline bool operator&(VariantType type, VariantTypeBits bit) {
   47|  9.28k|  return (uint8_t(type) & uint8_t(bit)) != 0;
   48|  9.28k|}

_ZN11ArduinoJson8V740HB426detail11VariantDataC2Ev:
   43|  17.8k|  VariantData() : type_(VariantType::Null), next_(NULL_SLOT) {}
_ZN11ArduinoJson8V740HB426detail11VariantData6acceptINS1_14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEvEEEEEENT_11result_typeEPKS2_PKNS1_15ResourceManagerERSF_:
  115|    947|                                               TVisitor& visit) {
  116|    947|    if (var != 0)
  ------------------
  |  Branch (116:9): [True: 947, False: 0]
  ------------------
  117|    947|      return var->accept(visit, resources);
  118|      0|    else
  119|      0|      return visit.visit(nullptr);
  120|    947|  }
_ZNK11ArduinoJson8V740HB426detail11VariantData6acceptINS1_14JsonSerializerINS1_6WriterINSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEvEEEEEENT_11result_typeERSF_PKNS1_15ResourceManagerE:
   55|  3.81k|      TVisitor& visit, const ResourceManager* resources) const {
   56|  3.81k|#if ARDUINOJSON_USE_EXTENSIONS
   57|  3.81k|    auto extension = getExtension(resources);
   58|       |#else
   59|       |    (void)resources;  // silence warning
   60|       |#endif
   61|  3.81k|    switch (type_) {
   62|  1.15k|      case VariantType::Float:
  ------------------
  |  Branch (62:7): [True: 1.15k, False: 2.66k]
  ------------------
   63|  1.15k|        return visit.visit(content_.asFloat);
   64|       |
   65|      0|#if ARDUINOJSON_USE_DOUBLE
   66|    318|      case VariantType::Double:
  ------------------
  |  Branch (66:7): [True: 318, False: 3.49k]
  ------------------
   67|    318|        return visit.visit(extension->asDouble);
   68|      0|#endif
   69|       |
   70|    433|      case VariantType::Array:
  ------------------
  |  Branch (70:7): [True: 433, False: 3.38k]
  ------------------
   71|    433|        return visit.visit(content_.asArray);
   72|       |
   73|    175|      case VariantType::Object:
  ------------------
  |  Branch (73:7): [True: 175, False: 3.64k]
  ------------------
   74|    175|        return visit.visit(content_.asObject);
   75|       |
   76|    294|      case VariantType::TinyString:
  ------------------
  |  Branch (76:7): [True: 294, False: 3.52k]
  ------------------
   77|    294|        return visit.visit(JsonString(content_.asTinyString));
   78|       |
   79|      0|      case VariantType::LinkedString:
  ------------------
  |  Branch (79:7): [True: 0, False: 3.81k]
  ------------------
   80|      0|        return visit.visit(JsonString(content_.asLinkedString, true));
   81|       |
   82|     27|      case VariantType::OwnedString:
  ------------------
  |  Branch (82:7): [True: 27, False: 3.78k]
  ------------------
   83|     27|        return visit.visit(JsonString(content_.asOwnedString->data,
   84|     27|                                      content_.asOwnedString->length));
   85|       |
   86|      0|      case VariantType::RawString:
  ------------------
  |  Branch (86:7): [True: 0, False: 3.81k]
  ------------------
   87|      0|        return visit.visit(RawString(content_.asOwnedString->data,
   88|      0|                                     content_.asOwnedString->length));
   89|       |
   90|    200|      case VariantType::Int32:
  ------------------
  |  Branch (90:7): [True: 200, False: 3.61k]
  ------------------
   91|    200|        return visit.visit(static_cast<JsonInteger>(content_.asInt32));
   92|       |
   93|    640|      case VariantType::Uint32:
  ------------------
  |  Branch (93:7): [True: 640, False: 3.17k]
  ------------------
   94|    640|        return visit.visit(static_cast<JsonUInt>(content_.asUint32));
   95|       |
   96|      0|#if ARDUINOJSON_USE_LONG_LONG
   97|    222|      case VariantType::Int64:
  ------------------
  |  Branch (97:7): [True: 222, False: 3.59k]
  ------------------
   98|    222|        return visit.visit(extension->asInt64);
   99|       |
  100|    154|      case VariantType::Uint64:
  ------------------
  |  Branch (100:7): [True: 154, False: 3.66k]
  ------------------
  101|    154|        return visit.visit(extension->asUint64);
  102|      0|#endif
  103|       |
  104|    132|      case VariantType::Boolean:
  ------------------
  |  Branch (104:7): [True: 132, False: 3.68k]
  ------------------
  105|    132|        return visit.visit(content_.asBoolean != 0);
  106|       |
  107|     66|      default:
  ------------------
  |  Branch (107:7): [True: 66, False: 3.75k]
  ------------------
  108|     66|        return visit.visit(nullptr);
  109|  3.81k|    }
  110|  3.81k|  }
_ZNK11ArduinoJson8V740HB426detail11VariantData4nextEv:
   45|  11.8k|  SlotId next() const {
   46|  11.8k|    return next_;
   47|  11.8k|  }
_ZN11ArduinoJson8V740HB426detail11VariantData5resetEv:
  462|  2.46k|  void reset() {  // TODO: remove
  463|  2.46k|    type_ = VariantType::Null;
  464|  2.46k|  }
_ZN11ArduinoJson8V740HB426detail11VariantDatanwEmPv:
   37|  15.4k|  static void* operator new(size_t, void* p) noexcept {
   38|  15.4k|    return p;
   39|  15.4k|  }
_ZN11ArduinoJson8V740HB426detail11VariantData7setNextEj:
   49|  11.7k|  void setNext(SlotId slot) {
   50|  11.7k|    next_ = slot;
   51|  11.7k|  }
_ZN11ArduinoJson8V740HB426detail11VariantData7toArrayEv:
  559|  2.60k|  ArrayData& toArray() {
  560|  2.60k|    ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|  2.60k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  561|  2.60k|    type_ = VariantType::Array;
  562|  2.60k|    new (&content_.asArray) ArrayData();
  563|  2.60k|    return content_.asArray;
  564|  2.60k|  }
_ZNK11ArduinoJson8V740HB426detail11VariantData8asStringEv:
  301|  3.84k|  JsonString asString() const {
  302|  3.84k|    switch (type_) {
  303|  3.76k|      case VariantType::TinyString:
  ------------------
  |  Branch (303:7): [True: 3.76k, False: 79]
  ------------------
  304|  3.76k|        return JsonString(content_.asTinyString);
  305|      0|      case VariantType::LinkedString:
  ------------------
  |  Branch (305:7): [True: 0, False: 3.84k]
  ------------------
  306|      0|        return JsonString(content_.asLinkedString, true);
  307|     79|      case VariantType::OwnedString:
  ------------------
  |  Branch (307:7): [True: 79, False: 3.76k]
  ------------------
  308|     79|        return JsonString(content_.asOwnedString->data,
  309|     79|                          content_.asOwnedString->length);
  310|      0|      default:
  ------------------
  |  Branch (310:7): [True: 0, False: 3.84k]
  ------------------
  311|      0|        return JsonString();
  312|  3.84k|    }
  313|  3.84k|  }
json_fuzzer.cpp:_ZN11ArduinoJson8V740HB426detailL12isTinyStringIPcEEbRKT_m:
   21|  3.16k|static bool isTinyString(const T& s, size_t n) {
   22|  3.16k|  if (n > tinyStringMaxLength)
  ------------------
  |  Branch (22:7): [True: 130, False: 3.03k]
  ------------------
   23|    130|    return false;
   24|  3.03k|  bool containsNul = false;
   25|  5.32k|  for (uint8_t i = 0; i < uint8_t(n); i++)
  ------------------
  |  Branch (25:23): [True: 2.29k, False: 3.03k]
  ------------------
   26|  2.29k|    containsNul |= !s[i];
   27|  3.03k|  return !containsNul;
   28|  3.16k|}
_ZN11ArduinoJson8V740HB426detail11VariantData13setTinyStringEPKch:
  529|  3.03k|  void setTinyString(const char* s, uint8_t n) {
  530|  3.03k|    ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|  3.03k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  531|  3.03k|    ARDUINOJSON_ASSERT(s);
  ------------------
  |  |   11|  3.03k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  532|  3.03k|    type_ = VariantType::TinyString;
  533|  5.31k|    for (uint8_t i = 0; i < n; i++)
  ------------------
  |  Branch (533:25): [True: 2.28k, False: 3.03k]
  ------------------
  534|  2.28k|      content_.asTinyString[i] = s[i];
  535|  3.03k|    content_.asTinyString[n] = 0;
  536|  3.03k|  }
_ZN11ArduinoJson8V740HB426detail11VariantData14setOwnedStringEPNS1_10StringNodeE:
  538|    133|  void setOwnedString(StringNode* s) {
  539|    133|    ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|    133|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  540|    133|    ARDUINOJSON_ASSERT(s);
  ------------------
  |  |   11|    133|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  541|    133|    type_ = VariantType::OwnedString;
  542|    133|    content_.asOwnedString = s;
  543|    133|  }
_ZN11ArduinoJson8V740HB426detail11VariantData12asCollectionEv:
  185|  1.73k|  CollectionData* asCollection() {
  186|  1.73k|    return isCollection() ? &content_.asCollection : 0;
  ------------------
  |  Branch (186:12): [True: 391, False: 1.34k]
  ------------------
  187|  1.73k|  }
_ZNK11ArduinoJson8V740HB426detail11VariantData12isCollectionEv:
  368|  1.73k|  bool isCollection() const {
  369|  1.73k|    return type_ & VariantTypeBits::CollectionMask;
  370|  1.73k|  }
_ZN11ArduinoJson8V740HB426detail11VariantData8toObjectEv:
  573|  1.75k|  ObjectData& toObject() {
  574|  1.75k|    ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|  1.75k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  575|  1.75k|    type_ = VariantType::Object;
  576|  1.75k|    new (&content_.asObject) ObjectData();
  577|  1.75k|    return content_.asObject;
  578|  1.75k|  }
_ZN11ArduinoJson8V740HB426detail11VariantData10setBooleanEb:
  466|    525|  void setBoolean(bool value) {
  467|    525|    ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|    525|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  468|    525|    type_ = VariantType::Boolean;
  469|    525|    content_.asBoolean = value;
  470|    525|  }
_ZN11ArduinoJson8V740HB426detail11VariantData8setFloatIfEENS1_9enable_ifIXeqstT_Li4EEbE4typeES5_PNS1_15ResourceManagerE:
  473|  4.76k|  enable_if_t<sizeof(T) == 4, bool> setFloat(T value, ResourceManager*) {
  474|  4.76k|    ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|  4.76k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  475|  4.76k|    type_ = VariantType::Float;
  476|  4.76k|    content_.asFloat = value;
  477|  4.76k|    return true;
  478|  4.76k|  }
_ZNK11ArduinoJson8V740HB426detail11VariantData7isFloatEv:
  372|    264|  bool isFloat() const {
  373|    264|    return type_ & VariantTypeBits::NumberBit;
  374|    264|  }

_ZNK11ArduinoJson8V740HB426detail11VariantData12getExtensionEPKNS1_15ResourceManagerE:
   66|  3.81k|    const ResourceManager* resources) const {
   67|  3.81k|  return type_ & VariantTypeBits::ExtensionBit
  ------------------
  |  Branch (67:10): [True: 694, False: 3.12k]
  ------------------
   68|  3.81k|             ? resources->getExtension(content_.asSlotId)
   69|  3.81k|             : nullptr;
   70|  3.81k|}
_ZN11ArduinoJson8V740HB426detail11VariantData5clearEPNS1_15ResourceManagerE:
   48|  1.73k|inline void VariantData::clear(ResourceManager* resources) {
   49|  1.73k|  if (type_ & VariantTypeBits::OwnedStringBit)
  ------------------
  |  Branch (49:7): [True: 0, False: 1.73k]
  ------------------
   50|      0|    resources->dereferenceString(content_.asOwnedString->data);
   51|       |
   52|  1.73k|#if ARDUINOJSON_USE_EXTENSIONS
   53|  1.73k|  if (type_ & VariantTypeBits::ExtensionBit)
  ------------------
  |  Branch (53:7): [True: 78, False: 1.65k]
  ------------------
   54|     78|    resources->freeExtension(content_.asSlotId);
   55|  1.73k|#endif
   56|       |
   57|  1.73k|  auto collection = asCollection();
   58|  1.73k|  if (collection)
  ------------------
  |  Branch (58:7): [True: 391, False: 1.34k]
  ------------------
   59|    391|    collection->clear(resources);
   60|       |
   61|  1.73k|  type_ = VariantType::Null;
   62|  1.73k|}
_ZN11ArduinoJson8V740HB426detail11VariantData10setIntegerImEENS1_9enable_ifIXsr11is_unsignedIT_EE5valueEbE4typeES5_PNS1_15ResourceManagerE:
  125|  2.96k|    T value, ResourceManager* resources) {
  126|  2.96k|  ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|  2.96k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  127|  2.96k|  (void)resources;                                 // silence warning
  128|       |
  129|  2.96k|  if (canConvertNumber<uint32_t>(value)) {
  ------------------
  |  Branch (129:7): [True: 2.76k, False: 196]
  ------------------
  130|  2.76k|    type_ = VariantType::Uint32;
  131|  2.76k|    content_.asUint32 = static_cast<uint32_t>(value);
  132|  2.76k|  }
  133|    196|#if ARDUINOJSON_USE_LONG_LONG
  134|    196|  else {
  135|    196|    auto extension = resources->allocExtension();
  136|    196|    if (!extension)
  ------------------
  |  Branch (136:9): [True: 0, False: 196]
  ------------------
  137|      0|      return false;
  138|    196|    type_ = VariantType::Uint64;
  139|    196|    content_.asSlotId = extension.id();
  140|    196|    extension->asUint64 = value;
  141|    196|  }
  142|  2.96k|#endif
  143|  2.96k|  return true;
  144|  2.96k|}
_ZN11ArduinoJson8V740HB426detail11VariantData10setIntegerIlEENS1_9enable_ifIXsr9is_signedIT_EE5valueEbE4typeES5_PNS1_15ResourceManagerE:
  102|    578|    T value, ResourceManager* resources) {
  103|    578|  ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|    578|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
  104|    578|  (void)resources;                                 // silence warning
  105|       |
  106|    578|  if (canConvertNumber<int32_t>(value)) {
  ------------------
  |  Branch (106:7): [True: 316, False: 262]
  ------------------
  107|    316|    type_ = VariantType::Int32;
  108|    316|    content_.asInt32 = static_cast<int32_t>(value);
  109|    316|  }
  110|    262|#if ARDUINOJSON_USE_LONG_LONG
  111|    262|  else {
  112|    262|    auto extension = resources->allocExtension();
  113|    262|    if (!extension)
  ------------------
  |  Branch (113:9): [True: 0, False: 262]
  ------------------
  114|      0|      return false;
  115|    262|    type_ = VariantType::Int64;
  116|    262|    content_.asSlotId = extension.id();
  117|    262|    extension->asInt64 = value;
  118|    262|  }
  119|    578|#endif
  120|    578|  return true;
  121|    578|}
_ZN11ArduinoJson8V740HB426detail11VariantData8setFloatIdEENS1_9enable_ifIXeqstT_Li8EEbE4typeES5_PNS1_15ResourceManagerE:
   75|  1.02k|    T value, ResourceManager* resources) {
   76|  1.02k|  ARDUINOJSON_ASSERT(type_ == VariantType::Null);  // must call clear() first
  ------------------
  |  |   11|  1.02k|#  define ARDUINOJSON_ASSERT(X) assert(X)
  ------------------
   77|  1.02k|  (void)resources;                                 // silence warning
   78|       |
   79|  1.02k|  float valueAsFloat = static_cast<float>(value);
   80|       |
   81|  1.02k|#if ARDUINOJSON_USE_DOUBLE
   82|  1.02k|  if (value == valueAsFloat) {
  ------------------
  |  Branch (82:7): [True: 311, False: 715]
  ------------------
   83|    311|    type_ = VariantType::Float;
   84|    311|    content_.asFloat = valueAsFloat;
   85|    715|  } else {
   86|    715|    auto extension = resources->allocExtension();
   87|    715|    if (!extension)
  ------------------
  |  Branch (87:9): [True: 0, False: 715]
  ------------------
   88|      0|      return false;
   89|    715|    type_ = VariantType::Double;
   90|    715|    content_.asSlotId = extension.id();
   91|    715|    extension->asDouble = value;
   92|    715|  }
   93|       |#else
   94|       |  type_ = VariantType::Float;
   95|       |  content_.asFloat = valueAsFloat;
   96|       |#endif
   97|  1.02k|  return true;
   98|  1.02k|}

