LLVMFuzzerTestOneInput:
    7|  29.4k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
    8|       |  // Invalid files generate a lot of warnings, so switch off logging.
    9|  29.4k|  Exiv2::LogMsg::setLevel(Exiv2::LogMsg::mute);
   10|       |
   11|  29.4k|  try {
   12|  29.4k|    Exiv2::DataBuf data_copy(data, size);
   13|  29.4k|    Exiv2::Image::UniquePtr image = Exiv2::ImageFactory::open(data_copy.c_data(), size);
   14|  29.4k|    assert(image.get() != 0);
   15|       |
   16|  29.4k|    image->readMetadata();
   17|  15.9M|    for (auto& md : image->exifData()) {
  ------------------
  |  Branch (17:19): [True: 15.9M, False: 29.4k]
  ------------------
   18|  15.9M|      if (md.tagName().substr(0, 2) != "0x") {
  ------------------
  |  Branch (18:11): [True: 625k, False: 15.3M]
  ------------------
   19|   625k|        md.print();
   20|   625k|        md.print(&image->exifData());
   21|   625k|      }
   22|  15.9M|    }
   23|  29.4k|    for (auto& md : image->iptcData()) {
  ------------------
  |  Branch (23:19): [True: 2.43k, False: 29.4k]
  ------------------
   24|  2.43k|      if (md.tagName().substr(0, 2) != "0x") {
  ------------------
  |  Branch (24:11): [True: 1.48k, False: 944]
  ------------------
   25|  1.48k|        md.print();
   26|  1.48k|        md.print(&image->exifData());
   27|  1.48k|      }
   28|  2.43k|    }
   29|  29.4k|    for (auto& md : image->xmpData()) {
  ------------------
  |  Branch (29:19): [True: 8.99k, False: 29.4k]
  ------------------
   30|  8.99k|      if (md.tagName().substr(0, 2) != "0x") {
  ------------------
  |  Branch (30:11): [True: 8.99k, False: 0]
  ------------------
   31|  8.99k|        md.print();
   32|  8.99k|        md.print(&image->exifData());
   33|  8.99k|      }
   34|  8.99k|    }
   35|       |
   36|       |    // Print to a std::ostringstream so that the fuzzer doesn't
   37|       |    // produce lots of garbage on stdout.
   38|  29.4k|    std::ostringstream buffer;
   39|  29.4k|    image->printStructure(buffer, Exiv2::kpsNone);
   40|  29.4k|    image->printStructure(buffer, Exiv2::kpsBasic);
   41|  29.4k|    image->printStructure(buffer, Exiv2::kpsXMP);
   42|  29.4k|    image->printStructure(buffer, Exiv2::kpsRecursive);
   43|  29.4k|    image->printStructure(buffer, Exiv2::kpsIccProfile);
   44|  29.4k|    image->printStructure(buffer, Exiv2::kpsIptcErase);
   45|       |
   46|  29.4k|    image->writeMetadata();
   47|       |
   48|  29.4k|  } catch (...) {
   49|       |    // Exiv2 throws an exception if the metadata is invalid.
   50|  27.8k|  }
   51|       |
   52|  29.4k|  return 0;
   53|  29.4k|}

_ZN5Exiv28AsfVideo7GUIDTagC2EjttNSt3__15arrayIhLm8EEE:
   81|    124|        data1_(data1), data2_(data2), data3_(data3), data4_(data4) {
   82|    124|    }
_ZNK5Exiv28AsfVideo12HeaderReader7getSizeEv:
  104|  1.18k|    [[nodiscard]] uint64_t getSize() const {
  105|  1.18k|      return size_;
  106|  1.18k|    }
_ZNK5Exiv28AsfVideo12HeaderReader16getRemainingSizeEv:
  108|    252|    [[nodiscard]] uint64_t getRemainingSize() const {
  109|    252|      return remaining_size_;
  110|    252|    }
_ZN5Exiv28AsfVideo12HeaderReader5getIdEv:
  112|  1.10k|    [[nodiscard]] DataBuf& getId() {
  113|  1.10k|      return IdBuf_;
  114|  1.10k|    }

_ZN5Exiv28IoCloserC2ERNS_7BasicIoE:
  249|  81.2k|  explicit IoCloser(BasicIo& bio) : bio_(bio) {
  250|  81.2k|  }
_ZN5Exiv28IoCloserD2Ev:
  252|  81.2k|  virtual ~IoCloser() {
  253|  81.2k|    close();
  254|  81.2k|  }
_ZN5Exiv28IoCloser5closeEv:
  260|  81.2k|  void close() {
  261|  81.2k|    if (bio_.isopen())
  ------------------
  |  Branch (261:9): [True: 81.2k, False: 0]
  ------------------
  262|  81.2k|      bio_.close();
  263|  81.2k|  }
_ZN5Exiv27BasicIoC2Ev:
   40|  59.3k|  BasicIo() = default;

_ZN5Exiv24IlocC2Ejjj:
   24|  12.0k|  explicit Iloc(uint32_t ID = 0, uint32_t start = 0, uint32_t length = 0) : ID_(ID), start_(start), length_(length) {
   25|  12.0k|  }

_ZN5Exiv25ErrorC2INSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEENS_9ErrorCodeERKT_:
  243|  2.75k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  2.75k|    setMsg(1);
  245|  2.75k|  }
_ZN5Exiv213toBasicStringIcNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEEENS2_IT_NS3_IS8_EENS5_IS8_EEEERKT0_:
  153|  2.75k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  2.75k|  std::basic_ostringstream<charT> os;
  155|  2.75k|  os << arg;
  156|  2.75k|  return os.str();
  157|  2.75k|}
_ZN5Exiv213toBasicStringIcA4_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     91|std::basic_string<charT> toBasicString(const T& arg) {
  154|     91|  std::basic_ostringstream<charT> os;
  155|     91|  os << arg;
  156|     91|  return os.str();
  157|     91|}
_ZN5Exiv25ErrorC2IA10_cEENS_9ErrorCodeERKT_:
  243|     19|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     19|    setMsg(1);
  245|     19|  }
_ZN5Exiv213toBasicStringIcA10_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     19|std::basic_string<charT> toBasicString(const T& arg) {
  154|     19|  std::basic_ostringstream<charT> os;
  155|     19|  os << arg;
  156|     19|  return os.str();
  157|     19|}
_ZN5Exiv25ErrorC2IA5_cEENS_9ErrorCodeERKT_:
  243|  4.57k|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|  4.57k|    setMsg(1);
  245|  4.57k|  }
_ZN5Exiv213toBasicStringIcA5_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|  4.57k|std::basic_string<charT> toBasicString(const T& arg) {
  154|  4.57k|  std::basic_ostringstream<charT> os;
  155|  4.57k|  os << arg;
  156|  4.57k|  return os.str();
  157|  4.57k|}
_ZN5Exiv25ErrorC2IA4_cEENS_9ErrorCodeERKT_:
  243|     91|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     91|    setMsg(1);
  245|     91|  }
_ZN5Exiv25ErrorC2IPKcA6_cEENS_9ErrorCodeERKT_RKT0_:
  250|     18|      code_(code), arg1_(toBasicString<char>(arg1)), arg2_(toBasicString<char>(arg2)) {
  251|     18|    setMsg(2);
  252|     18|  }
_ZN5Exiv213toBasicStringIcPKcEENSt3__112basic_stringIT_NS3_11char_traitsIS5_EENS3_9allocatorIS5_EEEERKT0_:
  153|     40|std::basic_string<charT> toBasicString(const T& arg) {
  154|     40|  std::basic_ostringstream<charT> os;
  155|     40|  os << arg;
  156|     40|  return os.str();
  157|     40|}
_ZN5Exiv213toBasicStringIcA6_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     18|std::basic_string<charT> toBasicString(const T& arg) {
  154|     18|  std::basic_ostringstream<charT> os;
  155|     18|  os << arg;
  156|     18|  return os.str();
  157|     18|}
_ZN5Exiv25ErrorC2IPKcEENS_9ErrorCodeERKT_:
  243|     22|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     22|    setMsg(1);
  245|     22|  }
_ZN5Exiv25ErrorC2IA61_cEENS_9ErrorCodeERKT_:
  243|     13|  Error(ErrorCode code, const A& arg1) : code_(code), arg1_(toBasicString<char>(arg1)) {
  244|     13|    setMsg(1);
  245|     13|  }
_ZN5Exiv213toBasicStringIcA61_cEENSt3__112basic_stringIT_NS2_11char_traitsIS4_EENS2_9allocatorIS4_EEEERKT0_:
  153|     13|std::basic_string<charT> toBasicString(const T& arg) {
  154|     13|  std::basic_ostringstream<charT> os;
  155|     13|  os << arg;
  156|     13|  return os.str();
  157|     13|}

_ZN5Exiv28ExifData5beginEv:
  437|  88.7k|  iterator begin() {
  438|  88.7k|    return exifMetadata_.begin();
  439|  88.7k|  }
_ZN5Exiv28ExifData3endEv:
  441|  5.66M|  iterator end() {
  442|  5.66M|    return exifMetadata_.end();
  443|  5.66M|  }
_ZNK5Exiv28ExifData5beginEv:
  454|  2.51k|  [[nodiscard]] const_iterator begin() const {
  455|  2.51k|    return exifMetadata_.begin();
  456|  2.51k|  }
_ZNK5Exiv28ExifData3endEv:
  458|   147k|  [[nodiscard]] const_iterator end() const {
  459|   147k|    return exifMetadata_.end();
  460|   147k|  }
_ZNK5Exiv28ExifData5emptyEv:
  467|  6.38k|  [[nodiscard]] bool empty() const {
  468|  6.38k|    return exifMetadata_.empty();
  469|  6.38k|  }
_ZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEENS_9ByteOrderERNS_8ExifDataE:
  562|  3.15k|  static void encode(Blob& blob, ByteOrder byteOrder, ExifData& exifData) {
  563|  3.15k|    encode(blob, nullptr, 0, byteOrder, exifData);
  564|  3.15k|  }

_ZNK5Exiv25Image17iccProfileDefinedEv:
  215|  1.06k|  [[nodiscard]] virtual bool iccProfileDefined() const {
  216|  1.06k|    return !iccProfile_.empty();
  217|  1.06k|  }
_ZN5Exiv25Image16setTypeSupportedENS_9ImageTypeEt:
  456|     62|  void setTypeSupported(ImageType imageType, uint16_t supportedMetadata) {
  457|     62|    imageType_ = imageType;
  458|     62|    supportedMetadata_ = supportedMetadata;
  459|     62|  }
_ZNK5Exiv25Image9imageTypeEv:
  462|  29.9k|  [[nodiscard]] ImageType imageType() const {
  463|  29.9k|    return imageType_;
  464|  29.9k|  }

_ZN5Exiv28IptcData5beginEv:
  207|  25.2k|  iterator begin() {
  208|  25.2k|    return iptcMetadata_.begin();
  209|  25.2k|  }
_ZN5Exiv28IptcData3endEv:
  211|  28.7k|  iterator end() {
  212|  28.7k|    return iptcMetadata_.end();
  213|  28.7k|  }
_ZN5Exiv28IptcData5clearEv:
  199|  31.2k|  void clear() {
  200|  31.2k|    iptcMetadata_.clear();
  201|  31.2k|  }
_ZNK5Exiv28IptcData5beginEv:
  229|    322|  [[nodiscard]] const_iterator begin() const {
  230|    322|    return iptcMetadata_.begin();
  231|    322|  }
_ZNK5Exiv28IptcData3endEv:
  233|    322|  [[nodiscard]] const_iterator end() const {
  234|    322|    return iptcMetadata_.end();
  235|    322|  }
_ZNK5Exiv28IptcData5emptyEv:
  247|  15.7k|  [[nodiscard]] bool empty() const {
  248|  15.7k|    return iptcMetadata_.empty();
  249|  15.7k|  }

_ZN5Exiv28Internal11MatroskaTagC2EmNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEENS0_16matroskaTypeEnumENS0_19matroskaProcessEnumE:
   69|    396|      _id(id), _label(std::move(label)), _type(type), _process(process) {
   70|    396|  }
_ZN5Exiv28Internal11MatroskaTagC2EmNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
   73|    152|      _id(id),
   74|    152|      _label(std::move(label)),
   75|    152|      _type(matroskaTypeEnum::UndefinedType),
   76|    152|      _process(matroskaProcessEnum::Undefined) {
   77|    152|  }
_ZNK5Exiv28Internal11MatroskaTageqEm:
   79|  2.14M|  bool operator==(uint64_t id) const {
   80|  2.14M|    return id == _id;
   81|  2.14M|  }
_ZNK5Exiv28Internal11MatroskaTag9isSkippedEv:
   83|  87.5k|  [[nodiscard]] bool isSkipped() const {
   84|  87.5k|    return _process == Skip;
   85|  87.5k|  }
_ZNK5Exiv28Internal11MatroskaTag11isCompositeEv:
   86|  63.7k|  [[nodiscard]] bool isComposite() const {
   87|  63.7k|    return _process == Composite;
   88|  63.7k|  }

_ZN5Exiv29MetadatumC2Ev:
  261|  37.6M|  Metadatum() = default;
_ZN5Exiv23KeyC2Ev:
   79|  56.1M|  Key() = default;
_ZN5Exiv23KeyC2ERKS0_:
   80|   496k|  Key(const Key&) = default;

_ZN5Exiv212PreviewImageD2Ev:
   54|    468|  ~PreviewImage() = default;

_ZN5Exiv213XmpProperties7XmpLockC2Ev:
   76|  1.98M|    XmpLock() : lock_(getMutex()) {
   77|  1.98M|    }

_ZNK5Exiv29RiffVideo12HeaderReader7getSizeEv:
   54|  28.4k|    [[nodiscard]] uint64_t getSize() const {
   55|  28.4k|      return size_;
   56|  28.4k|    }
_ZNK5Exiv29RiffVideo12HeaderReader5getIdEv:
   58|   309k|    [[nodiscard]] const std::string& getId() const {
   59|   309k|      return id_;
   60|   309k|    }

_ZN5Exiv28Internal9SliceBaseC2Emm:
   20|  61.9M|  SliceBase(size_t begin, size_t end) : begin_(begin), end_(end) {
   21|  61.9M|    if (begin >= end) {
  ------------------
  |  Branch (21:9): [True: 42, False: 61.9M]
  ------------------
   22|     42|      throw std::out_of_range("Begin must be smaller than end");
   23|     42|    }
   24|  61.9M|  }
_ZNK5Exiv28Internal9SliceBase4sizeEv:
   29|   125M|  [[nodiscard]] size_t size() const noexcept {
   30|       |    // cannot underflow, as we know that begin < end
   31|   125M|    return end_ - begin_;
   32|   125M|  }
_ZNK5Exiv28Internal9SliceBase10rangeCheckEm:
   41|   124M|  void rangeCheck(size_t index) const {
   42|   124M|    if (index >= size()) {
  ------------------
  |  Branch (42:9): [True: 0, False: 124M]
  ------------------
   43|      0|      throw std::out_of_range("Index outside of the slice");
   44|      0|    }
   45|   124M|  }
_ZNK5Exiv28Internal16MutableSliceBaseINS0_15PtrSliceStorageEPhE2atEm:
  174|   891k|  [[nodiscard]] const auto& at(size_t index) const {
  175|   891k|    return base_type::at(index);
  176|   891k|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPhE2atEm:
   99|   891k|  [[nodiscard]] const auto& at(size_t index) const {
  100|   891k|    rangeCheck(index);
  101|       |    // we know: begin_ < end <= size() <= SIZE_T_MAX
  102|       |    // and: index < end - begin
  103|       |    // thus: index + begin < end <= SIZE_T_MAX
  104|       |    // => no overflow is possible
  105|   891k|    return storage_.unsafeAt(begin_ + index);
  106|   891k|  }
_ZNK5Exiv28Internal15PtrSliceStorageIPhE8unsafeAtEm:
  335|   891k|  [[nodiscard]] const auto& unsafeAt(size_t index) const noexcept {
  336|   891k|    return data_[index];
  337|   891k|  }
_ZN5Exiv214makeSliceUntilIhEENS_5SliceIPT_EES3_m:
  527|    494|[[nodiscard]] Slice<T*> makeSliceUntil(T* ptr, size_t end) {
  528|    494|  return {ptr, 0, end};
  529|    494|}
_ZN5Exiv25SliceIPhEC2ES1_mm:
  466|  38.5k|  Slice(T* ptr, size_t begin, size_t end) : Internal::MutableSliceBase<Internal::PtrSliceStorage, T*>(ptr, begin, end) {
  467|       |    // TODO: use using in C++11
  468|  38.5k|  }
_ZN5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPhEC2ERS3_mm:
   90|  38.5k|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  38.5k|  }
_ZN5Exiv28Internal15PtrSliceStorageIPhEC2ES2_mm:
  319|  38.5k|  PtrSliceStorage(storage_type ptr, size_t /*begin*/, size_t /*end*/) : data_(ptr) {
  320|  38.5k|    if (!ptr) {
  ------------------
  |  Branch (320:9): [True: 0, False: 38.5k]
  ------------------
  321|      0|      throw std::invalid_argument("Null pointer passed to slice constructor");
  322|      0|    }
  323|  38.5k|  }
_ZNK5Exiv25SliceIPhE8subSliceEmm:
  474|  1.07k|  [[nodiscard]] Slice<const T*> subSlice(size_t begin, size_t end) const {
  475|  1.07k|    return this->to_const_base().template subSlice<Slice<const T*>>(begin, end);
  476|  1.07k|  }
_ZNK5Exiv28Internal16MutableSliceBaseINS0_15PtrSliceStorageEPhE13to_const_baseEv:
  210|  1.07k|  [[nodiscard]] ConstSliceBase<storage_type, const data_type> to_const_base() const noexcept {
  211|  1.07k|    return {this->storage_.data_, this->begin_, this->end_};
  212|  1.07k|  }
_ZN5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEKPhEC2ERS4_mm:
   90|  1.07k|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  1.07k|  }
_ZN5Exiv28Internal15PtrSliceStorageIKPhEC2ES2_mm:
  319|  1.07k|  PtrSliceStorage(storage_type ptr, size_t /*begin*/, size_t /*end*/) : data_(ptr) {
  320|  1.07k|    if (!ptr) {
  ------------------
  |  Branch (320:9): [True: 0, False: 1.07k]
  ------------------
  321|      0|      throw std::invalid_argument("Null pointer passed to slice constructor");
  322|      0|    }
  323|  1.07k|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEKPhE8subSliceINS_5SliceIPKhEEEET_mm:
  131|  1.07k|  [[nodiscard]] slice_type subSlice(size_t begin, size_t end) const {
  132|  1.07k|    this->rangeCheck(begin);
  133|       |    // end == size() is a legal value, since end is the first
  134|       |    // element beyond the slice
  135|       |    // end == 0 is not a legal value (subtraction will underflow and
  136|       |    // throw an exception)
  137|  1.07k|    this->rangeCheck(end - 1);
  138|       |    // additions are safe, begin and end are smaller than size()
  139|  1.07k|    const size_t new_begin = begin + this->begin_;
  140|  1.07k|    const size_t new_end = this->begin_ + end;
  141|  1.07k|    if (new_end > this->end_) {
  ------------------
  |  Branch (141:9): [True: 0, False: 1.07k]
  ------------------
  142|      0|      throw std::out_of_range("Invalid input parameters to slice");
  143|      0|    }
  144|  1.07k|    return {storage_.data_, new_begin, new_end};
  145|  1.07k|  }
_ZN5Exiv25SliceIPKhEC2ES2_mm:
  451|  61.9M|      Internal::ConstSliceBase<Internal::PtrSliceStorage, const T*>(ptr, begin, end) {
  452|       |    // TODO: use using in C++11
  453|  61.9M|  }
_ZN5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPKhEC2ERS4_mm:
   90|  61.9M|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  61.9M|  }
_ZN5Exiv28Internal15PtrSliceStorageIPKhEC2ES3_mm:
  319|  61.9M|  PtrSliceStorage(storage_type ptr, size_t /*begin*/, size_t /*end*/) : data_(ptr) {
  320|  61.9M|    if (!ptr) {
  ------------------
  |  Branch (320:9): [True: 0, False: 61.9M]
  ------------------
  321|      0|      throw std::invalid_argument("Null pointer passed to slice constructor");
  322|      0|    }
  323|  61.9M|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_15PtrSliceStorageEPKhE2atEm:
   99|   123M|  [[nodiscard]] const auto& at(size_t index) const {
  100|   123M|    rangeCheck(index);
  101|       |    // we know: begin_ < end <= size() <= SIZE_T_MAX
  102|       |    // and: index < end - begin
  103|       |    // thus: index + begin < end <= SIZE_T_MAX
  104|       |    // => no overflow is possible
  105|   123M|    return storage_.unsafeAt(begin_ + index);
  106|   123M|  }
_ZNK5Exiv28Internal15PtrSliceStorageIPKhE8unsafeAtEm:
  335|   123M|  [[nodiscard]] const auto& unsafeAt(size_t index) const noexcept {
  336|   123M|    return data_[index];
  337|   123M|  }
_ZN5Exiv29makeSliceIKNS_5SliceIPhEEEENS1_IT_EERS5_mm:
  486|  1.06k|[[nodiscard]] Slice<T> makeSlice(T& cont, size_t begin, size_t end) {
  487|  1.06k|  return {cont, begin, end};
  488|  1.06k|}
_ZN5Exiv28Internal14ConstSliceBaseINS0_16ContainerStorageEKNS_5SliceIPhEEEC2ERS6_mm:
   90|  1.06k|  ConstSliceBase(data_type& data, size_t begin, size_t end) : SliceBase(begin, end), storage_(data, begin, end) {
   91|  1.06k|  }
_ZN5Exiv28Internal16ContainerStorageIKNS_5SliceIPhEEEC2ERS5_mm:
  256|  1.05k|  ContainerStorage(container& data, size_t /* begin*/, size_t end) : data_(data) {
  257|  1.05k|    if (end > data.size()) {
  ------------------
  |  Branch (257:9): [True: 0, False: 1.05k]
  ------------------
  258|      0|      throw std::out_of_range("Invalid input parameters to slice");
  259|      0|    }
  260|  1.05k|  }
_ZNK5Exiv28Internal14ConstSliceBaseINS0_16ContainerStorageEKNS_5SliceIPhEEE2atEm:
   99|  6.27k|  [[nodiscard]] const auto& at(size_t index) const {
  100|  6.27k|    rangeCheck(index);
  101|       |    // we know: begin_ < end <= size() <= SIZE_T_MAX
  102|       |    // and: index < end - begin
  103|       |    // thus: index + begin < end <= SIZE_T_MAX
  104|       |    // => no overflow is possible
  105|  6.27k|    return storage_.unsafeAt(begin_ + index);
  106|  6.27k|  }
_ZNK5Exiv28Internal16ContainerStorageIKNS_5SliceIPhEEE8unsafeAtEm:
  268|  6.27k|  [[nodiscard]] const auto& unsafeAt(size_t index) const {
  269|  6.27k|    return data_.at(index);
  270|  6.27k|  }
_ZN5Exiv214makeSliceUntilIKhEENS_5SliceIPT_EES4_m:
  527|  61.9M|[[nodiscard]] Slice<T*> makeSliceUntil(T* ptr, size_t end) {
  528|  61.9M|  return {ptr, 0, end};
  529|  61.9M|}

_ZN5Exiv27DataBuf5beginEv:
  150|  2.32M|  [[nodiscard]] auto begin() noexcept {
  151|  2.32M|    return pData_.begin();
  152|  2.32M|  }
_ZN5Exiv27DataBuf3endEv:
  154|  18.6k|  [[nodiscard]] auto end() noexcept {
  155|  18.6k|    return pData_.end();
  156|  18.6k|  }
_ZNK5Exiv27DataBuf5beginEv:
  158|  2.50k|  [[nodiscard]] auto begin() const noexcept {
  159|  2.50k|    return pData_.begin();
  160|  2.50k|  }
_ZNK5Exiv27DataBuf3endEv:
  162|  2.39k|  [[nodiscard]] auto end() const noexcept {
  163|  2.39k|    return pData_.end();
  164|  2.39k|  }
_ZNK5Exiv27DataBuf4sizeEv:
  166|  2.64M|  [[nodiscard]] size_t size() const {
  167|  2.64M|    return pData_.size();
  168|  2.64M|  }
_ZNK5Exiv27DataBuf5emptyEv:
  194|  18.8k|  [[nodiscard]] bool empty() const {
  195|  18.8k|    return pData_.empty();
  196|  18.8k|  }
_ZN5Exiv27DataBufC2Ev:
  126|  2.93M|  DataBuf() = default;
image.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_18RegistryENS_9ImageTypeELm30EEEPKT_RAT1__S5_RKT0_:
  447|  31.7k|const T* find(T (&src)[N], const K& key) {
  448|  31.7k|  static_assert(N > 0, "Passed zero length find");
  449|  31.7k|  auto rc = std::find(src, src + N, key);
  450|  31.7k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 31.7k]
  ------------------
  451|  31.7k|}
_ZN5Exiv28toStringItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   146k|std::string toString(const T& arg) {
  467|   146k|  return toStringHelper(arg, std::is_integral<T>());
  468|   146k|}
_ZN5Exiv214toStringHelperItEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   146k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   146k|  return std::to_string(arg);
  457|   146k|}
_ZN5Exiv29getUShortIPKhEEtRKNS_5SliceIT_EENS_9ByteOrderE:
  227|  61.9M|uint16_t getUShort(const Slice<T>& buf, ByteOrder byteOrder) {
  228|  61.9M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (228:7): [True: 2.23M, False: 59.7M]
  ------------------
  229|  2.23M|    return static_cast<byte>(buf.at(1)) << 8 | static_cast<byte>(buf.at(0));
  230|  2.23M|  }
  231|  59.7M|  return static_cast<byte>(buf.at(0)) << 8 | static_cast<byte>(buf.at(1));
  232|  61.9M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm13EEEPKT_RAT1__S4_RKT0_:
  447|  63.6k|const T* find(T (&src)[N], const K& key) {
  448|  63.6k|  static_assert(N > 0, "Passed zero length find");
  449|  63.6k|  auto rc = std::find(src, src + N, key);
  450|  63.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 61.1k, False: 2.55k]
  ------------------
  451|  63.6k|}
types.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_113TypeInfoTableENS_6TypeIdELm24EEEPKT_RAT1__S5_RKT0_:
  447|  49.5M|const T* find(T (&src)[N], const K& key) {
  448|  49.5M|  static_assert(N > 0, "Passed zero length find");
  449|  49.5M|  auto rc = std::find(src, src + N, key);
  450|  49.5M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.59M, False: 43.9M]
  ------------------
  451|  49.5M|}
_ZN5Exiv28toStringIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  6.58k|std::string toString(const T& arg) {
  467|  6.58k|  return toStringHelper(arg, std::is_integral<T>());
  468|  6.58k|}
_ZN5Exiv214toStringHelperIjEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  6.58k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  6.58k|  return std::to_string(arg);
  457|  6.58k|}
_ZN5Exiv28toStringINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    224|std::string toString(const T& arg) {
  467|    224|  return toStringHelper(arg, std::is_integral<T>());
  468|    224|}
_ZN5Exiv214toStringHelperINSt3__14pairIjjEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    224|std::string toStringHelper(const T& arg, std::false_type) {
  461|    224|  std::ostringstream os;
  462|    224|  os << arg;
  463|    224|  return os.str();
  464|    224|}
_ZN5Exiv28toStringIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  1.04k|std::string toString(const T& arg) {
  467|  1.04k|  return toStringHelper(arg, std::is_integral<T>());
  468|  1.04k|}
_ZN5Exiv214toStringHelperIsEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  1.04k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  1.04k|  return std::to_string(arg);
  457|  1.04k|}
_ZN5Exiv28toStringIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   235k|std::string toString(const T& arg) {
  467|   235k|  return toStringHelper(arg, std::is_integral<T>());
  468|   235k|}
_ZN5Exiv214toStringHelperIiEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|   235k|std::string toStringHelper(const T& arg, std::true_type) {
  456|   235k|  return std::to_string(arg);
  457|   235k|}
_ZN5Exiv28toStringINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    238|std::string toString(const T& arg) {
  467|    238|  return toStringHelper(arg, std::is_integral<T>());
  468|    238|}
_ZN5Exiv214toStringHelperINSt3__14pairIiiEEEENS1_12basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    238|std::string toStringHelper(const T& arg, std::false_type) {
  461|    238|  std::ostringstream os;
  462|    238|  os << arg;
  463|    238|  return os.str();
  464|    238|}
_ZN5Exiv28toStringIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    987|std::string toString(const T& arg) {
  467|    987|  return toStringHelper(arg, std::is_integral<T>());
  468|    987|}
_ZN5Exiv214toStringHelperIfEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|    987|std::string toStringHelper(const T& arg, std::false_type) {
  461|    987|  std::ostringstream os;
  462|    987|  os << arg;
  463|    987|  return os.str();
  464|    987|}
_ZN5Exiv28toStringIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|   222k|std::string toString(const T& arg) {
  467|   222k|  return toStringHelper(arg, std::is_integral<T>());
  468|   222k|}
_ZN5Exiv214toStringHelperIdEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb0EEE:
  460|   222k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   222k|  std::ostringstream os;
  462|   222k|  os << arg;
  463|   222k|  return os.str();
  464|   222k|}
_ZN5Exiv28toStringImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|  4.43k|std::string toString(const T& arg) {
  467|  4.43k|  return toStringHelper(arg, std::is_integral<T>());
  468|  4.43k|}
_ZN5Exiv214toStringHelperImEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|  4.43k|std::string toStringHelper(const T& arg, std::true_type) {
  456|  4.43k|  return std::to_string(arg);
  457|  4.43k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm4EEEPKT_RAT1__S4_RKT0_:
  447|    384|const T* find(T (&src)[N], const K& key) {
  448|    384|  static_assert(N > 0, "Passed zero length find");
  449|    384|  auto rc = std::find(src, src + N, key);
  450|    384|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 248, False: 136]
  ------------------
  451|    384|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm6EEEPKT_RAT1__S4_RKT0_:
  447|    154|const T* find(T (&src)[N], const K& key) {
  448|    154|  static_assert(N > 0, "Passed zero length find");
  449|    154|  auto rc = std::find(src, src + N, key);
  450|    154|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 78, False: 76]
  ------------------
  451|    154|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm5EEEPKT_RAT1__S4_RKT0_:
  447|    310|const T* find(T (&src)[N], const K& key) {
  448|    310|  static_assert(N > 0, "Passed zero length find");
  449|    310|  auto rc = std::find(src, src + N, key);
  450|    310|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 204, False: 106]
  ------------------
  451|    310|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm198EEEPKT_RAT1__S4_RKT0_:
  447|  64.2k|const T* find(T (&src)[N], const K& key) {
  448|  64.2k|  static_assert(N > 0, "Passed zero length find");
  449|  64.2k|  auto rc = std::find(src, src + N, key);
  450|  64.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 498, False: 63.7k]
  ------------------
  451|  64.2k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm2EEEPKT_RAT1__S4_RKT0_:
  447|  1.04k|const T* find(T (&src)[N], const K& key) {
  448|  1.04k|  static_assert(N > 0, "Passed zero length find");
  449|  1.04k|  auto rc = std::find(src, src + N, key);
  450|  1.04k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 855, False: 188]
  ------------------
  451|  1.04k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm3EEEPKT_RAT1__S4_RKT0_:
  447|  2.01k|const T* find(T (&src)[N], const K& key) {
  448|  2.01k|  static_assert(N > 0, "Passed zero length find");
  449|  2.01k|  auto rc = std::find(src, src + N, key);
  450|  2.01k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.28k, False: 729]
  ------------------
  451|  2.01k|}
_ZN5Exiv24findIKNS_8Internal11MatroskaTagEmLm7EEEPKT_RAT1__S4_RKT0_:
  447|  4.28k|const T* find(T (&src)[N], const K& key) {
  448|  4.28k|  static_assert(N > 0, "Passed zero length find");
  449|  4.28k|  auto rc = std::find(src, src + N, key);
  450|  4.28k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.54k, False: 738]
  ------------------
  451|  4.28k|}
_ZN5Exiv28toStringIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_:
  466|  2.35k|std::string toString(const T& arg) {
  467|  2.35k|  return toStringHelper(arg, std::is_integral<T>());
  468|  2.35k|}
_ZN5Exiv214toStringHelperIPKhEENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERKT_NS3_17integral_constantIbLb0EEE:
  460|  2.35k|std::string toStringHelper(const T& arg, std::false_type) {
  461|  2.35k|  std::ostringstream os;
  462|  2.35k|  os << arg;
  463|  2.35k|  return os.str();
  464|  2.35k|}
_ZN5Exiv28toStringIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_:
  466|    436|std::string toString(const T& arg) {
  467|    436|  return toStringHelper(arg, std::is_integral<T>());
  468|    436|}
_ZN5Exiv214toStringHelperIlEENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKT_NS1_17integral_constantIbLb1EEE:
  455|    436|std::string toStringHelper(const T& arg, std::true_type) {
  456|    436|  return std::to_string(arg);
  457|    436|}
_ZN5Exiv28toStringIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_:
  466|   636k|std::string toString(const T& arg) {
  467|   636k|  return toStringHelper(arg, std::is_integral<T>());
  468|   636k|}
_ZN5Exiv214toStringHelperIPhEENSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKT_NS2_17integral_constantIbLb0EEE:
  460|   636k|std::string toStringHelper(const T& arg, std::false_type) {
  461|   636k|  std::ostringstream os;
  462|   636k|  os << arg;
  463|   636k|  return os.str();
  464|   636k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm6EEEPKT_RAT1__S4_RKT0_:
  447|     95|const T* find(T (&src)[N], const K& key) {
  448|     95|  static_assert(N > 0, "Passed zero length find");
  449|     95|  auto rc = std::find(src, src + N, key);
  450|     95|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 53, False: 42]
  ------------------
  451|     95|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm32EEEPKT_RAT1__SB_RKT0_:
  447|  2.23k|const T* find(T (&src)[N], const K& key) {
  448|  2.23k|  static_assert(N > 0, "Passed zero length find");
  449|  2.23k|  auto rc = std::find(src, src + N, key);
  450|  2.23k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.02k, False: 215]
  ------------------
  451|  2.23k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm61EEEPKT_RAT1__SB_RKT0_:
  447|  2.23k|const T* find(T (&src)[N], const K& key) {
  448|  2.23k|  static_assert(N > 0, "Passed zero length find");
  449|  2.23k|  auto rc = std::find(src, src + N, key);
  450|  2.23k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.09k, False: 147]
  ------------------
  451|  2.23k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm2EEEPKT_RAT1__SB_RKT0_:
  447|    351|const T* find(T (&src)[N], const K& key) {
  448|    351|  static_assert(N > 0, "Passed zero length find");
  449|    351|  auto rc = std::find(src, src + N, key);
  450|    351|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 298, False: 53]
  ------------------
  451|    351|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm41EEEPKT_RAT1__S4_RKT0_:
  447|   136k|const T* find(T (&src)[N], const K& key) {
  448|   136k|  static_assert(N > 0, "Passed zero length find");
  449|   136k|  auto rc = std::find(src, src + N, key);
  450|   136k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 127k, False: 9.04k]
  ------------------
  451|   136k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm3EEEPKT_RAT1__S4_RKT0_:
  447|  19.5k|const T* find(T (&src)[N], const K& key) {
  448|  19.5k|  static_assert(N > 0, "Passed zero length find");
  449|  19.5k|  auto rc = std::find(src, src + N, key);
  450|  19.5k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 9.14k, False: 10.4k]
  ------------------
  451|  19.5k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm6EEEPKT_RAT1__S4_RKT0_:
  447|  3.11k|const T* find(T (&src)[N], const K& key) {
  448|  3.11k|  static_assert(N > 0, "Passed zero length find");
  449|  3.11k|  auto rc = std::find(src, src + N, key);
  450|  3.11k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.24k, False: 863]
  ------------------
  451|  3.11k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm11EEEPKT_RAT1__S4_RKT0_:
  447|  3.10k|const T* find(T (&src)[N], const K& key) {
  448|  3.10k|  static_assert(N > 0, "Passed zero length find");
  449|  3.10k|  auto rc = std::find(src, src + N, key);
  450|  3.10k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.11k, False: 988]
  ------------------
  451|  3.10k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEiLm2EEEPKT_RAT1__S4_RKT0_:
  447|    755|const T* find(T (&src)[N], const K& key) {
  448|    755|  static_assert(N > 0, "Passed zero length find");
  449|    755|  auto rc = std::find(src, src + N, key);
  450|    755|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 228, False: 527]
  ------------------
  451|    755|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm86EEEPKT_RAT1__SB_RKT0_:
  447|   199k|const T* find(T (&src)[N], const K& key) {
  448|   199k|  static_assert(N > 0, "Passed zero length find");
  449|   199k|  auto rc = std::find(src, src + N, key);
  450|   199k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 189k, False: 10.0k]
  ------------------
  451|   199k|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm17EEEPKT_RAT1__SB_RKT0_:
  447|   144k|const T* find(T (&src)[N], const K& key) {
  448|   144k|  static_assert(N > 0, "Passed zero length find");
  449|   144k|  auto rc = std::find(src, src + N, key);
  450|   144k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 143k, False: 1.22k]
  ------------------
  451|   144k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEtLm31EEEPKT_RAT1__S4_RKT0_:
  447|    794|const T* find(T (&src)[N], const K& key) {
  448|    794|  static_assert(N > 0, "Passed zero length find");
  449|    794|  auto rc = std::find(src, src + N, key);
  450|    794|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 183, False: 611]
  ------------------
  451|    794|}
_ZN5Exiv24findIKNS_8Internal13TagVocabularyENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    313|const T* find(T (&src)[N], const K& key) {
  448|    313|  static_assert(N > 0, "Passed zero length find");
  449|    313|  auto rc = std::find(src, src + N, key);
  450|    313|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 77, False: 236]
  ------------------
  451|    313|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm6EEEPKT_RAT1__S4_RKT0_:
  447|  22.6k|const T* find(T (&src)[N], const K& key) {
  448|  22.6k|  static_assert(N > 0, "Passed zero length find");
  449|  22.6k|  auto rc = std::find(src, src + N, key);
  450|  22.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 10.6k, False: 12.0k]
  ------------------
  451|  22.6k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm2EEEPKT_RAT1__S4_RKT0_:
  447|  32.8k|const T* find(T (&src)[N], const K& key) {
  448|  32.8k|  static_assert(N > 0, "Passed zero length find");
  449|  32.8k|  auto rc = std::find(src, src + N, key);
  450|  32.8k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 25.7k, False: 7.08k]
  ------------------
  451|  32.8k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm5EEEPKT_RAT1__S4_RKT0_:
  447|  17.9k|const T* find(T (&src)[N], const K& key) {
  448|  17.9k|  static_assert(N > 0, "Passed zero length find");
  449|  17.9k|  auto rc = std::find(src, src + N, key);
  450|  17.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 10.0k, False: 7.93k]
  ------------------
  451|  17.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm4EEEPKT_RAT1__S4_RKT0_:
  447|  20.4k|const T* find(T (&src)[N], const K& key) {
  448|  20.4k|  static_assert(N > 0, "Passed zero length find");
  449|  20.4k|  auto rc = std::find(src, src + N, key);
  450|  20.4k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 7.56k, False: 12.8k]
  ------------------
  451|  20.4k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm7EEEPKT_RAT1__S4_RKT0_:
  447|  10.3k|const T* find(T (&src)[N], const K& key) {
  448|  10.3k|  static_assert(N > 0, "Passed zero length find");
  449|  10.3k|  auto rc = std::find(src, src + N, key);
  450|  10.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.95k, False: 5.44k]
  ------------------
  451|  10.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm17EEEPKT_RAT1__S4_RKT0_:
  447|  3.02k|const T* find(T (&src)[N], const K& key) {
  448|  3.02k|  static_assert(N > 0, "Passed zero length find");
  449|  3.02k|  auto rc = std::find(src, src + N, key);
  450|  3.02k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.14k, False: 1.88k]
  ------------------
  451|  3.02k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm8EEEPKT_RAT1__S4_RKT0_:
  447|  23.6k|const T* find(T (&src)[N], const K& key) {
  448|  23.6k|  static_assert(N > 0, "Passed zero length find");
  449|  23.6k|  auto rc = std::find(src, src + N, key);
  450|  23.6k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 12.5k, False: 11.1k]
  ------------------
  451|  23.6k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm3EEEPKT_RAT1__S4_RKT0_:
  447|  74.0k|const T* find(T (&src)[N], const K& key) {
  448|  74.0k|  static_assert(N > 0, "Passed zero length find");
  449|  74.0k|  auto rc = std::find(src, src + N, key);
  450|  74.0k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 46.3k, False: 27.6k]
  ------------------
  451|  74.0k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm11EEEPKT_RAT1__S4_RKT0_:
  447|  14.2k|const T* find(T (&src)[N], const K& key) {
  448|  14.2k|  static_assert(N > 0, "Passed zero length find");
  449|  14.2k|  auto rc = std::find(src, src + N, key);
  450|  14.2k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.64k, False: 9.64k]
  ------------------
  451|  14.2k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm25EEEPKT_RAT1__S4_RKT0_:
  447|  2.67k|const T* find(T (&src)[N], const K& key) {
  448|  2.67k|  static_assert(N > 0, "Passed zero length find");
  449|  2.67k|  auto rc = std::find(src, src + N, key);
  450|  2.67k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 600, False: 2.07k]
  ------------------
  451|  2.67k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm19EEEPKT_RAT1__S4_RKT0_:
  447|    498|const T* find(T (&src)[N], const K& key) {
  448|    498|  static_assert(N > 0, "Passed zero length find");
  449|    498|  auto rc = std::find(src, src + N, key);
  450|    498|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 288, False: 210]
  ------------------
  451|    498|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm81EEEPKT_RAT1__S4_RKT0_:
  447|    122|const T* find(T (&src)[N], const K& key) {
  448|    122|  static_assert(N > 0, "Passed zero length find");
  449|    122|  auto rc = std::find(src, src + N, key);
  450|    122|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 56, False: 66]
  ------------------
  451|    122|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm10EEEPKT_RAT1__S4_RKT0_:
  447|  20.9k|const T* find(T (&src)[N], const K& key) {
  448|  20.9k|  static_assert(N > 0, "Passed zero length find");
  449|  20.9k|  auto rc = std::find(src, src + N, key);
  450|  20.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 14.4k, False: 6.48k]
  ------------------
  451|  20.9k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm52EEEPKT_RAT1__S4_RKT0_:
  447|    142|const T* find(T (&src)[N], const K& key) {
  448|    142|  static_assert(N > 0, "Passed zero length find");
  449|    142|  auto rc = std::find(src, src + N, key);
  450|    142|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 32, False: 110]
  ------------------
  451|    142|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm18EEEPKT_RAT1__S4_RKT0_:
  447|  7.57k|const T* find(T (&src)[N], const K& key) {
  448|  7.57k|  static_assert(N > 0, "Passed zero length find");
  449|  7.57k|  auto rc = std::find(src, src + N, key);
  450|  7.57k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3.61k, False: 3.96k]
  ------------------
  451|  7.57k|}
nikonmn_int.cpp:_ZN5Exiv24findIKZNS_8Internal15Nikon3MakerNote11printLensIdERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataERKNS3_12basic_stringIcS6_NS3_9allocatorIcEEEEE8FMntLenshLm579EEEPKT_RAT1__SN_RKT0_:
  447|     79|const T* find(T (&src)[N], const K& key) {
  448|     79|  static_assert(N > 0, "Passed zero length find");
  449|     79|  auto rc = std::find(src, src + N, key);
  450|     79|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 3, False: 76]
  ------------------
  451|     79|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm12EEEPKT_RAT1__S4_RKT0_:
  447|  7.91k|const T* find(T (&src)[N], const K& key) {
  448|  7.91k|  static_assert(N > 0, "Passed zero length find");
  449|  7.91k|  auto rc = std::find(src, src + N, key);
  450|  7.91k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.97k, False: 2.94k]
  ------------------
  451|  7.91k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm13EEEPKT_RAT1__S4_RKT0_:
  447|  9.00k|const T* find(T (&src)[N], const K& key) {
  448|  9.00k|  static_assert(N > 0, "Passed zero length find");
  449|  9.00k|  auto rc = std::find(src, src + N, key);
  450|  9.00k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.97k, False: 7.02k]
  ------------------
  451|  9.00k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm34EEEPKT_RAT1__S4_RKT0_:
  447|  2.01k|const T* find(T (&src)[N], const K& key) {
  448|  2.01k|  static_assert(N > 0, "Passed zero length find");
  449|  2.01k|  auto rc = std::find(src, src + N, key);
  450|  2.01k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 468, False: 1.54k]
  ------------------
  451|  2.01k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm16EEEPKT_RAT1__S4_RKT0_:
  447|  2.41k|const T* find(T (&src)[N], const K& key) {
  448|  2.41k|  static_assert(N > 0, "Passed zero length find");
  449|  2.41k|  auto rc = std::find(src, src + N, key);
  450|  2.41k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 770, False: 1.64k]
  ------------------
  451|  2.41k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm27EEEPKT_RAT1__S4_RKT0_:
  447|  4.68k|const T* find(T (&src)[N], const K& key) {
  448|  4.68k|  static_assert(N > 0, "Passed zero length find");
  449|  4.68k|  auto rc = std::find(src, src + N, key);
  450|  4.68k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 412, False: 4.27k]
  ------------------
  451|  4.68k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm9EEEPKT_RAT1__S4_RKT0_:
  447|  13.5k|const T* find(T (&src)[N], const K& key) {
  448|  13.5k|  static_assert(N > 0, "Passed zero length find");
  449|  13.5k|  auto rc = std::find(src, src + N, key);
  450|  13.5k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 5.82k, False: 7.75k]
  ------------------
  451|  13.5k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm21EEEPKT_RAT1__S4_RKT0_:
  447|  2.22k|const T* find(T (&src)[N], const K& key) {
  448|  2.22k|  static_assert(N > 0, "Passed zero length find");
  449|  2.22k|  auto rc = std::find(src, src + N, key);
  450|  2.22k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 414, False: 1.80k]
  ------------------
  451|  2.22k|}
_ZN5Exiv24findIKNS_9GroupInfoENS_5IfdIdELm126EEEPKT_RAT1__S4_RKT0_:
  447|  52.2M|const T* find(T (&src)[N], const K& key) {
  448|  52.2M|  static_assert(N > 0, "Passed zero length find");
  449|  52.2M|  auto rc = std::find(src, src + N, key);
  450|  52.2M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 52.2M]
  ------------------
  451|  52.2M|}
_ZN5Exiv24findIKNS_9GroupInfoENSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEELm126EEEPKT_RAT1__SA_RKT0_:
  447|  20.3M|const T* find(T (&src)[N], const K& key) {
  448|  20.3M|  static_assert(N > 0, "Passed zero length find");
  449|  20.3M|  auto rc = std::find(src, src + N, key);
  450|  20.3M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 20.3M]
  ------------------
  451|  20.3M|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm1EEEPKT_RAT1__S4_RKT0_:
  447|    162|const T* find(T (&src)[N], const K& key) {
  448|    162|  static_assert(N > 0, "Passed zero length find");
  449|    162|  auto rc = std::find(src, src + N, key);
  450|    162|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 134, False: 28]
  ------------------
  451|    162|}
_ZN5Exiv24findIKNS_8Internal15TiffMappingInfoENS2_3KeyELm5EEEPKT_RAT1__S5_RKT0_:
  447|  19.7M|const T* find(T (&src)[N], const K& key) {
  448|  19.7M|  static_assert(N > 0, "Passed zero length find");
  449|  19.7M|  auto rc = std::find(src, src + N, key);
  450|  19.7M|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 19.7M, False: 7.30k]
  ------------------
  451|  19.7M|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_2NsELm47EEEPKT_RAT1__S4_RKT0_:
  447|  3.32k|const T* find(T (&src)[N], const K& key) {
  448|  3.32k|  static_assert(N > 0, "Passed zero length find");
  449|  3.32k|  auto rc = std::find(src, src + N, key);
  450|  3.32k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 2.01k, False: 1.31k]
  ------------------
  451|  3.32k|}
_ZN5Exiv24findIKNS_9XmpNsInfoENS1_6PrefixELm47EEEPKT_RAT1__S4_RKT0_:
  447|   971k|const T* find(T (&src)[N], const K& key) {
  448|   971k|  static_assert(N > 0, "Passed zero length find");
  449|   971k|  auto rc = std::find(src, src + N, key);
  450|   971k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 971k]
  ------------------
  451|   971k|}
properties.cpp:_ZN5Exiv24findIKN12_GLOBAL__N_112XmpPrintInfoENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm67EEEPKT_RAT1__SB_RKT0_:
  447|  17.3k|const T* find(T (&src)[N], const K& key) {
  448|  17.3k|  static_assert(N > 0, "Passed zero length find");
  449|  17.3k|  auto rc = std::find(src, src + N, key);
  450|  17.3k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 17.3k, False: 0]
  ------------------
  451|  17.3k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm533EEEPKT_RAT1__S4_RKT0_:
  447|     41|const T* find(T (&src)[N], const K& key) {
  448|     41|  static_assert(N > 0, "Passed zero length find");
  449|     41|  auto rc = std::find(src, src + N, key);
  450|     41|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 41]
  ------------------
  451|     41|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm357EEEPKT_RAT1__S4_RKT0_:
  447|    258|const T* find(T (&src)[N], const K& key) {
  448|    258|  static_assert(N > 0, "Passed zero length find");
  449|    258|  auto rc = std::find(src, src + N, key);
  450|    258|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 120, False: 138]
  ------------------
  451|    258|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm14EEEPKT_RAT1__S4_RKT0_:
  447|  9.78k|const T* find(T (&src)[N], const K& key) {
  448|  9.78k|  static_assert(N > 0, "Passed zero length find");
  449|  9.78k|  auto rc = std::find(src, src + N, key);
  450|  9.78k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 6.51k, False: 3.27k]
  ------------------
  451|  9.78k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm22EEEPKT_RAT1__S4_RKT0_:
  447|  2.77k|const T* find(T (&src)[N], const K& key) {
  448|  2.77k|  static_assert(N > 0, "Passed zero length find");
  449|  2.77k|  auto rc = std::find(src, src + N, key);
  450|  2.77k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.01k, False: 1.76k]
  ------------------
  451|  2.77k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm71EEEPKT_RAT1__S4_RKT0_:
  447|  5.32k|const T* find(T (&src)[N], const K& key) {
  448|  5.32k|  static_assert(N > 0, "Passed zero length find");
  449|  5.32k|  auto rc = std::find(src, src + N, key);
  450|  5.32k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 530, False: 4.79k]
  ------------------
  451|  5.32k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm38EEEPKT_RAT1__S4_RKT0_:
  447|  6.14k|const T* find(T (&src)[N], const K& key) {
  448|  6.14k|  static_assert(N > 0, "Passed zero length find");
  449|  6.14k|  auto rc = std::find(src, src + N, key);
  450|  6.14k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 4.26k, False: 1.88k]
  ------------------
  451|  6.14k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm75EEEPKT_RAT1__S4_RKT0_:
  447|  2.50k|const T* find(T (&src)[N], const K& key) {
  448|  2.50k|  static_assert(N > 0, "Passed zero length find");
  449|  2.50k|  auto rc = std::find(src, src + N, key);
  450|  2.50k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 818, False: 1.69k]
  ------------------
  451|  2.50k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm35EEEPKT_RAT1__S4_RKT0_:
  447|    270|const T* find(T (&src)[N], const K& key) {
  448|    270|  static_assert(N > 0, "Passed zero length find");
  449|    270|  auto rc = std::find(src, src + N, key);
  450|    270|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 186, False: 84]
  ------------------
  451|    270|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEhLm3EEEPKT_RAT1__S4_RKT0_:
  447|    158|const T* find(T (&src)[N], const K& key) {
  448|    158|  static_assert(N > 0, "Passed zero length find");
  449|    158|  auto rc = std::find(src, src + N, key);
  450|    158|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 60, False: 98]
  ------------------
  451|    158|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm20EEEPKT_RAT1__S4_RKT0_:
  447|  1.34k|const T* find(T (&src)[N], const K& key) {
  448|  1.34k|  static_assert(N > 0, "Passed zero length find");
  449|  1.34k|  auto rc = std::find(src, src + N, key);
  450|  1.34k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 431, False: 913]
  ------------------
  451|  1.34k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm33EEEPKT_RAT1__S4_RKT0_:
  447|  2.11k|const T* find(T (&src)[N], const K& key) {
  448|  2.11k|  static_assert(N > 0, "Passed zero length find");
  449|  2.11k|  auto rc = std::find(src, src + N, key);
  450|  2.11k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 416, False: 1.70k]
  ------------------
  451|  2.11k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENSt3__117basic_string_viewIcNS4_11char_traitsIcEEEELm26EEEPKT_RAT1__S9_RKT0_:
  447|  36.9k|const T* find(T (&src)[N], const K& key) {
  448|  36.9k|  static_assert(N > 0, "Passed zero length find");
  449|  36.9k|  auto rc = std::find(src, src + N, key);
  450|  36.9k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.64k, False: 35.2k]
  ------------------
  451|  36.9k|}
_ZN5Exiv24findIKNS_8Internal14TiffMnRegistryENS_5IfdIdELm26EEEPKT_RAT1__S5_RKT0_:
  447|  6.36k|const T* find(T (&src)[N], const K& key) {
  448|  6.36k|  static_assert(N > 0, "Passed zero length find");
  449|  6.36k|  auto rc = std::find(src, src + N, key);
  450|  6.36k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 6.36k]
  ------------------
  451|  6.36k|}
_ZN5Exiv24findIKNS_8Internal13NikonArrayIdxENS2_3KeyELm34EEEPKT_RAT1__S5_RKT0_:
  447|    623|const T* find(T (&src)[N], const K& key) {
  448|    623|  static_assert(N > 0, "Passed zero length find");
  449|    623|  auto rc = std::find(src, src + N, key);
  450|    623|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 33, False: 590]
  ------------------
  451|    623|}
_ZN5Exiv28stringToIjEET_RKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERb:
  482|     35|T stringTo(const std::string& s, bool& ok) {
  483|     35|  std::istringstream is(s);
  484|     35|  T tmp = T();
  485|     35|  ok = static_cast<bool>(is >> tmp);
  486|     35|  std::string rest;
  487|     35|  is >> std::skipws >> rest;
  488|     35|  if (!rest.empty())
  ------------------
  |  Branch (488:7): [True: 21, False: 14]
  ------------------
  489|     21|    ok = false;
  490|     35|  return tmp;
  491|     35|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_RAT1__SB_RKT0_:
  447|     70|const T* find(T (&src)[N], const K& key) {
  448|     70|  static_assert(N > 0, "Passed zero length find");
  449|     70|  auto rc = std::find(src, src + N, key);
  450|     70|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 62, False: 8]
  ------------------
  451|     70|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm205EEEPKT_RAT1__S4_RKT0_:
  447|  3.76k|const T* find(T (&src)[N], const K& key) {
  448|  3.76k|  static_assert(N > 0, "Passed zero length find");
  449|  3.76k|  auto rc = std::find(src, src + N, key);
  450|  3.76k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 692, False: 3.07k]
  ------------------
  451|  3.76k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  447|    219|const T* find(T (&src)[N], const K& key) {
  448|    219|  static_assert(N > 0, "Passed zero length find");
  449|    219|  auto rc = std::find(src, src + N, key);
  450|    219|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 189, False: 30]
  ------------------
  451|    219|}
minoltamn_int.cpp:_ZN5Exiv24findIKZNS_8Internal22printMinoltaSonyLensIDERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm6EEEPKT_RAT1__SG_RKT0_:
  447|  1.88k|const T* find(T (&src)[N], const K& key) {
  448|  1.88k|  static_assert(N > 0, "Passed zero length find");
  449|  1.88k|  auto rc = std::find(src, src + N, key);
  450|  1.88k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 709, False: 1.17k]
  ------------------
  451|  1.88k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm15EEEPKT_RAT1__S4_RKT0_:
  447|  3.33k|const T* find(T (&src)[N], const K& key) {
  448|  3.33k|  static_assert(N > 0, "Passed zero length find");
  449|  3.33k|  auto rc = std::find(src, src + N, key);
  450|  3.33k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 856, False: 2.47k]
  ------------------
  451|  3.33k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm45EEEPKT_RAT1__S4_RKT0_:
  447|  3.03k|const T* find(T (&src)[N], const K& key) {
  448|  3.03k|  static_assert(N > 0, "Passed zero length find");
  449|  3.03k|  auto rc = std::find(src, src + N, key);
  450|  3.03k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 402, False: 2.63k]
  ------------------
  451|  3.03k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm23EEEPKT_RAT1__S4_RKT0_:
  447|  1.40k|const T* find(T (&src)[N], const K& key) {
  448|  1.40k|  static_assert(N > 0, "Passed zero length find");
  449|  1.40k|  auto rc = std::find(src, src + N, key);
  450|  1.40k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 726, False: 678]
  ------------------
  451|  1.40k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm77EEEPKT_RAT1__S4_RKT0_:
  447|    328|const T* find(T (&src)[N], const K& key) {
  448|    328|  static_assert(N > 0, "Passed zero length find");
  449|    328|  auto rc = std::find(src, src + N, key);
  450|    328|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 124, False: 204]
  ------------------
  451|    328|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEmLm298EEEPKT_RAT1__S4_RKT0_:
  447|     53|const T* find(T (&src)[N], const K& key) {
  448|     53|  static_assert(N > 0, "Passed zero length find");
  449|     53|  auto rc = std::find(src, src + N, key);
  450|     53|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 0, False: 53]
  ------------------
  451|     53|}
pentaxmn_int.cpp:_ZN5Exiv24findIKZNS_8InternalL13printLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEE9LensIdFctjLm14EEEPKT_RAT1__SG_RKT0_:
  447|  1.90k|const T* find(T (&src)[N], const K& key) {
  448|  1.90k|  static_assert(N > 0, "Passed zero length find");
  449|  1.90k|  auto rc = std::find(src, src + N, key);
  450|  1.90k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 560, False: 1.34k]
  ------------------
  451|  1.90k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm298EEEPKT_RAT1__S4_RKT0_:
  447|    508|const T* find(T (&src)[N], const K& key) {
  448|    508|  static_assert(N > 0, "Passed zero length find");
  449|    508|  auto rc = std::find(src, src + N, key);
  450|    508|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 84, False: 424]
  ------------------
  451|    508|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm147EEEPKT_RAT1__S4_RKT0_:
  447|    242|const T* find(T (&src)[N], const K& key) {
  448|    242|  static_assert(N > 0, "Passed zero length find");
  449|    242|  auto rc = std::find(src, src + N, key);
  450|    242|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 226, False: 16]
  ------------------
  451|    242|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm79EEEPKT_RAT1__S4_RKT0_:
  447|    318|const T* find(T (&src)[N], const K& key) {
  448|    318|  static_assert(N > 0, "Passed zero length find");
  449|    318|  auto rc = std::find(src, src + N, key);
  450|    318|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 130, False: 188]
  ------------------
  451|    318|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm7EEEPKT_RAT1__S4_RKT0_:
  447|    890|const T* find(T (&src)[N], const K& key) {
  448|    890|  static_assert(N > 0, "Passed zero length find");
  449|    890|  auto rc = std::find(src, src + N, key);
  450|    890|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 278, False: 612]
  ------------------
  451|    890|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm71EEEPKT_RAT1__S4_RKT0_:
  447|  3.90k|const T* find(T (&src)[N], const K& key) {
  448|  3.90k|  static_assert(N > 0, "Passed zero length find");
  449|  3.90k|  auto rc = std::find(src, src + N, key);
  450|  3.90k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 322, False: 3.58k]
  ------------------
  451|  3.90k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm20EEEPKT_RAT1__S4_RKT0_:
  447|  2.20k|const T* find(T (&src)[N], const K& key) {
  448|  2.20k|  static_assert(N > 0, "Passed zero length find");
  449|  2.20k|  auto rc = std::find(src, src + N, key);
  450|  2.20k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 568, False: 1.64k]
  ------------------
  451|  2.20k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsEjLm2EEEPKT_RAT1__S4_RKT0_:
  447|    230|const T* find(T (&src)[N], const K& key) {
  448|    230|  static_assert(N > 0, "Passed zero length find");
  449|    230|  auto rc = std::find(src, src + N, key);
  450|    230|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 150, False: 80]
  ------------------
  451|    230|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm80EEEPKT_RAT1__S4_RKT0_:
  447|  1.07k|const T* find(T (&src)[N], const K& key) {
  448|  1.07k|  static_assert(N > 0, "Passed zero length find");
  449|  1.07k|  auto rc = std::find(src, src + N, key);
  450|  1.07k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 446, False: 627]
  ------------------
  451|  1.07k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm36EEEPKT_RAT1__S4_RKT0_:
  447|  1.36k|const T* find(T (&src)[N], const K& key) {
  448|  1.36k|  static_assert(N > 0, "Passed zero length find");
  449|  1.36k|  auto rc = std::find(src, src + N, key);
  450|  1.36k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 174, False: 1.19k]
  ------------------
  451|  1.36k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm5EEEPKT_RAT1__SB_RKT0_:
  447|    924|const T* find(T (&src)[N], const K& key) {
  448|    924|  static_assert(N > 0, "Passed zero length find");
  449|    924|  auto rc = std::find(src, src + N, key);
  450|    924|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 536, False: 388]
  ------------------
  451|    924|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm30EEEPKT_RAT1__SB_RKT0_:
  447|    508|const T* find(T (&src)[N], const K& key) {
  448|    508|  static_assert(N > 0, "Passed zero length find");
  449|    508|  auto rc = std::find(src, src + N, key);
  450|    508|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 422, False: 86]
  ------------------
  451|    508|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm16EEEPKT_RAT1__SB_RKT0_:
  447|    588|const T* find(T (&src)[N], const K& key) {
  448|    588|  static_assert(N > 0, "Passed zero length find");
  449|    588|  auto rc = std::find(src, src + N, key);
  450|    588|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 310, False: 278]
  ------------------
  451|    588|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm113EEEPKT_RAT1__S4_RKT0_:
  447|  9.21k|const T* find(T (&src)[N], const K& key) {
  448|  9.21k|  static_assert(N > 0, "Passed zero length find");
  449|  9.21k|  auto rc = std::find(src, src + N, key);
  450|  9.21k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 1.03k, False: 8.18k]
  ------------------
  451|  9.21k|}
_ZN5Exiv24findIKNS_8Internal16StringTagDetailsENSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm19EEEPKT_RAT1__SB_RKT0_:
  447|    290|const T* find(T (&src)[N], const K& key) {
  448|    290|  static_assert(N > 0, "Passed zero length find");
  449|    290|  auto rc = std::find(src, src + N, key);
  450|    290|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 258, False: 32]
  ------------------
  451|    290|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm26EEEPKT_RAT1__S4_RKT0_:
  447|  3.04k|const T* find(T (&src)[N], const K& key) {
  448|  3.04k|  static_assert(N > 0, "Passed zero length find");
  449|  3.04k|  auto rc = std::find(src, src + N, key);
  450|  3.04k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 648, False: 2.39k]
  ------------------
  451|  3.04k|}
_ZN5Exiv24findIKNS_8Internal10TagDetailsElLm31EEEPKT_RAT1__S4_RKT0_:
  447|  4.50k|const T* find(T (&src)[N], const K& key) {
  448|  4.50k|  static_assert(N > 0, "Passed zero length find");
  449|  4.50k|  auto rc = std::find(src, src + N, key);
  450|  4.50k|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 954, False: 3.54k]
  ------------------
  451|  4.50k|}
_ZN5Exiv24findIKPKcNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEELm34EEEPKT_RAT1__SB_RKT0_:
  447|     72|const T* find(T (&src)[N], const K& key) {
  448|     72|  static_assert(N > 0, "Passed zero length find");
  449|     72|  auto rc = std::find(src, src + N, key);
  450|     72|  return rc == src + N ? nullptr : rc;
  ------------------
  |  Branch (450:10): [True: 62, False: 10]
  ------------------
  451|     72|}

_ZNK5Exiv25Value6typeIdEv:
   85|  59.1M|  TypeId typeId() const {
   86|  59.1M|    return type_;
   87|  59.1M|  }
_ZNK5Exiv25Value5cloneEv:
   93|  40.3M|  UniquePtr clone() const {
   94|  40.3M|    return UniquePtr(clone_());
   95|  40.3M|  }
_ZNK5Exiv25Value2okEv:
  181|  1.59k|  bool ok() const {
  182|  1.59k|    return ok_;
  183|  1.59k|  }
_ZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  795|    244|  bool operator()(const std::string& str1, const std::string& str2) const {
  796|    244|    if (str1.size() != str2.size())
  ------------------
  |  Branch (796:9): [True: 84, False: 160]
  ------------------
  797|     84|      return str1.size() > str2.size();
  798|       |
  799|    160|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
  800|    160|    return std::lexicographical_compare(str1.begin(), str1.end(), str2.begin(), str2.end(), f);
  801|    244|  }
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS_5ValueE:
  242|   319k|inline std::ostream& operator<<(std::ostream& os, const Value& value) {
  243|   319k|  return value.write(os);
  244|   319k|}
_ZN5Exiv27getTypeItEENS_6TypeIdEv:
 1083|  11.4M|inline TypeId getType<uint16_t>() {
 1084|  11.4M|  return unsignedShort;
 1085|  11.4M|}
_ZN5Exiv27getTypeIjEENS_6TypeIdEv:
 1088|  29.0k|inline TypeId getType<uint32_t>() {
 1089|  29.0k|  return unsignedLong;
 1090|  29.0k|}
_ZN5Exiv27getTypeINSt3__14pairIjjEEEENS_6TypeIdEv:
 1093|  49.0k|inline TypeId getType<URational>() {
 1094|  49.0k|  return unsignedRational;
 1095|  49.0k|}
_ZN5Exiv27getTypeIsEENS_6TypeIdEv:
 1098|   582k|inline TypeId getType<int16_t>() {
 1099|   582k|  return signedShort;
 1100|   582k|}
_ZN5Exiv27getTypeIiEENS_6TypeIdEv:
 1103|   241k|inline TypeId getType<int32_t>() {
 1104|   241k|  return signedLong;
 1105|   241k|}
_ZN5Exiv27getTypeINSt3__14pairIiiEEEENS_6TypeIdEv:
 1108|  34.1k|inline TypeId getType<Rational>() {
 1109|  34.1k|  return signedRational;
 1110|  34.1k|}
_ZN5Exiv27getTypeIfEENS_6TypeIdEv:
 1113|  10.1k|inline TypeId getType<float>() {
 1114|  10.1k|  return tiffFloat;
 1115|  10.1k|}
_ZN5Exiv27getTypeIdEENS_6TypeIdEv:
 1118|  8.74k|inline TypeId getType<double>() {
 1119|  8.74k|  return tiffDouble;
 1120|  8.74k|}
_ZN5Exiv28getValueItEET_PKhNS_9ByteOrderE:
 1314|  12.9M|inline uint16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1315|  12.9M|  return getUShort(buf, byteOrder);
 1316|  12.9M|}
_ZN5Exiv28getValueIjEET_PKhNS_9ByteOrderE:
 1319|  1.58M|inline uint32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1320|  1.58M|  return getULong(buf, byteOrder);
 1321|  1.58M|}
_ZN5Exiv28getValueINSt3__14pairIjjEEEET_PKhNS_9ByteOrderE:
 1324|   353k|inline URational getValue(const byte* buf, ByteOrder byteOrder) {
 1325|   353k|  return getURational(buf, byteOrder);
 1326|   353k|}
_ZN5Exiv28getValueIsEET_PKhNS_9ByteOrderE:
 1329|  8.01M|inline int16_t getValue(const byte* buf, ByteOrder byteOrder) {
 1330|  8.01M|  return getShort(buf, byteOrder);
 1331|  8.01M|}
_ZN5Exiv28getValueIiEET_PKhNS_9ByteOrderE:
 1334|   432k|inline int32_t getValue(const byte* buf, ByteOrder byteOrder) {
 1335|   432k|  return getLong(buf, byteOrder);
 1336|   432k|}
_ZN5Exiv28getValueINSt3__14pairIiiEEEET_PKhNS_9ByteOrderE:
 1339|   501k|inline Rational getValue(const byte* buf, ByteOrder byteOrder) {
 1340|   501k|  return getRational(buf, byteOrder);
 1341|   501k|}
_ZN5Exiv28getValueIfEET_PKhNS_9ByteOrderE:
 1344|   530k|inline float getValue(const byte* buf, ByteOrder byteOrder) {
 1345|   530k|  return getFloat(buf, byteOrder);
 1346|   530k|}
_ZN5Exiv28getValueIdEET_PKhNS_9ByteOrderE:
 1349|  19.6k|inline double getValue(const byte* buf, ByteOrder byteOrder) {
 1350|  19.6k|  return getDouble(buf, byteOrder);
 1351|  19.6k|}
_ZN5Exiv26toDataItEEmPhT_NS_9ByteOrderE:
 1372|   604k|inline size_t toData(byte* buf, uint16_t t, ByteOrder byteOrder) {
 1373|   604k|  return us2Data(buf, t, byteOrder);
 1374|   604k|}
_ZN5Exiv26toDataIjEEmPhT_NS_9ByteOrderE:
 1380|   200k|inline size_t toData(byte* buf, uint32_t t, ByteOrder byteOrder) {
 1381|   200k|  return ul2Data(buf, t, byteOrder);
 1382|   200k|}
_ZN5Exiv26toDataINSt3__14pairIjjEEEEmPhT_NS_9ByteOrderE:
 1388|   290k|inline size_t toData(byte* buf, URational t, ByteOrder byteOrder) {
 1389|   290k|  return ur2Data(buf, t, byteOrder);
 1390|   290k|}
_ZN5Exiv26toDataIsEEmPhT_NS_9ByteOrderE:
 1396|   162k|inline size_t toData(byte* buf, int16_t t, ByteOrder byteOrder) {
 1397|   162k|  return s2Data(buf, t, byteOrder);
 1398|   162k|}
_ZN5Exiv26toDataIiEEmPhT_NS_9ByteOrderE:
 1404|  28.2k|inline size_t toData(byte* buf, int32_t t, ByteOrder byteOrder) {
 1405|  28.2k|  return l2Data(buf, t, byteOrder);
 1406|  28.2k|}
_ZN5Exiv26toDataINSt3__14pairIiiEEEEmPhT_NS_9ByteOrderE:
 1412|  63.2k|inline size_t toData(byte* buf, Rational t, ByteOrder byteOrder) {
 1413|  63.2k|  return r2Data(buf, t, byteOrder);
 1414|  63.2k|}
_ZN5Exiv26toDataIfEEmPhT_NS_9ByteOrderE:
 1420|  81.3k|inline size_t toData(byte* buf, float t, ByteOrder byteOrder) {
 1421|  81.3k|  return f2Data(buf, t, byteOrder);
 1422|  81.3k|}
_ZN5Exiv26toDataIdEEmPhT_NS_9ByteOrderE:
 1428|  35.0k|inline size_t toData(byte* buf, double t, ByteOrder byteOrder) {
 1429|  35.0k|  return d2Data(buf, t, byteOrder);
 1430|  35.0k|}
_ZNK5Exiv29ValueTypeIdE7toInt64Em:
 1548|  3.60k|inline int64_t ValueType<double>::toInt64(size_t n) const {
 1549|  3.60k|  return float_to_integer_helper<int64_t>(n);
 1550|  3.60k|}
_ZNK5Exiv29ValueTypeIdE8toUint32Em:
 1553|  2.02k|inline uint32_t ValueType<double>::toUint32(size_t n) const {
 1554|  2.02k|  return float_to_integer_helper<uint32_t>(n);
 1555|  2.02k|}
_ZNK5Exiv29ValueTypeIfE7toInt64Em:
 1558|  7.01k|inline int64_t ValueType<float>::toInt64(size_t n) const {
 1559|  7.01k|  return float_to_integer_helper<int64_t>(n);
 1560|  7.01k|}
_ZNK5Exiv29ValueTypeIfE8toUint32Em:
 1562|  5.05k|inline uint32_t ValueType<float>::toUint32(size_t n) const {
 1563|  5.05k|  return float_to_integer_helper<uint32_t>(n);
 1564|  5.05k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toInt64Em:
 1567|  64.2k|inline int64_t ValueType<Rational>::toInt64(size_t n) const {
 1568|  64.2k|  return rational_to_integer_helper<int64_t>(n);
 1569|  64.2k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toUint32Em:
 1571|  30.5k|inline uint32_t ValueType<Rational>::toUint32(size_t n) const {
 1572|  30.5k|  return rational_to_integer_helper<uint32_t>(n);
 1573|  30.5k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toInt64Em:
 1576|  18.7k|inline int64_t ValueType<URational>::toInt64(size_t n) const {
 1577|  18.7k|  return rational_to_integer_helper<int64_t>(n);
 1578|  18.7k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toUint32Em:
 1580|  2.48k|inline uint32_t ValueType<URational>::toUint32(size_t n) const {
 1581|  2.48k|  return rational_to_integer_helper<uint32_t>(n);
 1582|  2.48k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE7toFloatEm:
 1591|    475|inline float ValueType<Rational>::toFloat(size_t n) const {
 1592|    475|  ok_ = (value_.at(n).second != 0);
 1593|    475|  if (!ok_)
  ------------------
  |  Branch (1593:7): [True: 10, False: 465]
  ------------------
 1594|     10|    return 0.0f;
 1595|    465|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1596|    475|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE7toFloatEm:
 1599|  2.92k|inline float ValueType<URational>::toFloat(size_t n) const {
 1600|  2.92k|  ok_ = (value_.at(n).second != 0);
 1601|  2.92k|  if (!ok_)
  ------------------
  |  Branch (1601:7): [True: 23, False: 2.90k]
  ------------------
 1602|     23|    return 0.0f;
 1603|  2.90k|  return static_cast<float>(value_.at(n).first) / value_.at(n).second;
 1604|  2.92k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE10toRationalEm:
 1613|  2.87k|inline Rational ValueType<Rational>::toRational(size_t n) const {
 1614|  2.87k|  ok_ = true;
 1615|  2.87k|  return {value_.at(n).first, value_.at(n).second};
 1616|  2.87k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE10toRationalEm:
 1619|  12.8k|inline Rational ValueType<URational>::toRational(size_t n) const {
 1620|  12.8k|  ok_ = true;
 1621|  12.8k|  return {value_.at(n).first, value_.at(n).second};
 1622|  12.8k|}
_ZNK5Exiv29ValueTypeIfE10toRationalEm:
 1625|  3.85k|inline Rational ValueType<float>::toRational(size_t n) const {
 1626|  3.85k|  ok_ = true;
 1627|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1628|  3.85k|  return floatToRationalCast(value_.at(n));
 1629|  3.85k|}
_ZNK5Exiv29ValueTypeIdE10toRationalEm:
 1632|  1.12k|inline Rational ValueType<double>::toRational(size_t n) const {
 1633|  1.12k|  ok_ = true;
 1634|       |  // Warning: This is a very simple conversion, see floatToRationalCast()
 1635|  1.12k|  return floatToRationalCast(static_cast<float>(value_.at(n)));
 1636|  1.12k|}
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIlEET_m:
 1212|  3.60k|  I float_to_integer_helper(size_t n) const {
 1213|  3.60k|    const auto v = value_.at(n);
 1214|  3.60k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.12k, False: 481]
  ------------------
 1215|  3.12k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 2.03k, False: 1.09k]
  ------------------
 1216|  2.03k|      return static_cast<I>(std::lround(v));
 1217|  2.03k|    }
 1218|  1.57k|    return 0;
 1219|  3.60k|  }
_ZNK5Exiv29ValueTypeIdE23float_to_integer_helperIjEET_m:
 1212|  2.02k|  I float_to_integer_helper(size_t n) const {
 1213|  2.02k|    const auto v = value_.at(n);
 1214|  2.02k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 1.34k, False: 685]
  ------------------
 1215|  1.34k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 698, False: 646]
  ------------------
 1216|    698|      return static_cast<I>(std::lround(v));
 1217|    698|    }
 1218|  1.33k|    return 0;
 1219|  2.02k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIlEET_m:
 1212|  7.01k|  I float_to_integer_helper(size_t n) const {
 1213|  7.01k|    const auto v = value_.at(n);
 1214|  7.01k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 5.84k, False: 1.16k]
  ------------------
 1215|  5.84k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 4.84k, False: 1.00k]
  ------------------
 1216|  4.84k|      return static_cast<I>(std::lround(v));
 1217|  4.84k|    }
 1218|  2.16k|    return 0;
 1219|  7.01k|  }
_ZNK5Exiv29ValueTypeIfE23float_to_integer_helperIjEET_m:
 1212|  5.05k|  I float_to_integer_helper(size_t n) const {
 1213|  5.05k|    const auto v = value_.at(n);
 1214|  5.05k|    if (static_cast<decltype(v)>(std::numeric_limits<I>::min()) <= v &&
  ------------------
  |  Branch (1214:9): [True: 3.31k, False: 1.73k]
  ------------------
 1215|  3.31k|        v <= static_cast<decltype(v)>(std::numeric_limits<I>::max())) {
  ------------------
  |  Branch (1215:9): [True: 2.79k, False: 524]
  ------------------
 1216|  2.79k|      return static_cast<I>(std::lround(v));
 1217|  2.79k|    }
 1218|  2.25k|    return 0;
 1219|  5.05k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIlEET_m:
 1223|  64.2k|  I rational_to_integer_helper(size_t n) const {
 1224|  64.2k|    auto a = value_.at(n).first;
 1225|  64.2k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  64.2k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 11.7k, False: 52.4k]
  ------------------
 1229|  11.7k|      return 0;
 1230|  11.7k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  52.4k|#ifdef __cpp_if_constexpr
 1234|  52.4k|    if constexpr (std::is_signed_v<I> == std::is_signed_v<decltype(a)>) {
 1235|       |#else
 1236|       |    if (std::is_signed<I>::value == std::is_signed<decltype(a)>::value) {
 1237|       |#endif
 1238|       |      // conversion does not change sign
 1239|  52.4k|      const auto imin = std::numeric_limits<I>::min();
 1240|  52.4k|      const auto imax = std::numeric_limits<I>::max();
 1241|  52.4k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 13, False: 52.4k]
  |  Branch (1241:23): [True: 0, False: 52.4k]
  |  Branch (1241:35): [True: 0, False: 52.4k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  52.4k|#ifdef __cpp_if_constexpr
 1245|       |    } else if constexpr (std::is_signed_v<I>) {
 1246|       |#else
 1247|       |    } else if (std::is_signed<I>::value) {
 1248|       |#endif
 1249|       |      // conversion is from unsigned to signed
 1250|       |      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|       |      if (imax < b || imax < a) {
 1252|       |        return 0;
 1253|       |      }
 1254|       |    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|       |      const auto imax = std::numeric_limits<I>::max();
 1257|       |      if (a < 0) {
 1258|       |        return 0;
 1259|       |      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|       |      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|       |      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|       |      if (imax < b_u || imax < a_u) {
 1264|       |        return 0;
 1265|       |      }
 1266|       |    }
 1267|       |
 1268|  52.4k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  64.2k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE26rational_to_integer_helperIjEET_m:
 1223|  30.5k|  I rational_to_integer_helper(size_t n) const {
 1224|  30.5k|    auto a = value_.at(n).first;
 1225|  30.5k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  30.5k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 5.96k, False: 24.5k]
  ------------------
 1229|  5.96k|      return 0;
 1230|  5.96k|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  24.5k|#ifdef __cpp_if_constexpr
 1234|       |    if constexpr (std::is_signed_v<I> == std::is_signed_v<decltype(a)>) {
 1235|       |#else
 1236|       |    if (std::is_signed<I>::value == std::is_signed<decltype(a)>::value) {
 1237|       |#endif
 1238|       |      // conversion does not change sign
 1239|       |      const auto imin = std::numeric_limits<I>::min();
 1240|       |      const auto imax = std::numeric_limits<I>::max();
 1241|       |      if (imax < b || a < imin || imax < a) {
 1242|       |        return 0;
 1243|       |      }
 1244|       |#ifdef __cpp_if_constexpr
 1245|       |    } else if constexpr (std::is_signed_v<I>) {
 1246|       |#else
 1247|       |    } else if (std::is_signed<I>::value) {
 1248|       |#endif
 1249|       |      // conversion is from unsigned to signed
 1250|       |      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|       |      if (imax < b || imax < a) {
 1252|       |        return 0;
 1253|       |      }
 1254|  24.5k|    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|  24.5k|      const auto imax = std::numeric_limits<I>::max();
 1257|  24.5k|      if (a < 0) {
  ------------------
  |  Branch (1257:11): [True: 2.85k, False: 21.7k]
  ------------------
 1258|  2.85k|        return 0;
 1259|  2.85k|      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|  21.7k|      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|  21.7k|      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|  21.7k|      if (imax < b_u || imax < a_u) {
  ------------------
  |  Branch (1263:11): [True: 16, False: 21.6k]
  |  Branch (1263:25): [True: 0, False: 21.6k]
  ------------------
 1264|      0|        return 0;
 1265|      0|      }
 1266|  21.7k|    }
 1267|       |
 1268|  21.7k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  30.5k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIlEET_m:
 1223|  18.7k|  I rational_to_integer_helper(size_t n) const {
 1224|  18.7k|    auto a = value_.at(n).first;
 1225|  18.7k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  18.7k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 620, False: 18.0k]
  ------------------
 1229|    620|      return 0;
 1230|    620|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  18.0k|#ifdef __cpp_if_constexpr
 1234|       |    if constexpr (std::is_signed_v<I> == std::is_signed_v<decltype(a)>) {
 1235|       |#else
 1236|       |    if (std::is_signed<I>::value == std::is_signed<decltype(a)>::value) {
 1237|       |#endif
 1238|       |      // conversion does not change sign
 1239|       |      const auto imin = std::numeric_limits<I>::min();
 1240|       |      const auto imax = std::numeric_limits<I>::max();
 1241|       |      if (imax < b || a < imin || imax < a) {
 1242|       |        return 0;
 1243|       |      }
 1244|       |#ifdef __cpp_if_constexpr
 1245|  18.0k|    } else if constexpr (std::is_signed_v<I>) {
 1246|       |#else
 1247|       |    } else if (std::is_signed<I>::value) {
 1248|       |#endif
 1249|       |      // conversion is from unsigned to signed
 1250|  18.0k|      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|  18.0k|      if (imax < b || imax < a) {
  ------------------
  |  Branch (1251:11): [True: 10, False: 18.0k]
  |  Branch (1251:23): [True: 0, False: 18.0k]
  ------------------
 1252|      0|        return 0;
 1253|      0|      }
 1254|       |    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|       |      const auto imax = std::numeric_limits<I>::max();
 1257|       |      if (a < 0) {
 1258|       |        return 0;
 1259|       |      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|       |      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|       |      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|       |      if (imax < b_u || imax < a_u) {
 1264|       |        return 0;
 1265|       |      }
 1266|       |    }
 1267|       |
 1268|  18.0k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  18.7k|  }
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE26rational_to_integer_helperIjEET_m:
 1223|  2.48k|  I rational_to_integer_helper(size_t n) const {
 1224|  2.48k|    auto a = value_.at(n).first;
 1225|  2.48k|    auto b = value_.at(n).second;
 1226|       |
 1227|       |    // Protect against divide-by-zero.
 1228|  2.48k|    if (b <= 0) {
  ------------------
  |  Branch (1228:9): [True: 107, False: 2.37k]
  ------------------
 1229|    107|      return 0;
 1230|    107|    }
 1231|       |
 1232|       |    // Check for integer overflow.
 1233|  2.37k|#ifdef __cpp_if_constexpr
 1234|  2.37k|    if constexpr (std::is_signed_v<I> == std::is_signed_v<decltype(a)>) {
 1235|       |#else
 1236|       |    if (std::is_signed<I>::value == std::is_signed<decltype(a)>::value) {
 1237|       |#endif
 1238|       |      // conversion does not change sign
 1239|  2.37k|      const auto imin = std::numeric_limits<I>::min();
 1240|  2.37k|      const auto imax = std::numeric_limits<I>::max();
 1241|  2.37k|      if (imax < b || a < imin || imax < a) {
  ------------------
  |  Branch (1241:11): [True: 32, False: 2.34k]
  |  Branch (1241:23): [True: 0, False: 2.34k]
  |  Branch (1241:35): [True: 0, False: 2.34k]
  ------------------
 1242|      0|        return 0;
 1243|      0|      }
 1244|  2.37k|#ifdef __cpp_if_constexpr
 1245|       |    } else if constexpr (std::is_signed_v<I>) {
 1246|       |#else
 1247|       |    } else if (std::is_signed<I>::value) {
 1248|       |#endif
 1249|       |      // conversion is from unsigned to signed
 1250|       |      const auto imax = static_cast<std::make_unsigned_t<I>>(std::numeric_limits<I>::max());
 1251|       |      if (imax < b || imax < a) {
 1252|       |        return 0;
 1253|       |      }
 1254|       |    } else {
 1255|       |      // conversion is from signed to unsigned
 1256|       |      const auto imax = std::numeric_limits<I>::max();
 1257|       |      if (a < 0) {
 1258|       |        return 0;
 1259|       |      }
 1260|       |      // Inputs are not negative so convert them to unsigned.
 1261|       |      const auto a_u = static_cast<std::make_unsigned_t<decltype(a)>>(a);
 1262|       |      const auto b_u = static_cast<std::make_unsigned_t<decltype(b)>>(b);
 1263|       |      if (imax < b_u || imax < a_u) {
 1264|       |        return 0;
 1265|       |      }
 1266|       |    }
 1267|       |
 1268|  2.37k|    return static_cast<I>(a) / static_cast<I>(b);
 1269|  2.48k|  }
_ZN5Exiv29ValueTypeItEC2Ev:
 1433|  11.4M|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  11.4M|}
_ZN5Exiv25ValueD2Ev:
   43|  57.7M|  virtual ~Value() = default;
_ZN5Exiv29ValueTypeItE4readEPKhmNS_9ByteOrderE:
 1467|  11.4M|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  11.4M|  value_.clear();
 1469|  11.4M|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  11.4M|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 11.4M, False: 0]
  |  Branch (1470:17): [True: 1.17k, False: 11.4M]
  ------------------
 1471|  1.17k|    len = (len / ts) * ts;
 1472|  24.3M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 12.9M, False: 11.4M]
  ------------------
 1473|  12.9M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  12.9M|  }
 1475|  11.4M|  return 0;
 1476|  11.4M|}
_ZN5Exiv29ValueTypeItE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|    880|int ValueType<T>::read(const std::string& buf) {
 1480|    880|  std::istringstream is(buf);
 1481|    880|  T tmp;
 1482|    880|  ValueList val;
 1483|  1.53k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 658, False: 880]
  ------------------
 1484|    658|    val.push_back(tmp);
 1485|    880|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 10, False: 870]
  ------------------
 1486|     10|    return 1;
 1487|    870|  value_ = std::move(val);
 1488|    870|  return 0;
 1489|    880|}
_ZN5Exiv29ValueTypeItE11setDataAreaEPKhm:
 1649|    173|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    173|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 128, False: 45]
  ------------------
 1651|    128|    pDataArea_ = Blob(buf, buf + len);
 1652|     45|  else
 1653|     45|    pDataArea_.clear();
 1654|    173|  return 0;
 1655|    173|}
_ZNK5Exiv29ValueTypeItE4copyEPhNS_9ByteOrderE:
 1492|  30.0k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  30.0k|  size_t offset = 0;
 1494|   604k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 604k, False: 30.0k]
  ------------------
 1495|   604k|    offset += toData(buf + offset, val, byteOrder);
 1496|   604k|  }
 1497|  30.0k|  return offset;
 1498|  30.0k|}
_ZNK5Exiv29ValueTypeItE5countEv:
 1501|  11.8M|size_t ValueType<T>::count() const {
 1502|  11.8M|  return value_.size();
 1503|  11.8M|}
_ZNK5Exiv29ValueTypeItE4sizeEv:
 1506|   193k|size_t ValueType<T>::size() const {
 1507|   193k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   193k|}
_ZNK5Exiv29ValueTypeItE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  57.2k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  57.2k|  auto end = value_.end();
 1518|  57.2k|  auto i = value_.begin();
 1519|   369k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 312k, False: 57.2k]
  ------------------
 1520|   312k|    os << std::setprecision(15) << *i;
 1521|   312k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 255k, False: 57.0k]
  ------------------
 1522|   255k|      os << " ";
 1523|   312k|  }
 1524|  57.2k|  return os;
 1525|  57.2k|}
_ZNK5Exiv29ValueTypeItE8toStringEm:
 1528|  1.20k|std::string ValueType<T>::toString(size_t n) const {
 1529|  1.20k|  ok_ = true;
 1530|  1.20k|  return Exiv2::toString<T>(value_.at(n));
 1531|  1.20k|}
_ZNK5Exiv29ValueTypeItE7toInt64Em:
 1535|   281k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|   281k|  ok_ = true;
 1537|   281k|  return static_cast<int64_t>(value_.at(n));
 1538|   281k|}
_ZNK5Exiv29ValueTypeItE8toUint32Em:
 1540|  50.9k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  50.9k|  ok_ = true;
 1542|  50.9k|  return static_cast<uint32_t>(value_.at(n));
 1543|  50.9k|}
_ZNK5Exiv29ValueTypeItE7toFloatEm:
 1585|  12.6k|float ValueType<T>::toFloat(size_t n) const {
 1586|  12.6k|  ok_ = true;
 1587|  12.6k|  return static_cast<float>(value_.at(n));
 1588|  12.6k|}
_ZNK5Exiv29ValueTypeItE10toRationalEm:
 1607|    176|Rational ValueType<T>::toRational(size_t n) const {
 1608|    176|  ok_ = true;
 1609|    176|  return {value_.at(n), 1};
 1610|    176|}
_ZNK5Exiv29ValueTypeItE12sizeDataAreaEv:
 1639|  1.62k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.62k|  return pDataArea_.size();
 1641|  1.62k|}
_ZNK5Exiv29ValueTypeItE8dataAreaEv:
 1644|    151|DataBuf ValueType<T>::dataArea() const {
 1645|    151|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    151|}
_ZNK5Exiv29ValueTypeItE6clone_Ev:
 1511|  22.9M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  22.9M|  return new ValueType<T>(*this);
 1513|  22.9M|}
_ZN5Exiv29ValueTypeItEC2ERKS1_:
 1447|  22.9M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  22.9M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 115, False: 22.9M]
  ------------------
 1449|    115|    pDataArea_ = rhs.pDataArea_;
 1450|  22.9M|}
_ZN5Exiv25ValueC2ERKS0_:
  225|  14.6M|  Value(const Value&) = default;
_ZN5Exiv29ValueTypeIjE4readEPKhmNS_9ByteOrderE:
 1467|   383k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   383k|  value_.clear();
 1469|   383k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   383k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 383k, False: 0]
  |  Branch (1470:17): [True: 149, False: 383k]
  ------------------
 1471|    149|    len = (len / ts) * ts;
 1472|  1.96M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 1.58M, False: 383k]
  ------------------
 1473|  1.58M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  1.58M|  }
 1475|   383k|  return 0;
 1476|   383k|}
_ZN5Exiv29ValueTypeIjE11setDataAreaEPKhm:
 1649|    238|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    238|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 158, False: 80]
  ------------------
 1651|    158|    pDataArea_ = Blob(buf, buf + len);
 1652|     80|  else
 1653|     80|    pDataArea_.clear();
 1654|    238|  return 0;
 1655|    238|}
_ZNK5Exiv29ValueTypeIjE4copyEPhNS_9ByteOrderE:
 1492|  51.7k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  51.7k|  size_t offset = 0;
 1494|   200k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 200k, False: 51.7k]
  ------------------
 1495|   200k|    offset += toData(buf + offset, val, byteOrder);
 1496|   200k|  }
 1497|  51.7k|  return offset;
 1498|  51.7k|}
_ZNK5Exiv29ValueTypeIjE5countEv:
 1501|   539k|size_t ValueType<T>::count() const {
 1502|   539k|  return value_.size();
 1503|   539k|}
_ZNK5Exiv29ValueTypeIjE4sizeEv:
 1506|   316k|size_t ValueType<T>::size() const {
 1507|   316k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|   316k|}
_ZNK5Exiv29ValueTypeIjE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  62.4k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  62.4k|  auto end = value_.end();
 1518|  62.4k|  auto i = value_.begin();
 1519|   538k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 476k, False: 62.4k]
  ------------------
 1520|   476k|    os << std::setprecision(15) << *i;
 1521|   476k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 413k, False: 62.2k]
  ------------------
 1522|   413k|      os << " ";
 1523|   476k|  }
 1524|  62.4k|  return os;
 1525|  62.4k|}
_ZNK5Exiv29ValueTypeIjE8toStringEm:
 1528|    280|std::string ValueType<T>::toString(size_t n) const {
 1529|    280|  ok_ = true;
 1530|    280|  return Exiv2::toString<T>(value_.at(n));
 1531|    280|}
_ZNK5Exiv29ValueTypeIjE7toInt64Em:
 1535|  35.7k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  35.7k|  ok_ = true;
 1537|  35.7k|  return static_cast<int64_t>(value_.at(n));
 1538|  35.7k|}
_ZNK5Exiv29ValueTypeIjE8toUint32Em:
 1540|  8.30k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  8.30k|  ok_ = true;
 1542|  8.30k|  return static_cast<uint32_t>(value_.at(n));
 1543|  8.30k|}
_ZNK5Exiv29ValueTypeIjE7toFloatEm:
 1585|    102|float ValueType<T>::toFloat(size_t n) const {
 1586|    102|  ok_ = true;
 1587|    102|  return static_cast<float>(value_.at(n));
 1588|    102|}
_ZNK5Exiv29ValueTypeIjE10toRationalEm:
 1607|    404|Rational ValueType<T>::toRational(size_t n) const {
 1608|    404|  ok_ = true;
 1609|    404|  return {value_.at(n), 1};
 1610|    404|}
_ZNK5Exiv29ValueTypeIjE12sizeDataAreaEv:
 1639|  2.19k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.19k|  return pDataArea_.size();
 1641|  2.19k|}
_ZNK5Exiv29ValueTypeIjE8dataAreaEv:
 1644|    249|DataBuf ValueType<T>::dataArea() const {
 1645|    249|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    249|}
_ZNK5Exiv29ValueTypeIjE6clone_Ev:
 1511|   857k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   857k|  return new ValueType<T>(*this);
 1513|   857k|}
_ZN5Exiv29ValueTypeIjEC2ERKS1_:
 1447|   857k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   857k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 172, False: 857k]
  ------------------
 1449|    172|    pDataArea_ = rhs.pDataArea_;
 1450|   857k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2Ev:
 1433|  49.0k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  49.0k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE4readEPKhmNS_9ByteOrderE:
 1467|  49.0k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  49.0k|  value_.clear();
 1469|  49.0k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  49.0k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 49.0k, False: 0]
  |  Branch (1470:17): [True: 0, False: 49.0k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   402k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 353k, False: 49.0k]
  ------------------
 1473|   353k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   353k|  }
 1475|  49.0k|  return 0;
 1476|  49.0k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEE11setDataAreaEPKhm:
 1649|    174|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    174|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 101, False: 73]
  ------------------
 1651|    101|    pDataArea_ = Blob(buf, buf + len);
 1652|     73|  else
 1653|     73|    pDataArea_.clear();
 1654|    174|  return 0;
 1655|    174|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4copyEPhNS_9ByteOrderE:
 1492|  21.8k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  21.8k|  size_t offset = 0;
 1494|   290k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 290k, False: 21.8k]
  ------------------
 1495|   290k|    offset += toData(buf + offset, val, byteOrder);
 1496|   290k|  }
 1497|  21.8k|  return offset;
 1498|  21.8k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5countEv:
 1501|   100k|size_t ValueType<T>::count() const {
 1502|   100k|  return value_.size();
 1503|   100k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE4sizeEv:
 1506|  65.4k|size_t ValueType<T>::size() const {
 1507|  65.4k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  65.4k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  3.83k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  3.83k|  auto end = value_.end();
 1518|  3.83k|  auto i = value_.begin();
 1519|   105k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 101k, False: 3.83k]
  ------------------
 1520|   101k|    os << std::setprecision(15) << *i;
 1521|   101k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 98.0k, False: 3.63k]
  ------------------
 1522|  98.0k|      os << " ";
 1523|   101k|  }
 1524|  3.83k|  return os;
 1525|  3.83k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8toStringEm:
 1528|    224|std::string ValueType<T>::toString(size_t n) const {
 1529|    224|  ok_ = true;
 1530|    224|  return Exiv2::toString<T>(value_.at(n));
 1531|    224|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE12sizeDataAreaEv:
 1639|    979|size_t ValueType<T>::sizeDataArea() const {
 1640|    979|  return pDataArea_.size();
 1641|    979|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE8dataAreaEv:
 1644|    121|DataBuf ValueType<T>::dataArea() const {
 1645|    121|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    121|}
_ZNK5Exiv29ValueTypeINSt3__14pairIjjEEE6clone_Ev:
 1511|   128k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   128k|  return new ValueType<T>(*this);
 1513|   128k|}
_ZN5Exiv29ValueTypeINSt3__14pairIjjEEEC2ERKS4_:
 1447|   128k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   128k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 85, False: 127k]
  ------------------
 1449|     85|    pDataArea_ = rhs.pDataArea_;
 1450|   128k|}
_ZN5Exiv29ValueTypeIsEC2Ev:
 1433|   582k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|   582k|}
_ZN5Exiv29ValueTypeIsE4readEPKhmNS_9ByteOrderE:
 1467|   578k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   578k|  value_.clear();
 1469|   578k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   578k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 578k, False: 0]
  |  Branch (1470:17): [True: 459, False: 578k]
  ------------------
 1471|    459|    len = (len / ts) * ts;
 1472|  8.58M|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 8.01M, False: 578k]
  ------------------
 1473|  8.01M|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  8.01M|  }
 1475|   578k|  return 0;
 1476|   578k|}
_ZN5Exiv29ValueTypeIsE4readERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 1479|  3.48k|int ValueType<T>::read(const std::string& buf) {
 1480|  3.48k|  std::istringstream is(buf);
 1481|  3.48k|  T tmp;
 1482|  3.48k|  ValueList val;
 1483|  9.39k|  while (is >> tmp)
  ------------------
  |  Branch (1483:10): [True: 5.91k, False: 3.48k]
  ------------------
 1484|  5.91k|    val.push_back(tmp);
 1485|  3.48k|  if (!is.eof())
  ------------------
  |  Branch (1485:7): [True: 0, False: 3.48k]
  ------------------
 1486|      0|    return 1;
 1487|  3.48k|  value_ = std::move(val);
 1488|  3.48k|  return 0;
 1489|  3.48k|}
_ZN5Exiv29ValueTypeIsE11setDataAreaEPKhm:
 1649|    187|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    187|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 91, False: 96]
  ------------------
 1651|     91|    pDataArea_ = Blob(buf, buf + len);
 1652|     96|  else
 1653|     96|    pDataArea_.clear();
 1654|    187|  return 0;
 1655|    187|}
_ZNK5Exiv29ValueTypeIsE4copyEPhNS_9ByteOrderE:
 1492|  8.50k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  8.50k|  size_t offset = 0;
 1494|   162k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 162k, False: 8.50k]
  ------------------
 1495|   162k|    offset += toData(buf + offset, val, byteOrder);
 1496|   162k|  }
 1497|  8.50k|  return offset;
 1498|  8.50k|}
_ZNK5Exiv29ValueTypeIsE5countEv:
 1501|  14.4M|size_t ValueType<T>::count() const {
 1502|  14.4M|  return value_.size();
 1503|  14.4M|}
_ZNK5Exiv29ValueTypeIsE4sizeEv:
 1506|  28.4k|size_t ValueType<T>::size() const {
 1507|  28.4k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  28.4k|}
_ZNK5Exiv29ValueTypeIsE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  10.5k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  10.5k|  auto end = value_.end();
 1518|  10.5k|  auto i = value_.begin();
 1519|   142k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 131k, False: 10.5k]
  ------------------
 1520|   131k|    os << std::setprecision(15) << *i;
 1521|   131k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 121k, False: 10.4k]
  ------------------
 1522|   121k|      os << " ";
 1523|   131k|  }
 1524|  10.5k|  return os;
 1525|  10.5k|}
_ZNK5Exiv29ValueTypeIsE8toStringEm:
 1528|     70|std::string ValueType<T>::toString(size_t n) const {
 1529|     70|  ok_ = true;
 1530|     70|  return Exiv2::toString<T>(value_.at(n));
 1531|     70|}
_ZNK5Exiv29ValueTypeIsE7toInt64Em:
 1535|  13.8M|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  13.8M|  ok_ = true;
 1537|  13.8M|  return static_cast<int64_t>(value_.at(n));
 1538|  13.8M|}
_ZNK5Exiv29ValueTypeIsE8toUint32Em:
 1540|  10.8k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  10.8k|  ok_ = true;
 1542|  10.8k|  return static_cast<uint32_t>(value_.at(n));
 1543|  10.8k|}
_ZNK5Exiv29ValueTypeIsE7toFloatEm:
 1585|    190|float ValueType<T>::toFloat(size_t n) const {
 1586|    190|  ok_ = true;
 1587|    190|  return static_cast<float>(value_.at(n));
 1588|    190|}
_ZNK5Exiv29ValueTypeIsE10toRationalEm:
 1607|    194|Rational ValueType<T>::toRational(size_t n) const {
 1608|    194|  ok_ = true;
 1609|    194|  return {value_.at(n), 1};
 1610|    194|}
_ZNK5Exiv29ValueTypeIsE12sizeDataAreaEv:
 1639|  3.33k|size_t ValueType<T>::sizeDataArea() const {
 1640|  3.33k|  return pDataArea_.size();
 1641|  3.33k|}
_ZNK5Exiv29ValueTypeIsE8dataAreaEv:
 1644|     33|DataBuf ValueType<T>::dataArea() const {
 1645|     33|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     33|}
_ZNK5Exiv29ValueTypeIsE6clone_Ev:
 1511|  1.17M|ValueType<T>* ValueType<T>::clone_() const {
 1512|  1.17M|  return new ValueType<T>(*this);
 1513|  1.17M|}
_ZN5Exiv29ValueTypeIsEC2ERKS1_:
 1447|  1.17M|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  1.17M|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 96, False: 1.17M]
  ------------------
 1449|     96|    pDataArea_ = rhs.pDataArea_;
 1450|  1.17M|}
_ZN5Exiv29ValueTypeIiEC2Ev:
 1433|   241k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|   241k|}
_ZN5Exiv29ValueTypeIiE4readEPKhmNS_9ByteOrderE:
 1467|   241k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|   241k|  value_.clear();
 1469|   241k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|   241k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 241k, False: 0]
  |  Branch (1470:17): [True: 1.12k, False: 240k]
  ------------------
 1471|  1.12k|    len = (len / ts) * ts;
 1472|   674k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 432k, False: 241k]
  ------------------
 1473|   432k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   432k|  }
 1475|   241k|  return 0;
 1476|   241k|}
_ZN5Exiv29ValueTypeIiE11setDataAreaEPKhm:
 1649|    225|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    225|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 101, False: 124]
  ------------------
 1651|    101|    pDataArea_ = Blob(buf, buf + len);
 1652|    124|  else
 1653|    124|    pDataArea_.clear();
 1654|    225|  return 0;
 1655|    225|}
_ZNK5Exiv29ValueTypeIiE4copyEPhNS_9ByteOrderE:
 1492|  4.38k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  4.38k|  size_t offset = 0;
 1494|  28.2k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 28.2k, False: 4.38k]
  ------------------
 1495|  28.2k|    offset += toData(buf + offset, val, byteOrder);
 1496|  28.2k|  }
 1497|  4.38k|  return offset;
 1498|  4.38k|}
_ZNK5Exiv29ValueTypeIiE5countEv:
 1501|   280k|size_t ValueType<T>::count() const {
 1502|   280k|  return value_.size();
 1503|   280k|}
_ZNK5Exiv29ValueTypeIiE4sizeEv:
 1506|  17.3k|size_t ValueType<T>::size() const {
 1507|  17.3k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  17.3k|}
_ZNK5Exiv29ValueTypeIiE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  4.78k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  4.78k|  auto end = value_.end();
 1518|  4.78k|  auto i = value_.begin();
 1519|  61.7k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 56.9k, False: 4.78k]
  ------------------
 1520|  56.9k|    os << std::setprecision(15) << *i;
 1521|  56.9k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 52.4k, False: 4.51k]
  ------------------
 1522|  52.4k|      os << " ";
 1523|  56.9k|  }
 1524|  4.78k|  return os;
 1525|  4.78k|}
_ZNK5Exiv29ValueTypeIiE8toStringEm:
 1528|    118|std::string ValueType<T>::toString(size_t n) const {
 1529|    118|  ok_ = true;
 1530|    118|  return Exiv2::toString<T>(value_.at(n));
 1531|    118|}
_ZNK5Exiv29ValueTypeIiE7toInt64Em:
 1535|  22.4k|int64_t ValueType<T>::toInt64(size_t n) const {
 1536|  22.4k|  ok_ = true;
 1537|  22.4k|  return static_cast<int64_t>(value_.at(n));
 1538|  22.4k|}
_ZNK5Exiv29ValueTypeIiE8toUint32Em:
 1540|  2.58k|uint32_t ValueType<T>::toUint32(size_t n) const {
 1541|  2.58k|  ok_ = true;
 1542|  2.58k|  return static_cast<uint32_t>(value_.at(n));
 1543|  2.58k|}
_ZNK5Exiv29ValueTypeIiE7toFloatEm:
 1585|     60|float ValueType<T>::toFloat(size_t n) const {
 1586|     60|  ok_ = true;
 1587|     60|  return static_cast<float>(value_.at(n));
 1588|     60|}
_ZNK5Exiv29ValueTypeIiE10toRationalEm:
 1607|    184|Rational ValueType<T>::toRational(size_t n) const {
 1608|    184|  ok_ = true;
 1609|    184|  return {value_.at(n), 1};
 1610|    184|}
_ZNK5Exiv29ValueTypeIiE12sizeDataAreaEv:
 1639|  2.57k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.57k|  return pDataArea_.size();
 1641|  2.57k|}
_ZNK5Exiv29ValueTypeIiE8dataAreaEv:
 1644|    278|DataBuf ValueType<T>::dataArea() const {
 1645|    278|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    278|}
_ZNK5Exiv29ValueTypeIiE6clone_Ev:
 1511|   491k|ValueType<T>* ValueType<T>::clone_() const {
 1512|   491k|  return new ValueType<T>(*this);
 1513|   491k|}
_ZN5Exiv29ValueTypeIiEC2ERKS1_:
 1447|   491k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|   491k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 106, False: 491k]
  ------------------
 1449|    106|    pDataArea_ = rhs.pDataArea_;
 1450|   491k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2Ev:
 1433|  34.1k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  34.1k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE4readEPKhmNS_9ByteOrderE:
 1467|  34.1k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  34.1k|  value_.clear();
 1469|  34.1k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  34.1k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 34.1k, False: 0]
  |  Branch (1470:17): [True: 0, False: 34.1k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   535k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 501k, False: 34.1k]
  ------------------
 1473|   501k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   501k|  }
 1475|  34.1k|  return 0;
 1476|  34.1k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEE11setDataAreaEPKhm:
 1649|  1.70k|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|  1.70k|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 1.05k, False: 650]
  ------------------
 1651|  1.05k|    pDataArea_ = Blob(buf, buf + len);
 1652|    650|  else
 1653|    650|    pDataArea_.clear();
 1654|  1.70k|  return 0;
 1655|  1.70k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4copyEPhNS_9ByteOrderE:
 1492|  11.9k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  11.9k|  size_t offset = 0;
 1494|  63.2k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 63.2k, False: 11.9k]
  ------------------
 1495|  63.2k|    offset += toData(buf + offset, val, byteOrder);
 1496|  63.2k|  }
 1497|  11.9k|  return offset;
 1498|  11.9k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5countEv:
 1501|   100k|size_t ValueType<T>::count() const {
 1502|   100k|  return value_.size();
 1503|   100k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE4sizeEv:
 1506|  35.5k|size_t ValueType<T>::size() const {
 1507|  35.5k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  35.5k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE5writeERNS1_13basic_ostreamIcNS1_11char_traitsIcEEEE:
 1516|  7.93k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  7.93k|  auto end = value_.end();
 1518|  7.93k|  auto i = value_.begin();
 1519|   199k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 191k, False: 7.93k]
  ------------------
 1520|   191k|    os << std::setprecision(15) << *i;
 1521|   191k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 183k, False: 7.90k]
  ------------------
 1522|   183k|      os << " ";
 1523|   191k|  }
 1524|  7.93k|  return os;
 1525|  7.93k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8toStringEm:
 1528|    238|std::string ValueType<T>::toString(size_t n) const {
 1529|    238|  ok_ = true;
 1530|    238|  return Exiv2::toString<T>(value_.at(n));
 1531|    238|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE12sizeDataAreaEv:
 1639|  2.22k|size_t ValueType<T>::sizeDataArea() const {
 1640|  2.22k|  return pDataArea_.size();
 1641|  2.22k|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE8dataAreaEv:
 1644|     52|DataBuf ValueType<T>::dataArea() const {
 1645|     52|  return {pDataArea_.data(), pDataArea_.size()};
 1646|     52|}
_ZNK5Exiv29ValueTypeINSt3__14pairIiiEEE6clone_Ev:
 1511|  85.0k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  85.0k|  return new ValueType<T>(*this);
 1513|  85.0k|}
_ZN5Exiv29ValueTypeINSt3__14pairIiiEEEC2ERKS4_:
 1447|  85.0k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  85.0k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 1.74k, False: 83.3k]
  ------------------
 1449|  1.74k|    pDataArea_ = rhs.pDataArea_;
 1450|  85.0k|}
_ZN5Exiv29ValueTypeIfEC2Ev:
 1433|  10.1k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  10.1k|}
_ZN5Exiv29ValueTypeIfE4readEPKhmNS_9ByteOrderE:
 1467|  10.1k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  10.1k|  value_.clear();
 1469|  10.1k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  10.1k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 10.1k, False: 0]
  |  Branch (1470:17): [True: 0, False: 10.1k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|   541k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 530k, False: 10.1k]
  ------------------
 1473|   530k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|   530k|  }
 1475|  10.1k|  return 0;
 1476|  10.1k|}
_ZN5Exiv29ValueTypeIfE11setDataAreaEPKhm:
 1649|    733|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    733|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 350, False: 383]
  ------------------
 1651|    350|    pDataArea_ = Blob(buf, buf + len);
 1652|    383|  else
 1653|    383|    pDataArea_.clear();
 1654|    733|  return 0;
 1655|    733|}
_ZNK5Exiv29ValueTypeIfE4copyEPhNS_9ByteOrderE:
 1492|  6.00k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  6.00k|  size_t offset = 0;
 1494|  81.3k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 81.3k, False: 6.00k]
  ------------------
 1495|  81.3k|    offset += toData(buf + offset, val, byteOrder);
 1496|  81.3k|  }
 1497|  6.00k|  return offset;
 1498|  6.00k|}
_ZNK5Exiv29ValueTypeIfE5countEv:
 1501|  32.2k|size_t ValueType<T>::count() const {
 1502|  32.2k|  return value_.size();
 1503|  32.2k|}
_ZNK5Exiv29ValueTypeIfE4sizeEv:
 1506|  20.7k|size_t ValueType<T>::size() const {
 1507|  20.7k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  20.7k|}
_ZNK5Exiv29ValueTypeIfE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  2.54k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  2.54k|  auto end = value_.end();
 1518|  2.54k|  auto i = value_.begin();
 1519|   475k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 472k, False: 2.54k]
  ------------------
 1520|   472k|    os << std::setprecision(15) << *i;
 1521|   472k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 470k, False: 2.52k]
  ------------------
 1522|   470k|      os << " ";
 1523|   472k|  }
 1524|  2.54k|  return os;
 1525|  2.54k|}
_ZNK5Exiv29ValueTypeIfE8toStringEm:
 1528|    466|std::string ValueType<T>::toString(size_t n) const {
 1529|    466|  ok_ = true;
 1530|    466|  return Exiv2::toString<T>(value_.at(n));
 1531|    466|}
_ZNK5Exiv29ValueTypeIfE7toFloatEm:
 1585|    100|float ValueType<T>::toFloat(size_t n) const {
 1586|    100|  ok_ = true;
 1587|    100|  return static_cast<float>(value_.at(n));
 1588|    100|}
_ZNK5Exiv29ValueTypeIfE12sizeDataAreaEv:
 1639|  1.20k|size_t ValueType<T>::sizeDataArea() const {
 1640|  1.20k|  return pDataArea_.size();
 1641|  1.20k|}
_ZNK5Exiv29ValueTypeIfE8dataAreaEv:
 1644|    105|DataBuf ValueType<T>::dataArea() const {
 1645|    105|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    105|}
_ZNK5Exiv29ValueTypeIfE6clone_Ev:
 1511|  31.7k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  31.7k|  return new ValueType<T>(*this);
 1513|  31.7k|}
_ZN5Exiv29ValueTypeIfEC2ERKS1_:
 1447|  31.7k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  31.7k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 231, False: 31.4k]
  ------------------
 1449|    231|    pDataArea_ = rhs.pDataArea_;
 1450|  31.7k|}
_ZN5Exiv29ValueTypeIdEC2Ev:
 1433|  8.74k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  8.74k|}
_ZN5Exiv29ValueTypeIdE4readEPKhmNS_9ByteOrderE:
 1467|  8.74k|int ValueType<T>::read(const byte* buf, size_t len, ByteOrder byteOrder) {
 1468|  8.74k|  value_.clear();
 1469|  8.74k|  size_t ts = TypeInfo::typeSize(typeId());
 1470|  8.74k|  if (ts > 0 && len % ts != 0)
  ------------------
  |  Branch (1470:7): [True: 8.74k, False: 0]
  |  Branch (1470:17): [True: 0, False: 8.74k]
  ------------------
 1471|      0|    len = (len / ts) * ts;
 1472|  28.4k|  for (size_t i = 0; i < len; i += ts) {
  ------------------
  |  Branch (1472:22): [True: 19.6k, False: 8.74k]
  ------------------
 1473|  19.6k|    value_.push_back(getValue<T>(buf + i, byteOrder));
 1474|  19.6k|  }
 1475|  8.74k|  return 0;
 1476|  8.74k|}
_ZN5Exiv29ValueTypeIdE11setDataAreaEPKhm:
 1649|    257|int ValueType<T>::setDataArea(const byte* buf, size_t len) {
 1650|    257|  if (len > 0)
  ------------------
  |  Branch (1650:7): [True: 153, False: 104]
  ------------------
 1651|    153|    pDataArea_ = Blob(buf, buf + len);
 1652|    104|  else
 1653|    104|    pDataArea_.clear();
 1654|    257|  return 0;
 1655|    257|}
_ZNK5Exiv29ValueTypeIdE4copyEPhNS_9ByteOrderE:
 1492|  6.67k|size_t ValueType<T>::copy(byte* buf, ByteOrder byteOrder) const {
 1493|  6.67k|  size_t offset = 0;
 1494|  35.0k|  for (const auto& val : value_) {
  ------------------
  |  Branch (1494:24): [True: 35.0k, False: 6.67k]
  ------------------
 1495|  35.0k|    offset += toData(buf + offset, val, byteOrder);
 1496|  35.0k|  }
 1497|  6.67k|  return offset;
 1498|  6.67k|}
_ZNK5Exiv29ValueTypeIdE5countEv:
 1501|  21.8k|size_t ValueType<T>::count() const {
 1502|  21.8k|  return value_.size();
 1503|  21.8k|}
_ZNK5Exiv29ValueTypeIdE4sizeEv:
 1506|  22.8k|size_t ValueType<T>::size() const {
 1507|  22.8k|  return TypeInfo::typeSize(typeId()) * value_.size();
 1508|  22.8k|}
_ZNK5Exiv29ValueTypeIdE5writeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEE:
 1516|  1.36k|std::ostream& ValueType<T>::write(std::ostream& os) const {
 1517|  1.36k|  auto end = value_.end();
 1518|  1.36k|  auto i = value_.begin();
 1519|  8.41k|  while (i != end) {
  ------------------
  |  Branch (1519:10): [True: 7.05k, False: 1.36k]
  ------------------
 1520|  7.05k|    os << std::setprecision(15) << *i;
 1521|  7.05k|    if (++i != end)
  ------------------
  |  Branch (1521:9): [True: 5.83k, False: 1.21k]
  ------------------
 1522|  5.83k|      os << " ";
 1523|  7.05k|  }
 1524|  1.36k|  return os;
 1525|  1.36k|}
_ZNK5Exiv29ValueTypeIdE8toStringEm:
 1528|    108|std::string ValueType<T>::toString(size_t n) const {
 1529|    108|  ok_ = true;
 1530|    108|  return Exiv2::toString<T>(value_.at(n));
 1531|    108|}
_ZNK5Exiv29ValueTypeIdE7toFloatEm:
 1585|    212|float ValueType<T>::toFloat(size_t n) const {
 1586|    212|  ok_ = true;
 1587|    212|  return static_cast<float>(value_.at(n));
 1588|    212|}
_ZNK5Exiv29ValueTypeIdE12sizeDataAreaEv:
 1639|  5.44k|size_t ValueType<T>::sizeDataArea() const {
 1640|  5.44k|  return pDataArea_.size();
 1641|  5.44k|}
_ZNK5Exiv29ValueTypeIdE8dataAreaEv:
 1644|    595|DataBuf ValueType<T>::dataArea() const {
 1645|    595|  return {pDataArea_.data(), pDataArea_.size()};
 1646|    595|}
_ZNK5Exiv29ValueTypeIdE6clone_Ev:
 1511|  28.6k|ValueType<T>* ValueType<T>::clone_() const {
 1512|  28.6k|  return new ValueType<T>(*this);
 1513|  28.6k|}
_ZN5Exiv29ValueTypeIdEC2ERKS1_:
 1447|  28.6k|ValueType<T>::ValueType(const ValueType<T>& rhs) : Value(rhs.typeId()), value_(rhs.value_) {
 1448|  28.6k|  if (!rhs.pDataArea_.empty())
  ------------------
  |  Branch (1448:7): [True: 122, False: 28.5k]
  ------------------
 1449|    122|    pDataArea_ = rhs.pDataArea_;
 1450|  28.6k|}
_ZZNK5Exiv222LangAltValueComparatorclERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_ENKUlhhE_clEhh:
  799|  2.16k|    auto f = [](unsigned char a, unsigned char b) { return std::tolower(a) > std::tolower(b); };
_ZN5Exiv29ValueTypeIjEC2Ev:
 1433|  29.0k|ValueType<T>::ValueType() : Value(getType<T>()) {
 1434|  29.0k|}

_ZNK5Exiv27XmpData9usePacketEv:
  215|  9.02k|  [[nodiscard]] bool usePacket() const {
  216|  9.02k|    return usePacket_;
  217|  9.02k|  }
_ZN5Exiv27XmpData9usePacketEb:
  220|  7.02k|  bool usePacket(bool b) {
  221|  7.02k|    bool r = usePacket_;
  222|  7.02k|    usePacket_ = b;
  223|  7.02k|    return r;
  224|  7.02k|  }
_ZN5Exiv27XmpData9setPacketENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  226|  6.00k|  void setPacket(std::string xmpPacket) {
  227|  6.00k|    xmpPacket_ = std::move(xmpPacket);
  228|  6.00k|    usePacket(false);
  229|  6.00k|  }
_ZN5Exiv27XmpDataC2Ev:
  139|  38.8k|  XmpData() = default;
_ZN5Exiv28XmpdatumaSINSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEEERS0_RKT_:
  366|  9.59k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|  9.59k|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|  9.59k|  return *this;
  376|  9.59k|}
_ZN5Exiv28XmpdatumaSIdEERS0_RKT_:
  366|   222k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   222k|    setValue(Exiv2::toString(value));
  375|   222k|  return *this;
  376|   222k|}
_ZN5Exiv28XmpdatumaSImEERS0_RKT_:
  366|  3.86k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|  3.86k|    setValue(Exiv2::toString(value));
  375|  3.86k|  return *this;
  376|  3.86k|}
_ZN5Exiv28XmpdatumaSIjEERS0_RKT_:
  366|  6.30k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|  6.30k|    setValue(Exiv2::toString(value));
  375|  6.30k|  return *this;
  376|  6.30k|}
_ZN5Exiv28XmpdatumaSIPKhEERS0_RKT_:
  366|  2.35k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|  2.35k|    setValue(Exiv2::toString(value));
  375|  2.35k|  return *this;
  376|  2.35k|}
_ZN5Exiv28XmpdatumaSIA4_cEERS0_RKT_:
  366|    637|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|    637|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|    637|  return *this;
  376|    637|}
_ZN5Exiv28XmpdatumaSIlEERS0_RKT_:
  366|    436|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|    436|    setValue(Exiv2::toString(value));
  375|    436|  return *this;
  376|    436|}
_ZN5Exiv28XmpdatumaSIfEERS0_RKT_:
  366|    521|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|    521|    setValue(Exiv2::toString(value));
  375|    521|  return *this;
  376|    521|}
_ZN5Exiv28XmpdatumaSIA18_cEERS0_RKT_:
  366|    179|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|    179|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|    179|  return *this;
  376|    179|}
_ZN5Exiv28XmpdatumaSItEERS0_RKT_:
  366|   145k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   145k|    setValue(Exiv2::toString(value));
  375|   145k|  return *this;
  376|   145k|}
_ZN5Exiv28XmpdatumaSIsEERS0_RKT_:
  366|    974|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|    974|    setValue(Exiv2::toString(value));
  375|    974|  return *this;
  376|    974|}
_ZN5Exiv28XmpdatumaSIPhEERS0_RKT_:
  366|   227k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   227k|    setValue(Exiv2::toString(value));
  375|   227k|  return *this;
  376|   227k|}
_ZN5Exiv28XmpdatumaSIPKcEERS0_RKT_:
  366|  18.4k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|  18.4k|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|  18.4k|  return *this;
  376|  18.4k|}
_ZN5Exiv28XmpdatumaSIiEERS0_RKT_:
  366|   235k|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|       |    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|   235k|    setValue(Exiv2::toString(value));
  375|   235k|  return *this;
  376|   235k|}
_ZN5Exiv28XmpdatumaSIA12_cEERS0_RKT_:
  366|      4|Xmpdatum& Xmpdatum::operator=(const T& value) {
  367|       |  if constexpr (std::is_same_v<T, bool>)
  368|       |    setValue(value ? "True" : "False");
  369|       |  else if constexpr (std::is_convertible_v<T, std::string>)
  370|      4|    setValue(value);
  371|       |  else if constexpr (std::is_base_of_v<Value, T>)
  372|       |    setValue(&value);
  373|       |  else
  374|       |    setValue(Exiv2::toString(value));
  375|      4|  return *this;
  376|      4|}

_ZNK5Exiv28AsfVideo7GUIDTageqERKS1_:
   42|  7.89k|bool AsfVideo::GUIDTag::operator==(const AsfVideo::GUIDTag& other) const {
   43|  7.89k|  return data1_ == other.data1_ && data2_ == other.data2_ && data3_ == other.data3_ && data4_ == other.data4_;
  ------------------
  |  Branch (43:10): [True: 1.05k, False: 6.83k]
  |  Branch (43:36): [True: 1.04k, False: 7]
  |  Branch (43:62): [True: 1.04k, False: 8]
  |  Branch (43:88): [True: 1.03k, False: 2]
  ------------------
   44|  7.89k|}
_ZN5Exiv28AsfVideo7GUIDTagC2EPKh:
   46|  9.21k|AsfVideo::GUIDTag::GUIDTag(const uint8_t* bytes) {
   47|  9.21k|  data1_ = Exiv2::getULong(bytes, ByteOrder::littleEndian);
   48|  9.21k|  data2_ = Exiv2::getUShort(bytes + DWORD, ByteOrder::littleEndian);
   49|  9.21k|  data3_ = Exiv2::getUShort(bytes + DWORD + WORD, ByteOrder::littleEndian);
   50|  9.21k|  std::copy(bytes + QWORD, bytes + (2 * QWORD), data4_.begin());
   51|  9.21k|}
_ZNK5Exiv28AsfVideo7GUIDTag9to_stringEv:
   53|     71|std::string AsfVideo::GUIDTag::to_string() const {
   54|       |  // Concatenate all strings into a single string
   55|       |  // Convert the string to uppercase
   56|       |  // Example of output 399595EC-8667-4E2D-8FDB-98814CE76C1E
   57|     71|  return stringFormat("{:08X}-{:04X}-{:04X}-{:02X}{:02X}-{:02X}{:02X}{:02X}{:02X}{:02X}{:02X}", data1_, data2_, data3_,
  ------------------
  |  |   18|     71|#define stringFormat std::format
  ------------------
   58|     71|                      data4_[0], data4_[1], data4_[2], data4_[3], data4_[4], data4_[5], data4_[6], data4_[7]);
   59|     71|}
_ZNK5Exiv28AsfVideo7GUIDTagltERKS1_:
   61|  9.32k|bool AsfVideo::GUIDTag::operator<(const GUIDTag& other) const {
   62|  9.32k|  if (data1_ != other.data1_)
  ------------------
  |  Branch (62:7): [True: 7.17k, False: 2.14k]
  ------------------
   63|  7.17k|    return data1_ < other.data1_;
   64|  2.14k|  if (data2_ != other.data2_)
  ------------------
  |  Branch (64:7): [True: 111, False: 2.03k]
  ------------------
   65|    111|    return data2_ < other.data2_;
   66|  2.03k|  if (data3_ != other.data3_)
  ------------------
  |  Branch (66:7): [True: 143, False: 1.89k]
  ------------------
   67|    143|    return data3_ < other.data3_;
   68|  1.89k|  return std::lexicographical_compare(data4_.begin(), data4_.end(), other.data4_.begin(), other.data4_.end());
   69|  2.03k|}
_ZN5Exiv28AsfVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  182|    346|AsfVideo::AsfVideo(BasicIo::UniquePtr io) : Image(ImageType::asf, mdNone, std::move(io)) {
  183|    346|}  // AsfVideo::AsfVideo
_ZNK5Exiv28AsfVideo8mimeTypeEv:
  185|    346|std::string AsfVideo::mimeType() const {
  186|    346|  return "video/asf";
  187|    346|}
_ZN5Exiv28AsfVideo12readMetadataEv:
  192|    346|void AsfVideo::readMetadata() {
  193|    346|  if (io_->open() != 0)
  ------------------
  |  Branch (193:7): [True: 0, False: 346]
  ------------------
  194|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  195|       |
  196|       |  // Ensure that this is the correct image type
  197|    346|  if (!isAsfType(*io_, false)) {
  ------------------
  |  Branch (197:7): [True: 0, False: 346]
  ------------------
  198|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (198:9): [True: 0, False: 0]
  |  Branch (198:25): [True: 0, False: 0]
  ------------------
  199|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  200|      0|    throw Error(ErrorCode::kerNotAnImage, "ASF");
  201|      0|  }
  202|       |
  203|    346|  IoCloser closer(*io_);
  204|    346|  clearMetadata();
  205|    346|  io_->seek(0, BasicIo::beg);
  206|    346|  height_ = width_ = 1;
  207|       |
  208|    346|  xmpData()["Xmp.video.FileSize"] = io_->size() / 1048576.;
  209|    346|  xmpData()["Xmp.video.MimeType"] = mimeType();
  210|       |
  211|    346|  decodeBlock();
  212|       |
  213|    346|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  214|    346|}  // AsfVideo::readMetadata
_ZN5Exiv28AsfVideo12HeaderReaderC2ERKNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  216|  1.18k|AsfVideo::HeaderReader::HeaderReader(const BasicIo::UniquePtr& io) : IdBuf_(GUID) {
  217|  1.18k|  if (io->size() >= io->tell() + GUID + QWORD) {
  ------------------
  |  Branch (217:7): [True: 1.18k, False: 0]
  ------------------
  218|  1.18k|    io->readOrThrow(IdBuf_.data(), IdBuf_.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  219|       |
  220|  1.18k|    size_ = readQWORDTag(io);
  221|  1.18k|    if (size_ >= GUID + QWORD)
  ------------------
  |  Branch (221:9): [True: 602, False: 584]
  ------------------
  222|    602|      remaining_size_ = size_ - GUID - QWORD;
  223|  1.18k|  }
  224|  1.18k|}
_ZN5Exiv28AsfVideo11decodeBlockEv:
  226|  1.21k|void AsfVideo::decodeBlock() {
  227|  1.21k|  Internal::enforce(GUID + QWORD <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  228|  1.21k|  HeaderReader objectHeader(io_);
  229|       |#ifdef EXIV2_DEBUG_MESSAGES
  230|       |  EXV_INFO << "decodeBlock = " << GUIDTag(objectHeader.getId().data()).to_string()
  231|       |           << "\tsize= " << objectHeader.getSize() << "\t " << io_->tell() << "/" << io_->size() << '\n';
  232|       |#endif
  233|  1.21k|  Internal::enforce(objectHeader.getSize() <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  234|  1.21k|  auto tag = GUIDReferenceTags.find(GUIDTag(objectHeader.getId().data()));
  235|       |
  236|  1.21k|  if (tag != GUIDReferenceTags.end()) {
  ------------------
  |  Branch (236:7): [True: 856, False: 362]
  ------------------
  237|    856|    if (tag->second == "Header")
  ------------------
  |  Branch (237:9): [True: 345, False: 511]
  ------------------
  238|    345|      decodeHeader();
  239|    511|    else if (tag->second == "File_Properties")
  ------------------
  |  Branch (239:14): [True: 72, False: 439]
  ------------------
  240|     72|      fileProperties();
  241|    439|    else if (tag->second == "Stream_Properties")
  ------------------
  |  Branch (241:14): [True: 148, False: 291]
  ------------------
  242|    148|      streamProperties();
  243|    291|    else if (tag->second == "Header_Extension")
  ------------------
  |  Branch (243:14): [True: 7, False: 284]
  ------------------
  244|      7|      headerExtension();
  245|    284|    else if (tag->second == "Codec_List")
  ------------------
  |  Branch (245:14): [True: 57, False: 227]
  ------------------
  246|     57|      codecList();
  247|    227|    else if (tag->second == "Extended_Content_Description")
  ------------------
  |  Branch (247:14): [True: 86, False: 141]
  ------------------
  248|     86|      extendedContentDescription();
  249|    141|    else if (tag->second == "Content_Description")
  ------------------
  |  Branch (249:14): [True: 104, False: 37]
  ------------------
  250|    104|      contentDescription();
  251|     37|    else if (tag->second == "Extended_Stream_Properties")
  ------------------
  |  Branch (251:14): [True: 32, False: 5]
  ------------------
  252|     32|      extendedStreamProperties();
  253|      5|    else if (tag->second == "Degradable_JPEG_Media")
  ------------------
  |  Branch (253:14): [True: 0, False: 5]
  ------------------
  254|      0|      DegradableJPEGMedia();
  255|      5|    else {  // tag found but not processed
  256|       |      // Make sure that the remaining size is non-zero, so that we won't
  257|       |      // keep revisiting the same location in the file.
  258|      5|      const uint64_t remaining_size = objectHeader.getRemainingSize();
  259|      5|      Internal::enforce(remaining_size > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  260|      5|      io_->seekOrThrow(io_->tell() + remaining_size, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  261|      5|    }
  262|    856|  } else {  // tag not found
  263|       |    // Make sure that the remaining size is non-zero, so that we won't keep
  264|       |    // revisiting the same location in the file.
  265|    362|    const uint64_t remaining_size = objectHeader.getRemainingSize();
  266|    362|    Internal::enforce(remaining_size > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  267|    362|    io_->seekOrThrow(io_->tell() + remaining_size, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  268|    362|  }
  269|       |
  270|  1.21k|}  // AsfVideo::decodeBlock
_ZN5Exiv28AsfVideo12decodeHeaderEv:
  272|    345|void AsfVideo::decodeHeader() {
  273|    345|  DataBuf nbHeadersBuf(DWORD + 1);
  274|    345|  io_->readOrThrow(nbHeadersBuf.data(), DWORD, Exiv2::ErrorCode::kerCorruptedMetadata);
  275|       |
  276|    345|  uint32_t nb_headers = Exiv2::getULong(nbHeadersBuf.data(), littleEndian);
  277|    345|  Internal::enforce(nb_headers < std::numeric_limits<uint32_t>::max(), Exiv2::ErrorCode::kerCorruptedMetadata);
  278|    345|  io_->seekOrThrow(io_->tell() + (BYTE * 2), BasicIo::beg,
  279|    345|                   ErrorCode::kerFailedToReadImageData);  // skip two reserved tags
  280|  1.21k|  for (uint32_t i = 0; i < nb_headers; i++) {
  ------------------
  |  Branch (280:24): [True: 872, False: 345]
  ------------------
  281|    872|    decodeBlock();
  282|    872|  }
  283|    345|}
_ZN5Exiv28AsfVideo24extendedStreamPropertiesEv:
  285|     32|void AsfVideo::extendedStreamProperties() {
  286|     32|  xmpData()["Xmp.video.StartTimecode"] = readQWORDTag(io_);  // Start Time
  287|     32|  xmpData()["Xmp.video.EndTimecode"] = readWORDTag(io_);     // End Time
  288|       |
  289|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Data Bitrate
  290|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Buffer Size
  291|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Initial Buffer Fullness
  292|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Alternate Data Bitrate
  293|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Alternate Buffer Size
  294|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Alternate Initial Buffer Fullness
  295|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Maximum Object Size
  296|     32|  io_->seek(io_->tell() + DWORD, BasicIo::beg);  // ignore Flags Buffer Size
  297|     32|  io_->seek(io_->tell() + WORD, BasicIo::beg);   // ignore Flags Stream Number
  298|     32|  io_->seek(io_->tell() + WORD, BasicIo::beg);   // ignore Stream Language ID Index
  299|       |
  300|     32|  xmpData()["Xmp.video.FrameRate"] = readWORDTag(io_);  // Average Time Per Frame
  301|     32|  uint16_t stream_name_count = readWORDTag(io_);
  302|     32|  uint16_t payload_ext_sys_count = readWORDTag(io_);
  303|       |
  304|  1.53k|  for (uint16_t i = 0; i < stream_name_count; i++) {
  ------------------
  |  Branch (304:24): [True: 1.50k, False: 32]
  ------------------
  305|  1.50k|    io_->seek(io_->tell() + WORD, BasicIo::beg);  // ignore Language ID Index
  306|  1.50k|    uint16_t stream_length = readWORDTag(io_);
  307|  1.50k|    if (stream_length)
  ------------------
  |  Branch (307:9): [True: 1.09k, False: 410]
  ------------------
  308|  1.09k|      io_->seek(io_->tell() + stream_length, BasicIo::beg);  // ignore Stream name
  309|  1.50k|  }
  310|       |
  311|    596|  for (uint16_t i = 0; i < payload_ext_sys_count; i++) {
  ------------------
  |  Branch (311:24): [True: 564, False: 32]
  ------------------
  312|    564|    io_->seek(io_->tell() + GUID, BasicIo::beg);  // ignore Extension System ID
  313|    564|    io_->seek(io_->tell() + WORD, BasicIo::beg);  // ignore Extension Data Size
  314|    564|    uint16_t ext_sys_info_length = readWORDTag(io_);
  315|    564|    if (ext_sys_info_length)
  ------------------
  |  Branch (315:9): [True: 377, False: 187]
  ------------------
  316|    377|      io_->seek(io_->tell() + ext_sys_info_length, BasicIo::beg);  // ignore Extension System Info
  317|    564|  }
  318|     32|}  // AsfVideo::extendedStreamProperties
_ZN5Exiv28AsfVideo16streamPropertiesEv:
  335|    148|void AsfVideo::streamProperties() {
  336|    148|  DataBuf streamTypedBuf(GUID);
  337|    148|  io_->readOrThrow(streamTypedBuf.data(), streamTypedBuf.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  338|       |
  339|    148|  enum class streamTypeInfo { Audio = 1, Video = 2 };
  340|    148|  auto stream = streamTypeInfo{0};
  341|       |
  342|    148|  auto tag_stream_type = GUIDReferenceTags.find(GUIDTag(streamTypedBuf.data()));
  343|    148|  if (tag_stream_type != GUIDReferenceTags.end()) {
  ------------------
  |  Branch (343:7): [True: 59, False: 89]
  ------------------
  344|     59|    if (tag_stream_type->second == "Audio_Media")
  ------------------
  |  Branch (344:9): [True: 0, False: 59]
  ------------------
  345|      0|      stream = streamTypeInfo::Audio;
  346|     59|    else if (tag_stream_type->second == "Video_Media")
  ------------------
  |  Branch (346:14): [True: 0, False: 59]
  ------------------
  347|      0|      stream = streamTypeInfo::Video;
  348|       |
  349|     59|    io_->seek(io_->tell() + GUID, BasicIo::beg);  // ignore Error Correction Type
  350|       |
  351|     59|    uint64_t time_offset = readQWORDTag(io_);
  352|     59|    if (stream == streamTypeInfo::Video)
  ------------------
  |  Branch (352:9): [True: 0, False: 59]
  ------------------
  353|      0|      xmpData()["Xmp.video.TimeOffset"] = time_offset;
  354|     59|    else if (stream == streamTypeInfo::Audio)
  ------------------
  |  Branch (354:14): [True: 0, False: 59]
  ------------------
  355|      0|      xmpData()["Xmp.audio.TimeOffset"] = time_offset;
  356|       |
  357|     59|    auto specific_data_length = readDWORDTag(io_);
  358|     59|    auto correction_data_length = readDWORDTag(io_);
  359|       |
  360|     59|    io_->seek(io_->tell() + WORD /*Flags*/ + DWORD /*Reserved*/ + specific_data_length + correction_data_length,
  361|     59|              BasicIo::beg);
  362|     59|  }
  363|       |
  364|    148|}  // AsfVideo::streamProperties
_ZN5Exiv28AsfVideo9codecListEv:
  366|     57|void AsfVideo::codecList() {
  367|     57|  io_->seek(io_->tell() + GUID /*reserved*/, BasicIo::beg);
  368|     57|  auto entries_count = readDWORDTag(io_);
  369|    374|  for (uint32_t i = 0; i < entries_count; i++) {
  ------------------
  |  Branch (369:24): [True: 317, False: 57]
  ------------------
  370|    317|    uint16_t codec_type = readWORDTag(io_) * 2;
  371|    317|    std::string codec = (codec_type == 1) ? "Xmp.video" : "Xmp.audio";
  ------------------
  |  Branch (371:25): [True: 0, False: 317]
  ------------------
  372|       |
  373|    317|    if (uint16_t codec_name_length = readWORDTag(io_) * 2)
  ------------------
  |  Branch (373:18): [True: 215, False: 102]
  ------------------
  374|    215|      xmpData()[codec + std::string(".CodecName")] = readStringWcharTag(io_, codec_name_length);
  375|       |
  376|    317|    if (uint16_t codec_desc_length = readWORDTag(io_))
  ------------------
  |  Branch (376:18): [True: 271, False: 46]
  ------------------
  377|    271|      xmpData()[codec + std::string(".CodecDescription")] = readStringWcharTag(io_, codec_desc_length);
  378|       |
  379|    317|    uint16_t codec_info_length = readWORDTag(io_);
  380|    317|    Internal::enforce(codec_info_length && codec_info_length < io_->size() - io_->tell(),
  ------------------
  |  Branch (380:23): [True: 289, False: 28]
  |  Branch (380:44): [True: 276, False: 13]
  ------------------
  381|    317|                      Exiv2::ErrorCode::kerCorruptedMetadata);
  382|    317|    xmpData()[codec + std::string(".CodecInfo")] = readStringTag(io_, codec_info_length);
  383|    317|  }
  384|     57|}  // AsfVideo::codecList
_ZNK5Exiv28AsfVideo15headerExtensionEv:
  386|      7|void AsfVideo::headerExtension() const {
  387|      7|  io_->seek(io_->tell() + GUID /*reserved1*/ + WORD /*Reserved2*/, BasicIo::beg);
  388|      7|  auto header_ext_data_length = readDWORDTag(io_);
  389|      7|  io_->seek(io_->tell() + header_ext_data_length, BasicIo::beg);
  390|      7|}  // AsfVideo::headerExtension
_ZN5Exiv28AsfVideo26extendedContentDescriptionEv:
  392|     86|void AsfVideo::extendedContentDescription() {
  393|     86|  uint16_t content_descriptor_count = readWORDTag(io_);
  394|     86|  std::string value;
  395|       |
  396|  2.01k|  for (uint16_t i = 0; i < content_descriptor_count; i++) {
  ------------------
  |  Branch (396:24): [True: 1.95k, False: 65]
  ------------------
  397|  1.95k|    if (uint16_t descriptor_name_length = readWORDTag(io_))
  ------------------
  |  Branch (397:18): [True: 984, False: 967]
  ------------------
  398|    984|      value += readStringWcharTag(io_, descriptor_name_length);  // Descriptor Name
  399|       |
  400|  1.95k|    uint16_t descriptor_value_data_type = readWORDTag(io_);
  401|  1.95k|    if (uint16_t descriptor_value_length = readWORDTag(io_)) {
  ------------------
  |  Branch (401:18): [True: 1.31k, False: 636]
  ------------------
  402|       |      // Descriptor Value
  403|  1.31k|      switch (descriptor_value_data_type) {
  ------------------
  |  Branch (403:15): [True: 566, False: 749]
  ------------------
  404|    245|        case 0 /*Unicode string */:
  ------------------
  |  Branch (404:9): [True: 245, False: 1.07k]
  ------------------
  405|    245|          value += std::string(": ") + readStringWcharTag(io_, descriptor_value_length);
  406|    245|          break;
  407|     59|        case 1 /*BYTE array  */:
  ------------------
  |  Branch (407:9): [True: 59, False: 1.25k]
  ------------------
  408|     59|          value += std::string(": ") + readStringTag(io_, descriptor_value_length);
  409|     59|          break;
  410|     46|        case 2 /*BOOL*/:
  ------------------
  |  Branch (410:9): [True: 46, False: 1.26k]
  ------------------
  411|     46|          value += std::string(": ") + std::to_string(readWORDTag(io_));
  412|     46|          break;
  413|      7|        case 3 /*DWORD */:
  ------------------
  |  Branch (413:9): [True: 7, False: 1.30k]
  ------------------
  414|      7|          value += std::string(": ") + std::to_string(readDWORDTag(io_));
  415|      7|          break;
  416|     62|        case 4 /*QWORD */:
  ------------------
  |  Branch (416:9): [True: 62, False: 1.25k]
  ------------------
  417|     62|          value += std::string(": ") + std::to_string(readQWORDTag(io_));
  418|     62|          break;
  419|    147|        case 5 /*WORD*/:
  ------------------
  |  Branch (419:9): [True: 147, False: 1.16k]
  ------------------
  420|    147|          value += std::string(": ") + std::to_string(readWORDTag(io_));
  421|    147|          break;
  422|  1.31k|      }
  423|  1.31k|    }
  424|  1.93k|    value += std::string(", ");
  425|  1.93k|  }
  426|       |
  427|     65|  xmpData()["Xmp.video.ExtendedContentDescription"] = value;
  428|     65|}  // AsfVideo::extendedContentDescription
_ZN5Exiv28AsfVideo18contentDescriptionEv:
  430|    104|void AsfVideo::contentDescription() {
  431|    104|  uint16_t title_length = readWORDTag(io_);
  432|    104|  uint16_t author_length = readWORDTag(io_);
  433|    104|  uint16_t copyright_length = readWORDTag(io_);
  434|    104|  uint16_t desc_length = readWORDTag(io_);
  435|    104|  uint16_t rating_length = readWORDTag(io_);
  436|       |
  437|    104|  if (title_length)
  ------------------
  |  Branch (437:7): [True: 14, False: 90]
  ------------------
  438|     14|    xmpData()["Xmp.video.Title"] = readStringWcharTag(io_, title_length);
  439|       |
  440|    104|  if (author_length)
  ------------------
  |  Branch (440:7): [True: 16, False: 88]
  ------------------
  441|     16|    xmpData()["Xmp.video.Author"] = readStringWcharTag(io_, author_length);
  442|       |
  443|    104|  if (copyright_length)
  ------------------
  |  Branch (443:7): [True: 37, False: 67]
  ------------------
  444|     37|    xmpData()["Xmp.video.Copyright"] = readStringWcharTag(io_, copyright_length);
  445|       |
  446|    104|  if (desc_length)
  ------------------
  |  Branch (446:7): [True: 90, False: 14]
  ------------------
  447|     90|    xmpData()["Xmp.video.Description"] = readStringWcharTag(io_, desc_length);
  448|       |
  449|    104|  if (rating_length)
  ------------------
  |  Branch (449:7): [True: 88, False: 16]
  ------------------
  450|     88|    xmpData()["Xmp.video.Rating"] = readStringWcharTag(io_, rating_length);
  451|       |
  452|    104|}  // AsfVideo::extendedContentDescription
_ZN5Exiv28AsfVideo14filePropertiesEv:
  454|     72|void AsfVideo::fileProperties() {
  455|     72|  DataBuf FileIddBuf(GUID);
  456|     72|  io_->readOrThrow(FileIddBuf.data(), FileIddBuf.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  457|     72|  xmpData()["Xmp.video.FileID"] = GUIDTag(FileIddBuf.data()).to_string();
  458|     72|  xmpData()["Xmp.video.FileLength"] = readQWORDTag(io_);
  459|     72|  xmpData()["Xmp.video.CreationDate"] = readQWORDTag(io_);
  460|     72|  xmpData()["Xmp.video.DataPackets"] = readQWORDTag(io_);
  461|     72|  xmpData()["Xmp.video.duration"] = readQWORDTag(io_);
  462|     72|  xmpData()["Xmp.video.SendDuration"] = readQWORDTag(io_);
  463|     72|  xmpData()["Xmp.video.Preroll"] = readQWORDTag(io_);
  464|       |
  465|     72|  io_->seek(io_->tell() + DWORD + DWORD + DWORD,
  466|     72|            BasicIo::beg);  // ignore Flags, Minimum Data Packet Size and Maximum Data Packet Size
  467|     72|  xmpData()["Xmp.video.MaxBitRate"] = readDWORDTag(io_);
  468|     72|}  // AsfVideo::fileProperties
_ZN5Exiv214newAsfInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  470|    346|Image::UniquePtr newAsfInstance(BasicIo::UniquePtr io, bool /*create*/) {
  471|    346|  auto image = std::make_unique<AsfVideo>(std::move(io));
  472|    346|  if (!image->good()) {
  ------------------
  |  Branch (472:7): [True: 0, False: 346]
  ------------------
  473|      0|    return nullptr;
  474|      0|  }
  475|    346|  return image;
  476|    346|}
_ZN5Exiv29isAsfTypeERNS_7BasicIoEb:
  478|  8.03k|bool isAsfType(BasicIo& iIo, bool advance) {
  479|  8.03k|  byte buf[GUID];
  480|  8.03k|  iIo.read(buf, GUID);
  481|       |
  482|  8.03k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (482:7): [True: 0, False: 8.03k]
  |  Branch (482:22): [True: 139, False: 7.89k]
  ------------------
  483|    139|    return false;
  484|    139|  }
  485|       |
  486|  7.89k|  bool matched = isASFType(buf);
  487|  7.89k|  if (!advance || !matched) {
  ------------------
  |  Branch (487:7): [True: 7.89k, False: 0]
  |  Branch (487:19): [True: 0, False: 0]
  ------------------
  488|  7.89k|    iIo.seek(0, BasicIo::beg);
  489|  7.89k|  }
  490|       |
  491|  7.89k|  return matched;
  492|  8.03k|}
asfvideo.cpp:_ZN5Exiv2L9isASFTypeEPKh:
  178|  7.89k|static bool isASFType(const byte buf[]) {
  179|  7.89k|  return Header == AsfVideo::GUIDTag(buf);
  180|  7.89k|}

_ZN5Exiv27BasicIoD2Ev:
   53|  59.3k|BasicIo::~BasicIo() = default;
_ZN5Exiv27BasicIo11readOrThrowEPhmNS_9ErrorCodeE:
   55|  3.99M|void BasicIo::readOrThrow(byte* buf, size_t rcount, ErrorCode err) {
   56|  3.99M|  const size_t nread = read(buf, rcount);
   57|  3.99M|  Internal::enforce(nread == rcount, err);
   58|  3.99M|  Internal::enforce(!error(), err);
   59|  3.99M|}
_ZN5Exiv27BasicIo11seekOrThrowElNS0_8PositionENS_9ErrorCodeE:
   61|  61.4k|void BasicIo::seekOrThrow(int64_t offset, Position pos, ErrorCode err) {
   62|  61.4k|  const int r = seek(offset, pos);
   63|  61.4k|  Internal::enforce(r == 0, err);
   64|  61.4k|}
_ZN5Exiv25MemIo4ImplC2EPKhm:
  617|  34.8k|MemIo::Impl::Impl(const byte* data, size_t size) : data_(const_cast<byte*>(data)), size_(size) {
  618|  34.8k|}
_ZN5Exiv25MemIo4Impl7reserveEm:
  671|  3.90M|void MemIo::Impl::reserve(size_t wcount) {
  672|  3.90M|  const size_t need = wcount + idx_;
  673|  3.90M|  size_t blockSize = 32 * 1024;  // 32768
  674|  3.90M|  const size_t maxBlockSize = 4 * 1024 * 1024;
  675|       |
  676|  3.90M|  if (!isMalloced_) {
  ------------------
  |  Branch (676:7): [True: 15.8k, False: 3.89M]
  ------------------
  677|       |    // Minimum size for 1st block
  678|  15.8k|    auto size = std::max<size_t>(blockSize * (1 + need / blockSize), size_);
  679|  15.8k|    auto data = static_cast<byte*>(std::malloc(size));
  680|  15.8k|    if (!data) {
  ------------------
  |  Branch (680:9): [True: 0, False: 15.8k]
  ------------------
  681|      0|      throw Error(ErrorCode::kerMallocFailed);
  682|      0|    }
  683|  15.8k|    if (data_) {
  ------------------
  |  Branch (683:9): [True: 0, False: 15.8k]
  ------------------
  684|      0|      std::memcpy(data, data_, size_);
  685|      0|    }
  686|  15.8k|    data_ = data;
  687|  15.8k|    sizeAlloced_ = size;
  688|  15.8k|    isMalloced_ = true;
  689|  15.8k|  }
  690|       |
  691|  3.90M|  if (need > size_) {
  ------------------
  |  Branch (691:7): [True: 3.89M, False: 10.8k]
  ------------------
  692|  3.89M|    if (need > sizeAlloced_) {
  ------------------
  |  Branch (692:9): [True: 13.9k, False: 3.88M]
  ------------------
  693|  13.9k|      blockSize = std::min(2 * sizeAlloced_, maxBlockSize);
  694|       |      // Allocate in blocks
  695|  13.9k|      size_t want = blockSize * (1 + need / blockSize);
  696|  13.9k|      data_ = static_cast<byte*>(std::realloc(data_, want));
  697|  13.9k|      if (!data_) {
  ------------------
  |  Branch (697:11): [True: 0, False: 13.9k]
  ------------------
  698|      0|        throw Error(ErrorCode::kerMallocFailed);
  699|      0|      }
  700|  13.9k|      sizeAlloced_ = want;
  701|  13.9k|    }
  702|  3.89M|    size_ = need;
  703|  3.89M|  }
  704|  3.90M|}
_ZN5Exiv25MemIoC2Ev:
  706|  24.5k|MemIo::MemIo() : p_(std::make_unique<Impl>()) {
  707|  24.5k|}
_ZN5Exiv25MemIoC2EPKhm:
  709|  34.8k|MemIo::MemIo(const byte* data, size_t size) : p_(std::make_unique<Impl>(data, size)) {
  710|  34.8k|}
_ZN5Exiv25MemIoD2Ev:
  712|  59.3k|MemIo::~MemIo() {
  713|  59.3k|  if (p_->isMalloced_) {
  ------------------
  |  Branch (713:7): [True: 15.2k, False: 44.0k]
  ------------------
  714|  15.2k|    std::free(p_->data_);
  715|  15.2k|  }
  716|  59.3k|}
_ZN5Exiv25MemIo5writeEPKhm:
  718|  3.89M|size_t MemIo::write(const byte* data, size_t wcount) {
  719|  3.89M|  p_->reserve(wcount);
  720|  3.89M|  if (data) {
  ------------------
  |  Branch (720:7): [True: 3.88M, False: 10.7k]
  ------------------
  721|  3.88M|    std::memcpy(&p_->data_[p_->idx_], data, wcount);
  722|  3.88M|  }
  723|  3.89M|  p_->idx_ += wcount;
  724|  3.89M|  return wcount;
  725|  3.89M|}
_ZN5Exiv25MemIo8transferERNS_7BasicIoE:
  727|  10.6k|void MemIo::transfer(BasicIo& src) {
  728|  10.6k|  if (auto memIo = dynamic_cast<MemIo*>(&src)) {
  ------------------
  |  Branch (728:12): [True: 10.6k, False: 0]
  ------------------
  729|       |    // Optimization if src is another instance of MemIo
  730|  10.6k|    if (p_->isMalloced_) {
  ------------------
  |  Branch (730:9): [True: 558, False: 10.0k]
  ------------------
  731|    558|      std::free(p_->data_);
  732|    558|    }
  733|  10.6k|    p_->idx_ = 0;
  734|  10.6k|    p_->data_ = memIo->p_->data_;
  735|  10.6k|    p_->size_ = memIo->p_->size_;
  736|  10.6k|    p_->isMalloced_ = memIo->p_->isMalloced_;
  737|  10.6k|    memIo->p_->idx_ = 0;
  738|  10.6k|    memIo->p_->data_ = nullptr;
  739|  10.6k|    memIo->p_->size_ = 0;
  740|  10.6k|    memIo->p_->isMalloced_ = false;
  741|  10.6k|  } else {
  742|       |    // Generic reopen to reset position to start
  743|      0|    if (src.open() != 0) {
  ------------------
  |  Branch (743:9): [True: 0, False: 0]
  ------------------
  744|      0|      throw Error(ErrorCode::kerDataSourceOpenFailed, src.path(), strError());
  745|      0|    }
  746|      0|    p_->idx_ = 0;
  747|      0|    write(src);
  748|      0|    src.close();
  749|      0|  }
  750|  10.6k|  if (error() || src.error())
  ------------------
  |  Branch (750:7): [True: 0, False: 10.6k]
  |  Branch (750:18): [True: 0, False: 10.6k]
  ------------------
  751|      0|    throw Error(ErrorCode::kerMemoryTransferFailed, strError());
  752|  10.6k|}
_ZN5Exiv25MemIo4putbEh:
  772|  18.8k|int MemIo::putb(byte data) {
  773|  18.8k|  p_->reserve(1);
  774|  18.8k|  p_->data_[p_->idx_++] = data;
  775|  18.8k|  return data;
  776|  18.8k|}
_ZN5Exiv25MemIo4seekElNS_7BasicIo8PositionE:
  778|  1.09M|int MemIo::seek(int64_t offset, Position pos) {
  779|  1.09M|  int64_t newIdx = 0;
  780|       |
  781|  1.09M|  switch (pos) {
  ------------------
  |  Branch (781:11): [True: 1.09M, False: 0]
  ------------------
  782|   634k|    case BasicIo::cur:
  ------------------
  |  Branch (782:5): [True: 634k, False: 461k]
  ------------------
  783|   634k|      newIdx = p_->idx_ + offset;
  784|   634k|      break;
  785|   461k|    case BasicIo::beg:
  ------------------
  |  Branch (785:5): [True: 461k, False: 634k]
  ------------------
  786|   461k|      newIdx = offset;
  787|   461k|      break;
  788|     81|    case BasicIo::end:
  ------------------
  |  Branch (788:5): [True: 81, False: 1.09M]
  ------------------
  789|     81|      newIdx = p_->size_ + offset;
  790|     81|      break;
  791|  1.09M|  }
  792|       |
  793|  1.09M|  if (newIdx < 0)
  ------------------
  |  Branch (793:7): [True: 0, False: 1.09M]
  ------------------
  794|      0|    return 1;
  795|       |
  796|  1.09M|  if (newIdx > static_cast<int64_t>(p_->size_)) {
  ------------------
  |  Branch (796:7): [True: 4.61k, False: 1.09M]
  ------------------
  797|  4.61k|    p_->eof_ = true;
  798|  4.61k|    return 1;
  799|  4.61k|  }
  800|       |
  801|  1.09M|  p_->idx_ = static_cast<size_t>(newIdx);
  802|  1.09M|  p_->eof_ = false;
  803|  1.09M|  return 0;
  804|  1.09M|}
_ZN5Exiv25MemIo4mmapEb:
  806|  35.6k|byte* MemIo::mmap(bool /*isWriteable*/) {
  807|  35.6k|  return p_->data_;
  808|  35.6k|}
_ZNK5Exiv25MemIo4tellEv:
  814|   842k|size_t MemIo::tell() const {
  815|   842k|  return p_->idx_;
  816|   842k|}
_ZNK5Exiv25MemIo4sizeEv:
  818|   420k|size_t MemIo::size() const {
  819|   420k|  return p_->size_;
  820|   420k|}
_ZN5Exiv25MemIo4openEv:
  822|   158k|int MemIo::open() {
  823|   158k|  p_->idx_ = 0;
  824|   158k|  p_->eof_ = false;
  825|   158k|  return 0;
  826|   158k|}
_ZNK5Exiv25MemIo6isopenEv:
  828|  85.1k|bool MemIo::isopen() const {
  829|  85.1k|  return true;
  830|  85.1k|}
_ZN5Exiv25MemIo5closeEv:
  832|  82.7k|int MemIo::close() {
  833|  82.7k|  return 0;
  834|  82.7k|}
_ZN5Exiv25MemIo4readEm:
  836|  59.3k|DataBuf MemIo::read(size_t rcount) {
  837|  59.3k|  DataBuf buf(rcount);
  838|  59.3k|  size_t readCount = read(buf.data(), buf.size());
  839|  59.3k|  buf.resize(readCount);
  840|  59.3k|  return buf;
  841|  59.3k|}
_ZN5Exiv25MemIo4readEPhm:
  843|  5.31M|size_t MemIo::read(byte* buf, size_t rcount) {
  844|  5.31M|  const auto avail = std::max<size_t>(p_->size_ - p_->idx_, 0);
  845|  5.31M|  const auto allow = std::min<size_t>(rcount, avail);
  846|  5.31M|  if (allow > 0) {
  ------------------
  |  Branch (846:7): [True: 5.17M, False: 139k]
  ------------------
  847|  5.17M|    std::memcpy(buf, &p_->data_[p_->idx_], allow);
  848|  5.17M|  }
  849|  5.31M|  p_->idx_ += allow;
  850|  5.31M|  if (rcount > avail) {
  ------------------
  |  Branch (850:7): [True: 10.4k, False: 5.30M]
  ------------------
  851|  10.4k|    p_->eof_ = true;
  852|  10.4k|  }
  853|  5.31M|  return allow;
  854|  5.31M|}
_ZN5Exiv25MemIo4getbEv:
  856|  10.1M|int MemIo::getb() {
  857|  10.1M|  if (p_->idx_ >= p_->size_) {
  ------------------
  |  Branch (857:7): [True: 421, False: 10.1M]
  ------------------
  858|    421|    p_->eof_ = true;
  859|    421|    return EOF;
  860|    421|  }
  861|  10.1M|  return p_->data_[p_->idx_++];
  862|  10.1M|}
_ZNK5Exiv25MemIo5errorEv:
  864|  4.88M|int MemIo::error() const {
  865|  4.88M|  return 0;
  866|  4.88M|}
_ZNK5Exiv25MemIo3eofEv:
  868|  1.07M|bool MemIo::eof() const {
  869|  1.07M|  return p_->eof_;
  870|  1.07M|}
_ZNK5Exiv25MemIo4pathEv:
  872|  37.6k|const std::string& MemIo::path() const noexcept {
  873|  37.6k|  static std::string _path{"MemIo"};
  874|  37.6k|  return _path;
  875|  37.6k|}
_ZN5Exiv25MemIo16populateFakeDataEv:
  877|    824|void MemIo::populateFakeData() {
  878|    824|}
_ZN5Exiv25MemIo4ImplC2Ev:
  597|  24.5k|  Impl() = default;                     //!< Default constructor

_ZNK5Exiv24Iloc8toStringEv:
   82|     25|std::string Iloc::toString() const {
   83|     25|  return stringFormat("ID = {} from,length = {},{}", ID_, start_, length_);
  ------------------
  |  |   18|     25|#define stringFormat std::format
  ------------------
   84|     25|}
_ZN5Exiv29BmffImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEbm:
   87|  5.04k|    Image(ImageType::bmff, mdExif | mdIptc | mdXmp, std::move(io)), max_box_depth_(max_box_depth) {
   88|  5.04k|}  // BmffImage::BmffImage
_ZN5Exiv29BmffImage7toAsciiEj:
   90|  58.7k|std::string BmffImage::toAscii(uint32_t n) {
   91|  58.7k|  std::string result(sizeof(uint32_t), '\0');
   92|   293k|  for (size_t i = 0; i < result.size(); ++i) {
  ------------------
  |  Branch (92:22): [True: 235k, False: 58.7k]
  ------------------
   93|   235k|    auto c = static_cast<unsigned char>(n >> (8 * (3 - i)));
   94|   235k|    if (c == 0)
  ------------------
  |  Branch (94:9): [True: 18.1k, False: 217k]
  ------------------
   95|  18.1k|      result[i] = '_';
   96|   217k|    else if (c < 32 || c > 126)
  ------------------
  |  Branch (96:14): [True: 6.90k, False: 210k]
  |  Branch (96:24): [True: 23.0k, False: 187k]
  ------------------
   97|  29.9k|      result[i] = '.';
   98|   187k|    else
   99|   187k|      result[i] = static_cast<char>(c);
  100|   235k|  }
  101|  58.7k|  return result;
  102|  58.7k|}
_ZN5Exiv29BmffImage7fullBoxEj:
  109|  66.9k|bool BmffImage::fullBox(uint32_t box) {
  110|  66.9k|  return box == TAG::meta || box == TAG::iinf || box == TAG::iloc || box == TAG::thmb || box == TAG::prvw;
  ------------------
  |  Branch (110:10): [True: 2.51k, False: 64.4k]
  |  Branch (110:30): [True: 488, False: 63.9k]
  |  Branch (110:50): [True: 640, False: 63.2k]
  |  Branch (110:70): [True: 1.01k, False: 62.2k]
  |  Branch (110:90): [True: 97, False: 62.1k]
  ------------------
  111|  66.9k|}
_ZNK5Exiv29BmffImage10pixelWidthEv:
  151|     10|uint32_t BmffImage::pixelWidth() const {
  152|     10|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension"));
  153|     10|  if (imageWidth == exifData_.end() || imageWidth->count() == 0)
  ------------------
  |  Branch (153:7): [True: 10, False: 0]
  |  Branch (153:7): [True: 10, False: 0]
  |  Branch (153:40): [True: 0, False: 0]
  ------------------
  154|     10|    return pixelWidth_;
  155|      0|  return imageWidth->toUint32();
  156|     10|}
_ZNK5Exiv29BmffImage11pixelHeightEv:
  158|     10|uint32_t BmffImage::pixelHeight() const {
  159|     10|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension"));
  160|     10|  if (imageHeight == exifData_.end() || imageHeight->count() == 0)
  ------------------
  |  Branch (160:7): [True: 10, False: 0]
  |  Branch (160:7): [True: 10, False: 0]
  |  Branch (160:41): [True: 0, False: 0]
  ------------------
  161|     10|    return pixelHeight_;
  162|      0|  return imageHeight->toUint32();
  163|     10|}
_ZN5Exiv29BmffImage8uuidNameERKNS_7DataBufE:
  165|    394|std::string BmffImage::uuidName(const Exiv2::DataBuf& uuid) {
  166|    394|  const char* uuidCano = "\x85\xC0\xB6\x87\x82\xF\x11\xE0\x81\x11\xF4\xCE\x46\x2B\x6A\x48";
  167|    394|  const char* uuidXmp = "\xBE\x7A\xCF\xCB\x97\xA9\x42\xE8\x9C\x71\x99\x94\x91\xE3\xAF\xAC";
  168|    394|  const char* uuidCanp = "\xEA\xF4\x2B\x5E\x1C\x98\x4B\x88\xB9\xFB\xB7\xDC\x40\x6E\x4D\x16";
  169|    394|  if (uuid.cmpBytes(0, uuidCano, 16) == 0)
  ------------------
  |  Branch (169:7): [True: 91, False: 303]
  ------------------
  170|     91|    return "cano";
  171|    303|  if (uuid.cmpBytes(0, uuidXmp, 16) == 0)
  ------------------
  |  Branch (171:7): [True: 40, False: 263]
  ------------------
  172|     40|    return "xmp";
  173|    263|  if (uuid.cmpBytes(0, uuidCanp, 16) == 0)
  ------------------
  |  Branch (173:7): [True: 22, False: 241]
  ------------------
  174|     22|    return "canp";
  175|    241|  return "";
  176|    263|}
_ZN5Exiv29BmffImage16brotliUncompressEPKhmRNS_7DataBufE:
  184|    159|void BmffImage::brotliUncompress(const byte* compressedBuf, size_t compressedBufSize, DataBuf& arr) {
  185|    159|  auto decoder = BrotliDecoder(BrotliDecoderCreateInstance(nullptr, nullptr, nullptr), BrotliDecoderDestroyInstance);
  186|    159|  size_t uncompressedLen = compressedBufSize * 2;  // just a starting point
  187|    159|  BrotliDecoderResult result = BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT;
  188|    159|  int dos = 0;
  189|    159|  size_t available_in = compressedBufSize;
  190|    159|  const byte* next_in = compressedBuf;
  191|    159|  size_t available_out;
  192|    159|  byte* next_out;
  193|    159|  size_t total_out = 0;
  194|       |
  195|    329|  while (result != BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (195:10): [True: 212, False: 117]
  ------------------
  196|    212|    arr.alloc(uncompressedLen);
  197|    212|    available_out = uncompressedLen - total_out;
  198|    212|    next_out = arr.data() + total_out;
  199|    212|    result =
  200|    212|        BrotliDecoderDecompressStream(decoder.get(), &available_in, &next_in, &available_out, &next_out, &total_out);
  201|    212|    if (result == BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (201:9): [True: 117, False: 95]
  ------------------
  202|    117|      arr.resize(total_out);
  203|    117|    } else if (result == BROTLI_DECODER_RESULT_NEEDS_MORE_OUTPUT) {
  ------------------
  |  Branch (203:16): [True: 59, False: 36]
  ------------------
  204|     59|      uncompressedLen *= 2;
  205|       |      // DoS protection - can't be bigger than 128k
  206|     59|      if (uncompressedLen > 131072) {
  ------------------
  |  Branch (206:11): [True: 12, False: 47]
  ------------------
  207|     12|        if (++dos > 1 || total_out > 131072)
  ------------------
  |  Branch (207:13): [True: 4, False: 8]
  |  Branch (207:26): [True: 2, False: 6]
  ------------------
  208|      6|          break;
  209|      6|        uncompressedLen = 131072;
  210|      6|      }
  211|     59|    } else if (result == BROTLI_DECODER_RESULT_NEEDS_MORE_INPUT) {
  ------------------
  |  Branch (211:16): [True: 14, False: 22]
  ------------------
  212|       |      // compressed input buffer in incomplete
  213|     14|      throw Error(ErrorCode::kerFailedToReadImageData);
  214|     22|    } else {
  215|       |      // something bad happened
  216|     22|      throw Error(ErrorCode::kerErrorMessage, BrotliDecoderErrorString(BrotliDecoderGetErrorCode(decoder.get())));
  217|     22|    }
  218|    212|  }
  219|       |
  220|    123|  if (result != BROTLI_DECODER_RESULT_SUCCESS) {
  ------------------
  |  Branch (220:7): [True: 6, False: 117]
  ------------------
  221|      6|    throw Error(ErrorCode::kerFailedToReadImageData);
  222|      6|  }
  223|    123|}
_ZN5Exiv29BmffImage10boxHandlerERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  227|  68.4k|                               uint64_t pbox_end, size_t depth) {
  228|  68.4k|  const size_t address = io_->tell();
  229|       |  // never visit a box twice!
  230|  68.4k|  if (depth == 0)
  ------------------
  |  Branch (230:7): [True: 64.9k, False: 3.47k]
  ------------------
  231|  64.9k|    visits_.clear();
  232|  68.4k|  if (visits_.contains(address) || visits_.size() > visits_max_ || depth >= max_box_depth_) {
  ------------------
  |  Branch (232:7): [True: 0, False: 68.4k]
  |  Branch (232:36): [True: 6, False: 68.4k]
  |  Branch (232:68): [True: 0, False: 68.4k]
  ------------------
  233|      6|    throw Error(ErrorCode::kerCorruptedMetadata);
  234|      6|  }
  235|  68.4k|  visits_.insert(address);
  236|       |
  237|       |#ifdef EXIV2_DEBUG_MESSAGES
  238|       |  bool bTrace = true;
  239|       |#else
  240|  68.4k|  bool bTrace = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (240:17): [True: 21.6k, False: 46.8k]
  |  Branch (240:39): [True: 21.5k, False: 25.2k]
  ------------------
  241|  68.4k|#endif
  242|       |
  243|       |  // 8-byte buffer for parsing the box length and type.
  244|  68.4k|  byte hdrbuf[2 * sizeof(uint32_t)];
  245|       |
  246|  68.4k|  size_t hdrsize = sizeof(hdrbuf);
  247|  68.4k|  Internal::enforce(hdrsize <= static_cast<size_t>(pbox_end - address), Exiv2::ErrorCode::kerCorruptedMetadata);
  248|  68.4k|  if (io_->read(hdrbuf, sizeof(hdrbuf)) != sizeof(hdrbuf))
  ------------------
  |  Branch (248:7): [True: 0, False: 68.4k]
  ------------------
  249|      0|    return pbox_end;
  250|       |
  251|       |  // The box length is encoded as a uint32_t by default, but the special value 1 means
  252|       |  // that it's a uint64_t.
  253|  68.4k|  uint64_t box_length = getULong(&hdrbuf[0], endian_);
  254|  68.4k|  uint32_t box_type = getULong(&hdrbuf[sizeof(uint32_t)], endian_);
  255|  68.4k|  bool bLF = true;
  256|       |
  257|  68.4k|  if (bTrace) {
  ------------------
  |  Branch (257:7): [True: 43.1k, False: 25.2k]
  ------------------
  258|  43.1k|    bLF = true;
  259|  43.1k|    out << Internal::indent(depth) << "Exiv2::BmffImage::boxHandler: " << toAscii(box_type)
  260|  43.1k|        << stringFormat(" {:8}->{} ", address, box_length);
  ------------------
  |  |   18|  43.1k|#define stringFormat std::format
  ------------------
  261|  43.1k|  }
  262|       |
  263|  68.4k|  if (box_length == 1) {
  ------------------
  |  Branch (263:7): [True: 88, False: 68.3k]
  ------------------
  264|       |    // The box size is encoded as a uint64_t, so we need to read another 8 bytes.
  265|     88|    hdrsize += 8;
  266|     88|    Internal::enforce(hdrsize <= static_cast<size_t>(pbox_end - address), Exiv2::ErrorCode::kerCorruptedMetadata);
  267|     88|    DataBuf data(8);
  268|     88|    io_->read(data.data(), data.size());
  269|     88|    box_length = data.read_uint64(0, endian_);
  270|     88|  }
  271|       |
  272|  68.4k|  if (box_length == 0) {
  ------------------
  |  Branch (272:7): [True: 16.2k, False: 52.1k]
  ------------------
  273|       |    // Zero length is also valid and indicates box extends to the end of file.
  274|  16.2k|    box_length = pbox_end - address;
  275|  16.2k|  }
  276|       |
  277|       |  // read data in box and restore file position
  278|  68.4k|  const size_t restore = io_->tell();
  279|  68.4k|  Internal::enforce(box_length >= hdrsize, Exiv2::ErrorCode::kerCorruptedMetadata);
  280|  68.4k|  Internal::enforce(box_length - hdrsize <= pbox_end - restore, Exiv2::ErrorCode::kerCorruptedMetadata);
  281|       |
  282|  68.4k|  const auto buffer_size = box_length - hdrsize;
  283|  68.4k|  if (skipBox(box_type)) {
  ------------------
  |  Branch (283:7): [True: 996, False: 67.4k]
  ------------------
  284|    996|    if (bTrace) {
  ------------------
  |  Branch (284:9): [True: 620, False: 376]
  ------------------
  285|    620|      out << '\n';
  286|    620|    }
  287|       |    // The enforce() above checks that restore + buffer_size won't
  288|       |    // exceed pbox_end, and by implication, won't exceed LONG_MAX
  289|    996|    return restore + buffer_size;
  290|    996|  }
  291|       |
  292|  67.4k|  DataBuf data(static_cast<size_t>(buffer_size));
  293|  67.4k|  const size_t box_end = restore + data.size();
  294|  67.4k|  io_->read(data.data(), data.size());
  295|  67.4k|  io_->seek(restore, BasicIo::beg);
  296|       |
  297|  67.4k|  size_t skip = 0;  // read position in data.pData_
  298|  67.4k|  uint8_t version = 0;
  299|  67.4k|  uint32_t flags = 0;
  300|       |
  301|  67.4k|  if (fullBox(box_type)) {
  ------------------
  |  Branch (301:7): [True: 4.75k, False: 62.6k]
  ------------------
  302|  4.75k|    Internal::enforce(data.size() - skip >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  303|  4.75k|    flags = data.read_uint32(skip, endian_);  // version/flags
  304|  4.75k|    version = static_cast<uint8_t>(flags >> 24);
  305|  4.75k|    flags &= 0x00ffffff;
  306|  4.75k|    skip += 4;
  307|  4.75k|  }
  308|       |
  309|  67.4k|  switch (box_type) {
  310|       |    //  See notes in skipBox()
  311|  24.2k|    case TAG::ftyp: {
  ------------------
  |  Branch (311:5): [True: 24.2k, False: 43.1k]
  ------------------
  312|  24.2k|      Internal::enforce(data.size() >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  313|  24.2k|      fileType_ = data.read_uint32(0, endian_);
  314|  24.2k|      if (bTrace) {
  ------------------
  |  Branch (314:11): [True: 15.5k, False: 8.65k]
  ------------------
  315|  15.5k|        out << "brand: " << toAscii(fileType_);
  316|  15.5k|      }
  317|  24.2k|    } break;
  318|       |
  319|       |    // 8.11.6.1
  320|    488|    case TAG::iinf: {
  ------------------
  |  Branch (320:5): [True: 488, False: 66.9k]
  ------------------
  321|    488|      if (bTrace) {
  ------------------
  |  Branch (321:11): [True: 248, False: 240]
  ------------------
  322|    248|        out << '\n';
  323|    248|        bLF = false;
  324|    248|      }
  325|       |
  326|    488|      Internal::enforce(data.size() - skip >= 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  327|    488|      uint16_t n = data.read_uint16(skip, endian_);
  328|    488|      skip += 2;
  329|       |
  330|    488|      io_->seek(skip, BasicIo::cur);
  331|    957|      while (n-- > 0) {
  ------------------
  |  Branch (331:14): [True: 469, False: 488]
  ------------------
  332|    469|        io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  333|    469|      }
  334|    488|    } break;
  335|       |
  336|       |    // 8.11.6.2
  337|    720|    case TAG::infe: {  // .__._.__hvc1_ 2 0 0 1 0 1 0 0 104 118 99 49 0
  ------------------
  |  Branch (337:5): [True: 720, False: 66.7k]
  ------------------
  338|    720|      Internal::enforce(data.size() - skip >= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  339|    720|      /* getULong (data.pData_+skip,endian_) ; */ skip += 4;
  340|    720|      uint16_t ID = data.read_uint16(skip, endian_);
  341|    720|      skip += 2;
  342|    720|      /* getShort(data.pData_+skip,endian_) ; */ skip += 2;  // protection
  343|    720|      std::string id;
  344|       |      // Check that the string has a '\0' terminator.
  345|    720|      const char* str = data.c_str(skip);
  346|    720|      const size_t maxlen = data.size() - skip;
  347|    720|      Internal::enforce(maxlen > 0 && strnlen(str, maxlen) < maxlen, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (347:25): [True: 719, False: 1]
  |  Branch (347:39): [True: 718, False: 1]
  ------------------
  348|    720|      std::string name(str);
  349|    720|      if (Internal::contains(name, "Exif")) {  // "Exif" or "ExifExif"
  ------------------
  |  Branch (349:11): [True: 72, False: 648]
  ------------------
  350|     72|        exifID_ = ID;
  351|     72|        id = " *** Exif ***";
  352|    648|      } else if (Internal::contains(name, "mime\0xmp") || Internal::contains(name, "mime\0application/rdf+xml")) {
  ------------------
  |  Branch (352:18): [True: 80, False: 568]
  |  Branch (352:59): [True: 0, False: 568]
  ------------------
  353|     78|        xmpID_ = ID;
  354|     78|        id = " *** XMP ***";
  355|     78|      }
  356|    720|      if (bTrace) {
  ------------------
  |  Branch (356:11): [True: 397, False: 323]
  ------------------
  357|    397|        out << stringFormat("ID = {:3} {} {}", ID, name, id);
  ------------------
  |  |   18|    397|#define stringFormat std::format
  ------------------
  358|    397|      }
  359|    720|    } break;
  360|       |
  361|    124|    case TAG::moov:
  ------------------
  |  Branch (361:5): [True: 124, False: 67.2k]
  ------------------
  362|    159|    case TAG::iprp:
  ------------------
  |  Branch (362:5): [True: 35, False: 67.3k]
  ------------------
  363|    301|    case TAG::ipco:
  ------------------
  |  Branch (363:5): [True: 142, False: 67.2k]
  ------------------
  364|  2.81k|    case TAG::meta: {
  ------------------
  |  Branch (364:5): [True: 2.51k, False: 64.9k]
  ------------------
  365|  2.81k|      if (bTrace) {
  ------------------
  |  Branch (365:11): [True: 1.46k, False: 1.35k]
  ------------------
  366|  1.46k|        out << '\n';
  367|  1.46k|        bLF = false;
  368|  1.46k|      }
  369|  2.81k|      io_->seek(skip, BasicIo::cur);
  370|  5.61k|      while (io_->tell() < box_end) {
  ------------------
  |  Branch (370:14): [True: 2.80k, False: 2.81k]
  ------------------
  371|  2.80k|        io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  372|  2.80k|      }
  373|       |      // post-process meta box to recover Exif and XMP
  374|  2.81k|      if (box_type == TAG::meta) {
  ------------------
  |  Branch (374:11): [True: 1.97k, False: 847]
  ------------------
  375|  1.97k|        auto ilo = ilocs_.find(exifID_);
  376|  1.97k|        if (ilo != ilocs_.end()) {
  ------------------
  |  Branch (376:13): [True: 40, False: 1.93k]
  ------------------
  377|     40|          const Iloc& iloc = ilo->second;
  378|     40|          if (bTrace) {
  ------------------
  |  Branch (378:15): [True: 19, False: 21]
  ------------------
  379|     19|            out << Internal::indent(depth) << "Exiv2::BMFF Exif: " << iloc.toString() << '\n';
  380|     19|          }
  381|     40|          parseTiff(Internal::Tag::root, iloc.length_, iloc.start_);
  382|     40|        }
  383|  1.97k|        ilo = ilocs_.find(xmpID_);
  384|  1.97k|        if (ilo != ilocs_.end()) {
  ------------------
  |  Branch (384:13): [True: 9, False: 1.96k]
  ------------------
  385|      9|          const Iloc& iloc = ilo->second;
  386|      9|          if (bTrace) {
  ------------------
  |  Branch (386:15): [True: 6, False: 3]
  ------------------
  387|      6|            out << Internal::indent(depth) << "Exiv2::BMFF XMP: " << iloc.toString() << '\n';
  388|      6|          }
  389|      9|          parseXmp(iloc.length_, iloc.start_);
  390|      9|        }
  391|  1.97k|        ilocs_.clear();
  392|  1.97k|      }
  393|  2.81k|    } break;
  394|       |
  395|       |    // 8.11.3.1
  396|    639|    case TAG::iloc: {
  ------------------
  |  Branch (396:5): [True: 639, False: 66.7k]
  ------------------
  397|    639|      Internal::enforce(data.size() - skip >= 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  398|    639|      uint8_t u = data.read_uint8(skip++);
  399|    639|      uint16_t offsetSize = u >> 4;
  400|    639|      uint16_t lengthSize = u & 0xF;
  401|       |#if 0
  402|       |                uint16_t indexSize  = 0       ;
  403|       |                u             = data.read_uint8(skip++);
  404|       |                if ( version == 1 || version == 2 ) {
  405|       |                    indexSize = u & 0xF ;
  406|       |                }
  407|       |#else
  408|    639|      skip++;
  409|    639|#endif
  410|    639|      Internal::enforce(data.size() - skip >= (version < 2u ? 2u : 4u), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (410:48): [True: 567, False: 72]
  ------------------
  411|    639|      uint32_t itemCount = version < 2 ? data.read_uint16(skip, endian_) : data.read_uint32(skip, endian_);
  ------------------
  |  Branch (411:28): [True: 566, False: 73]
  ------------------
  412|    639|      skip += version < 2 ? 2 : 4;
  ------------------
  |  Branch (412:15): [True: 566, False: 73]
  ------------------
  413|    639|      if (itemCount && itemCount < box_length / 14 && offsetSize == 4 && lengthSize == 4 &&
  ------------------
  |  Branch (413:11): [True: 544, False: 95]
  |  Branch (413:24): [True: 477, False: 67]
  |  Branch (413:55): [True: 463, False: 14]
  |  Branch (413:74): [True: 448, False: 15]
  ------------------
  414|    448|          ((box_length - 16) % itemCount) == 0) {
  ------------------
  |  Branch (414:11): [True: 430, False: 18]
  ------------------
  415|    430|        if (bTrace) {
  ------------------
  |  Branch (415:13): [True: 230, False: 200]
  ------------------
  416|    230|          out << '\n';
  417|    230|          bLF = false;
  418|    230|        }
  419|    430|        auto step = (static_cast<size_t>(box_length) - 16) / itemCount;  // length of data per item.
  420|    430|        size_t base = skip;
  421|  8.89k|        for (uint32_t i = 0; i < itemCount; i++) {
  ------------------
  |  Branch (421:30): [True: 8.46k, False: 430]
  ------------------
  422|  8.46k|          skip = base + (i * step);  // move in 14, 16 or 18 byte steps
  423|  8.46k|          Internal::enforce(data.size() - skip >= (version > 2u ? 4u : 2u), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (423:52): [True: 10, False: 8.45k]
  ------------------
  424|  8.46k|          Internal::enforce(data.size() - skip >= step, Exiv2::ErrorCode::kerCorruptedMetadata);
  425|  8.46k|          uint32_t ID = version > 2 ? data.read_uint32(skip, endian_) : data.read_uint16(skip, endian_);
  ------------------
  |  Branch (425:25): [True: 7, False: 8.45k]
  ------------------
  426|  8.46k|          auto offset = [&data, skip, step] {
  427|  8.46k|            if (step == 14 || step == 16)
  428|  8.46k|              return data.read_uint32(skip + step - 8, endian_);
  429|  8.46k|            if (step == 18)
  430|  8.46k|              return data.read_uint32(skip + 4, endian_);
  431|  8.46k|            return 0u;
  432|  8.46k|          }();
  433|       |
  434|  8.46k|          uint32_t ldata = data.read_uint32(skip + step - 4, endian_);
  435|  8.46k|          if (bTrace) {
  ------------------
  |  Branch (435:15): [True: 3.65k, False: 4.80k]
  ------------------
  436|  3.65k|            out << Internal::indent(depth)
  437|  3.65k|                << stringFormat("{:8} | {:8} |   ID | {:4} | {:6},{:6}\n", address + skip, step, ID, offset, ldata);
  ------------------
  |  |   18|  3.65k|#define stringFormat std::format
  ------------------
  438|  3.65k|          }
  439|       |          // save data for post-processing in meta box
  440|  8.46k|          if (offset && ldata && ID != unknownID_) {
  ------------------
  |  Branch (440:15): [True: 7.58k, False: 876]
  |  Branch (440:25): [True: 7.29k, False: 286]
  |  Branch (440:34): [True: 6.99k, False: 305]
  ------------------
  441|  6.99k|            ilocs_[ID] = Iloc{ID, offset, ldata};
  442|  6.99k|          }
  443|  8.46k|        }
  444|    430|      }
  445|    639|    } break;
  446|       |
  447|    265|    case TAG::ispe: {
  ------------------
  |  Branch (447:5): [True: 265, False: 67.1k]
  ------------------
  448|    265|      Internal::enforce(data.size() - skip >= 12, Exiv2::ErrorCode::kerCorruptedMetadata);
  449|    265|      skip += 4;
  450|    265|      uint32_t width = data.read_uint32(skip, endian_);
  451|    265|      skip += 4;
  452|    265|      uint32_t height = data.read_uint32(skip, endian_);
  453|    265|      skip += 4;
  454|    265|      if (bTrace) {
  ------------------
  |  Branch (454:11): [True: 162, False: 103]
  ------------------
  455|    162|        out << stringFormat("pixelWidth_, pixelHeight_ = {}, {}", width, height);
  ------------------
  |  |   18|    162|#define stringFormat std::format
  ------------------
  456|    162|      }
  457|       |      // HEIC files can have multiple ispe records
  458|       |      // Store largest width/height
  459|    265|      if (width > pixelWidth_ && height > pixelHeight_) {
  ------------------
  |  Branch (459:11): [True: 133, False: 132]
  |  Branch (459:34): [True: 20, False: 113]
  ------------------
  460|     20|        pixelWidth_ = width;
  461|     20|        pixelHeight_ = height;
  462|     20|      }
  463|    265|    } break;
  464|       |
  465|       |    // 12.1.5.2
  466|    175|    case TAG::colr: {
  ------------------
  |  Branch (466:5): [True: 175, False: 67.2k]
  ------------------
  467|    175|      if (data.size() >= (skip + 4 + 8)) {  // .____.HLino..__mntrR 2 0 0 0 0 12 72 76 105 110 111 2 16 ...
  ------------------
  |  Branch (467:11): [True: 76, False: 99]
  ------------------
  468|       |        // https://www.ics.uci.edu/~dan/class/267/papers/jpeg2000.pdf
  469|     76|        uint8_t meth = data.read_uint8(skip + 0);
  470|     76|        uint8_t prec = data.read_uint8(skip + 1);
  471|     76|        uint8_t approx = data.read_uint8(skip + 2);
  472|     76|        auto colour_type = std::string(data.c_str(), 4);
  473|     76|        skip += 4;
  474|     76|        if (colour_type == "rICC" || colour_type == "prof") {
  ------------------
  |  Branch (474:13): [True: 1, False: 75]
  |  Branch (474:38): [True: 7, False: 68]
  ------------------
  475|      8|          DataBuf profile(data.c_data(skip), data.size() - skip);
  476|      8|          setIccProfile(std::move(profile));
  477|     68|        } else if (meth == 2 && prec == 0 && approx == 0) {
  ------------------
  |  Branch (477:20): [True: 40, False: 28]
  |  Branch (477:33): [True: 30, False: 10]
  |  Branch (477:46): [True: 18, False: 12]
  ------------------
  478|       |          // JP2000 files have a 3 byte head // 2 0 0 icc......
  479|     18|          skip -= 1;
  480|     18|          DataBuf profile(data.c_data(skip), data.size() - skip);
  481|     18|          setIccProfile(std::move(profile));
  482|     18|        }
  483|     76|      }
  484|    175|    } break;
  485|       |
  486|    394|    case TAG::uuid: {
  ------------------
  |  Branch (486:5): [True: 394, False: 67.0k]
  ------------------
  487|    394|      DataBuf uuid(16);
  488|    394|      io_->read(uuid.data(), uuid.size());
  489|    394|      std::string name = uuidName(uuid);
  490|    394|      if (bTrace) {
  ------------------
  |  Branch (490:11): [True: 210, False: 184]
  ------------------
  491|    210|        out << " uuidName " << name << '\n';
  492|    210|        bLF = false;
  493|    210|      }
  494|    394|      if (name == "cano" || name == "canp") {
  ------------------
  |  Branch (494:11): [True: 91, False: 303]
  |  Branch (494:29): [True: 22, False: 281]
  ------------------
  495|    113|        if (name == "canp") {
  ------------------
  |  Branch (495:13): [True: 22, False: 91]
  ------------------
  496|       |          // based on
  497|       |          // https://github.com/lclevy/canon_cr3/blob/7be75d6/parse_cr3.py#L271
  498|     22|          io_->seek(8, BasicIo::cur);
  499|     22|        }
  500|    315|        while (io_->tell() < box_end) {
  ------------------
  |  Branch (500:16): [True: 202, False: 113]
  ------------------
  501|    202|          io_->seek(boxHandler(out, option, box_end, depth + 1), BasicIo::beg);
  502|    202|        }
  503|    281|      } else if (name == "xmp") {
  ------------------
  |  Branch (503:18): [True: 40, False: 241]
  ------------------
  504|     40|        parseXmp(box_length, io_->tell());
  505|     40|      }
  506|    394|    } break;
  507|       |
  508|  2.33k|    case TAG::cmt1:
  ------------------
  |  Branch (508:5): [True: 2.33k, False: 65.0k]
  ------------------
  509|  2.33k|      parseTiff(Internal::Tag::root, box_length);
  510|  2.33k|      break;
  511|    285|    case TAG::cmt2:
  ------------------
  |  Branch (511:5): [True: 285, False: 67.1k]
  ------------------
  512|    285|      parseTiff(Internal::Tag::cmt2, box_length);
  513|    285|      break;
  514|  14.0k|    case TAG::cmt3:
  ------------------
  |  Branch (514:5): [True: 14.0k, False: 53.3k]
  ------------------
  515|  14.0k|      parseTiff(Internal::Tag::cmt3, box_length);
  516|  14.0k|      break;
  517|  1.06k|    case TAG::cmt4:
  ------------------
  |  Branch (517:5): [True: 1.06k, False: 66.3k]
  ------------------
  518|  1.06k|      parseTiff(Internal::Tag::cmt4, box_length);
  519|  1.06k|      break;
  520|  8.15k|    case TAG::exif:
  ------------------
  |  Branch (520:5): [True: 8.15k, False: 59.2k]
  ------------------
  521|  8.15k|      parseTiff(Internal::Tag::root, buffer_size, io_->tell());
  522|  8.15k|      break;
  523|  1.22k|    case TAG::xml:
  ------------------
  |  Branch (523:5): [True: 1.22k, False: 66.2k]
  ------------------
  524|  1.22k|      parseXmp(buffer_size, io_->tell());
  525|  1.22k|      break;
  526|    160|    case TAG::brob: {
  ------------------
  |  Branch (526:5): [True: 160, False: 67.2k]
  ------------------
  527|    160|      Internal::enforce(data.size() >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  528|    160|      uint32_t realType = data.read_uint32(0, endian_);
  529|    160|      if (bTrace) {
  ------------------
  |  Branch (529:11): [True: 32, False: 128]
  ------------------
  530|     32|        out << "type: " << toAscii(realType);
  531|     32|      }
  532|    160|#ifdef EXV_HAVE_BROTLI
  533|    160|      DataBuf arr;
  534|    160|      brotliUncompress(data.c_data(4), data.size() - 4, arr);
  535|    160|      if (realType == TAG::exif) {
  ------------------
  |  Branch (535:11): [True: 0, False: 160]
  ------------------
  536|      0|        uint32_t offset = Safe::add(arr.read_uint32(0, endian_), 4u);
  537|      0|        Internal::enforce(Safe::add(offset, 4u) < arr.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  538|      0|        Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), arr.c_data(offset), arr.size() - offset,
  539|      0|                                           Internal::Tag::root, Internal::TiffMapping::findDecoder);
  540|    160|      } else if (realType == TAG::xml) {
  ------------------
  |  Branch (540:18): [True: 0, False: 160]
  ------------------
  541|      0|        try {
  542|      0|          Exiv2::XmpParser::decode(xmpData(), std::string(arr.c_str(), arr.size()));
  543|      0|        } catch (...) {
  544|      0|          throw Error(ErrorCode::kerFailedToReadImageData);
  545|      0|        }
  546|      0|      }
  547|    160|#endif
  548|    160|    } break;
  549|  1.01k|    case TAG::thmb:
  ------------------
  |  Branch (549:5): [True: 1.01k, False: 66.4k]
  ------------------
  550|  1.01k|      switch (version) {
  551|    369|        case 0:  // JPEG
  ------------------
  |  Branch (551:9): [True: 369, False: 645]
  ------------------
  552|    369|          parseCr3Preview(data, out, bTrace, version, skip, skip + 2, skip + 4, skip + 12);
  553|    369|          break;
  554|    332|        case 1:  // HDR
  ------------------
  |  Branch (554:9): [True: 332, False: 682]
  ------------------
  555|    332|          parseCr3Preview(data, out, bTrace, version, skip + 2, skip + 4, skip + 8, skip + 12);
  556|    332|          break;
  557|    313|        default:
  ------------------
  |  Branch (557:9): [True: 313, False: 701]
  ------------------
  558|    313|          break;
  559|  1.01k|      }
  560|  1.01k|      break;
  561|  1.01k|    case TAG::prvw:
  ------------------
  |  Branch (561:5): [True: 97, False: 67.3k]
  ------------------
  562|     97|      switch (version) {
  563|     76|        case 0:  // JPEG
  ------------------
  |  Branch (563:9): [True: 76, False: 21]
  ------------------
  564|     77|        case 1:  // HDR
  ------------------
  |  Branch (564:9): [True: 1, False: 96]
  ------------------
  565|     77|          parseCr3Preview(data, out, bTrace, version, skip + 2, skip + 4, skip + 8, skip + 12);
  566|     77|          break;
  567|     20|        default:
  ------------------
  |  Branch (567:9): [True: 20, False: 77]
  ------------------
  568|     20|          break;
  569|     97|      }
  570|     95|      break;
  571|       |
  572|  8.82k|    default:
  ------------------
  |  Branch (572:5): [True: 8.82k, False: 58.6k]
  ------------------
  573|  8.82k|      break; /* do nothing */
  574|  67.4k|  }
  575|  66.0k|  if (bLF && bTrace)
  ------------------
  |  Branch (575:7): [True: 63.9k, False: 2.14k]
  |  Branch (575:14): [True: 40.4k, False: 23.5k]
  ------------------
  576|  40.4k|    out << '\n';
  577|       |
  578|       |  // return address of next box
  579|  66.0k|  return box_end;
  580|  67.4k|}
_ZN5Exiv29BmffImage9parseTiffEjmm:
  582|  8.19k|void BmffImage::parseTiff(uint32_t root_tag, uint64_t length, uint64_t start) {
  583|  8.19k|  Internal::enforce(start <= io_->size(), ErrorCode::kerCorruptedMetadata);
  584|  8.19k|  Internal::enforce(length <= io_->size() - start, ErrorCode::kerCorruptedMetadata);
  585|  8.19k|  Internal::enforce(start <= static_cast<uint64_t>(std::numeric_limits<int64_t>::max()),
  586|  8.19k|                    ErrorCode::kerCorruptedMetadata);
  587|  8.19k|  Internal::enforce(length <= std::numeric_limits<size_t>::max(), ErrorCode::kerCorruptedMetadata);
  588|       |
  589|       |  // read and parse exif data
  590|  8.19k|  const size_t restore = io_->tell();
  591|  8.19k|  DataBuf exif(static_cast<size_t>(length));
  592|  8.19k|  io_->seek(static_cast<int64_t>(start), BasicIo::beg);
  593|  8.19k|  if (exif.size() > 8 && io_->read(exif.data(), exif.size()) == exif.size()) {
  ------------------
  |  Branch (593:7): [True: 8.15k, False: 40]
  |  Branch (593:26): [True: 8.15k, False: 0]
  ------------------
  594|       |    // hunt for "II" or "MM"
  595|  8.15k|    const size_t eof = std::numeric_limits<size_t>::max();  // impossible value for punt
  596|  8.15k|    size_t punt = eof;
  597|   377k|    for (size_t i = 0; i < exif.size() - 9 && punt == eof; ++i) {
  ------------------
  |  Branch (597:24): [True: 377k, False: 79]
  |  Branch (597:47): [True: 368k, False: 8.07k]
  ------------------
  598|   368k|      auto charCurrent = exif.read_uint8(i);
  599|   368k|      auto charNext = exif.read_uint8(i + 1);
  600|   368k|      if (charCurrent == charNext && (charCurrent == 'I' || charCurrent == 'M'))
  ------------------
  |  Branch (600:11): [True: 116k, False: 251k]
  |  Branch (600:39): [True: 1.96k, False: 114k]
  |  Branch (600:61): [True: 6.12k, False: 108k]
  ------------------
  601|  8.09k|        punt = i;
  602|   368k|    }
  603|  8.15k|    if (punt != eof) {
  ------------------
  |  Branch (603:9): [True: 8.09k, False: 63]
  ------------------
  604|  8.09k|      Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), exif.c_data(punt), exif.size() - punt,
  605|  8.09k|                                         root_tag, Internal::TiffMapping::findDecoder);
  606|  8.09k|    }
  607|  8.15k|  }
  608|  8.19k|  io_->seek(restore, BasicIo::beg);
  609|  8.19k|}
_ZN5Exiv29BmffImage9parseTiffEjm:
  611|  17.7k|void BmffImage::parseTiff(uint32_t root_tag, uint64_t length) {
  612|  17.7k|  if (length > 8) {
  ------------------
  |  Branch (612:7): [True: 17.7k, False: 22]
  ------------------
  613|  17.7k|    Internal::enforce(length - 8 <= io_->size() - io_->tell(), ErrorCode::kerCorruptedMetadata);
  614|  17.7k|    Internal::enforce(length - 8 <= std::numeric_limits<size_t>::max(), ErrorCode::kerCorruptedMetadata);
  615|  17.7k|    DataBuf data(static_cast<size_t>(length - 8u));
  616|  17.7k|    const size_t bufRead = io_->read(data.data(), data.size());
  617|       |
  618|  17.7k|    if (io_->error())
  ------------------
  |  Branch (618:9): [True: 0, False: 17.7k]
  ------------------
  619|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  620|  17.7k|    if (bufRead != data.size())
  ------------------
  |  Branch (620:9): [True: 0, False: 17.7k]
  ------------------
  621|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  622|       |
  623|  17.7k|    Internal::TiffParserWorker::decode(exifData(), iptcData(), xmpData(), data.c_data(), data.size(), root_tag,
  624|  17.7k|                                       Internal::TiffMapping::findDecoder);
  625|  17.7k|  }
  626|  17.7k|}
_ZN5Exiv29BmffImage8parseXmpEmm:
  628|  1.26k|void BmffImage::parseXmp(uint64_t length, uint64_t start) {
  629|  1.26k|  Internal::enforce(start <= io_->size(), ErrorCode::kerCorruptedMetadata);
  630|  1.26k|  Internal::enforce(length <= io_->size() - start, ErrorCode::kerCorruptedMetadata);
  631|       |
  632|  1.26k|  const size_t restore = io_->tell();
  633|  1.26k|  io_->seek(static_cast<int64_t>(start), BasicIo::beg);
  634|       |
  635|  1.26k|  auto lengthSizeT = static_cast<size_t>(length);
  636|  1.26k|  DataBuf xmp(lengthSizeT + 1);
  637|  1.26k|  xmp.write_uint8(lengthSizeT, 0);  // ensure xmp is null terminated!
  638|  1.26k|  if (io_->read(xmp.data(), lengthSizeT) != lengthSizeT)
  ------------------
  |  Branch (638:7): [True: 0, False: 1.26k]
  ------------------
  639|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  640|  1.26k|  if (io_->error())
  ------------------
  |  Branch (640:7): [True: 0, False: 1.26k]
  ------------------
  641|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  642|  1.26k|  try {
  643|  1.26k|    Exiv2::XmpParser::decode(xmpData(), std::string(xmp.c_str()));
  644|  1.26k|  } catch (...) {
  645|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  646|      0|  }
  647|       |
  648|  1.26k|  io_->seek(restore, BasicIo::beg);
  649|  1.26k|}
_ZN5Exiv29BmffImage15parseCr3PreviewERKNS_7DataBufERNSt3__113basic_ostreamIcNS4_11char_traitsIcEEEEbhmmmm:
  654|    778|                                size_t relative_position) {
  655|       |  // Derived from https://github.com/lclevy/canon_cr3
  656|    778|  const size_t here = io_->tell();
  657|    778|  Internal::enforce(here <= std::numeric_limits<size_t>::max() - relative_position, ErrorCode::kerCorruptedMetadata);
  658|    778|  NativePreview nativePreview;
  659|    778|  nativePreview.position_ = here + relative_position;
  660|    778|  nativePreview.width_ = data.read_uint16(width_offset, endian_);
  661|    778|  nativePreview.height_ = data.read_uint16(height_offset, endian_);
  662|    778|  nativePreview.size_ = data.read_uint32(size_offset, endian_);
  663|    778|  nativePreview.filter_ = "";
  664|    778|  nativePreview.mimeType_ = [version] {
  665|    778|    if (version == 0)
  666|    778|      return "image/jpeg";
  667|    778|    return "application/octet-stream";
  668|    778|  }();
  669|    778|  if (bTrace) {
  ------------------
  |  Branch (669:7): [True: 504, False: 274]
  ------------------
  670|    504|    out << stringFormat("width,height,size = {},{},{}", nativePreview.width_, nativePreview.height_,
  ------------------
  |  |   18|    504|#define stringFormat std::format
  ------------------
  671|    504|                        nativePreview.size_);
  672|    504|  }
  673|    778|  nativePreviews_.push_back(std::move(nativePreview));
  674|    778|}
_ZNK5Exiv29BmffImage11openOrThrowEv:
  693|  13.8k|void BmffImage::openOrThrow() const {
  694|  13.8k|  if (io_->open() != 0) {
  ------------------
  |  Branch (694:7): [True: 0, False: 13.8k]
  ------------------
  695|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  696|      0|  }
  697|       |  // Ensure that this is the correct image type
  698|  13.8k|  if (!isBmffType(*io_, false)) {
  ------------------
  |  Branch (698:7): [True: 0, False: 13.8k]
  ------------------
  699|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (699:9): [True: 0, False: 0]
  |  Branch (699:25): [True: 0, False: 0]
  ------------------
  700|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  701|      0|    throw Error(ErrorCode::kerNotAnImage, "BMFF");
  702|      0|  }
  703|  13.8k|}
_ZN5Exiv29BmffImage12readMetadataEv:
  705|  5.04k|void BmffImage::readMetadata() {
  706|  5.04k|  openOrThrow();
  707|  5.04k|  IoCloser closer(*io_);
  708|       |
  709|  5.04k|  clearMetadata();
  710|  5.04k|  ilocs_.clear();
  711|  5.04k|  visits_max_ = io_->size() / 16;
  712|  5.04k|  unknownID_ = 0xffff;
  713|  5.04k|  exifID_ = unknownID_;
  714|  5.04k|  xmpID_ = unknownID_;
  715|       |
  716|  5.04k|  uint64_t address = 0;
  717|  5.04k|  const auto file_end = io_->size();
  718|  28.5k|  while (address < file_end) {
  ------------------
  |  Branch (718:10): [True: 23.5k, False: 5.04k]
  ------------------
  719|  23.5k|    io_->seek(address, BasicIo::beg);
  720|  23.5k|    address = boxHandler(std::cout, kpsNone, file_end, 0);
  721|  23.5k|  }
  722|  5.04k|  bReadMetadata_ = true;
  723|  5.04k|}  // BmffImage::readMetadata
_ZN5Exiv29BmffImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  725|  26.3k|void BmffImage::printStructure(std::ostream& out, Exiv2::PrintStructureOption option, size_t depth) {
  726|  26.3k|  if (!bReadMetadata_)
  ------------------
  |  Branch (726:7): [True: 0, False: 26.3k]
  ------------------
  727|      0|    readMetadata();
  728|       |
  729|  26.3k|  switch (option) {
  730|  8.78k|    default:
  ------------------
  |  Branch (730:5): [True: 8.78k, False: 17.5k]
  ------------------
  731|  8.78k|      break;  // do nothing
  732|       |
  733|  8.78k|    case kpsIccProfile: {
  ------------------
  |  Branch (733:5): [True: 4.38k, False: 21.9k]
  ------------------
  734|  4.38k|      out.write(iccProfile_.c_str(), iccProfile_.size());
  735|  4.38k|    } break;
  736|       |
  737|      0|#ifdef EXV_HAVE_XMP_TOOLKIT
  738|  4.38k|    case kpsXMP: {
  ------------------
  |  Branch (738:5): [True: 4.38k, False: 21.9k]
  ------------------
  739|  4.38k|      std::string xmp;
  740|  4.38k|      if (Exiv2::XmpParser::encode(xmp, xmpData())) {
  ------------------
  |  Branch (740:11): [True: 0, False: 4.38k]
  ------------------
  741|      0|        throw Exiv2::Error(Exiv2::ErrorCode::kerErrorMessage, "Failed to serialize XMP data");
  742|      0|      }
  743|  4.38k|      out << xmp;
  744|  4.38k|    } break;
  745|      0|#endif
  746|  4.39k|    case kpsBasic:  // drop
  ------------------
  |  Branch (746:5): [True: 4.39k, False: 21.9k]
  ------------------
  747|  8.78k|    case kpsRecursive: {
  ------------------
  |  Branch (747:5): [True: 4.38k, False: 21.9k]
  ------------------
  748|  8.78k|      openOrThrow();
  749|  8.78k|      IoCloser closer(*io_);
  750|       |
  751|  8.78k|      uint64_t address = 0;
  752|  8.78k|      const auto file_end = io_->size();
  753|  50.1k|      while (address < file_end) {
  ------------------
  |  Branch (753:14): [True: 41.4k, False: 8.78k]
  ------------------
  754|  41.4k|        io_->seek(address, BasicIo::beg);
  755|  41.4k|        address = boxHandler(out, option, file_end, depth);
  756|  41.4k|      }
  757|  8.78k|    } break;
  758|  26.3k|  }
  759|  26.3k|}
_ZN5Exiv29BmffImage13writeMetadataEv:
  761|  4.38k|void BmffImage::writeMetadata() {
  762|       |  // bmff files are read-only
  763|  4.38k|  throw(Error(ErrorCode::kerWritingImageFormatUnsupported, "BMFF"));
  764|  4.38k|}  // BmffImage::writeMetadata
_ZN5Exiv215newBmffInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  768|  5.04k|Image::UniquePtr newBmffInstance(BasicIo::UniquePtr io, bool create) {
  769|  5.04k|  auto image = std::make_unique<BmffImage>(std::move(io), create);
  770|  5.04k|  if (!image->good()) {
  ------------------
  |  Branch (770:7): [True: 0, False: 5.04k]
  ------------------
  771|      0|    return nullptr;
  772|      0|  }
  773|  5.04k|  return image;
  774|  5.04k|}
_ZN5Exiv210isBmffTypeERNS_7BasicIoEb:
  776|  24.3k|bool isBmffType(BasicIo& iIo, bool advance) {
  777|  24.3k|  const int32_t len = 12;
  778|  24.3k|  byte buf[len];
  779|  24.3k|  iIo.read(buf, len);
  780|  24.3k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (780:7): [True: 0, False: 24.3k]
  |  Branch (780:22): [True: 139, False: 24.1k]
  ------------------
  781|    139|    return false;
  782|    139|  }
  783|       |
  784|       |  // bmff should start with "ftyp"
  785|  24.1k|  bool const is_ftyp = (buf[4] == 'f' && buf[5] == 't' && buf[6] == 'y' && buf[7] == 'p');
  ------------------
  |  Branch (785:25): [True: 23.9k, False: 239]
  |  Branch (785:42): [True: 23.9k, False: 13]
  |  Branch (785:59): [True: 23.9k, False: 12]
  |  Branch (785:76): [True: 23.9k, False: 4]
  ------------------
  786|       |  // jxl files have a special start indicator of "JXL "
  787|  24.1k|  bool const is_jxl = (buf[4] == 'J' && buf[5] == 'X' && buf[6] == 'L' && buf[7] == ' ');
  ------------------
  |  Branch (787:24): [True: 20, False: 24.1k]
  |  Branch (787:41): [True: 8, False: 12]
  |  Branch (787:58): [True: 4, False: 4]
  |  Branch (787:75): [True: 3, False: 1]
  ------------------
  788|       |
  789|  24.1k|  bool matched = is_jxl || is_ftyp;
  ------------------
  |  Branch (789:18): [True: 3, False: 24.1k]
  |  Branch (789:28): [True: 23.9k, False: 265]
  ------------------
  790|  24.1k|  if (!advance || !matched) {
  ------------------
  |  Branch (790:7): [True: 24.1k, False: 0]
  |  Branch (790:19): [True: 0, False: 0]
  ------------------
  791|  24.1k|    iIo.seek(0, BasicIo::beg);
  792|  24.1k|  }
  793|  24.1k|  return matched;
  794|  24.3k|}
bmffimage.cpp:_ZN5Exiv2L7skipBoxEj:
  113|  67.9k|static bool skipBox(uint32_t box) {
  114|       |  // Allows boxHandler() to optimise the reading of files by identifying
  115|       |  // box types that we're not interested in. Box types listed here must
  116|       |  // not appear in the cases in switch (box_type) in boxHandler().
  117|  67.9k|  return box == 0 || box == TAG::mdat;  // mdat is where the main image lives and can be huge
  ------------------
  |  Branch (117:10): [True: 422, False: 67.5k]
  |  Branch (117:22): [True: 574, False: 66.9k]
  ------------------
  118|  67.9k|}
bmffimage.cpp:_ZZN5Exiv29BmffImage10boxHandlerERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEmmENK3$_0clEv:
  426|  8.45k|          auto offset = [&data, skip, step] {
  427|  8.45k|            if (step == 14 || step == 16)
  ------------------
  |  Branch (427:17): [True: 5.25k, False: 3.20k]
  |  Branch (427:31): [True: 1.33k, False: 1.87k]
  ------------------
  428|  6.58k|              return data.read_uint32(skip + step - 8, endian_);
  429|  1.87k|            if (step == 18)
  ------------------
  |  Branch (429:17): [True: 1.48k, False: 391]
  ------------------
  430|  1.48k|              return data.read_uint32(skip + 4, endian_);
  431|    391|            return 0u;
  432|  1.87k|          }();
bmffimage.cpp:_ZZN5Exiv29BmffImage15parseCr3PreviewERKNS_7DataBufERNSt3__113basic_ostreamIcNS4_11char_traitsIcEEEEbhmmmmENK3$_0clEv:
  664|    775|  nativePreview.mimeType_ = [version] {
  665|    775|    if (version == 0)
  ------------------
  |  Branch (665:9): [True: 443, False: 332]
  ------------------
  666|    443|      return "image/jpeg";
  667|    332|    return "application/octet-stream";
  668|    775|  }();

_ZN5Exiv28BmpImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   26|     57|BmpImage::BmpImage(BasicIo::UniquePtr io) : Image(ImageType::bmp, mdNone, std::move(io)) {
   27|     57|}
_ZN5Exiv28BmpImage12readMetadataEv:
   46|     57|void BmpImage::readMetadata() {
   47|       |#ifdef EXIV2_DEBUG_MESSAGES
   48|       |  std::cerr << "Exiv2::BmpImage::readMetadata: Reading Windows bitmap file " << io_->path() << "\n";
   49|       |#endif
   50|     57|  if (io_->open() != 0) {
  ------------------
  |  Branch (50:7): [True: 0, False: 57]
  ------------------
   51|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   52|      0|  }
   53|     57|  IoCloser closer(*io_);
   54|       |
   55|       |  // Ensure that this is the correct image type
   56|     57|  if (!isBmpType(*io_, false)) {
  ------------------
  |  Branch (56:7): [True: 0, False: 57]
  ------------------
   57|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (57:9): [True: 0, False: 0]
  |  Branch (57:25): [True: 0, False: 0]
  ------------------
   58|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   59|      0|    throw Error(ErrorCode::kerNotAnImage, "BMP");
   60|      0|  }
   61|     57|  clearMetadata();
   62|       |
   63|       |  /*
   64|       |    The Windows bitmap header goes as follows -- all numbers are in little-endian byte order:
   65|       |
   66|       |    offset  length   name                   description
   67|       |    ======  =======  =====================  =======
   68|       |     0      2 bytes  signature              always 'BM'
   69|       |     2      4 bytes  bitmap size
   70|       |     6      4 bytes  reserved
   71|       |    10      4 bytes  bitmap offset
   72|       |    14      4 bytes  header size
   73|       |    18      4 bytes  bitmap width
   74|       |    22      4 bytes  bitmap height
   75|       |    26      2 bytes  plane count
   76|       |    28      2 bytes  depth
   77|       |    30      4 bytes  compression            0 = none; 1 = RLE, 8 bits/pixel; 2 = RLE, 4 bits/pixel; 3 = bitfield;
   78|       |    4 = JPEG; 5 = PNG 34      4 bytes  image size             size of the raw bitmap data, in bytes 38      4
   79|       |    bytes  horizontal resolution  (in pixels per meter) 42      4 bytes  vertical resolution    (in pixels per
   80|       |    meter) 46      4 bytes  color count 50      4 bytes  important colors       number of "important" colors
   81|       |  */
   82|     57|  byte buf[26];
   83|     57|  if (io_->read(buf, sizeof(buf)) == sizeof(buf)) {
  ------------------
  |  Branch (83:7): [True: 57, False: 0]
  ------------------
   84|     57|    pixelWidth_ = getULong(buf + 18, littleEndian);
   85|     57|    pixelHeight_ = getULong(buf + 22, littleEndian);
   86|     57|  }
   87|     57|}
_ZN5Exiv214newBmpInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
   96|     57|Image::UniquePtr newBmpInstance(BasicIo::UniquePtr io, bool /*create*/) {
   97|     57|  auto image = std::make_unique<BmpImage>(std::move(io));
   98|     57|  if (!image->good()) {
  ------------------
  |  Branch (98:7): [True: 0, False: 57]
  ------------------
   99|      0|    return nullptr;
  100|      0|  }
  101|     57|  return image;
  102|     57|}
_ZN5Exiv29isBmpTypeERNS_7BasicIoEb:
  104|  10.2k|bool isBmpType(BasicIo& iIo, bool advance) {
  105|  10.2k|  const int32_t len = 2;
  106|  10.2k|  const std::array<byte, len> BmpImageId{'B', 'M'};
  107|  10.2k|  std::array<byte, len> buf;
  108|  10.2k|  iIo.read(buf.data(), len);
  109|  10.2k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (109:7): [True: 0, False: 10.2k]
  |  Branch (109:22): [True: 139, False: 10.0k]
  ------------------
  110|    139|    return false;
  111|    139|  }
  112|  10.0k|  bool matched = buf == BmpImageId;
  113|  10.0k|  if (!advance || !matched) {
  ------------------
  |  Branch (113:7): [True: 10.0k, False: 0]
  |  Branch (113:19): [True: 0, False: 0]
  ------------------
  114|  10.0k|    iIo.seek(-len, BasicIo::cur);
  115|  10.0k|  }
  116|  10.0k|  return matched;
  117|  10.2k|}

_ZN5Exiv28Internal14CanonMakerNote17printFiFileNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2653|    426|std::ostream& CanonMakerNote::printFiFileNumber(std::ostream& os, const Value& value, const ExifData* metadata) {
 2654|    426|  if (!metadata || value.typeId() != unsignedLong || value.count() == 0) {
  ------------------
  |  Branch (2654:7): [True: 213, False: 213]
  |  Branch (2654:20): [True: 8, False: 205]
  |  Branch (2654:54): [True: 0, False: 205]
  ------------------
 2655|    221|    return os << "(" << value << ")";
 2656|    221|  }
 2657|       |
 2658|    205|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
 2659|    205|  if (pos == metadata->end())
  ------------------
  |  Branch (2659:7): [True: 172, False: 33]
  ------------------
 2660|    172|    return os << "(" << value << ")";
 2661|       |
 2662|       |  // Ported from Exiftool
 2663|     33|  std::string model = pos->toString();
 2664|     33|  if (Internal::contains(model, "20D") || Internal::contains(model, "350D") ||
  ------------------
  |  Branch (2664:7): [True: 2, False: 31]
  |  Branch (2664:7): [True: 4, False: 29]
  |  Branch (2664:43): [True: 1, False: 30]
  ------------------
 2665|     30|      model.substr(model.size() - 8, 8) == "REBEL XT" || Internal::contains(model, "Kiss Digital N")) {
  ------------------
  |  Branch (2665:7): [True: 7, False: 23]
  |  Branch (2665:58): [True: 0, False: 23]
  ------------------
 2666|      4|    uint32_t val = value.toUint32();
 2667|      4|    return os << stringFormat("{}-{:04}", (val & 0xffc0) >> 6, ((val >> 16) & 0xff) + ((val & 0x3f) << 8));
  ------------------
  |  |   18|      4|#define stringFormat std::format
  ------------------
 2668|      4|  }
 2669|     29|  if (Internal::contains(model, "30D") || Internal::contains(model, "400D") || Internal::contains(model, "REBEL XTi") ||
  ------------------
  |  Branch (2669:7): [True: 8, False: 21]
  |  Branch (2669:43): [True: 1, False: 20]
  |  Branch (2669:80): [True: 1, False: 19]
  ------------------
 2670|     19|      Internal::contains(model, "Kiss Digital X") || Internal::contains(model, "K236")) {
  ------------------
  |  Branch (2670:7): [True: 1, False: 18]
  |  Branch (2670:54): [True: 2, False: 16]
  ------------------
 2671|      7|    uint32_t val = value.toUint32();
 2672|      7|    uint32_t dn = (val & 0xffc00) >> 10;
 2673|     14|    while (dn < 100)
  ------------------
  |  Branch (2673:12): [True: 7, False: 7]
  ------------------
 2674|      7|      dn += 0x40;
 2675|      7|    return os << stringFormat("{}-{:04}", dn, ((val & 0x3ff) << 4) + ((val >> 20) & 0x0f));
  ------------------
  |  |   18|      7|#define stringFormat std::format
  ------------------
 2676|      7|  }
 2677|       |
 2678|     22|  return os << "(" << value << ")";
 2679|     29|}
_ZN5Exiv28Internal14CanonMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2681|  1.07k|std::ostream& CanonMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData* metadata) {
 2682|  1.07k|  if (!metadata || value.count() < 4 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (2682:7): [True: 537, False: 537]
  |  Branch (2682:20): [True: 329, False: 208]
  |  Branch (2682:41): [True: 102, False: 106]
  ------------------
 2683|    968|    return os << value;
 2684|    968|  }
 2685|       |
 2686|    106|  ExifKey key("Exif.CanonCs.Lens");
 2687|    106|  auto pos = metadata->findKey(key);
 2688|    106|  if (pos != metadata->end() && pos->value().count() >= 3 && pos->value().typeId() == unsignedShort) {
  ------------------
  |  Branch (2688:7): [True: 71, False: 35]
  |  Branch (2688:7): [True: 65, False: 41]
  |  Branch (2688:33): [True: 65, False: 6]
  |  Branch (2688:62): [True: 65, False: 0]
  ------------------
 2689|     65|    float fu = pos->value().toFloat(2);
 2690|     65|    if (fu != 0.0F) {
  ------------------
  |  Branch (2690:9): [True: 40, False: 25]
  ------------------
 2691|     40|      return os << stringFormat("{:.1f} mm", value.toFloat(1) / fu);
  ------------------
  |  |   18|     40|#define stringFormat std::format
  ------------------
 2692|     40|    }
 2693|     65|  }
 2694|       |
 2695|     66|  return os << value;
 2696|    106|}
_ZN5Exiv28Internal14CanonMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2698|    956|std::ostream& CanonMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
 2699|    956|  std::string n = value.toString();
 2700|    956|  if (n.length() < 4)
  ------------------
  |  Branch (2700:7): [True: 76, False: 880]
  ------------------
 2701|     76|    return os << "(" << n << ")";
 2702|    880|  return os << n.substr(0, n.length() - 4) << "-" << n.substr(n.length() - 4);
 2703|    956|}
_ZN5Exiv28Internal14CanonMakerNote11print0x000cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2710|    730|std::ostream& CanonMakerNote::print0x000c(std::ostream& os, const Value& value, const ExifData* exifData) {
 2711|    730|  if (!exifData) {
  ------------------
  |  Branch (2711:7): [True: 365, False: 365]
  ------------------
 2712|    365|    return os << value;
 2713|    365|  }
 2714|       |
 2715|    365|  ExifKey key("Exif.Canon.ModelID");
 2716|    365|  auto pos = exifData->findKey(key);
 2717|       |  // if model is EOS D30
 2718|    365|  if (pos != exifData->end() && pos->value().count() == 1 && pos->value().toInt64() == 0x01140000) {
  ------------------
  |  Branch (2718:7): [True: 170, False: 195]
  |  Branch (2718:7): [True: 0, False: 365]
  |  Branch (2718:33): [True: 91, False: 79]
  |  Branch (2718:62): [True: 0, False: 91]
  ------------------
 2719|      0|    uint32_t l = std::stoul(value.toString());
 2720|      0|    return os << stringFormat("{:04x}{:05}", (l >> 16) & 0xFFFF, l & 0xFFFF);
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
 2721|      0|  }
 2722|    365|  return os << value;
 2723|    365|}
_ZN5Exiv28Internal14CanonMakerNote13printCs0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2725|  5.34k|std::ostream& CanonMakerNote::printCs0x0002(std::ostream& os, const Value& value, const ExifData*) {
 2726|  5.34k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2726:7): [True: 0, False: 5.34k]
  |  Branch (2726:42): [True: 0, False: 5.34k]
  ------------------
 2727|      0|    return os << value;
 2728|       |
 2729|  5.34k|  if (auto l = value.toInt64(); l == 0) {
  ------------------
  |  Branch (2729:33): [True: 4.57k, False: 770]
  ------------------
 2730|  4.57k|    os << "Off";
 2731|  4.57k|  } else {
 2732|    770|    os << l / 10.0 << " s";
 2733|    770|  }
 2734|  5.34k|  return os;
 2735|  5.34k|}
_ZN5Exiv28Internal14CanonMakerNote15printCsLensTypeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2877|  5.25k|std::ostream& CanonMakerNote::printCsLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 2878|  5.25k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2878:7): [True: 0, False: 5.25k]
  |  Branch (2878:42): [True: 0, False: 5.25k]
  ------------------
 2879|      0|    return os << "(" << value << ")";
 2880|       |
 2881|       |  // #1034
 2882|  5.25k|  const std::string undefined("undefined");
 2883|  5.25k|  const std::string section("canon");
 2884|  5.25k|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (2884:7): [True: 0, False: 5.25k]
  ------------------
 2885|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 2886|      0|  }
 2887|       |
 2888|       |  // try our best to determine the lens based on metadata
 2889|       |  // sometimes the result will be a set of multiple choices
 2890|  5.25k|  return printCsLensTypeByMetadata(os, value, metadata);
 2891|  5.25k|}
_ZN5Exiv28Internal14CanonMakerNote11printCsLensERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2893|  5.25k|std::ostream& CanonMakerNote::printCsLens(std::ostream& os, const Value& value, const ExifData*) {
 2894|  5.25k|  if (value.count() < 3 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (2894:7): [True: 192, False: 5.05k]
  |  Branch (2894:28): [True: 0, False: 5.05k]
  ------------------
 2895|    192|    return os << "(" << value << ")";
 2896|    192|  }
 2897|       |
 2898|  5.05k|  float fu = value.toFloat(2);
 2899|  5.05k|  if (fu == 0.0F)
  ------------------
  |  Branch (2899:7): [True: 606, False: 4.45k]
  ------------------
 2900|    606|    return os << value;
 2901|  4.45k|  float len1 = value.toInt64(0) / fu;
 2902|  4.45k|  float len2 = value.toInt64(1) / fu;
 2903|  4.45k|  if (len1 == len2) {
  ------------------
  |  Branch (2903:7): [True: 136, False: 4.31k]
  ------------------
 2904|    136|    return os << stringFormat("{:.1f} mm", len1);
  ------------------
  |  |   18|    136|#define stringFormat std::format
  ------------------
 2905|    136|  }
 2906|  4.31k|  return os << stringFormat("{:.1f} - {:.1f} mm", len2, len1);
  ------------------
  |  |   18|  4.31k|#define stringFormat std::format
  ------------------
 2907|  4.45k|}
_ZN5Exiv28Internal14CanonMakerNote13printLe0x0000ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2909|     38|std::ostream& CanonMakerNote::printLe0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2910|     38|  if (value.typeId() != unsignedByte || value.size() != 5)
  ------------------
  |  Branch (2910:7): [True: 0, False: 38]
  |  Branch (2910:41): [True: 6, False: 32]
  ------------------
 2911|      6|    return os << "(" << value << ")";
 2912|    192|  for (size_t i = 0; i < value.size(); ++i) {
  ------------------
  |  Branch (2912:22): [True: 160, False: 32]
  ------------------
 2913|    160|    os << stringFormat("{:02x}", value.toInt64(i));
  ------------------
  |  |   18|    160|#define stringFormat std::format
  ------------------
 2914|    160|  }
 2915|     32|  return os;
 2916|     38|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0001ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2918|    370|std::ostream& CanonMakerNote::printSi0x0001(std::ostream& os, const Value& value, const ExifData*) {
 2919|    370|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2919:7): [True: 370, False: 0]
  |  Branch (2919:42): [True: 370, False: 0]
  ------------------
 2920|    370|    os << std::exp2(canonEv(value.toInt64()) / 32) * 100.0F;
 2921|    370|  }
 2922|    370|  return os;
 2923|    370|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2925|    368|std::ostream& CanonMakerNote::printSi0x0002(std::ostream& os, const Value& value, const ExifData*) {
 2926|    368|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2926:7): [True: 368, False: 0]
  |  Branch (2926:42): [True: 368, False: 0]
  ------------------
 2927|       |    // Ported from Exiftool by Will Stokes
 2928|    368|    os << std::exp2(canonEv(value.toInt64())) * (100.0F / 32.0F);
 2929|    368|  }
 2930|    368|  return os;
 2931|    368|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0003ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2933|    366|std::ostream& CanonMakerNote::printSi0x0003(std::ostream& os, const Value& value, const ExifData*) {
 2934|    366|  if (value.typeId() == unsignedShort && value.count() > 0) {
  ------------------
  |  Branch (2934:7): [True: 366, False: 0]
  |  Branch (2934:42): [True: 366, False: 0]
  ------------------
 2935|       |    // The offset of '5' seems to be ok for most Canons (see Exiftool)
 2936|       |    // It might be explained by the fact, that most Canons have a longest
 2937|       |    // exposure of 30s which is 5 EV below 1s
 2938|       |    // see also printSi0x0017
 2939|    366|    auto res = std::lround(100.0 * (static_cast<short>(value.toInt64()) / 32.0 + 5.0));
 2940|    366|    os << stringFormat("{:.2f}", res / 100.0);
  ------------------
  |  |   18|    366|#define stringFormat std::format
  ------------------
 2941|    366|  }
 2942|    366|  return os;
 2943|    366|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2945|    360|std::ostream& CanonMakerNote::printSi0x0009(std::ostream& os, const Value& value, const ExifData*) {
 2946|    360|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2946:7): [True: 0, False: 360]
  |  Branch (2946:42): [True: 0, False: 360]
  ------------------
 2947|      0|    return os << value;
 2948|       |
 2949|    360|  const auto l = value.toInt64();
 2950|    360|  os << l << "";
 2951|       |  // Todo: determine unit
 2952|    360|  return os;
 2953|    360|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2955|    356|std::ostream& CanonMakerNote::printSi0x000c(std::ostream& os, const Value& value, const ExifData*) {
 2956|    356|  if (value.toInt64() == 0)
  ------------------
  |  Branch (2956:7): [True: 52, False: 304]
  ------------------
 2957|     52|    return os << "--";
 2958|       |
 2959|    304|  return os << value.toInt64() - 128 << " °C";
 2960|    356|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000dERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2962|    356|std::ostream& CanonMakerNote::printSi0x000d(std::ostream& os, const Value& value, const ExifData*) {
 2963|    356|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (2963:7): [True: 24, False: 332]
  ------------------
 2964|     24|    return os << "--";
 2965|       |
 2966|    332|  return os << value.toInt64() / 32;
 2967|    356|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x000eERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2969|    356|std::ostream& CanonMakerNote::printSi0x000e(std::ostream& os, const Value& value, const ExifData* pExifData) {
 2970|    356|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2970:7): [True: 0, False: 356]
  |  Branch (2970:42): [True: 0, False: 356]
  ------------------
 2971|      0|    return os << value;
 2972|       |
 2973|    356|  const auto l = value.toUint32();
 2974|    356|  const auto num = (l & 0xf000U) >> 12;
 2975|    356|  os << num << " focus points; ";
 2976|    356|  if (auto used = l & 0x0fffU; used == 0) {
  ------------------
  |  Branch (2976:32): [True: 42, False: 314]
  ------------------
 2977|     42|    os << "none";
 2978|    314|  } else {
 2979|    314|    EXV_PRINT_TAG_BITMASK(canonSiAFPointUsed)(os, value, pExifData);
  ------------------
  |  |  229|    314|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 2980|    314|  }
 2981|    356|  os << " used";
 2982|    356|  return os;
 2983|    356|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0013ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2985|    318|std::ostream& CanonMakerNote::printSi0x0013(std::ostream& os, const Value& value, const ExifData*) {
 2986|    318|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2986:7): [True: 0, False: 318]
  |  Branch (2986:42): [True: 0, False: 318]
  ------------------
 2987|      0|    return os << value;
 2988|       |
 2989|    318|  if (auto l = value.toInt64(); l == 0xffff) {
  ------------------
  |  Branch (2989:33): [True: 26, False: 292]
  ------------------
 2990|     26|    return os << "Infinite";
 2991|     26|  }
 2992|    292|  return os << value.toInt64() / 100.0 << " m";
 2993|    318|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0015ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2995|  11.0k|std::ostream& CanonMakerNote::printSi0x0015(std::ostream& os, const Value& value, const ExifData*) {
 2996|  11.0k|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2996:7): [True: 0, False: 11.0k]
  |  Branch (2996:42): [True: 0, False: 11.0k]
  ------------------
 2997|      0|    return os << value;
 2998|       |
 2999|  11.0k|  const auto val = static_cast<int16_t>(value.toInt64());
 3000|  11.0k|  if (val < 0)
  ------------------
  |  Branch (3000:7): [True: 878, False: 10.1k]
  ------------------
 3001|    878|    return os << value;
 3002|  10.1k|  return os << stringFormat("F{:.2g}", fnumber(canonEv(val)));
  ------------------
  |  |   18|  10.1k|#define stringFormat std::format
  ------------------
 3003|  11.0k|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0016ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3005|    664|std::ostream& CanonMakerNote::printSi0x0016(std::ostream& os, const Value& value, const ExifData*) {
 3006|    664|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3006:7): [True: 0, False: 664]
  |  Branch (3006:42): [True: 0, False: 664]
  ------------------
 3007|      0|    return os << value;
 3008|       |
 3009|    664|  auto [u, r] = exposureTime(canonEv(value.toInt64()));
 3010|    664|  os << u;
 3011|    664|  if (r > 1) {
  ------------------
  |  Branch (3011:7): [True: 114, False: 550]
  ------------------
 3012|    114|    os << "/" << r;
 3013|    114|  }
 3014|    664|  return os << " s";
 3015|    664|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0017ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3017|    304|std::ostream& CanonMakerNote::printSi0x0017(std::ostream& os, const Value& value, const ExifData*) {
 3018|    304|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (3018:7): [True: 0, False: 304]
  |  Branch (3018:42): [True: 0, False: 304]
  ------------------
 3019|      0|    return os << value;
 3020|    304|  return os << stringFormat("{:.2f}", (value.toInt64() / 8.0) - 6.0);
  ------------------
  |  |   18|    304|#define stringFormat std::format
  ------------------
 3021|    304|}
_ZN5Exiv28Internal14CanonMakerNote13printSi0x0018ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3023|    302|std::ostream& CanonMakerNote::printSi0x0018(std::ostream& os, const Value& value, const ExifData*) {
 3024|    302|  return os << value.toInt64() / 10;
 3025|    302|}
_ZN5Exiv28Internal14CanonMakerNote20printFiFocusDistanceERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3027|    528|std::ostream& CanonMakerNote::printFiFocusDistance(std::ostream& os, const Value& value, const ExifData*) {
 3028|    528|  if (value.typeId() != signedShort || value.count() == 0)
  ------------------
  |  Branch (3028:7): [True: 0, False: 528]
  |  Branch (3028:40): [True: 0, False: 528]
  ------------------
 3029|      0|    return os << value;
 3030|       |
 3031|    528|  auto l = value.toInt64();
 3032|    528|  if (l == -1) {
  ------------------
  |  Branch (3032:7): [True: 28, False: 500]
  ------------------
 3033|     28|    return os << "Infinite";
 3034|     28|  }
 3035|    500|  return os << stringFormat("{:.2f} m", l / 100.0);
  ------------------
  |  |   18|    500|#define stringFormat std::format
  ------------------
 3036|    528|}
_ZN5Exiv28Internal7canonEvEl:
 3041|  14.0k|float canonEv(int64_t val) {
 3042|       |  // temporarily remove sign
 3043|  14.0k|  int sign = 1;
 3044|  14.0k|  if (val < 0) {
  ------------------
  |  Branch (3044:7): [True: 1.12k, False: 12.9k]
  ------------------
 3045|  1.12k|    sign = -1;
 3046|  1.12k|    val = -val;
 3047|  1.12k|  }
 3048|       |  // remove fraction
 3049|  14.0k|  const auto remainder = val & 0x1f;
 3050|  14.0k|  val -= remainder;
 3051|  14.0k|  auto frac = static_cast<float>(remainder);
 3052|       |  // convert 1/3 (0x0c) and 2/3 (0x14) codes
 3053|  14.0k|  if (frac == 0x0c) {
  ------------------
  |  Branch (3053:7): [True: 1.00k, False: 13.0k]
  ------------------
 3054|  1.00k|    frac = 32.0F / 3;
 3055|  13.0k|  } else if (frac == 0x14) {
  ------------------
  |  Branch (3055:14): [True: 390, False: 12.6k]
  ------------------
 3056|    390|    frac = 64.0F / 3;
 3057|  12.6k|  } else if ((val == 160) && (frac == 0x08)) {  // for Sigma f/6.3 lenses that report f/6.2 to camera
  ------------------
  |  Branch (3057:14): [True: 42, False: 12.6k]
  |  Branch (3057:30): [True: 19, False: 23]
  ------------------
 3058|     19|    frac = 30.0F / 3;
 3059|     19|  }
 3060|  14.0k|  return sign * (val + frac) / 32.0F;
 3061|  14.0k|}
canonmn_int.cpp:_ZN5Exiv28InternalL25printCsLensTypeByMetadataERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2783|  5.25k|std::ostream& printCsLensTypeByMetadata(std::ostream& os, const Value& value, const ExifData* metadata) {
 2784|  5.25k|  if (!metadata || value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (2784:7): [True: 2.62k, False: 2.62k]
  |  Branch (2784:20): [True: 0, False: 2.62k]
  |  Branch (2784:55): [True: 0, False: 2.62k]
  ------------------
 2785|  2.62k|    return os << value;
 2786|       |
 2787|  2.62k|  auto const lensType = value.toInt64();
 2788|       |
 2789|  2.62k|  if (lensType == 0xffff) {
  ------------------
  |  Branch (2789:7): [True: 41, False: 2.58k]
  ------------------
 2790|     41|    return printCsLensFFFF(os, value, metadata);
 2791|     41|  }
 2792|       |
 2793|       |  // get the values we need from the metadata container
 2794|  2.58k|  ExifKey lensKey("Exif.CanonCs.Lens");
 2795|  2.58k|  auto pos = metadata->findKey(lensKey);
 2796|       |  // catch possible error cases
 2797|  2.58k|  if (pos == metadata->end() || pos->value().count() < 3 || pos->value().typeId() != unsignedShort ||
  ------------------
  |  Branch (2797:7): [True: 1, False: 2.58k]
  |  Branch (2797:7): [True: 142, False: 2.44k]
  |  Branch (2797:33): [True: 15, False: 2.57k]
  |  Branch (2797:61): [True: 0, False: 2.57k]
  ------------------
 2798|  2.57k|      pos->value().toFloat(2) == 0.0F) {
  ------------------
  |  Branch (2798:7): [True: 126, False: 2.44k]
  ------------------
 2799|    142|    os << "Unknown Lens (" << lensType << ")";
 2800|    142|    return os;
 2801|    142|  }
 2802|       |
 2803|  2.44k|  auto const exifFlMin = static_cast<int>(static_cast<float>(pos->value().toInt64(1)) / pos->value().toFloat(2));
 2804|  2.44k|  auto const exifFlMax = static_cast<int>(static_cast<float>(pos->value().toInt64(0)) / pos->value().toFloat(2));
 2805|       |
 2806|  2.44k|  ExifKey aperKey("Exif.CanonCs.MaxAperture");
 2807|  2.44k|  pos = metadata->findKey(aperKey);
 2808|  2.44k|  if (pos == metadata->end() || pos->value().count() != 1 || pos->value().typeId() != unsignedShort) {
  ------------------
  |  Branch (2808:7): [True: 2, False: 2.44k]
  |  Branch (2808:7): [True: 4, False: 2.44k]
  |  Branch (2808:33): [True: 2, False: 2.44k]
  |  Branch (2808:62): [True: 0, False: 2.44k]
  ------------------
 2809|      4|    os << "Unknown Lens (" << lensType << ")";
 2810|      4|    return os;
 2811|      4|  }
 2812|       |
 2813|  2.44k|  auto exifAperMax = fnumber(canonEv(static_cast<int16_t>(pos->value().toInt64(0))));
 2814|       |
 2815|       |  // regex to extract short and tele focal length, max aperture at short and tele position
 2816|       |  // and the teleconverter factor from the lens label
 2817|  2.44k|  std::regex const lens_regex(
 2818|       |      // anything at the start
 2819|  2.44k|      ".*?"
 2820|       |      // maybe min focal length and hyphen, surely max focal length e.g.: 24-70mm
 2821|  2.44k|      R"((?:(\d+)-)?(\d+)mm)"
 2822|       |      // anything in-between
 2823|  2.44k|      ".*?"
 2824|       |      // maybe short focal length max aperture and hyphen, surely at least single max aperture e.g.: f/4.5-5.6
 2825|       |      // short and tele indicate apertures at the short (focal_length_min) and tele (focal_length_max)
 2826|       |      // position of the lens
 2827|  2.44k|      R"((?:(?:f/)|T|F)(?:(\d+(?:\.\d+)?)-)?(\d+(?:\.\d)?))"
 2828|       |      // check if there is a teleconverter pattern e.g. + 1.4x
 2829|  2.44k|      R"((?:.*?\+.*?(\d+(?:\.\d+)?)x)?)");
 2830|       |
 2831|  2.44k|  bool unmatched = true;
 2832|       |  // we loop over all our lenses to print out all matching lenses
 2833|       |  // if we have multiple possibilities, they are concatenated by "*OR*"
 2834|  1.30M|  for (auto&& [val, label] : canonCsLensType) {
  ------------------
  |  Branch (2834:28): [True: 1.30M, False: 2.44k]
  ------------------
 2835|  1.30M|    if (val != lensType) {
  ------------------
  |  Branch (2835:9): [True: 1.29M, False: 4.77k]
  ------------------
 2836|  1.29M|      continue;
 2837|  1.29M|    }
 2838|       |
 2839|  4.77k|    std::cmatch base_match;
 2840|  4.77k|    if (!std::regex_search(label, base_match, lens_regex)) {
  ------------------
  |  Branch (2840:9): [True: 0, False: 4.77k]
  ------------------
 2841|       |      // this should never happen, as it would indicate the lens is specified incorrectly
 2842|       |      // in the CanonCsLensType array
 2843|      0|      throw Error(ErrorCode::kerErrorMessage, "Lens regex didn't match for: ", label);
 2844|      0|    }
 2845|       |
 2846|  4.77k|    auto tc = base_match[5].length() > 0 ? string_to_float(base_match[5].str()) : 1.f;
  ------------------
  |  Branch (2846:15): [True: 92, False: 4.68k]
  ------------------
 2847|       |
 2848|  4.77k|    auto flMax = static_cast<int>(string_to_float(base_match[2].str()) * tc);
 2849|  4.77k|    int flMin = base_match[1].length() > 0 ? static_cast<int>(string_to_float(base_match[1].str()) * tc) : flMax;
  ------------------
  |  Branch (2849:17): [True: 4.36k, False: 413]
  ------------------
 2850|       |
 2851|  4.77k|    auto aperMaxTele = string_to_float(base_match[4].str()) * tc;
 2852|  4.77k|    auto aperMaxShort = base_match[3].length() > 0 ? string_to_float(base_match[3].str()) * tc : aperMaxTele;
  ------------------
  |  Branch (2852:25): [True: 2.51k, False: 2.25k]
  ------------------
 2853|       |
 2854|  4.77k|    if (flMin != exifFlMin || flMax != exifFlMax || exifAperMax < (aperMaxShort - (.1 * tc)) ||
  ------------------
  |  Branch (2854:9): [True: 4.75k, False: 16]
  |  Branch (2854:31): [True: 1, False: 15]
  |  Branch (2854:53): [True: 5, False: 10]
  ------------------
 2855|  4.77k|        exifAperMax > (aperMaxTele + (.1 * tc))) {
  ------------------
  |  Branch (2855:9): [True: 7, False: 3]
  ------------------
 2856|  4.77k|      continue;
 2857|  4.77k|    }
 2858|       |
 2859|      3|    if (unmatched) {
  ------------------
  |  Branch (2859:9): [True: 2, False: 1]
  ------------------
 2860|      2|      unmatched = false;
 2861|      2|      os << label;
 2862|      2|      continue;
 2863|      2|    }
 2864|       |
 2865|      1|    os << " *OR* " << label;
 2866|      1|  }
 2867|       |
 2868|       |  // if the entire for loop left us with unmatched==false
 2869|       |  // we weren't able to find a single matching lens :(
 2870|  2.44k|  if (unmatched) {
  ------------------
  |  Branch (2870:7): [True: 2.44k, False: 2]
  ------------------
 2871|  2.44k|    os << "Unknown Lens (" << lensType << ")";
 2872|  2.44k|  }
 2873|  2.44k|  return os;
 2874|  2.44k|}
canonmn_int.cpp:_ZN5Exiv28InternalL15printCsLensFFFFERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2737|     41|std::ostream& printCsLensFFFF(std::ostream& os, const Value& value, const ExifData* metadata) {
 2738|     41|  try {
 2739|       |    // 1140
 2740|     41|    const auto itModel = metadata->findKey(ExifKey("Exif.Image.Model"));
 2741|     41|    const auto itLens = metadata->findKey(ExifKey("Exif.CanonCs.Lens"));
 2742|     41|    const auto itApert = metadata->findKey(ExifKey("Exif.CanonCs.MaxAperture"));
 2743|       |
 2744|     41|    if (itModel != metadata->end() && itModel->value().toString() == "Canon EOS 30D" && itLens != metadata->end() &&
  ------------------
  |  Branch (2744:9): [True: 18, False: 23]
  |  Branch (2744:9): [True: 0, False: 41]
  |  Branch (2744:39): [True: 2, False: 16]
  |  Branch (2744:89): [True: 2, False: 0]
  ------------------
 2745|      2|        itLens->value().toString() == "24 24 1" && itApert != metadata->end() &&
  ------------------
  |  Branch (2745:9): [True: 0, False: 2]
  |  Branch (2745:52): [True: 0, False: 0]
  ------------------
 2746|      0|        itApert->value().toString() == "95"  // F2.8
  ------------------
  |  Branch (2746:9): [True: 0, False: 0]
  ------------------
 2747|     41|    ) {
 2748|      0|      return os << "Canon EF-S 24mm f/2.8 STM";
 2749|      0|    }
 2750|     41|  } catch (const std::exception&) {
 2751|      0|  }
 2752|       |
 2753|     41|  return EXV_PRINT_TAG(canonCsLensType)(os, value, metadata);
  ------------------
  |  |  199|     41|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2754|     41|}
canonmn_int.cpp:_ZN5Exiv28InternalL15string_to_floatENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
 2768|  16.5k|float string_to_float(std::string_view str) {
 2769|  16.5k|  float val{};
 2770|  16.5k|  std::stringstream ss;
 2771|  16.5k|  std::locale c_locale("C");
 2772|  16.5k|  ss.imbue(c_locale);
 2773|  16.5k|  ss << str;
 2774|  16.5k|  ss >> val;
 2775|       |
 2776|  16.5k|  if (ss.fail()) {
  ------------------
  |  Branch (2776:7): [True: 0, False: 16.5k]
  ------------------
 2777|      0|    throw Error(ErrorCode::kerErrorMessage, "canonmn_int.cpp:string_to_float failed for: ", str);
 2778|      0|  }
 2779|       |
 2780|  16.5k|  return val;
 2781|  16.5k|}

_ZN5Exiv28Internal14CanonMakerNote7tagListEv:
   38|   318k|  static constexpr auto tagList() {
   39|   318k|    return tagInfo_;
   40|   318k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCsEv:
   42|  5.76M|  static constexpr auto tagListCs() {
   43|  5.76M|    return tagInfoCs_;
   44|  5.76M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListSiEv:
   46|  1.17M|  static constexpr auto tagListSi() {
   47|  1.17M|    return tagInfoSi_;
   48|  1.17M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListCfEv:
   54|    437|  static constexpr auto tagListCf() {
   55|    437|    return tagInfoCf_;
   56|    437|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPiEv:
   58|  2.52M|  static constexpr auto tagListPi() {
   59|  2.52M|    return tagInfoPi_;
   60|  2.52M|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListTiEv:
   62|   184k|  static constexpr auto tagListTi() {
   63|   184k|    return tagInfoTi_;
   64|   184k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListFiEv:
   66|   557k|  static constexpr auto tagListFi() {
   67|   557k|    return tagInfoFi_;
   68|   557k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPaEv:
   50|   131k|  static constexpr auto tagListPa() {
   51|   131k|    return tagInfoPa_;
   52|   131k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListPrEv:
   70|  1.72k|  static constexpr auto tagListPr() {
   71|  1.72k|    return tagInfoPr_;
   72|  1.72k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListVigCor2Ev:
  134|    259|  static constexpr auto tagListVigCor2() {
  135|    259|    return tagInfoVigCor2_;
  136|    259|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListLiOpEv:
  138|  3.11k|  static constexpr auto tagListLiOp() {
  139|  3.11k|    return tagInfoLiOp_;
  140|  3.11k|  }
_ZN5Exiv28Internal14CanonMakerNote14tagListAfMiAdjEv:
  126|    210|  static constexpr auto tagListAfMiAdj() {
  127|    210|    return tagInfoAfMiAdj_;
  128|    210|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListLeEv:
  142|    647|  static constexpr auto tagListLe() {
  143|    647|    return tagInfoLe_;
  144|    647|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListAmEv:
  146|  2.35k|  static constexpr auto tagListAm() {
  147|  2.35k|    return tagInfoAm_;
  148|  2.35k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListFilEv:
  154|  15.2k|  static constexpr auto tagListFil() {
  155|  15.2k|    return tagInfoFil_;
  156|  15.2k|  }
_ZN5Exiv28Internal14CanonMakerNote9tagListMeEv:
  150|  2.04k|  static constexpr auto tagListMe() {
  151|  2.04k|    return tagInfoMe_;
  152|  2.04k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListHdrEv:
  158|  1.06k|  static constexpr auto tagListHdr() {
  159|  1.06k|    return tagInfoHdr_;
  160|  1.06k|  }
_ZN5Exiv28Internal14CanonMakerNote10tagListAfCEv:
  162|  21.9k|  static constexpr auto tagListAfC() {
  163|  21.9k|    return tagInfoAfC_;
  164|  21.9k|  }
_ZN5Exiv28Internal14CanonMakerNote11tagListRawBEv:
  166|    115|  static constexpr auto tagListRawB() {
  167|    115|    return tagInfoRawB_;
  168|    115|  }

_ZN5Exiv28Internal14CasioMakerNote11print0x0006ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  147|    538|std::ostream& CasioMakerNote::print0x0006(std::ostream& os, const Value& value, const ExifData*) {
  148|    538|  return os << stringFormat("{:.2f} m", value.toInt64() / 1000.0);
  ------------------
  |  |   18|    538|#define stringFormat std::format
  ------------------
  149|    538|}
_ZN5Exiv28Internal14CasioMakerNote11print0x0015ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  151|    250|std::ostream& CasioMakerNote::print0x0015(std::ostream& os, const Value& value, const ExifData*) {
  152|       |  // format is:  "YYMM#00#00DDHH#00#00MM#00#00#00#00" or  "YYMM#00#00DDHH#00#00MMSS#00#00#00"
  153|    250|  std::vector<char> numbers;
  154|  7.98k|  for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (154:22): [True: 7.73k, False: 250]
  ------------------
  155|  7.73k|    const auto l = value.toInt64(i);
  156|  7.73k|    if (l != 0) {
  ------------------
  |  Branch (156:9): [True: 3.78k, False: 3.95k]
  ------------------
  157|  3.78k|      numbers.push_back(l);
  158|  3.78k|    }
  159|  7.73k|  }
  160|       |
  161|    250|  if (numbers.size() >= 10) {
  ------------------
  |  Branch (161:7): [True: 134, False: 116]
  ------------------
  162|       |    // year
  163|    134|    long l = ((numbers[0] - 48) * 10) + (numbers[1] - 48);
  164|    134|    if (l < 70)
  ------------------
  |  Branch (164:9): [True: 50, False: 84]
  ------------------
  165|     50|      l += 2000;
  166|     84|    else
  167|     84|      l += 1900;
  168|    134|    os << l << ":";
  169|       |    // month, day, hour, minutes
  170|    134|    os << numbers[2] << numbers[3] << ":" << numbers[4] << numbers[5] << " " << numbers[6] << numbers[7] << ":"
  171|    134|       << numbers[8] << numbers[9];
  172|       |    // optional seconds
  173|    134|    if (numbers.size() == 12) {
  ------------------
  |  Branch (173:9): [True: 30, False: 104]
  ------------------
  174|     30|      os << ":" << numbers[10] << numbers[11];
  175|     30|    }
  176|    134|  } else
  177|    116|    os << value;
  178|    250|  return os;
  179|    250|}
_ZN5Exiv28Internal15Casio2MakerNote11print0x2001ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  448|     60|std::ostream& Casio2MakerNote::print0x2001(std::ostream& os, const Value& value, const ExifData*) {
  449|       |  // format is:  "YYMM#00#00DDHH#00#00MM#00#00#00#00"
  450|     60|  std::vector<char> numbers;
  451|  1.88k|  for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (451:22): [True: 1.82k, False: 60]
  ------------------
  452|  1.82k|    const auto l = value.toInt64(i);
  453|  1.82k|    if (l != 0) {
  ------------------
  |  Branch (453:9): [True: 1.18k, False: 640]
  ------------------
  454|  1.18k|      numbers.push_back(l);
  455|  1.18k|    }
  456|  1.82k|  }
  457|       |
  458|     60|  if (numbers.size() >= 10) {
  ------------------
  |  Branch (458:7): [True: 30, False: 30]
  ------------------
  459|       |    // year
  460|     30|    long l = ((numbers[0] - 48) * 10) + (numbers[1] - 48);
  461|     30|    if (l < 70)
  ------------------
  |  Branch (461:9): [True: 16, False: 14]
  ------------------
  462|     16|      l += 2000;
  463|     14|    else
  464|     14|      l += 1900;
  465|     30|    os << l << ":";
  466|       |    // month, day, hour, minutes
  467|     30|    os << numbers[2] << numbers[3] << ":" << numbers[4] << numbers[5] << " " << numbers[6] << numbers[7] << ":"
  468|     30|       << numbers[8] << numbers[9];
  469|     30|  } else
  470|     30|    os << value;
  471|     60|  return os;
  472|     60|}
_ZN5Exiv28Internal15Casio2MakerNote11print0x2022ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  474|     74|std::ostream& Casio2MakerNote::print0x2022(std::ostream& os, const Value& value, const ExifData*) {
  475|     74|  if (value.toInt64() >= 0x20000000) {
  ------------------
  |  Branch (475:7): [True: 6, False: 68]
  ------------------
  476|      6|    return os << N_("Inf");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
  477|      6|  }
  478|     68|  return os << stringFormat("{:.2f} m", value.toInt64() / 1000.0);
  ------------------
  |  |   18|     68|#define stringFormat std::format
  ------------------
  479|     74|}

_ZN5Exiv28Internal14CasioMakerNote7tagListEv:
   34|  29.9k|  static constexpr auto tagList() {
   35|  29.9k|    return tagInfo_;
   36|  29.9k|  }
_ZN5Exiv28Internal15Casio2MakerNote7tagListEv:
   52|  33.5k|  static constexpr auto tagList() {
   53|  33.5k|    return tagInfo_;
   54|  33.5k|  }

_ZN5Exiv29ConverterC2ERNS_8ExifDataERNS_7XmpDataE:
  495|    585|    exifData_(&exifData), iptcData_(nullptr), xmpData_(&xmpData), iptcCharset_(nullptr) {
  496|    585|}
_ZN5Exiv29ConverterC2ERNS_8IptcDataERNS_7XmpDataEPKc:
  499|    585|    exifData_(nullptr), iptcData_(&iptcData), xmpData_(&xmpData), iptcCharset_(iptcCharset) {
  500|    585|}
_ZN5Exiv29Converter10cnvFromXmpEv:
  510|  1.17k|void Converter::cnvFromXmp() {
  511|   147k|  for (auto&& c : conversion_) {
  ------------------
  |  Branch (511:17): [True: 147k, False: 1.17k]
  ------------------
  512|   147k|    if ((c.metadataId_ == mdExif && exifData_) || (c.metadataId_ == mdIptc && iptcData_)) {
  ------------------
  |  Branch (512:10): [True: 121k, False: 25.7k]
  |  Branch (512:37): [True: 60.8k, False: 60.8k]
  |  Branch (512:52): [True: 25.7k, False: 60.8k]
  |  Branch (512:79): [True: 12.8k, False: 12.8k]
  ------------------
  513|  73.7k|      std::invoke(c.key2ToKey1_, *this, c.key2_, c.key1_);
  514|  73.7k|    }
  515|   147k|  }
  516|  1.17k|}
_ZN5Exiv29Converter17prepareExifTargetEPKcb:
  521|  1.33k|bool Converter::prepareExifTarget(const char* to, bool force) {
  522|  1.33k|  auto pos = exifData_->findKey(ExifKey(to));
  523|  1.33k|  if (pos == exifData_->end())
  ------------------
  |  Branch (523:7): [True: 1.33k, False: 0]
  ------------------
  524|  1.33k|    return true;
  525|      0|  if (!overwrite_ && !force)
  ------------------
  |  Branch (525:7): [True: 0, False: 0]
  |  Branch (525:22): [True: 0, False: 0]
  ------------------
  526|      0|    return false;
  527|      0|  exifData_->erase(pos);
  528|      0|  return true;
  529|      0|}
_ZN5Exiv29Converter17prepareIptcTargetEPKcb:
  531|    146|bool Converter::prepareIptcTarget(const char* to, bool force) {
  532|    146|  auto pos = iptcData_->findKey(IptcKey(to));
  533|    146|  if (pos == iptcData_->end())
  ------------------
  |  Branch (533:7): [True: 146, False: 0]
  ------------------
  534|    146|    return true;
  535|      0|  if (!overwrite_ && !force)
  ------------------
  |  Branch (535:7): [True: 0, False: 0]
  |  Branch (535:22): [True: 0, False: 0]
  ------------------
  536|      0|    return false;
  537|      0|  while ((pos = iptcData_->findKey(IptcKey(to))) != iptcData_->end()) {
  ------------------
  |  Branch (537:10): [True: 0, False: 0]
  ------------------
  538|      0|    iptcData_->erase(pos);
  539|      0|  }
  540|      0|  return true;
  541|      0|}
_ZN5Exiv29Converter11cnvXmpValueEPKcS2_:
  844|  52.6k|void Converter::cnvXmpValue(const char* from, const char* to) {
  845|  52.6k|  auto pos = xmpData_->findKey(XmpKey(from));
  846|  52.6k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (846:7): [True: 52.6k, False: 10]
  ------------------
  847|  52.6k|    return;
  848|     10|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (848:7): [True: 0, False: 10]
  ------------------
  849|      0|    return;
  850|     10|  std::string value;
  851|     10|  if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (851:7): [True: 0, False: 10]
  ------------------
  852|      0|#ifndef SUPPRESS_WARNINGS
  853|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  854|      0|#endif
  855|      0|    return;
  856|      0|  }
  857|       |  // Todo: Escape non-ASCII characters in XMP text values
  858|     10|  ExifKey key(to);
  859|     10|  if (auto ed = Exifdatum(key); ed.setValue(value) == 0) {
  ------------------
  |  Branch (859:33): [True: 0, False: 10]
  ------------------
  860|      0|    exifData_->add(ed);
  861|      0|  }
  862|     10|  if (erase_)
  ------------------
  |  Branch (862:7): [True: 0, False: 10]
  ------------------
  863|      0|    xmpData_->erase(pos);
  864|     10|}
_ZN5Exiv29Converter13cnvXmpCommentEPKcS2_:
  866|    585|void Converter::cnvXmpComment(const char* from, const char* to) {
  867|    585|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (867:7): [True: 0, False: 585]
  ------------------
  868|      0|    return;
  869|    585|  auto pos = xmpData_->findKey(XmpKey(from));
  870|    585|  if (pos == xmpData_->end())
  ------------------
  |  Branch (870:7): [True: 585, False: 0]
  ------------------
  871|    585|    return;
  872|      0|  std::string value;
  873|      0|  if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (873:7): [True: 0, False: 0]
  ------------------
  874|      0|#ifndef SUPPRESS_WARNINGS
  875|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  876|      0|#endif
  877|      0|    return;
  878|      0|  }
  879|       |  // Assumes the XMP value is encoded in UTF-8, as it should be
  880|      0|  (*exifData_)[to] = "charset=Unicode " + value;
  881|      0|  if (erase_)
  ------------------
  |  Branch (881:7): [True: 0, False: 0]
  ------------------
  882|      0|    xmpData_->erase(pos);
  883|      0|}
_ZN5Exiv29Converter11cnvXmpArrayEPKcS2_:
  885|    585|void Converter::cnvXmpArray(const char* from, const char* to) {
  886|    585|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (886:7): [True: 0, False: 585]
  ------------------
  887|      0|    return;
  888|    585|  auto pos = xmpData_->findKey(XmpKey(from));
  889|    585|  if (pos == xmpData_->end())
  ------------------
  |  Branch (889:7): [True: 585, False: 0]
  ------------------
  890|    585|    return;
  891|      0|  std::string array;
  892|      0|  for (size_t i = 0; i < pos->count(); ++i) {
  ------------------
  |  Branch (892:22): [True: 0, False: 0]
  ------------------
  893|      0|    std::string value = pos->toString(i);
  894|      0|    if (!pos->value().ok()) {
  ------------------
  |  Branch (894:9): [True: 0, False: 0]
  ------------------
  895|      0|#ifndef SUPPRESS_WARNINGS
  896|      0|      EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  897|      0|#endif
  898|      0|      return;
  899|      0|    }
  900|      0|    array += value;
  901|      0|    if (i != pos->count() - 1)
  ------------------
  |  Branch (901:9): [True: 0, False: 0]
  ------------------
  902|      0|      array += " ";
  903|      0|  }
  904|      0|  (*exifData_)[to] = array;
  905|      0|  if (erase_)
  ------------------
  |  Branch (905:7): [True: 0, False: 0]
  ------------------
  906|      0|    xmpData_->erase(pos);
  907|      0|}
_ZN5Exiv29Converter10cnvXmpDateEPKcS2_:
  909|  2.34k|void Converter::cnvXmpDate(const char* from, const char* to) {
  910|  2.34k|  auto pos = xmpData_->findKey(XmpKey(from));
  911|  2.34k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (911:7): [True: 2.19k, False: 146]
  ------------------
  912|  2.19k|    return;
  913|    146|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (913:7): [True: 0, False: 146]
  ------------------
  914|      0|    return;
  915|    146|#ifdef EXV_HAVE_XMP_TOOLKIT
  916|    146|  std::string value = pos->toString();
  917|    146|  if (!pos->value().ok()) {
  ------------------
  |  Branch (917:7): [True: 0, False: 146]
  ------------------
  918|      0|#ifndef SUPPRESS_WARNINGS
  919|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  920|      0|#endif
  921|      0|    return;
  922|      0|  }
  923|    146|  XMP_DateTime datetime;
  924|    146|  try {
  925|    146|    SXMPUtils::ConvertToDate(value, &datetime);
  926|    146|    if (std::string(to) != "Exif.GPSInfo.GPSTimeStamp") {
  ------------------
  |  Branch (926:9): [True: 51, False: 95]
  ------------------
  927|     51|      SXMPUtils::ConvertToLocalTime(&datetime);
  928|       |
  929|     51|      (*exifData_)[to] = stringFormat("{:4}:{:02}:{:02} {:02}:{:02}:{:02}", datetime.year, datetime.month, datetime.day,
  ------------------
  |  |   18|     51|#define stringFormat std::format
  ------------------
  930|     51|                                      datetime.hour, datetime.minute, datetime.second);
  931|       |
  932|     51|      if (datetime.nanoSecond) {
  ------------------
  |  Branch (932:11): [True: 4, False: 47]
  ------------------
  933|      4|        const char* subsecTag = nullptr;
  934|      4|        if (std::string(to) == "Exif.Image.DateTime") {
  ------------------
  |  Branch (934:13): [True: 0, False: 4]
  ------------------
  935|      0|          subsecTag = "Exif.Photo.SubSecTime";
  936|      4|        } else if (std::string(to) == "Exif.Photo.DateTimeOriginal") {
  ------------------
  |  Branch (936:20): [True: 0, False: 4]
  ------------------
  937|      0|          subsecTag = "Exif.Photo.SubSecTimeOriginal";
  938|      4|        } else if (std::string(to) == "Exif.Photo.DateTimeDigitized") {
  ------------------
  |  Branch (938:20): [True: 4, False: 0]
  ------------------
  939|      4|          subsecTag = "Exif.Photo.SubSecTimeDigitized";
  940|      4|        }
  941|      4|        if (subsecTag) {
  ------------------
  |  Branch (941:13): [True: 4, False: 0]
  ------------------
  942|      4|          prepareExifTarget(subsecTag, true);
  943|      4|          (*exifData_)[subsecTag] = std::to_string(datetime.nanoSecond);
  944|      4|        }
  945|      4|      }
  946|     95|    } else {  // "Exif.GPSInfo.GPSTimeStamp"
  947|       |      // Ignore the time zone, assuming the time is in UTC as it should be
  948|       |
  949|     95|      URational rhour(datetime.hour, 1);
  950|     95|      URational rmin(datetime.minute, 1);
  951|     95|      URational rsec(datetime.second, 1);
  952|     95|      if (datetime.nanoSecond != 0) {
  ------------------
  |  Branch (952:11): [True: 0, False: 95]
  ------------------
  953|      0|        if (datetime.second != 0) {
  ------------------
  |  Branch (953:13): [True: 0, False: 0]
  ------------------
  954|       |          // Add the seconds to rmin so that the ns fit into rsec
  955|      0|          rmin.second = 60;
  956|      0|          rmin.first *= 60;
  957|      0|          rmin.first += datetime.second;
  958|      0|        }
  959|      0|        rsec.second = 1000000000;
  960|      0|        rsec.first = datetime.nanoSecond;
  961|      0|      }
  962|       |
  963|     95|      std::ostringstream array;
  964|     95|      array << rhour << " " << rmin << " " << rsec;
  965|     95|      (*exifData_)[to] = array.str();
  966|       |
  967|     95|      prepareExifTarget("Exif.GPSInfo.GPSDateStamp", true);
  968|     95|      (*exifData_)["Exif.GPSInfo.GPSDateStamp"] =
  969|     95|          stringFormat("{:4}:{:02}:{:02}", datetime.year, datetime.month, datetime.day);
  ------------------
  |  |   18|     95|#define stringFormat std::format
  ------------------
  970|     95|    }
  971|    146|  }
  972|    146|#ifndef SUPPRESS_WARNINGS
  973|    146|  catch (const XMP_Error& e) {
  974|     95|    EXV_WARNING << "Failed to convert " << from << " to " << to << " (" << e.GetErrMsg() << ")\n";
  ------------------
  |  |  138|     95|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 95]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     95|  LogMsg(LogMsg::warn).os()
  ------------------
  975|     95|    return;
  976|     95|  }
  977|       |#else
  978|       |  catch (const XMP_Error&) {
  979|       |    return;
  980|       |  }
  981|       |#endif  // SUPPRESS_WARNINGS
  982|       |
  983|     51|  if (erase_)
  ------------------
  |  Branch (983:7): [True: 0, False: 51]
  ------------------
  984|      0|    xmpData_->erase(pos);
  985|       |#else
  986|       |#ifndef SUPPRESS_WARNINGS
  987|       |  EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  988|       |#endif
  989|       |#endif  // !EXV_HAVE_XMP_TOOLKIT
  990|     51|}
_ZN5Exiv29Converter13cnvXmpVersionEPKcS2_:
  992|  1.17k|void Converter::cnvXmpVersion(const char* from, const char* to) {
  993|  1.17k|  auto pos = xmpData_->findKey(XmpKey(from));
  994|  1.17k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (994:7): [True: 1.17k, False: 0]
  ------------------
  995|  1.17k|    return;
  996|      0|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (996:7): [True: 0, False: 0]
  ------------------
  997|      0|    return;
  998|      0|  std::string value = pos->toString();
  999|      0|  if (!pos->value().ok() || value.length() < 4) {
  ------------------
  |  Branch (999:7): [True: 0, False: 0]
  |  Branch (999:29): [True: 0, False: 0]
  ------------------
 1000|      0|#ifndef SUPPRESS_WARNINGS
 1001|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1002|      0|#endif
 1003|      0|    return;
 1004|      0|  }
 1005|       |
 1006|      0|  (*exifData_)[to] = stringFormat("{} {} {} {}", static_cast<int>(value[0]), static_cast<int>(value[1]),
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
 1007|      0|                                  static_cast<int>(value[2]), static_cast<int>(value[3]));
 1008|      0|  if (erase_)
  ------------------
  |  Branch (1008:7): [True: 0, False: 0]
  ------------------
 1009|      0|    xmpData_->erase(pos);
 1010|      0|}
_ZN5Exiv29Converter16cnvXmpGPSVersionEPKcS2_:
 1012|    585|void Converter::cnvXmpGPSVersion(const char* from, const char* to) {
 1013|    585|  auto pos = xmpData_->findKey(XmpKey(from));
 1014|    585|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1014:7): [True: 585, False: 0]
  ------------------
 1015|    585|    return;
 1016|      0|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (1016:7): [True: 0, False: 0]
  ------------------
 1017|      0|    return;
 1018|      0|  std::string value = pos->toString();
 1019|      0|  if (!pos->value().ok()) {
  ------------------
  |  Branch (1019:7): [True: 0, False: 0]
  ------------------
 1020|      0|#ifndef SUPPRESS_WARNINGS
 1021|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1022|      0|#endif
 1023|      0|    return;
 1024|      0|  }
 1025|       |
 1026|      0|  std::replace(value.begin(), value.end(), '.', ' ');
 1027|      0|  (*exifData_)[to] = value;
 1028|      0|  if (erase_)
  ------------------
  |  Branch (1028:7): [True: 0, False: 0]
  ------------------
 1029|      0|    xmpData_->erase(pos);
 1030|      0|}
_ZN5Exiv29Converter11cnvXmpFlashEPKcS2_:
 1032|    585|void Converter::cnvXmpFlash(const char* from, const char* to) {
 1033|    585|  auto pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:Fired"));
 1034|    585|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1034:7): [True: 585, False: 0]
  ------------------
 1035|    585|    return;
 1036|      0|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (1036:7): [True: 0, False: 0]
  ------------------
 1037|      0|    return;
 1038|      0|  unsigned short value = 0;
 1039|       |
 1040|      0|  if (pos != xmpData_->end() && pos->count() > 0) {
  ------------------
  |  Branch (1040:7): [True: 0, False: 0]
  |  Branch (1040:7): [True: 0, False: 0]
  |  Branch (1040:33): [True: 0, False: 0]
  ------------------
 1041|      0|    auto fired = pos->toUint32();
 1042|      0|    if (pos->value().ok())
  ------------------
  |  Branch (1042:9): [True: 0, False: 0]
  ------------------
 1043|      0|      value |= fired & 1;
 1044|      0|#ifndef SUPPRESS_WARNINGS
 1045|      0|    else
 1046|      0|      EXV_WARNING << "Failed to convert " << std::string(from) << "/exif:Fired"
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1047|      0|                  << " to " << to << "\n";
 1048|      0|#endif
 1049|      0|  }
 1050|      0|  pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:Return"));
 1051|      0|  if (pos != xmpData_->end() && pos->count() > 0) {
  ------------------
  |  Branch (1051:7): [True: 0, False: 0]
  |  Branch (1051:7): [True: 0, False: 0]
  |  Branch (1051:33): [True: 0, False: 0]
  ------------------
 1052|      0|    auto ret = pos->toUint32();
 1053|      0|    if (pos->value().ok())
  ------------------
  |  Branch (1053:9): [True: 0, False: 0]
  ------------------
 1054|      0|      value |= (ret & 3) << 1;
 1055|      0|#ifndef SUPPRESS_WARNINGS
 1056|      0|    else
 1057|      0|      EXV_WARNING << "Failed to convert " << std::string(from) << "/exif:Return"
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1058|      0|                  << " to " << to << "\n";
 1059|      0|#endif
 1060|      0|  }
 1061|      0|  pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:Mode"));
 1062|      0|  if (pos != xmpData_->end() && pos->count() > 0) {
  ------------------
  |  Branch (1062:7): [True: 0, False: 0]
  |  Branch (1062:7): [True: 0, False: 0]
  |  Branch (1062:33): [True: 0, False: 0]
  ------------------
 1063|      0|    auto mode = pos->toUint32();
 1064|      0|    if (pos->value().ok())
  ------------------
  |  Branch (1064:9): [True: 0, False: 0]
  ------------------
 1065|      0|      value |= (mode & 3) << 3;
 1066|      0|#ifndef SUPPRESS_WARNINGS
 1067|      0|    else
 1068|      0|      EXV_WARNING << "Failed to convert " << std::string(from) << "/exif:Mode"
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1069|      0|                  << " to " << to << "\n";
 1070|      0|#endif
 1071|      0|  }
 1072|      0|  pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:Function"));
 1073|      0|  if (pos != xmpData_->end() && pos->count() > 0) {
  ------------------
  |  Branch (1073:7): [True: 0, False: 0]
  |  Branch (1073:7): [True: 0, False: 0]
  |  Branch (1073:33): [True: 0, False: 0]
  ------------------
 1074|      0|    auto function = pos->toUint32();
 1075|      0|    if (pos->value().ok())
  ------------------
  |  Branch (1075:9): [True: 0, False: 0]
  ------------------
 1076|      0|      value |= (function & 1) << 5;
 1077|      0|#ifndef SUPPRESS_WARNINGS
 1078|      0|    else
 1079|      0|      EXV_WARNING << "Failed to convert " << std::string(from) << "/exif:Function"
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1080|      0|                  << " to " << to << "\n";
 1081|      0|#endif
 1082|      0|  }
 1083|      0|  pos = xmpData_->findKey(XmpKey(std::string(from) + "/exif:RedEyeMode"));
 1084|      0|  if (pos != xmpData_->end()) {
  ------------------
  |  Branch (1084:7): [True: 0, False: 0]
  ------------------
 1085|      0|    if (pos->count() > 0) {
  ------------------
  |  Branch (1085:9): [True: 0, False: 0]
  ------------------
 1086|      0|      auto red = pos->toUint32();
 1087|      0|      if (pos->value().ok())
  ------------------
  |  Branch (1087:11): [True: 0, False: 0]
  ------------------
 1088|      0|        value |= (red & 1) << 6;
 1089|      0|#ifndef SUPPRESS_WARNINGS
 1090|      0|      else
 1091|      0|        EXV_WARNING << "Failed to convert " << std::string(from) << "/exif:RedEyeMode"
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1092|      0|                    << " to " << to << "\n";
 1093|      0|#endif
 1094|      0|    }
 1095|      0|    if (erase_)
  ------------------
  |  Branch (1095:9): [True: 0, False: 0]
  ------------------
 1096|      0|      xmpData_->erase(pos);
 1097|      0|  }
 1098|       |
 1099|      0|  (*exifData_)[to] = value;
 1100|      0|}
_ZN5Exiv29Converter14cnvXmpGPSCoordEPKcS2_:
 1102|  2.34k|void Converter::cnvXmpGPSCoord(const char* from, const char* to) {
 1103|  2.34k|  auto pos = xmpData_->findKey(XmpKey(from));
 1104|  2.34k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1104:7): [True: 2.34k, False: 0]
  ------------------
 1105|  2.34k|    return;
 1106|      0|  if (!prepareExifTarget(to))
  ------------------
  |  Branch (1106:7): [True: 0, False: 0]
  ------------------
 1107|      0|    return;
 1108|      0|  std::string value = pos->toString();
 1109|      0|  if (!pos->value().ok()) {
  ------------------
  |  Branch (1109:7): [True: 0, False: 0]
  ------------------
 1110|      0|#ifndef SUPPRESS_WARNINGS
 1111|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1112|      0|#endif
 1113|      0|    return;
 1114|      0|  }
 1115|      0|  if (value.empty()) {
  ------------------
  |  Branch (1115:7): [True: 0, False: 0]
  ------------------
 1116|      0|#ifndef SUPPRESS_WARNINGS
 1117|      0|    EXV_WARNING << from << " is empty\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1118|      0|#endif
 1119|      0|    return;
 1120|      0|  }
 1121|       |
 1122|      0|  double deg = 0.0;
 1123|      0|  double min = 0.0;
 1124|      0|  double sec = 0.0;
 1125|      0|  char ref = value.back();
 1126|      0|  char sep1 = '\0';
 1127|      0|  char sep2 = '\0';
 1128|       |
 1129|      0|  value.pop_back();
 1130|       |
 1131|      0|  std::istringstream in(value);
 1132|       |
 1133|      0|  in >> deg >> sep1 >> min >> sep2;
 1134|       |
 1135|      0|  if (sep2 == ',') {
  ------------------
  |  Branch (1135:7): [True: 0, False: 0]
  ------------------
 1136|      0|    in >> sec;
 1137|      0|  } else {
 1138|      0|    sec = (min - static_cast<int>(min)) * 60.0;
 1139|      0|    min = static_cast<double>(static_cast<int>(min));
 1140|      0|  }
 1141|       |
 1142|      0|  if (in.bad() || (ref != 'N' && ref != 'S' && ref != 'E' && ref != 'W') || sep1 != ',' || !in.eof()) {
  ------------------
  |  Branch (1142:7): [True: 0, False: 0]
  |  Branch (1142:20): [True: 0, False: 0]
  |  Branch (1142:34): [True: 0, False: 0]
  |  Branch (1142:48): [True: 0, False: 0]
  |  Branch (1142:62): [True: 0, False: 0]
  |  Branch (1142:77): [True: 0, False: 0]
  |  Branch (1142:92): [True: 0, False: 0]
  ------------------
 1143|      0|#ifndef SUPPRESS_WARNINGS
 1144|      0|    EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1145|      0|#endif
 1146|      0|    return;
 1147|      0|  }
 1148|       |
 1149|      0|  Rational rdeg = floatToRationalCast(static_cast<float>(deg));
 1150|      0|  Rational rmin = floatToRationalCast(static_cast<float>(min));
 1151|      0|  Rational rsec = floatToRationalCast(static_cast<float>(sec));
 1152|       |
 1153|      0|  std::ostringstream array;
 1154|      0|  array << rdeg << " " << rmin << " " << rsec;
 1155|      0|  (*exifData_)[to] = array.str();
 1156|       |
 1157|      0|  prepareExifTarget((std::string(to) + "Ref").c_str(), true);
 1158|      0|  char ref_str[2] = {ref, 0};
 1159|      0|  (*exifData_)[std::string(to) + "Ref"] = ref_str;
 1160|       |
 1161|      0|  if (erase_)
  ------------------
  |  Branch (1161:7): [True: 0, False: 0]
  ------------------
 1162|      0|    xmpData_->erase(pos);
 1163|      0|}
_ZN5Exiv29Converter17cnvXmpValueToIptcEPKcS2_:
 1193|  12.8k|void Converter::cnvXmpValueToIptc(const char* from, const char* to) {
 1194|  12.8k|  auto pos = xmpData_->findKey(XmpKey(from));
 1195|  12.8k|  if (pos == xmpData_->end())
  ------------------
  |  Branch (1195:7): [True: 12.7k, False: 146]
  ------------------
 1196|  12.7k|    return;
 1197|    146|  if (!prepareIptcTarget(to))
  ------------------
  |  Branch (1197:7): [True: 0, False: 146]
  ------------------
 1198|      0|    return;
 1199|       |
 1200|    146|  if (pos->typeId() == langAlt || pos->typeId() == xmpText) {
  ------------------
  |  Branch (1200:7): [True: 0, False: 146]
  |  Branch (1200:35): [True: 146, False: 0]
  ------------------
 1201|    146|    std::string value;
 1202|    146|    if (!getTextValue(value, pos)) {
  ------------------
  |  Branch (1202:9): [True: 0, False: 146]
  ------------------
 1203|      0|#ifndef SUPPRESS_WARNINGS
 1204|      0|      EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1205|      0|#endif
 1206|      0|      return;
 1207|      0|    }
 1208|    146|    (*iptcData_)[to] = value;
 1209|    146|    (*iptcData_)["Iptc.Envelope.CharacterSet"] = "\033%G";  // indicate UTF-8 encoding
 1210|    146|    if (erase_)
  ------------------
  |  Branch (1210:9): [True: 0, False: 146]
  ------------------
 1211|      0|      xmpData_->erase(pos);
 1212|    146|    return;
 1213|    146|  }
 1214|       |
 1215|      0|  size_t count = pos->count();
 1216|      0|  bool added = false;
 1217|      0|  for (size_t i = 0; i < count; ++i) {
  ------------------
  |  Branch (1217:22): [True: 0, False: 0]
  ------------------
 1218|      0|    std::string value = pos->toString(i);
 1219|      0|    if (!pos->value().ok()) {
  ------------------
  |  Branch (1219:9): [True: 0, False: 0]
  ------------------
 1220|      0|#ifndef SUPPRESS_WARNINGS
 1221|      0|      EXV_WARNING << "Failed to convert " << from << " to " << to << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1222|      0|#endif
 1223|      0|      continue;
 1224|      0|    }
 1225|      0|    IptcKey key(to);
 1226|      0|    Iptcdatum id(key);
 1227|      0|    id.setValue(value);
 1228|      0|    iptcData_->add(id);
 1229|      0|    added = true;
 1230|      0|  }
 1231|      0|  if (added)
  ------------------
  |  Branch (1231:7): [True: 0, False: 0]
  ------------------
 1232|      0|    (*iptcData_)["Iptc.Envelope.CharacterSet"] = "\033%G";  // indicate UTF-8 encoding
 1233|      0|  if (erase_)
  ------------------
  |  Branch (1233:7): [True: 0, False: 0]
  ------------------
 1234|      0|    xmpData_->erase(pos);
 1235|      0|}
_ZN5Exiv213copyXmpToExifERKNS_7XmpDataERNS_8ExifDataE:
 1330|    585|void copyXmpToExif(const XmpData& xmpData, ExifData& exifData) {
 1331|    585|  Converter converter(exifData, const_cast<XmpData&>(xmpData));
 1332|    585|  converter.cnvFromXmp();
 1333|    585|}
_ZN5Exiv213copyXmpToIptcERKNS_7XmpDataERNS_8IptcDataE:
 1368|    585|void copyXmpToIptc(const XmpData& xmpData, IptcData& iptcData) {
 1369|    585|  Converter converter(iptcData, const_cast<XmpData&>(xmpData));
 1370|    585|  converter.cnvFromXmp();
 1371|    585|}
_ZN5Exiv220convertStringCharsetERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKcS9_:
 1380|  3.69k|bool convertStringCharset([[maybe_unused]] std::string& str, const char* from, const char* to) {
 1381|  3.69k|  if (0 == strcmp(from, to))
  ------------------
  |  Branch (1381:7): [True: 54, False: 3.64k]
  ------------------
 1382|     54|    return true;  // nothing to do
 1383|  3.64k|#ifdef EXV_HAVE_ICONV
 1384|  3.64k|  return convertStringCharsetIconv(str, from, to);
 1385|       |#elif defined _WIN32
 1386|       |  return convertStringCharsetWindows(str, from, to);
 1387|       |#else
 1388|       |#ifndef SUPPRESS_WARNINGS
 1389|       |  EXV_WARNING << "Charset conversion required but no character mapping functionality available.\n";
 1390|       |#endif
 1391|       |  return false;
 1392|       |#endif
 1393|  3.69k|}
convert.cpp:_ZN12_GLOBAL__N_125convertStringCharsetIconvERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_17basic_string_viewIcS3_EES9_:
 1402|  3.64k|bool convertStringCharsetIconv(std::string& str, std::string_view from, std::string_view to) {
 1403|  3.64k|  if (from == to)
  ------------------
  |  Branch (1403:7): [True: 0, False: 3.64k]
  ------------------
 1404|      0|    return true;  // nothing to do
 1405|       |
 1406|  3.64k|  bool ret = true;
 1407|  3.64k|  auto cd = iconv_open(to.data(), from.data());
 1408|  3.64k|  if (cd == iconv_t(-1)) {
  ------------------
  |  Branch (1408:7): [True: 0, False: 3.64k]
  ------------------
 1409|      0|#ifndef SUPPRESS_WARNINGS
 1410|      0|    EXV_WARNING << "iconv_open: " << strError() << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1411|      0|#endif
 1412|      0|    return false;
 1413|      0|  }
 1414|  3.64k|  std::string outstr;
 1415|       |#ifdef WINICONV_CONST
 1416|       |  auto inptr = (WINICONV_CONST char*)(str.c_str());
 1417|       |#else
 1418|  3.64k|  auto inptr = (EXV_ICONV_CONST char*)(str.c_str());
 1419|  3.64k|#endif
 1420|  3.64k|  size_t inbytesleft = str.length();
 1421|  7.71k|  while (inbytesleft) {
  ------------------
  |  Branch (1421:10): [True: 6.31k, False: 1.40k]
  ------------------
 1422|  6.31k|    char outbuf[256];
 1423|  6.31k|    char* outptr = outbuf;
 1424|  6.31k|    size_t outbytesleft = sizeof(outbuf);
 1425|  6.31k|    size_t rc = iconv(cd, &inptr, &inbytesleft, &outptr, &outbytesleft);
 1426|  6.31k|    const size_t outbytesProduced = sizeof(outbuf) - outbytesleft;
 1427|  6.31k|    if (rc == std::numeric_limits<size_t>::max() && errno != E2BIG) {
  ------------------
  |  Branch (1427:9): [True: 5.32k, False: 986]
  |  Branch (1427:53): [True: 2.24k, False: 3.08k]
  ------------------
 1428|  2.24k|#ifndef SUPPRESS_WARNINGS
 1429|  2.24k|      EXV_WARNING << "iconv: " << strError() << " inbytesleft = " << inbytesleft << "\n";
  ------------------
  |  |  138|  2.24k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2.24k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  2.24k|  LogMsg(LogMsg::warn).os()
  ------------------
 1430|  2.24k|#endif
 1431|  2.24k|      ret = false;
 1432|  2.24k|      break;
 1433|  2.24k|    }
 1434|  4.06k|    outstr.append(std::string(outbuf, outbytesProduced));
 1435|  4.06k|  }
 1436|       |
 1437|  3.64k|  if (cd)
  ------------------
  |  Branch (1437:7): [True: 3.64k, False: 0]
  ------------------
 1438|  3.64k|    iconv_close(cd);
 1439|       |
 1440|  3.64k|  if (ret)
  ------------------
  |  Branch (1440:7): [True: 1.40k, False: 2.24k]
  ------------------
 1441|  1.40k|    str = std::move(outstr);
 1442|  3.64k|  return ret;
 1443|  3.64k|}
convert.cpp:_ZN12_GLOBAL__N_112getTextValueERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEENS0_11__wrap_iterIPN5Exiv28XmpdatumEEE:
 1592|    156|bool getTextValue(std::string& value, XmpData::iterator pos) {
 1593|    156|  if (pos->typeId() == langAlt) {
  ------------------
  |  Branch (1593:7): [True: 0, False: 156]
  ------------------
 1594|       |    // get the default language entry without x-default qualifier
 1595|      0|    value = pos->toString(0);
 1596|      0|    if (!pos->value().ok() && pos->count() == 1) {
  ------------------
  |  Branch (1596:9): [True: 0, False: 0]
  |  Branch (1596:31): [True: 0, False: 0]
  ------------------
 1597|       |      // If there is no default but exactly one entry, take that
 1598|       |      // without the qualifier
 1599|      0|      value = pos->toString();
 1600|      0|      if (pos->value().ok() && value.starts_with("lang=")) {
  ------------------
  |  Branch (1600:11): [True: 0, False: 0]
  |  Branch (1600:32): [True: 0, False: 0]
  ------------------
 1601|      0|        const std::string::size_type first_space_pos = value.find_first_of(' ');
 1602|      0|        if (first_space_pos != std::string::npos) {
  ------------------
  |  Branch (1602:13): [True: 0, False: 0]
  ------------------
 1603|      0|          value = value.substr(first_space_pos + 1);
 1604|      0|        } else {
 1605|      0|          value.clear();
 1606|      0|        }
 1607|      0|      }
 1608|      0|    }
 1609|    156|  } else {
 1610|    156|    value = pos->toString();
 1611|    156|  }
 1612|    156|  return pos->value().ok();
 1613|    156|}

_ZN5Exiv28Internal9Cr2HeaderC2ENS_9ByteOrderE:
   14|  32.9k|Cr2Header::Cr2Header(ByteOrder byteOrder) : TiffHeaderBase(42, 16, byteOrder, 0x00000010) {
   15|  32.9k|}
_ZN5Exiv28Internal9Cr2Header4readEPKhm:
   17|  32.9k|bool Cr2Header::read(const byte* pData, size_t size) {
   18|  32.9k|  if (!pData || size < 16) {
  ------------------
  |  Branch (18:7): [True: 0, False: 32.9k]
  |  Branch (18:17): [True: 0, False: 32.9k]
  ------------------
   19|      0|    return false;
   20|      0|  }
   21|       |
   22|  32.9k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (22:7): [True: 1.66k, False: 31.2k]
  |  Branch (22:26): [True: 1.64k, False: 18]
  ------------------
   23|  1.64k|    setByteOrder(littleEndian);
   24|  31.2k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (24:14): [True: 17.7k, False: 13.5k]
  |  Branch (24:33): [True: 17.6k, False: 22]
  ------------------
   25|  17.6k|    setByteOrder(bigEndian);
   26|  17.6k|  } else {
   27|  13.6k|    return false;
   28|  13.6k|  }
   29|  19.3k|  if (tag() != getUShort(pData + 2, byteOrder()))
  ------------------
  |  Branch (29:7): [True: 2.66k, False: 16.6k]
  ------------------
   30|  2.66k|    return false;
   31|  16.6k|  setOffset(getULong(pData + 4, byteOrder()));
   32|  16.6k|  if (0 != memcmp(pData + 8, cr2sig_.data(), 4))
  ------------------
  |  Branch (32:7): [True: 13.6k, False: 3.05k]
  ------------------
   33|  13.6k|    return false;
   34|  3.05k|  offset2_ = getULong(pData + 12, byteOrder());
   35|       |
   36|  3.05k|  return true;
   37|  16.6k|}

_ZN5Exiv28Cr2ImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   24|    763|    Image(ImageType::cr2, mdExif | mdIptc | mdXmp, std::move(io)) {
   25|    763|}  // Cr2Image::Cr2Image
_ZNK5Exiv28Cr2Image10pixelWidthEv:
   31|     13|uint32_t Cr2Image::pixelWidth() const {
   32|     13|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension"));
   33|     13|  if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
  ------------------
  |  Branch (33:7): [True: 0, False: 13]
  |  Branch (33:7): [True: 0, False: 13]
  |  Branch (33:40): [True: 0, False: 0]
  ------------------
   34|      0|    return imageWidth->toUint32();
   35|      0|  }
   36|     13|  return 0;
   37|     13|}
_ZNK5Exiv28Cr2Image11pixelHeightEv:
   39|     13|uint32_t Cr2Image::pixelHeight() const {
   40|     13|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension"));
   41|     13|  if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
  ------------------
  |  Branch (41:7): [True: 0, False: 13]
  |  Branch (41:7): [True: 0, False: 13]
  |  Branch (41:41): [True: 0, False: 0]
  ------------------
   42|      0|    return imageHeight->toUint32();
   43|      0|  }
   44|     13|  return 0;
   45|     13|}
_ZN5Exiv28Cr2Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
   47|  1.45k|void Cr2Image::printStructure(std::ostream& out, Exiv2::PrintStructureOption option, size_t depth) {
   48|  1.45k|  if (io_->open() != 0)
  ------------------
  |  Branch (48:7): [True: 0, False: 1.45k]
  ------------------
   49|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   50|  1.45k|  io_->seek(0, BasicIo::beg);
   51|  1.45k|  printTiffStructure(io(), out, option, depth);
   52|  1.45k|}
_ZN5Exiv28Cr2Image12readMetadataEv:
   59|    763|void Cr2Image::readMetadata() {
   60|       |#ifdef EXIV2_DEBUG_MESSAGES
   61|       |  std::cerr << "Reading CR2 file " << io_->path() << "\n";
   62|       |#endif
   63|    763|  if (io_->open() != 0) {
  ------------------
  |  Branch (63:7): [True: 0, False: 763]
  ------------------
   64|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   65|      0|  }
   66|    763|  IoCloser closer(*io_);
   67|       |  // Ensure that this is the correct image type
   68|    763|  if (!isCr2Type(*io_, false)) {
  ------------------
  |  Branch (68:7): [True: 0, False: 763]
  ------------------
   69|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (69:9): [True: 0, False: 0]
  |  Branch (69:25): [True: 0, False: 0]
  ------------------
   70|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   71|      0|    throw Error(ErrorCode::kerNotAnImage, "CR2");
   72|      0|  }
   73|    763|  clearMetadata();
   74|    763|  ByteOrder bo = Cr2Parser::decode(exifData_, iptcData_, xmpData_, io_->mmap(), io_->size());
   75|    763|  setByteOrder(bo);
   76|    763|}  // Cr2Image::readMetadata
_ZN5Exiv29Cr2Parser6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhm:
  102|    763|ByteOrder Cr2Parser::decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size) {
  103|    763|  Internal::Cr2Header cr2Header;
  104|    763|  return Internal::TiffParserWorker::decode(exifData, iptcData, xmpData, pData, size, Internal::Tag::root,
  105|    763|                                            Internal::TiffMapping::findDecoder, &cr2Header);
  106|    763|}
_ZN5Exiv214newCr2InstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  131|    763|Image::UniquePtr newCr2Instance(BasicIo::UniquePtr io, bool create) {
  132|    763|  auto image = std::make_unique<Cr2Image>(std::move(io), create);
  133|    763|  if (!image->good()) {
  ------------------
  |  Branch (133:7): [True: 0, False: 763]
  ------------------
  134|      0|    return nullptr;
  135|      0|  }
  136|    763|  return image;
  137|    763|}
_ZN5Exiv29isCr2TypeERNS_7BasicIoEb:
  139|  32.2k|bool isCr2Type(BasicIo& iIo, bool advance) {
  140|  32.2k|  const int32_t len = 16;
  141|  32.2k|  byte buf[len];
  142|  32.2k|  iIo.read(buf, len);
  143|  32.2k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (143:7): [True: 0, False: 32.2k]
  |  Branch (143:22): [True: 84, False: 32.1k]
  ------------------
  144|     84|    return false;
  145|     84|  }
  146|  32.1k|  Internal::Cr2Header header;
  147|  32.1k|  bool rc = header.read(buf, len);
  148|  32.1k|  if (!advance || !rc) {
  ------------------
  |  Branch (148:7): [True: 32.1k, False: 0]
  |  Branch (148:19): [True: 0, False: 0]
  ------------------
  149|  32.1k|    iIo.seek(-len, BasicIo::cur);
  150|  32.1k|  }
  151|  32.1k|  return rc;
  152|  32.2k|}

_ZN5Exiv28CrwImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   26|    228|CrwImage::CrwImage(BasicIo::UniquePtr io, bool /*create*/) : Image(ImageType::crw, mdExif | mdComment, std::move(io)) {
   27|    228|}  // CrwImage::CrwImage
_ZNK5Exiv28CrwImage10pixelWidthEv:
   33|     17|uint32_t CrwImage::pixelWidth() const {
   34|     17|  auto widthIter = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelXDimension"));
   35|     17|  if (widthIter != exifData_.end() && widthIter->count() > 0) {
  ------------------
  |  Branch (35:7): [True: 0, False: 17]
  |  Branch (35:7): [True: 0, False: 17]
  |  Branch (35:39): [True: 0, False: 0]
  ------------------
   36|      0|    return widthIter->toUint32();
   37|      0|  }
   38|     17|  return 0;
   39|     17|}
_ZNK5Exiv28CrwImage11pixelHeightEv:
   41|     17|uint32_t CrwImage::pixelHeight() const {
   42|     17|  auto heightIter = exifData_.findKey(Exiv2::ExifKey("Exif.Photo.PixelYDimension"));
   43|     17|  if (heightIter != exifData_.end() && heightIter->count() > 0) {
  ------------------
  |  Branch (43:7): [True: 0, False: 17]
  |  Branch (43:7): [True: 0, False: 17]
  |  Branch (43:40): [True: 0, False: 0]
  ------------------
   44|      0|    return heightIter->toUint32();
   45|      0|  }
   46|     17|  return 0;
   47|     17|}
_ZN5Exiv28CrwImage12readMetadataEv:
   54|    228|void CrwImage::readMetadata() {
   55|       |#ifdef EXIV2_DEBUG_MESSAGES
   56|       |  std::cerr << "Reading CRW file " << io_->path() << "\n";
   57|       |#endif
   58|    228|  if (io_->open()) {
  ------------------
  |  Branch (58:7): [True: 0, False: 228]
  ------------------
   59|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   60|      0|  }
   61|    228|  IoCloser closer(*io_);
   62|       |  // Ensure that this is the correct image type
   63|    228|  if (!isCrwType(*io_, false)) {
  ------------------
  |  Branch (63:7): [True: 0, False: 228]
  ------------------
   64|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (64:9): [True: 0, False: 0]
  |  Branch (64:25): [True: 0, False: 0]
  ------------------
   65|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   66|      0|    throw Error(ErrorCode::kerNotACrwImage);
   67|      0|  }
   68|    228|  clearMetadata();
   69|    228|  DataBuf file(io().size());
   70|    228|  io_->read(file.data(), file.size());
   71|       |
   72|    228|  CrwParser::decode(this, io_->mmap(), io_->size());
   73|       |
   74|    228|}  // CrwImage::readMetadata
_ZN5Exiv29CrwParser6decodeEPNS_8CrwImageEPKhm:
  106|    228|void CrwParser::decode(CrwImage* pCrwImage, const byte* pData, size_t size) {
  107|       |  // Parse the image, starting with a CIFF header component
  108|    228|  Internal::CiffHeader header;
  109|    228|  header.read(pData, size);
  110|    228|  header.decode(*pCrwImage);
  111|       |
  112|       |  // a hack to get absolute offset of preview image inside CRW structure
  113|    228|  if (auto preview = header.findComponent(0x2007, 0x0000)) {
  ------------------
  |  Branch (113:12): [True: 1, False: 227]
  ------------------
  114|      1|    (pCrwImage->exifData())["Exif.Image2.JPEGInterchangeFormat"] = static_cast<uint32_t>(preview->pData() - pData);
  115|      1|    (pCrwImage->exifData())["Exif.Image2.JPEGInterchangeFormatLength"] = static_cast<uint32_t>(preview->size());
  116|      1|  }
  117|    228|}  // CrwParser::decode
_ZN5Exiv214newCrwInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  134|    228|Image::UniquePtr newCrwInstance(BasicIo::UniquePtr io, bool create) {
  135|    228|  auto image = std::make_unique<CrwImage>(std::move(io), create);
  136|    228|  if (!image->good()) {
  ------------------
  |  Branch (136:7): [True: 0, False: 228]
  ------------------
  137|      0|    return nullptr;
  138|      0|  }
  139|    228|  return image;
  140|    228|}
_ZN5Exiv29isCrwTypeERNS_7BasicIoEb:
  142|  30.4k|bool isCrwType(BasicIo& iIo, bool advance) {
  143|  30.4k|  bool result = true;
  144|  30.4k|  byte tmpBuf[14];
  145|  30.4k|  iIo.read(tmpBuf, 14);
  146|  30.4k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (146:7): [True: 0, False: 30.4k]
  |  Branch (146:22): [True: 84, False: 30.3k]
  ------------------
  147|     84|    return false;
  148|     84|  }
  149|  30.3k|  if (('I' != tmpBuf[0] || 'I' != tmpBuf[1]) && ('M' != tmpBuf[0] || 'M' != tmpBuf[1])) {
  ------------------
  |  Branch (149:8): [True: 29.0k, False: 1.33k]
  |  Branch (149:28): [True: 18, False: 1.31k]
  |  Branch (149:50): [True: 13.5k, False: 15.4k]
  |  Branch (149:70): [True: 22, False: 15.4k]
  ------------------
  150|  13.6k|    result = false;
  151|  13.6k|  }
  152|  30.3k|  if (result && std::memcmp(tmpBuf + 6, Internal::CiffHeader::signature(), 8) != 0) {
  ------------------
  |  Branch (152:7): [True: 16.7k, False: 13.6k]
  |  Branch (152:17): [True: 16.0k, False: 684]
  ------------------
  153|  16.0k|    result = false;
  154|  16.0k|  }
  155|  30.3k|  if (!advance || !result)
  ------------------
  |  Branch (155:7): [True: 30.3k, False: 0]
  |  Branch (155:19): [True: 0, False: 0]
  ------------------
  156|  30.3k|    iIo.seek(-14, BasicIo::cur);
  157|  30.3k|  return result;
  158|  30.4k|}

_ZN5Exiv28Internal13CiffComponent3addENSt3__110unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  126|    709|const CiffComponent::UniquePtr& CiffComponent::add(UniquePtr component) {
  127|    709|  return doAdd(std::move(component));
  128|    709|}
_ZN5Exiv28Internal13CiffDirectory5doAddENSt3__110unique_ptrINS0_13CiffComponentENS2_14default_deleteIS4_EEEE:
  134|    709|const CiffComponent::UniquePtr& CiffDirectory::doAdd(UniquePtr component) {
  135|    709|  return components_.emplace_back(std::move(component));
  136|    709|}  // CiffDirectory::doAdd
_ZN5Exiv28Internal10CiffHeader4readEPKhm:
  140|    228|void CiffHeader::read(const byte* pData, size_t size) {
  141|    228|  if (size < 14)
  ------------------
  |  Branch (141:7): [True: 0, False: 228]
  ------------------
  142|      0|    throw Error(ErrorCode::kerNotACrwImage);
  143|       |
  144|    228|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (144:7): [True: 87, False: 141]
  |  Branch (144:26): [True: 87, False: 0]
  ------------------
  145|     87|    byteOrder_ = littleEndian;
  146|    141|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (146:14): [True: 141, False: 0]
  |  Branch (146:33): [True: 141, False: 0]
  ------------------
  147|    141|    byteOrder_ = bigEndian;
  148|    141|  } else {
  149|      0|    throw Error(ErrorCode::kerNotACrwImage);
  150|      0|  }
  151|    228|  offset_ = getULong(pData + 2, byteOrder_);
  152|    228|  if (offset_ < 14 || offset_ > size)
  ------------------
  |  Branch (152:7): [True: 1, False: 227]
  |  Branch (152:23): [True: 24, False: 203]
  ------------------
  153|     25|    throw Error(ErrorCode::kerNotACrwImage);
  154|    203|  if (std::memcmp(pData + 6, signature(), 8) != 0) {
  ------------------
  |  Branch (154:7): [True: 0, False: 203]
  ------------------
  155|      0|    throw Error(ErrorCode::kerNotACrwImage);
  156|      0|  }
  157|       |
  158|    203|  pPadding_.clear();
  159|    203|  if (offset_ > 14) {
  ------------------
  |  Branch (159:7): [True: 180, False: 23]
  ------------------
  160|    180|    pPadding_.resize(offset_ - 14);
  161|    180|    padded_ = offset_ - 14;
  162|    180|    std::copy_n(pData + 14, padded_, pPadding_.begin());
  163|    180|  }
  164|       |
  165|    203|  pRootDir_ = std::make_unique<CiffDirectory>();
  166|    203|  pRootDir_->readDirectory(pData + offset_, size - offset_, byteOrder_);
  167|    203|}  // CiffHeader::read
_ZN5Exiv28Internal13CiffComponent4readEPKhmjNS_9ByteOrderE:
  169|    818|void CiffComponent::read(const byte* pData, size_t size, uint32_t start, ByteOrder byteOrder) {
  170|    818|  doRead(pData, size, start, byteOrder);
  171|    818|}
_ZN5Exiv28Internal13CiffComponent6doReadEPKhmjNS_9ByteOrderE:
  173|    818|void CiffComponent::doRead(const byte* pData, size_t size, uint32_t start, ByteOrder byteOrder) {
  174|       |  // We're going read 10 bytes. Make sure they won't be out-of-bounds.
  175|    818|  enforce(size >= 10 && start <= size - 10, ErrorCode::kerNotACrwImage);
  ------------------
  |  Branch (175:11): [True: 818, False: 0]
  |  Branch (175:25): [True: 818, False: 0]
  ------------------
  176|    818|  tag_ = getUShort(pData + start, byteOrder);
  177|       |
  178|    818|  DataLocId dl = dataLocation();
  179|       |
  180|    818|  if (dl == DataLocId::valueData) {
  ------------------
  |  Branch (180:7): [True: 342, False: 476]
  ------------------
  181|    342|    size_ = getULong(pData + start + 2, byteOrder);
  182|    342|    offset_ = getULong(pData + start + 6, byteOrder);
  183|       |
  184|       |    // Make sure that the sub-region does not overlap with the 10 bytes
  185|       |    // that we just read. (Otherwise a malicious file could cause an
  186|       |    // infinite recursion.) There are two cases two consider because
  187|       |    // the sub-region is allowed to be either before or after the 10
  188|       |    // bytes in memory.
  189|    342|    if (offset_ < start) {
  ------------------
  |  Branch (189:9): [True: 198, False: 144]
  ------------------
  190|       |      // Sub-region is before in memory.
  191|    198|      enforce(size_ <= start - offset_, ErrorCode::kerOffsetOutOfRange);
  192|    198|    } else {
  193|       |      // Sub-region is after in memory.
  194|    144|      enforce(offset_ >= start + 10, ErrorCode::kerOffsetOutOfRange);
  195|    144|      enforce(offset_ <= size, ErrorCode::kerOffsetOutOfRange);
  196|    144|      enforce(size_ <= size - offset_, ErrorCode::kerOffsetOutOfRange);
  197|    144|    }
  198|    342|  }
  199|    818|  if (dl == DataLocId::directoryData) {
  ------------------
  |  Branch (199:7): [True: 462, False: 356]
  ------------------
  200|    462|    size_ = 8;
  201|    462|    offset_ = start + 2;
  202|    462|  }
  203|    818|  pData_ = pData + offset_;
  204|       |#ifdef EXIV2_DEBUG_MESSAGES
  205|       |  std::cout << "  Entry for tag 0x" << std::hex << tagId() << " (0x" << tag() << "), " << std::dec << size_
  206|       |            << " Bytes, Offset is " << offset_ << "\n";
  207|       |#endif
  208|       |
  209|    818|}  // CiffComponent::doRead
_ZN5Exiv28Internal13CiffDirectory6doReadEPKhmjNS_9ByteOrderE:
  211|     99|void CiffDirectory::doRead(const byte* pData, size_t size, uint32_t start, ByteOrder byteOrder) {
  212|     99|  CiffComponent::doRead(pData, size, start, byteOrder);
  213|       |#ifdef EXIV2_DEBUG_MESSAGES
  214|       |  std::cout << "Reading directory 0x" << std::hex << tag() << "\n";
  215|       |#endif
  216|     99|  if (this->offset() + this->size() > size)
  ------------------
  |  Branch (216:7): [True: 0, False: 99]
  ------------------
  217|      0|    throw Error(ErrorCode::kerOffsetOutOfRange);
  218|       |
  219|     99|  readDirectory(pData + offset(), this->size(), byteOrder);
  220|       |#ifdef EXIV2_DEBUG_MESSAGES
  221|       |  std::cout << "<---- 0x" << std::hex << tag() << "\n";
  222|       |#endif
  223|     99|}  // CiffDirectory::doRead
_ZN5Exiv28Internal13CiffDirectory13readDirectoryEPKhmNS_9ByteOrderE:
  225|    280|void CiffDirectory::readDirectory(const byte* pData, size_t size, ByteOrder byteOrder) {
  226|    280|  if (size < 4)
  ------------------
  |  Branch (226:7): [True: 5, False: 275]
  ------------------
  227|      5|    throw Error(ErrorCode::kerCorruptedMetadata);
  228|    275|  uint32_t o = getULong(pData + size - 4, byteOrder);
  229|    275|  if (o > size - 2)
  ------------------
  |  Branch (229:7): [True: 18, False: 257]
  ------------------
  230|     18|    throw Error(ErrorCode::kerCorruptedMetadata);
  231|    257|  uint16_t count = getUShort(pData + o, byteOrder);
  232|       |#ifdef EXIV2_DEBUG_MESSAGES
  233|       |  std::cout << "Directory at offset " << std::dec << o << ", " << count << " entries \n";
  234|       |#endif
  235|    257|  o += 2;
  236|    257|  if (count * 10u > size - o)
  ------------------
  |  Branch (236:7): [True: 12, False: 245]
  ------------------
  237|     12|    throw Error(ErrorCode::kerCorruptedMetadata);
  238|       |
  239|  1.06k|  for (uint16_t i = 0; i < count; ++i) {
  ------------------
  |  Branch (239:24): [True: 818, False: 245]
  ------------------
  240|    818|    uint16_t tag = getUShort(pData + o, byteOrder);
  241|    818|    auto m = [this, tag]() -> UniquePtr {
  242|    818|      if (this->typeId(tag) == TypeId::directory)
  243|    818|        return std::make_unique<CiffDirectory>();
  244|    818|      return std::make_unique<CiffEntry>();
  245|    818|    }();
  246|    818|    m->setDir(this->tag());
  247|    818|    m->read(pData, size, o, byteOrder);
  248|    818|    add(std::move(m));
  249|    818|    o += 10;
  250|    818|  }
  251|    245|}  // CiffDirectory::readDirectory
_ZNK5Exiv28Internal10CiffHeader6decodeERNS_5ImageE:
  253|     75|void CiffHeader::decode(Image& image) const {
  254|       |  // Nothing to decode from the header itself, just add correct byte order
  255|     75|  if (pRootDir_)
  ------------------
  |  Branch (255:7): [True: 75, False: 0]
  ------------------
  256|     75|    pRootDir_->decode(image, byteOrder_);
  257|     75|}
_ZNK5Exiv28Internal13CiffComponent6decodeERNS_5ImageENS_9ByteOrderE:
  259|    268|void CiffComponent::decode(Image& image, ByteOrder byteOrder) const {
  260|    268|  doDecode(image, byteOrder);
  261|    268|}
_ZNK5Exiv28Internal9CiffEntry8doDecodeERNS_5ImageENS_9ByteOrderE:
  263|    139|void CiffEntry::doDecode(Image& image, ByteOrder byteOrder) const {
  264|    139|  CrwMap::decode(*this, image, byteOrder);
  265|    139|}  // CiffEntry::doDecode
_ZNK5Exiv28Internal13CiffDirectory8doDecodeERNS_5ImageENS_9ByteOrderE:
  267|    129|void CiffDirectory::doDecode(Image& image, ByteOrder byteOrder) const {
  268|    193|  for (auto&& component : components_) {
  ------------------
  |  Branch (268:25): [True: 193, False: 129]
  ------------------
  269|    193|    component->decode(image, byteOrder);
  270|    193|  }
  271|    129|}  // CiffDirectory::doDecode
_ZN5Exiv28Internal13CiffComponent6typeIdEt:
  435|    942|TypeId CiffComponent::typeId(uint16_t tag) {
  436|    942|  switch (tag & 0x3800) {
  ------------------
  |  Branch (436:11): [True: 809, False: 133]
  ------------------
  437|    422|    case 0x0000:
  ------------------
  |  Branch (437:5): [True: 422, False: 520]
  ------------------
  438|    422|      return unsignedByte;
  439|    122|    case 0x0800:
  ------------------
  |  Branch (439:5): [True: 122, False: 820]
  ------------------
  440|    122|      return asciiString;
  441|    108|    case 0x1000:
  ------------------
  |  Branch (441:5): [True: 108, False: 834]
  ------------------
  442|    108|      return unsignedShort;
  443|      7|    case 0x1800:
  ------------------
  |  Branch (443:5): [True: 7, False: 935]
  ------------------
  444|      7|      return unsignedLong;
  445|     51|    case 0x2000:
  ------------------
  |  Branch (445:5): [True: 51, False: 891]
  ------------------
  446|     51|      return undefined;
  447|     51|    case 0x2800:
  ------------------
  |  Branch (447:5): [True: 51, False: 891]
  ------------------
  448|     99|    case 0x3000:
  ------------------
  |  Branch (448:5): [True: 48, False: 894]
  ------------------
  449|     99|      return directory;
  450|    942|  }
  451|    133|  return invalidTypeId;
  452|    942|}  // CiffComponent::typeId
_ZN5Exiv28Internal13CiffComponent12dataLocationEt:
  454|    818|DataLocId CiffComponent::dataLocation(uint16_t tag) {
  455|    818|  switch (tag & 0xc000) {
  456|    342|    case 0x0000:
  ------------------
  |  Branch (456:5): [True: 342, False: 476]
  ------------------
  457|    342|      return DataLocId::valueData;
  458|    462|    case 0x4000:
  ------------------
  |  Branch (458:5): [True: 462, False: 356]
  ------------------
  459|    462|      return DataLocId::directoryData;
  460|     14|    default:
  ------------------
  |  Branch (460:5): [True: 14, False: 804]
  ------------------
  461|     14|      throw Error(ErrorCode::kerCorruptedMetadata);
  462|    818|  }
  463|    818|}  // CiffComponent::dataLocation
_ZNK5Exiv28Internal10CiffHeader13findComponentEtt:
  470|     74|CiffComponent* CiffHeader::findComponent(uint16_t crwTagId, uint16_t crwDir) const {
  471|     74|  if (!pRootDir_)
  ------------------
  |  Branch (471:7): [True: 0, False: 74]
  ------------------
  472|      0|    return nullptr;
  473|     74|  return pRootDir_->findComponent(crwTagId, crwDir);
  474|     74|}  // CiffHeader::findComponent
_ZN5Exiv28Internal13CiffComponent13findComponentEtt:
  476|    263|CiffComponent* CiffComponent::findComponent(uint16_t crwTagId, uint16_t crwDir) {
  477|    263|  return doFindComponent(crwTagId, crwDir);
  478|    263|}  // CiffComponent::findComponent
_ZN5Exiv28Internal13CiffComponent15doFindComponentEtt:
  480|    136|CiffComponent* CiffComponent::doFindComponent(uint16_t crwTagId, uint16_t crwDir) {
  481|    136|  if (tagId() == crwTagId && dir() == crwDir) {
  ------------------
  |  Branch (481:7): [True: 1, False: 135]
  |  Branch (481:30): [True: 1, False: 0]
  ------------------
  482|      1|    return this;
  483|      1|  }
  484|    135|  return nullptr;
  485|    136|}  // CiffComponent::doFindComponent
_ZN5Exiv28Internal13CiffDirectory15doFindComponentEtt:
  487|    127|CiffComponent* CiffDirectory::doFindComponent(uint16_t crwTagId, uint16_t crwDir) {
  488|    189|  for (auto&& component : components_) {
  ------------------
  |  Branch (488:25): [True: 189, False: 126]
  ------------------
  489|    189|    if (auto cc = component->findComponent(crwTagId, crwDir))
  ------------------
  |  Branch (489:14): [True: 1, False: 188]
  ------------------
  490|      1|      return cc;
  491|    189|  }
  492|    126|  return nullptr;
  493|    127|}  // CiffDirectory::doFindComponent
_ZN5Exiv28Internal6CrwMap6decodeERKNS0_13CiffComponentERNS_5ImageENS_9ByteOrderE:
  604|    139|void CrwMap::decode(const CiffComponent& ciffComponent, Image& image, ByteOrder byteOrder) {
  605|    139|  const CrwMapping* cmi = crwMapping(ciffComponent.dir(), ciffComponent.tagId());
  606|    139|  if (cmi && cmi->toExif_) {
  ------------------
  |  Branch (606:7): [True: 54, False: 85]
  |  Branch (606:14): [True: 54, False: 0]
  ------------------
  607|     54|    cmi->toExif_(ciffComponent, cmi, image, byteOrder);
  608|     54|  }
  609|    139|}  // CrwMap::decode
_ZN5Exiv28Internal6CrwMap10crwMappingEtt:
  611|    139|const CrwMapping* CrwMap::crwMapping(uint16_t crwDir, uint16_t crwTagId) {
  612|  2.26k|  for (auto&& crw : crwMapping_) {
  ------------------
  |  Branch (612:19): [True: 2.26k, False: 85]
  ------------------
  613|  2.26k|    if (crw.crwDir_ == crwDir && crw.crwTagId_ == crwTagId) {
  ------------------
  |  Branch (613:9): [True: 341, False: 1.92k]
  |  Branch (613:34): [True: 54, False: 287]
  ------------------
  614|     54|      return &crw;
  615|     54|    }
  616|  2.26k|  }
  617|     85|  return nullptr;
  618|    139|}  // CrwMap::crwMapping
_ZN5Exiv28Internal6CrwMap12decode0x0805ERKNS0_13CiffComponentEPKNS0_10CrwMappingERNS_5ImageENS_9ByteOrderE:
  621|      2|                          ByteOrder /*byteOrder*/) {
  622|      2|  auto s = std::string(reinterpret_cast<const char*>(ciffComponent.pData()), ciffComponent.size());
  623|      2|  image.setComment(s);
  624|      2|}  // CrwMap::decode0x0805
_ZN5Exiv28Internal6CrwMap12decode0x080aERKNS0_13CiffComponentEPKNS0_10CrwMappingERNS_5ImageENS_9ByteOrderE:
  627|     13|                          ByteOrder byteOrder) {
  628|     13|  if (ciffComponent.typeId() != asciiString)
  ------------------
  |  Branch (628:7): [True: 0, False: 13]
  ------------------
  629|      0|    return;
  630|       |
  631|       |  // Make
  632|     13|  ExifKey key1("Exif.Image.Make");
  633|     13|  auto value1 = Value::create(ciffComponent.typeId());
  634|     13|  uint32_t i = 0;
  635|     42|  while (i < ciffComponent.size()) {
  ------------------
  |  Branch (635:10): [True: 37, False: 5]
  ------------------
  636|     37|    ++i;
  637|     37|    if (ciffComponent.pData()[i - 1] == '\0') {
  ------------------
  |  Branch (637:9): [True: 8, False: 29]
  ------------------
  638|      8|      break;
  639|      8|    }
  640|     37|  }
  641|     13|  value1->read(ciffComponent.pData(), i, byteOrder);
  642|     13|  image.exifData().add(key1, value1.get());
  643|       |
  644|       |  // Model
  645|     13|  ExifKey key2("Exif.Image.Model");
  646|     13|  auto value2 = Value::create(ciffComponent.typeId());
  647|     13|  uint32_t j = i;
  648|     37|  while (i < ciffComponent.size()) {
  ------------------
  |  Branch (648:10): [True: 30, False: 7]
  ------------------
  649|     30|    ++i;
  650|     30|    if (ciffComponent.pData()[i - 1] == '\0') {
  ------------------
  |  Branch (650:9): [True: 6, False: 24]
  ------------------
  651|      6|      break;
  652|      6|    }
  653|     30|  }
  654|     13|  value2->read(ciffComponent.pData() + j, i - j, byteOrder);
  655|     13|  image.exifData().add(key2, value2.get());
  656|     13|}  // CrwMap::decode0x080a
_ZN5Exiv28Internal6CrwMap11decodeArrayERKNS0_13CiffComponentEPKNS0_10CrwMappingERNS_5ImageENS_9ByteOrderE:
  659|     10|                         ByteOrder byteOrder) {
  660|     10|  if (ciffComponent.typeId() != unsignedShort) {
  ------------------
  |  Branch (660:7): [True: 0, False: 10]
  ------------------
  661|      0|    decodeBasic(ciffComponent, pCrwMapping, image, byteOrder);
  662|      0|    return;
  663|      0|  }
  664|       |
  665|     10|  int64_t aperture = 0;
  666|     10|  int64_t shutterSpeed = 0;
  667|       |
  668|     10|  auto ifdId = [pCrwMapping] {
  669|     10|    if (pCrwMapping->tag_ == 0x0001)
  670|     10|      return IfdId::canonCsId;
  671|     10|    if (pCrwMapping->tag_ == 0x0004)
  672|     10|      return IfdId::canonSiId;
  673|     10|    if (pCrwMapping->tag_ == 0x000f)
  674|     10|      return IfdId::canonCfId;
  675|     10|    if (pCrwMapping->tag_ == 0x0012)
  676|     10|      return IfdId::canonPiId;
  677|     10|    return IfdId::ifdIdNotSet;
  678|     10|  }();
  679|       |
  680|     10|  std::string groupName(Internal::groupName(ifdId));
  681|     10|  const size_t component_size = ciffComponent.size();
  682|     10|  enforce(component_size % 2 == 0, ErrorCode::kerCorruptedMetadata);
  683|     10|  enforce(component_size / 2 <= static_cast<size_t>(std::numeric_limits<uint16_t>::max()),
  684|     10|          ErrorCode::kerCorruptedMetadata);
  685|     10|  const auto num_components = static_cast<uint16_t>(component_size / 2);
  686|     10|  uint16_t c = 1;
  687|     28|  while (c < num_components) {
  ------------------
  |  Branch (687:10): [True: 18, False: 10]
  ------------------
  688|     18|    uint16_t n = 1;
  689|     18|    ExifKey key(c, groupName);
  690|     18|    UShortValue value;
  691|     18|    if (ifdId == IfdId::canonCsId && c == 23 && component_size >= 52)
  ------------------
  |  Branch (691:9): [True: 9, False: 9]
  |  Branch (691:38): [True: 0, False: 9]
  |  Branch (691:49): [True: 0, False: 0]
  ------------------
  692|      0|      n = 3;
  693|     18|    value.read(ciffComponent.pData() + (c * 2), n * 2, byteOrder);
  694|     18|    image.exifData().add(key, &value);
  695|     18|    if (ifdId == IfdId::canonSiId && c == 21)
  ------------------
  |  Branch (695:9): [True: 6, False: 12]
  |  Branch (695:38): [True: 0, False: 6]
  ------------------
  696|      0|      aperture = value.toInt64();
  697|     18|    if (ifdId == IfdId::canonSiId && c == 22)
  ------------------
  |  Branch (697:9): [True: 6, False: 12]
  |  Branch (697:38): [True: 0, False: 6]
  ------------------
  698|      0|      shutterSpeed = value.toInt64();
  699|     18|    c += n;
  700|     18|  }
  701|       |
  702|     10|  if (ifdId == IfdId::canonSiId) {
  ------------------
  |  Branch (702:7): [True: 2, False: 8]
  ------------------
  703|       |    // Exif.Photo.FNumber
  704|      2|    float f = fnumber(canonEv(aperture));
  705|      2|    auto [r, s] = floatToRationalCast(f);
  706|      2|    auto ur = URational(r, s);
  707|      2|    URationalValue fn;
  708|      2|    fn.value_.push_back(ur);
  709|      2|    image.exifData().add(ExifKey("Exif.Photo.FNumber"), &fn);
  710|       |
  711|       |    // Exif.Photo.ExposureTime
  712|      2|    ur = exposureTime(canonEv(shutterSpeed));
  713|      2|    URationalValue et;
  714|      2|    et.value_.push_back(ur);
  715|      2|    image.exifData().add(ExifKey("Exif.Photo.ExposureTime"), &et);
  716|      2|  }
  717|     10|}  // CrwMap::decodeArray
_ZN5Exiv28Internal6CrwMap12decode0x2008ERKNS0_13CiffComponentEPKNS0_10CrwMappingERNS_5ImageENS_9ByteOrderE:
  770|      4|                          ByteOrder /*byteOrder*/) {
  771|      4|  ExifThumb exifThumb(image.exifData());
  772|      4|  exifThumb.setJpegThumbnail(ciffComponent.pData(), ciffComponent.size());
  773|      4|}  // CrwMap::decode0x2008
_ZN5Exiv28Internal6CrwMap11decodeBasicERKNS0_13CiffComponentEPKNS0_10CrwMappingERNS_5ImageENS_9ByteOrderE:
  776|     25|                         ByteOrder byteOrder) {
  777|       |  // create a key and value pair
  778|     25|  ExifKey key(pCrwMapping->tag_, Internal::groupName(pCrwMapping->ifdId_));
  779|     25|  Value::UniquePtr value;
  780|     25|  if (ciffComponent.typeId() != directory) {
  ------------------
  |  Branch (780:7): [True: 25, False: 0]
  ------------------
  781|     25|    value = Value::create(ciffComponent.typeId());
  782|     25|    size_t size = 0;
  783|     25|    if (pCrwMapping->size_ != 0) {
  ------------------
  |  Branch (783:9): [True: 0, False: 25]
  ------------------
  784|      0|      size = pCrwMapping->size_;  // size in the mapping table overrides all
  785|     25|    } else if (ciffComponent.typeId() == asciiString) {
  ------------------
  |  Branch (785:16): [True: 13, False: 12]
  ------------------
  786|       |      // determine size from the data, by looking for the first 0
  787|     13|      uint32_t i = 0;
  788|     52|      while (i < ciffComponent.size()) {
  ------------------
  |  Branch (788:14): [True: 49, False: 3]
  ------------------
  789|     49|        ++i;
  790|     49|        if (ciffComponent.pData()[i - 1] == '\0') {
  ------------------
  |  Branch (790:13): [True: 10, False: 39]
  ------------------
  791|     10|          break;
  792|     10|        }
  793|     49|      }
  794|     13|      size = i;
  795|     13|    } else {
  796|       |      // by default, use the size from the directory entry
  797|     12|      size = ciffComponent.size();
  798|     12|    }
  799|     25|    value->read(ciffComponent.pData(), size, byteOrder);
  800|     25|  }
  801|       |  // Add metadatum to exif data
  802|     25|  image.exifData().add(key, value.get());
  803|     25|}  // CrwMap::decodeBasic
crwimage_int.cpp:_ZZN5Exiv28Internal13CiffDirectory13readDirectoryEPKhmNS_9ByteOrderEENK3$_0clEv:
  241|    818|    auto m = [this, tag]() -> UniquePtr {
  242|    818|      if (this->typeId(tag) == TypeId::directory)
  ------------------
  |  Branch (242:11): [True: 99, False: 719]
  ------------------
  243|     99|        return std::make_unique<CiffDirectory>();
  244|    719|      return std::make_unique<CiffEntry>();
  245|    818|    }();
crwimage_int.cpp:_ZZN5Exiv28Internal6CrwMap11decodeArrayERKNS0_13CiffComponentEPKNS0_10CrwMappingERNS_5ImageENS_9ByteOrderEENK3$_0clEv:
  668|     10|  auto ifdId = [pCrwMapping] {
  669|     10|    if (pCrwMapping->tag_ == 0x0001)
  ------------------
  |  Branch (669:9): [True: 3, False: 7]
  ------------------
  670|      3|      return IfdId::canonCsId;
  671|      7|    if (pCrwMapping->tag_ == 0x0004)
  ------------------
  |  Branch (671:9): [True: 3, False: 4]
  ------------------
  672|      3|      return IfdId::canonSiId;
  673|      4|    if (pCrwMapping->tag_ == 0x000f)
  ------------------
  |  Branch (673:9): [True: 2, False: 2]
  ------------------
  674|      2|      return IfdId::canonCfId;
  675|      2|    if (pCrwMapping->tag_ == 0x0012)
  ------------------
  |  Branch (675:9): [True: 2, False: 0]
  ------------------
  676|      2|      return IfdId::canonPiId;
  677|      0|    return IfdId::ifdIdNotSet;
  678|      2|  }();

_ZNK5Exiv28Internal13CiffComponent5pDataEv:
  213|    192|  [[nodiscard]] const byte* pData() const {
  214|    192|    return pData_;
  215|    192|  }
_ZNK5Exiv28Internal13CiffComponent4sizeEv:
  203|    314|  [[nodiscard]] size_t size() const {
  204|    314|    return size_;
  205|    314|  }
_ZN5Exiv28Internal10CiffHeader9signatureEv:
  418|  16.9k|  static auto signature() {
  419|  16.9k|    return signature_;
  420|  16.9k|  }
_ZN5Exiv28Internal13CiffComponent6setDirEt:
  146|    818|  void setDir(uint16_t dir) {
  147|    818|    dir_ = dir;
  148|    818|  }
_ZNK5Exiv28Internal13CiffComponent3dirEv:
  183|    140|  [[nodiscard]] uint16_t dir() const {
  184|    140|    return dir_;
  185|    140|  }
_ZNK5Exiv28Internal13CiffComponent3tagEv:
  188|    818|  [[nodiscard]] uint16_t tag() const {
  189|    818|    return tag_;
  190|    818|  }
_ZNK5Exiv28Internal13CiffComponent6offsetEv:
  208|    154|  [[nodiscard]] size_t offset() const {
  209|    154|    return offset_;
  210|    154|  }
_ZNK5Exiv28Internal13CiffComponent5tagIdEv:
  218|    275|  [[nodiscard]] uint16_t tagId() const {
  219|    275|    return tag_ & 0x3fff;
  220|    275|  }
_ZNK5Exiv28Internal13CiffComponent6typeIdEv:
  223|    124|  [[nodiscard]] TypeId typeId() const {
  224|    124|    return typeId(tag_);
  225|    124|  }
_ZNK5Exiv28Internal13CiffComponent12dataLocationEv:
  228|    818|  [[nodiscard]] DataLocId dataLocation() const {
  229|    818|    return dataLocation(tag_);
  230|    818|  }
_ZN5Exiv28Internal13CiffComponentC2Ev:
   71|  1.02k|  CiffComponent() = default;
_ZN5Exiv28Internal13CiffComponentD2Ev:
   75|  1.02k|  virtual ~CiffComponent() = default;

_ZN5Exiv212IptcDataSets10dataSetIdxEtt:
  377|   119k|int IptcDataSets::dataSetIdx(uint16_t number, uint16_t recordId) {
  378|   119k|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (378:7): [True: 99.4k, False: 20.0k]
  |  Branch (378:31): [True: 85.7k, False: 13.6k]
  ------------------
  379|  85.7k|    return -1;
  380|  33.6k|  const DataSet* dataSet = records_[recordId];
  381|  33.6k|  int idx;
  382|   627k|  for (idx = 0; dataSet[idx].number_ != number; ++idx) {
  ------------------
  |  Branch (382:17): [True: 611k, False: 16.0k]
  ------------------
  383|   611k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (383:9): [True: 17.5k, False: 594k]
  ------------------
  384|  17.5k|      return -1;
  385|   611k|  }
  386|  16.0k|  return idx;
  387|  33.6k|}
_ZN5Exiv212IptcDataSets10dataSetIdxERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  389|    438|int IptcDataSets::dataSetIdx(const std::string& dataSetName, uint16_t recordId) {
  390|    438|  if (recordId != envelope && recordId != application2)
  ------------------
  |  Branch (390:7): [True: 292, False: 146]
  |  Branch (390:31): [True: 0, False: 292]
  ------------------
  391|      0|    return -1;
  392|    438|  const DataSet* dataSet = records_[recordId];
  393|    438|  int idx;
  394|  9.19k|  for (idx = 0; dataSet[idx].name_ != dataSetName; ++idx) {
  ------------------
  |  Branch (394:17): [True: 8.76k, False: 438]
  ------------------
  395|  8.76k|    if (dataSet[idx].number_ == 0xffff)
  ------------------
  |  Branch (395:9): [True: 0, False: 8.76k]
  ------------------
  396|      0|      return -1;
  397|  8.76k|  }
  398|    438|  return idx;
  399|    438|}
_ZN5Exiv212IptcDataSets11dataSetTypeEtt:
  401|  38.7k|TypeId IptcDataSets::dataSetType(uint16_t number, uint16_t recordId) {
  402|  38.7k|  int idx = dataSetIdx(number, recordId);
  403|  38.7k|  if (idx == -1)
  ------------------
  |  Branch (403:7): [True: 33.8k, False: 4.88k]
  ------------------
  404|  33.8k|    return unknownDataSet.type_;
  405|  4.88k|  return records_[recordId][idx].type_;
  406|  38.7k|}
_ZN5Exiv212IptcDataSets11dataSetNameEtt:
  408|  42.3k|std::string IptcDataSets::dataSetName(uint16_t number, uint16_t recordId) {
  409|  42.3k|  if (int idx = dataSetIdx(number, recordId); idx != -1)
  ------------------
  |  Branch (409:47): [True: 6.65k, False: 35.6k]
  ------------------
  410|  6.65k|    return records_[recordId][idx].name_;
  411|       |
  412|  35.6k|  return stringFormat("0x{:04x}", number);
  ------------------
  |  |   18|  35.6k|#define stringFormat std::format
  ------------------
  413|  42.3k|}
_ZN5Exiv212IptcDataSets17dataSetRepeatableEtt:
  436|  38.3k|bool IptcDataSets::dataSetRepeatable(uint16_t number, uint16_t recordId) {
  437|  38.3k|  int idx = dataSetIdx(number, recordId);
  438|  38.3k|  if (idx == -1)
  ------------------
  |  Branch (438:7): [True: 33.8k, False: 4.56k]
  ------------------
  439|  33.8k|    return unknownDataSet.repeatable_;
  440|  4.56k|  return records_[recordId][idx].repeatable_;
  441|  38.3k|}
_ZN5Exiv212IptcDataSets7dataSetERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEt:
  443|    438|uint16_t IptcDataSets::dataSet(const std::string& dataSetName, uint16_t recordId) {
  444|    438|  if (int idx = dataSetIdx(dataSetName, recordId); idx != -1) {
  ------------------
  |  Branch (444:52): [True: 438, False: 0]
  ------------------
  445|       |    // dataSetIdx checks the range of recordId
  446|    438|    return records_[recordId][idx].number_;
  447|    438|  }
  448|      0|  if (!isHex(dataSetName, 4, "0x"))
  ------------------
  |  Branch (448:7): [True: 0, False: 0]
  ------------------
  449|      0|    throw Error(ErrorCode::kerInvalidDataset, dataSetName);
  450|      0|  return static_cast<uint16_t>(std::stoi(dataSetName, nullptr, 16));
  451|      0|}
_ZN5Exiv212IptcDataSets10recordNameEt:
  453|  38.8k|std::string IptcDataSets::recordName(uint16_t recordId) {
  454|  38.8k|  if (recordId == envelope || recordId == application2) {
  ------------------
  |  Branch (454:7): [True: 6.58k, False: 32.2k]
  |  Branch (454:31): [True: 4.18k, False: 28.0k]
  ------------------
  455|  10.7k|    return recordInfo_[recordId].name_;
  456|  10.7k|  }
  457|       |
  458|  28.0k|  return stringFormat("0x{:04x}", recordId);
  ------------------
  |  |   18|  28.0k|#define stringFormat std::format
  ------------------
  459|  38.8k|}
_ZN5Exiv212IptcDataSets8recordIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  468|    438|uint16_t IptcDataSets::recordId(const std::string& recordName) {
  469|    438|  uint16_t i;
  470|    584|  for (i = IptcDataSets::application2; i > 0; --i) {
  ------------------
  |  Branch (470:40): [True: 584, False: 0]
  ------------------
  471|    584|    if (recordInfo_[i].name_ == recordName)
  ------------------
  |  Branch (471:9): [True: 438, False: 146]
  ------------------
  472|    438|      break;
  473|    584|  }
  474|    438|  if (i == 0) {
  ------------------
  |  Branch (474:7): [True: 0, False: 438]
  ------------------
  475|      0|    if (!isHex(recordName, 4, "0x"))
  ------------------
  |  Branch (475:9): [True: 0, False: 0]
  ------------------
  476|      0|      throw Error(ErrorCode::kerInvalidRecord, recordName);
  477|      0|    i = static_cast<uint16_t>(std::stoi(recordName, nullptr, 16));
  478|      0|  }
  479|    438|  return i;
  480|    438|}
_ZN5Exiv27IptcKeyC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  490|    438|IptcKey::IptcKey(std::string key) : tag_(0), record_(0), key_(std::move(key)) {
  491|    438|  decomposeKey();
  492|    438|}
_ZN5Exiv27IptcKeyC2Ett:
  494|  38.3k|IptcKey::IptcKey(uint16_t tag, uint16_t record) : tag_(tag), record_(record) {
  495|  38.3k|  makeKey();
  496|  38.3k|}
_ZNK5Exiv27IptcKey7tagNameEv:
  510|  2.43k|std::string IptcKey::tagName() const {
  511|  2.43k|  return IptcDataSets::dataSetName(tag_, record_);
  512|  2.43k|}
_ZNK5Exiv27IptcKey3tagEv:
  522|  86.3k|uint16_t IptcKey::tag() const {
  523|  86.3k|  return tag_;
  524|  86.3k|}
_ZNK5Exiv27IptcKey6recordEv:
  530|   668k|uint16_t IptcKey::record() const {
  531|   668k|  return record_;
  532|   668k|}
_ZNK5Exiv27IptcKey5cloneEv:
  534|   496k|IptcKey::UniquePtr IptcKey::clone() const {
  535|   496k|  return UniquePtr(clone_());
  536|   496k|}
_ZNK5Exiv27IptcKey6clone_Ev:
  538|   496k|IptcKey* IptcKey::clone_() const {
  539|   496k|  return new IptcKey(*this);
  540|   496k|}
_ZN5Exiv27IptcKey12decomposeKeyEv:
  542|    438|void IptcKey::decomposeKey() {
  543|       |  // Check that the key has the expected format with RE
  544|    438|  auto posDot1 = key_.find('.');
  545|    438|  auto posDot2 = key_.find('.', posDot1 + 1);
  546|       |
  547|    438|  if (posDot1 == std::string::npos || posDot2 == std::string::npos) {
  ------------------
  |  Branch (547:7): [True: 0, False: 438]
  |  Branch (547:39): [True: 0, False: 438]
  ------------------
  548|      0|    throw Error(ErrorCode::kerInvalidKey, key_);
  549|      0|  }
  550|       |
  551|       |  // Get the family name, record name and dataSet name parts of the key
  552|    438|  const std::string familyName = key_.substr(0, posDot1);
  553|    438|  if (familyName != familyName_)
  ------------------
  |  Branch (553:7): [True: 0, False: 438]
  ------------------
  554|      0|    throw Error(ErrorCode::kerInvalidKey, key_);
  555|       |
  556|    438|  std::string recordName = key_.substr(posDot1 + 1, posDot2 - posDot1 - 1);
  557|    438|  std::string dataSetName = key_.substr(posDot2 + 1);
  558|       |
  559|       |  // Use the parts of the key to find dataSet and recordId
  560|    438|  uint16_t recId = IptcDataSets::recordId(recordName);
  561|    438|  uint16_t dataSet = IptcDataSets::dataSet(dataSetName, recId);
  562|       |
  563|       |  // Possibly translate hex name parts (0xabcd) to real names
  564|    438|  recordName = IptcDataSets::recordName(recId);
  565|    438|  dataSetName = IptcDataSets::dataSetName(dataSet, recId);
  566|       |
  567|    438|  tag_ = dataSet;
  568|    438|  record_ = recId;
  569|    438|  key_ = familyName + "." + recordName + "." + dataSetName;
  570|    438|}
_ZN5Exiv27IptcKey7makeKeyEv:
  572|  38.3k|void IptcKey::makeKey() {
  573|  38.3k|  key_ = std::string(familyName_) + "." + IptcDataSets::recordName(record_) + "." +
  574|  38.3k|         IptcDataSets::dataSetName(tag_, record_);
  575|  38.3k|}

_ZN5Exiv28Internal7enforceIJEEEvbNS_9ErrorCodeEDpOT_:
   46|  26.4M|constexpr void enforce(bool condition, Exiv2::ErrorCode err_code, T&&... args) {
   47|  26.4M|  enforce<Exiv2::Error>(condition, err_code, std::forward<T>(args)...);
   48|  26.4M|}
_ZN5Exiv28Internal7enforceINS_5ErrorEJRNS_9ErrorCodeEEEEvbDpOT0_:
   35|  26.4M|constexpr void enforce(bool condition, T&&... args) {
   36|  26.4M|  if (!condition) {
  ------------------
  |  Branch (36:7): [True: 4.51k, False: 26.4M]
  ------------------
   37|  4.51k|    throw exception_t(std::forward<T>(args)...);
   38|  4.51k|  }
   39|  26.4M|}
_ZN5Exiv28Internal7enforceISt12out_of_rangeJRA47_KcEEEvbDpOT0_:
   35|  1.63k|constexpr void enforce(bool condition, T&&... args) {
   36|  1.63k|  if (!condition) {
  ------------------
  |  Branch (36:7): [True: 1, False: 1.63k]
  ------------------
   37|      1|    throw exception_t(std::forward<T>(args)...);
   38|      1|  }
   39|  1.63k|}
_ZN5Exiv28Internal7enforceISt16invalid_argumentJRA59_KcEEEvbDpOT0_:
   35|  38.0k|constexpr void enforce(bool condition, T&&... args) {
   36|  38.0k|  if (!condition) {
  ------------------
  |  Branch (36:7): [True: 0, False: 38.0k]
  ------------------
   37|      0|    throw exception_t(std::forward<T>(args)...);
   38|      0|  }
   39|  38.0k|}
_ZN5Exiv28Internal7enforceISt12out_of_rangeJRA31_KcEEEvbDpOT0_:
   35|  38.0k|constexpr void enforce(bool condition, T&&... args) {
   36|  38.0k|  if (!condition) {
  ------------------
  |  Branch (36:7): [True: 0, False: 38.0k]
  ------------------
   37|      0|    throw exception_t(std::forward<T>(args)...);
   38|      0|  }
   39|  38.0k|}
_ZN5Exiv28Internal7enforceISt14overflow_errorJRA22_KcEEEvbDpOT0_:
   35|    278|constexpr void enforce(bool condition, T&&... args) {
   36|    278|  if (!condition) {
  ------------------
  |  Branch (36:7): [True: 0, False: 278]
  ------------------
   37|      0|    throw exception_t(std::forward<T>(args)...);
   38|      0|  }
   39|    278|}

_ZN5Exiv28EpsImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
 1026|  1.39k|EpsImage::EpsImage(BasicIo::UniquePtr io, bool create) : Image(ImageType::eps, mdXmp, std::move(io)) {
 1027|       |  // LogMsg::setLevel(LogMsg::debug);
 1028|  1.39k|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (1028:7): [True: 0, False: 1.39k]
  |  Branch (1028:17): [True: 0, False: 0]
  ------------------
 1029|       |#ifdef DEBUG
 1030|       |    EXV_DEBUG << "Exiv2::EpsImage:: Creating blank EPS image\n";
 1031|       |#endif
 1032|      0|    IoCloser closer(*io_);
 1033|      0|    if (io_->write(reinterpret_cast<const byte*>(epsBlank.data()), epsBlank.size()) != epsBlank.size()) {
  ------------------
  |  Branch (1033:9): [True: 0, False: 0]
  ------------------
 1034|      0|#ifndef SUPPRESS_WARNINGS
 1035|      0|      EXV_WARNING << "Failed to write blank EPS image.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1036|      0|#endif
 1037|      0|      throw Error(ErrorCode::kerImageWriteFailed);
 1038|      0|    }
 1039|      0|  }
 1040|  1.39k|}
_ZN5Exiv28EpsImage12readMetadataEv:
 1050|  1.39k|void EpsImage::readMetadata() {
 1051|       |#ifdef DEBUG
 1052|       |  EXV_DEBUG << "Exiv2::EpsImage::readMetadata: Reading EPS file " << io_->path() << "\n";
 1053|       |#endif
 1054|       |
 1055|       |  // read metadata
 1056|  1.39k|  readWriteEpsMetadata(*io_, xmpPacket_, nativePreviews_, /* write = */ false);
 1057|       |
 1058|       |  // decode XMP metadata
 1059|  1.39k|  if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_) > 1) {
  ------------------
  |  Branch (1059:7): [True: 14, False: 1.38k]
  |  Branch (1059:30): [True: 12, False: 2]
  ------------------
 1060|     12|#ifndef SUPPRESS_WARNINGS
 1061|     12|    EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     12|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 12]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     12|  LogMsg(LogMsg::warn).os()
  ------------------
 1062|     12|#endif
 1063|     12|    throw Error(ErrorCode::kerFailedToReadImageData);
 1064|     12|  }
 1065|       |
 1066|       |#ifdef DEBUG
 1067|       |  EXV_DEBUG << "Exiv2::EpsImage::readMetadata: Finished reading EPS file " << io_->path() << "\n";
 1068|       |#endif
 1069|  1.39k|}
_ZN5Exiv214newEpsInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
 1094|  1.39k|Image::UniquePtr newEpsInstance(BasicIo::UniquePtr io, bool create) {
 1095|  1.39k|  auto image = std::make_unique<EpsImage>(std::move(io), create);
 1096|  1.39k|  if (!image->good()) {
  ------------------
  |  Branch (1096:7): [True: 0, False: 1.39k]
  ------------------
 1097|      0|    return nullptr;
 1098|      0|  }
 1099|  1.39k|  return image;
 1100|  1.39k|}
_ZN5Exiv29isEpsTypeERNS_7BasicIoEb:
 1102|  13.6k|bool isEpsType(BasicIo& iIo, bool advance) {
 1103|       |  // read as many bytes as needed for the longest (DOS) EPS signature
 1104|  13.6k|  constexpr auto bufSize = [] {
 1105|  13.6k|    auto f = [](const auto& a, const auto& b) { return a.size() < b.size(); };
 1106|  13.6k|    return std::max_element(epsFirstLine.begin(), epsFirstLine.end(), f)->size();
 1107|  13.6k|  }();
 1108|  13.6k|  const size_t restore = iIo.tell();  // save
 1109|  13.6k|  DataBuf buf = iIo.read(bufSize);
 1110|  13.6k|  if (iIo.error() || buf.size() != bufSize) {
  ------------------
  |  Branch (1110:7): [True: 0, False: 13.6k]
  |  Branch (1110:22): [True: 0, False: 13.6k]
  ------------------
 1111|      0|    iIo.seek(restore, BasicIo::beg);
 1112|      0|    return false;
 1113|      0|  }
 1114|       |  // check for all possible (DOS) EPS signatures
 1115|  13.6k|  bool matched = (buf.cmpBytes(0, dosEpsSignature.data(), dosEpsSignature.size()) == 0);
 1116|  13.6k|  if (!matched) {
  ------------------
  |  Branch (1116:7): [True: 13.0k, False: 598]
  ------------------
 1117|  37.5k|    for (auto&& eps : epsFirstLine) {
  ------------------
  |  Branch (1117:21): [True: 37.5k, False: 10.8k]
  ------------------
 1118|  37.5k|      if (buf.cmpBytes(0, eps.data(), eps.size()) == 0) {
  ------------------
  |  Branch (1118:11): [True: 2.19k, False: 35.3k]
  ------------------
 1119|  2.19k|        matched = true;
 1120|  2.19k|        break;
 1121|  2.19k|      }
 1122|  37.5k|    }
 1123|  13.0k|  }
 1124|       |  // seek back if possible and requested
 1125|  13.6k|  if (!advance || !matched) {
  ------------------
  |  Branch (1125:7): [True: 13.6k, False: 0]
  |  Branch (1125:19): [True: 0, False: 0]
  ------------------
 1126|  13.6k|    iIo.seek(restore, BasicIo::beg);
 1127|  13.6k|  }
 1128|  13.6k|  return matched;
 1129|  13.6k|}
epsimage.cpp:_ZN12_GLOBAL__N_120readWriteEpsMetadataERN5Exiv27BasicIoERNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEERNS3_6vectorINS0_13NativePreviewENS7_ISC_EEEEb:
  224|  1.39k|void readWriteEpsMetadata(BasicIo& io, std::string& xmpPacket, NativePreviewList& nativePreviews, bool write) {
  225|       |  // open input file
  226|  1.39k|  if (io.open() != 0) {
  ------------------
  |  Branch (226:7): [True: 0, False: 1.39k]
  ------------------
  227|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  228|      0|  }
  229|  1.39k|  IoCloser closer(io);
  230|       |
  231|       |  // read from input file via memory map
  232|  1.39k|  const byte* data = io.mmap();
  233|       |
  234|       |  // default positions and sizes
  235|  1.39k|  const size_t size = io.size();
  236|  1.39k|  size_t posEps = 0;
  237|  1.39k|  size_t posEndEps = size;
  238|  1.39k|  uint32_t posWmf = 0;
  239|  1.39k|  uint32_t sizeWmf = 0;
  240|  1.39k|  uint32_t posTiff = 0;
  241|  1.39k|  uint32_t sizeTiff = 0;
  242|       |
  243|  1.39k|  ErrorCode errcode = write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData;
  ------------------
  |  Branch (243:23): [True: 0, False: 1.39k]
  ------------------
  244|       |
  245|       |  // check for DOS EPS
  246|  1.39k|  const bool dosEps =
  247|  1.39k|      (size >= dosEpsSignature.size() && memcmp(data, dosEpsSignature.data(), dosEpsSignature.size()) == 0);
  ------------------
  |  Branch (247:8): [True: 1.39k, False: 0]
  |  Branch (247:42): [True: 299, False: 1.09k]
  ------------------
  248|  1.39k|  if (dosEps) {
  ------------------
  |  Branch (248:7): [True: 299, False: 1.09k]
  ------------------
  249|       |#ifdef DEBUG
  250|       |    EXV_DEBUG << "readWriteEpsMetadata: Found DOS EPS signature\n";
  251|       |#endif
  252|       |
  253|    299|    enforce(size >= 30, errcode);
  254|    299|    posEps = getULong(data + 4, littleEndian);
  255|    299|    posEndEps = getULong(data + 8, littleEndian) + posEps;
  256|    299|    posWmf = getULong(data + 12, littleEndian);
  257|    299|    sizeWmf = getULong(data + 16, littleEndian);
  258|    299|    posTiff = getULong(data + 20, littleEndian);
  259|    299|    sizeTiff = getULong(data + 24, littleEndian);
  260|       |#ifdef DEBUG
  261|       |    EXV_DEBUG << "readWriteEpsMetadata: EPS section at position " << posEps << ", size " << (posEndEps - posEps)
  262|       |              << "\n";
  263|       |    EXV_DEBUG << "readWriteEpsMetadata: WMF section at position " << posWmf << ", size " << sizeWmf << "\n";
  264|       |    EXV_DEBUG << "readWriteEpsMetadata: TIFF section at position " << posTiff << ", size " << sizeTiff << "\n";
  265|       |#endif
  266|    299|    if (uint16_t checksum = getUShort(data + 28, littleEndian); checksum != 0xFFFF) {
  ------------------
  |  Branch (266:65): [True: 272, False: 27]
  ------------------
  267|       |#ifdef DEBUG
  268|       |      EXV_DEBUG << "readWriteEpsMetadata: DOS EPS checksum is not FFFF\n";
  269|       |#endif
  270|    272|    }
  271|    299|    if ((posWmf != 0 || sizeWmf != 0) && (posTiff != 0 || sizeTiff != 0)) {
  ------------------
  |  Branch (271:10): [True: 227, False: 72]
  |  Branch (271:25): [True: 31, False: 41]
  |  Branch (271:43): [True: 187, False: 69]
  |  Branch (271:59): [True: 41, False: 28]
  ------------------
  272|    228|#ifndef SUPPRESS_WARNINGS
  273|    228|      EXV_WARNING << "DOS EPS file has both WMF and TIFF section. Only one of those is allowed.\n";
  ------------------
  |  |  138|    228|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 228]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    228|  LogMsg(LogMsg::warn).os()
  ------------------
  274|    228|#endif
  275|    228|      if (write)
  ------------------
  |  Branch (275:11): [True: 0, False: 228]
  ------------------
  276|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  277|    228|    }
  278|    299|    if (sizeWmf == 0 && sizeTiff == 0) {
  ------------------
  |  Branch (278:9): [True: 119, False: 180]
  |  Branch (278:25): [True: 52, False: 67]
  ------------------
  279|     52|#ifndef SUPPRESS_WARNINGS
  280|     52|      EXV_WARNING << "DOS EPS file has neither WMF nor TIFF section. Exactly one of those is required.\n";
  ------------------
  |  |  138|     52|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 52]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     52|  LogMsg(LogMsg::warn).os()
  ------------------
  281|     52|#endif
  282|     52|      if (write)
  ------------------
  |  Branch (282:11): [True: 0, False: 52]
  ------------------
  283|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  284|     52|    }
  285|    299|    enforce(30 <= posEps, errcode);
  286|    299|    enforce(sizeWmf == 0 || 30 <= posWmf, errcode);
  ------------------
  |  Branch (286:13): [True: 129, False: 170]
  |  Branch (286:29): [True: 142, False: 28]
  ------------------
  287|    299|    enforce(sizeTiff == 0 || 30 <= posTiff, errcode);
  ------------------
  |  Branch (287:13): [True: 109, False: 190]
  |  Branch (287:30): [True: 157, False: 33]
  ------------------
  288|       |
  289|    299|    enforce(posEps <= posEndEps && posEndEps <= size, errcode);
  ------------------
  |  Branch (289:13): [True: 213, False: 86]
  |  Branch (289:36): [True: 87, False: 126]
  ------------------
  290|    299|    enforce(posWmf <= size && sizeWmf <= size - posWmf, errcode);
  ------------------
  |  Branch (290:13): [True: 65, False: 234]
  |  Branch (290:31): [True: 41, False: 24]
  ------------------
  291|    299|    enforce(posTiff <= size && sizeTiff <= size - posTiff, errcode);
  ------------------
  |  Branch (291:13): [True: 30, False: 269]
  |  Branch (291:32): [True: 26, False: 4]
  ------------------
  292|    299|  }
  293|       |
  294|       |  // check first line
  295|  1.39k|  std::string firstLine;
  296|  1.39k|  const size_t posSecondLine = readLine(firstLine, data, posEps, posEndEps);
  297|       |#ifdef DEBUG
  298|       |  EXV_DEBUG << "readWriteEpsMetadata: First line: " << firstLine << "\n";
  299|       |#endif
  300|  1.39k|  auto it = std::find(epsFirstLine.begin(), epsFirstLine.end(), firstLine);
  301|  1.39k|  if (it == epsFirstLine.end()) {
  ------------------
  |  Branch (301:7): [True: 49, False: 1.34k]
  ------------------
  302|     49|    throw Error(ErrorCode::kerNotAnImage, "EPS");
  303|     49|  }
  304|       |
  305|       |  // determine line ending style of the first line
  306|  1.34k|  if (posSecondLine >= posEndEps) {
  ------------------
  |  Branch (306:7): [True: 3, False: 1.34k]
  ------------------
  307|      3|#ifndef SUPPRESS_WARNINGS
  308|      3|    EXV_WARNING << "Premature end of file after first line.\n";
  ------------------
  |  |  138|      3|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      3|  LogMsg(LogMsg::warn).os()
  ------------------
  309|      3|#endif
  310|      3|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (310:17): [True: 0, False: 3]
  ------------------
  311|      3|  }
  312|  1.34k|  const std::string lineEnding(reinterpret_cast<const char*>(data + posEps + firstLine.size()),
  313|  1.34k|                               posSecondLine - (posEps + firstLine.size()));
  314|       |#ifdef DEBUG
  315|       |  if (lineEnding == "\n") {
  316|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: Unix (LF)\n";
  317|       |  } else if (lineEnding == "\r") {
  318|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: Mac (CR)\n";
  319|       |  } else if (lineEnding == "\r\n") {
  320|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: DOS (CR LF)\n";
  321|       |  } else {
  322|       |    EXV_DEBUG << "readWriteEpsMetadata: Line ending style: (unknown)\n";
  323|       |  }
  324|       |#endif
  325|       |
  326|       |  // scan comments
  327|  1.34k|  size_t posLanguageLevel = posEndEps;
  328|  1.34k|  size_t posContainsXmp = posEndEps;
  329|  1.34k|  size_t posPages = posEndEps;
  330|  1.34k|  size_t posExiv2Version = posEndEps;
  331|  1.34k|  size_t posExiv2Website = posEndEps;
  332|  1.34k|  size_t posEndComments = posEndEps;
  333|  1.34k|  size_t posAi7Thumbnail = posEndEps;
  334|  1.34k|  size_t posAi7ThumbnailEndData = posEndEps;
  335|  1.34k|  size_t posBeginPhotoshop = posEndEps;
  336|  1.34k|  size_t posEndPhotoshop = posEndEps;
  337|  1.34k|  size_t posPage = posEndEps;
  338|  1.34k|  size_t posBeginPageSetup = posEndEps;
  339|  1.34k|  size_t posEndPageSetup = posEndEps;
  340|  1.34k|  size_t posPageTrailer = posEndEps;
  341|  1.34k|  size_t posEof = posEndEps;
  342|  1.34k|  std::vector<std::pair<size_t, size_t>> removableEmbeddings;
  343|  1.34k|  size_t depth = 0;
  344|  1.34k|  const size_t maxDepth = std::numeric_limits<size_t>::max();
  345|  1.34k|  bool illustrator8 = false;
  346|  1.34k|  bool corelDraw = false;
  347|  1.34k|  bool implicitPage = false;
  348|  1.34k|  bool implicitPageSetup = false;
  349|  1.34k|  bool implicitPageTrailer = false;
  350|  1.34k|  bool inDefaultsPreviewPrologSetup = false;
  351|  1.34k|  bool inRemovableEmbedding = false;
  352|  1.34k|  std::string removableEmbeddingEndLine;
  353|  1.34k|  size_t removableEmbeddingsWithUnmarkedTrailer = 0;
  354|   258k|  for (size_t pos = posEps; pos < posEof;) {
  ------------------
  |  Branch (354:29): [True: 257k, False: 1.29k]
  ------------------
  355|   257k|    const size_t startPos = pos;
  356|   257k|    std::string line;
  357|   257k|    pos = readLine(line, data, startPos, posEndEps);
  358|       |#ifdef DEBUG
  359|       |    bool significantLine = true;
  360|       |#endif
  361|       |    // nested documents
  362|   257k|    if (posPage == posEndEps && (line.starts_with("%%IncludeDocument:") || line.starts_with("%%BeginDocument:"))) {
  ------------------
  |  Branch (362:9): [True: 151k, False: 106k]
  |  Branch (362:34): [True: 3, False: 151k]
  |  Branch (362:76): [True: 10, False: 151k]
  ------------------
  363|     13|#ifndef SUPPRESS_WARNINGS
  364|     13|      EXV_WARNING << "Nested document at invalid position: " << startPos << "\n";
  ------------------
  |  |  138|     13|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 13]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     13|  LogMsg(LogMsg::warn).os()
  ------------------
  365|     13|#endif
  366|     13|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (366:19): [True: 0, False: 13]
  ------------------
  367|     13|    }
  368|   257k|    if (line.starts_with("%%BeginDocument:")) {
  ------------------
  |  Branch (368:9): [True: 219, False: 257k]
  ------------------
  369|    219|      if (depth == maxDepth) {
  ------------------
  |  Branch (369:11): [True: 0, False: 219]
  ------------------
  370|      0|#ifndef SUPPRESS_WARNINGS
  371|      0|        EXV_WARNING << "Document too deeply nested at position: " << startPos << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  372|      0|#endif
  373|      0|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (373:21): [True: 0, False: 0]
  ------------------
  374|      0|      }
  375|    219|      depth++;
  376|   257k|    } else if (line.starts_with("%%EndDocument")) {
  ------------------
  |  Branch (376:16): [True: 26, False: 257k]
  ------------------
  377|     26|      if (depth == 0) {
  ------------------
  |  Branch (377:11): [True: 3, False: 23]
  ------------------
  378|      3|#ifndef SUPPRESS_WARNINGS
  379|      3|        EXV_WARNING << "Unmatched EndDocument at position: " << startPos << "\n";
  ------------------
  |  |  138|      3|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      3|  LogMsg(LogMsg::warn).os()
  ------------------
  380|      3|#endif
  381|      3|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (381:21): [True: 0, False: 3]
  ------------------
  382|      3|      }
  383|     23|      depth--;
  384|   257k|    } else {
  385|       |#ifdef DEBUG
  386|       |      significantLine = false;
  387|       |#endif
  388|   257k|    }
  389|       |#ifdef DEBUG
  390|       |    if (significantLine) {
  391|       |      EXV_DEBUG << "readWriteEpsMetadata: Found significant line \"" << line << "\" at position: " << startPos << "\n";
  392|       |    }
  393|       |    significantLine = true;
  394|       |#endif
  395|   257k|    if (depth != 0)
  ------------------
  |  Branch (395:9): [True: 1.74k, False: 255k]
  ------------------
  396|  1.74k|      continue;
  397|       |    // explicit "Begin" comments
  398|   255k|    if (line.starts_with("%%BeginPreview:")) {
  ------------------
  |  Branch (398:9): [True: 812, False: 255k]
  ------------------
  399|    812|      inDefaultsPreviewPrologSetup = true;
  400|   255k|    } else if (line == "%%BeginDefaults") {
  ------------------
  |  Branch (400:16): [True: 175, False: 254k]
  ------------------
  401|    175|      inDefaultsPreviewPrologSetup = true;
  402|   254k|    } else if (line == "%%BeginProlog") {
  ------------------
  |  Branch (402:16): [True: 42, False: 254k]
  ------------------
  403|     42|      inDefaultsPreviewPrologSetup = true;
  404|   254k|    } else if (line == "%%BeginSetup") {
  ------------------
  |  Branch (404:16): [True: 298, False: 254k]
  ------------------
  405|    298|      inDefaultsPreviewPrologSetup = true;
  406|   254k|    } else if (posPage == posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (406:16): [True: 149k, False: 104k]
  |  Branch (406:40): [True: 64, False: 149k]
  ------------------
  407|     64|      posPage = startPos;
  408|   254k|    } else if (posPage != posEndEps && line.starts_with("%%Page:")) {
  ------------------
  |  Branch (408:16): [True: 104k, False: 149k]
  |  Branch (408:40): [True: 33, False: 104k]
  ------------------
  409|     33|      if (implicitPage) {
  ------------------
  |  Branch (409:11): [True: 21, False: 12]
  ------------------
  410|     21|#ifndef SUPPRESS_WARNINGS
  411|     21|        EXV_WARNING << "Page at position " << startPos << " conflicts with implicit page at position: " << posPage
  ------------------
  |  |  138|     21|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 21]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     21|  LogMsg(LogMsg::warn).os()
  ------------------
  412|      0|                    << "\n";
  413|     21|#endif
  414|     21|        throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (414:21): [True: 0, False: 21]
  ------------------
  415|     21|      }
  416|     12|#ifndef SUPPRESS_WARNINGS
  417|     12|      EXV_WARNING << "Unable to handle multiple PostScript pages. Found second page at position: " << startPos << "\n";
  ------------------
  |  |  138|     12|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 12]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     12|  LogMsg(LogMsg::warn).os()
  ------------------
  418|     12|#endif
  419|     12|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (419:19): [True: 0, False: 12]
  ------------------
  420|   254k|    } else if (line == "%%BeginPageSetup") {
  ------------------
  |  Branch (420:16): [True: 348, False: 254k]
  ------------------
  421|    348|      posBeginPageSetup = startPos;
  422|   254k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: Before %%EndPageSetup") {
  ------------------
  |  Branch (422:16): [True: 123k, False: 130k]
  |  Branch (422:41): [True: 420, False: 123k]
  ------------------
  423|    420|      inRemovableEmbedding = true;
  424|    420|      removableEmbeddings.emplace_back(startPos, startPos);
  425|    420|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  426|   253k|    } else if (!inRemovableEmbedding && line == "%Exiv2BeginXMP: After %%PageTrailer") {
  ------------------
  |  Branch (426:16): [True: 123k, False: 130k]
  |  Branch (426:41): [True: 527, False: 122k]
  ------------------
  427|    527|      inRemovableEmbedding = true;
  428|    527|      removableEmbeddings.emplace_back(startPos, startPos);
  429|    527|      removableEmbeddingEndLine = "%Exiv2EndXMP";
  430|   253k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageSetup End \"AI11EPS\"") {
  ------------------
  |  Branch (430:16): [True: 122k, False: 130k]
  |  Branch (430:41): [True: 529, False: 122k]
  ------------------
  431|    529|      inRemovableEmbedding = true;
  432|    529|      removableEmbeddings.emplace_back(startPos, startPos);
  433|    529|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageSetup End \"AI11EPS\"";
  434|   252k|    } else if (!inRemovableEmbedding && line == "%ADOBeginClientInjection: PageTrailer Start \"AI11EPS\"") {
  ------------------
  |  Branch (434:16): [True: 122k, False: 130k]
  |  Branch (434:41): [True: 363, False: 121k]
  ------------------
  435|    363|      inRemovableEmbedding = true;
  436|    363|      removableEmbeddings.emplace_back(startPos, startPos);
  437|    363|      removableEmbeddingEndLine = "%ADOEndClientInjection: PageTrailer Start \"AI11EPS\"";
  438|   252k|    } else if (!inRemovableEmbedding && line == "%begin_xml_code") {
  ------------------
  |  Branch (438:16): [True: 121k, False: 130k]
  |  Branch (438:41): [True: 860, False: 121k]
  ------------------
  439|    860|      inRemovableEmbedding = true;
  440|    860|      removableEmbeddings.emplace_back(startPos, startPos);
  441|    860|      removableEmbeddingEndLine = "%end_xml_code";
  442|    860|      removableEmbeddingsWithUnmarkedTrailer++;
  443|   251k|    } else {
  444|       |#ifdef DEBUG
  445|       |      significantLine = false;
  446|       |#endif
  447|   251k|    }
  448|       |#ifdef DEBUG
  449|       |    if (significantLine) {
  450|       |      EXV_DEBUG << "readWriteEpsMetadata: Found significant line \"" << line << "\" at position: " << startPos << "\n";
  451|       |    }
  452|       |    significantLine = true;
  453|       |#endif
  454|       |    // implicit comments
  455|   255k|    if (line == "%%EOF" || line == "%begin_xml_code" || line.size() < 2 || line.front() != '%' || '\x21' > line[1] ||
  ------------------
  |  Branch (455:9): [True: 9, False: 255k]
  |  Branch (455:28): [True: 1.27k, False: 254k]
  |  Branch (455:57): [True: 130k, False: 123k]
  |  Branch (455:76): [True: 55.7k, False: 68.0k]
  |  Branch (455:99): [True: 4.67k, False: 63.3k]
  ------------------
  456|   192k|        line[1] > '\x7e') {
  ------------------
  |  Branch (456:9): [True: 146, False: 63.2k]
  ------------------
  457|   192k|      if (posEndComments == posEndEps) {
  ------------------
  |  Branch (457:11): [True: 805, False: 191k]
  ------------------
  458|    805|        posEndComments = startPos;
  459|       |#ifdef DEBUG
  460|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndComments at position: " << startPos << "\n";
  461|       |#endif
  462|    805|      }
  463|   192k|    }
  464|   255k|    if (posPage == posEndEps && posEndComments != posEndEps && !inDefaultsPreviewPrologSetup && !inRemovableEmbedding &&
  ------------------
  |  Branch (464:9): [True: 150k, False: 104k]
  |  Branch (464:33): [True: 138k, False: 12.2k]
  |  Branch (464:64): [True: 4.64k, False: 134k]
  |  Branch (464:97): [True: 2.07k, False: 2.57k]
  ------------------
  465|  2.07k|        !onlyWhitespaces(line)) {
  ------------------
  |  Branch (465:9): [True: 565, False: 1.51k]
  ------------------
  466|    565|      posPage = startPos;
  467|    565|      implicitPage = true;
  468|       |#ifdef DEBUG
  469|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit Page at position: " << startPos << "\n";
  470|       |#endif
  471|    565|    }
  472|   255k|    if (posBeginPageSetup == posEndEps &&
  ------------------
  |  Branch (472:9): [True: 148k, False: 106k]
  ------------------
  473|   148k|        (implicitPage || (posPage != posEndEps && !inRemovableEmbedding && !line.empty() && line.front() != '%'))) {
  ------------------
  |  Branch (473:10): [True: 559, False: 148k]
  |  Branch (473:27): [True: 1.42k, False: 146k]
  |  Branch (473:51): [True: 567, False: 856]
  |  Branch (473:76): [True: 485, False: 82]
  |  Branch (473:93): [True: 19, False: 466]
  ------------------
  474|    578|      posBeginPageSetup = startPos;
  475|    578|      implicitPageSetup = true;
  476|       |#ifdef DEBUG
  477|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  478|       |#endif
  479|    578|    }
  480|   255k|    if (posEndPageSetup == posEndEps && implicitPageSetup && !inRemovableEmbedding && !line.empty() &&
  ------------------
  |  Branch (480:9): [True: 157k, False: 98.2k]
  |  Branch (480:41): [True: 4.55k, False: 153k]
  |  Branch (480:62): [True: 3.80k, False: 748]
  |  Branch (480:87): [True: 3.62k, False: 178]
  ------------------
  481|  3.62k|        line.front() != '%') {
  ------------------
  |  Branch (481:9): [True: 463, False: 3.16k]
  ------------------
  482|    463|      posEndPageSetup = startPos;
  483|       |#ifdef DEBUG
  484|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  485|       |#endif
  486|    463|    }
  487|   255k|    if (!line.empty() && line.front() != '%')
  ------------------
  |  Branch (487:9): [True: 140k, False: 115k]
  |  Branch (487:26): [True: 70.8k, False: 69.5k]
  ------------------
  488|  70.8k|      continue;  // performance optimization
  489|   184k|    if (line == "%%EOF" || line == "%%Trailer" || line == "%%PageTrailer") {
  ------------------
  |  Branch (489:9): [True: 9, False: 184k]
  |  Branch (489:28): [True: 255, False: 184k]
  |  Branch (489:51): [True: 287, False: 184k]
  ------------------
  490|    551|      if (posBeginPageSetup == posEndEps) {
  ------------------
  |  Branch (490:11): [True: 14, False: 537]
  ------------------
  491|     14|        posBeginPageSetup = startPos;
  492|     14|        implicitPageSetup = true;
  493|       |#ifdef DEBUG
  494|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit BeginPageSetup at position: " << startPos << "\n";
  495|       |#endif
  496|     14|      }
  497|    551|      if (posEndPageSetup == posEndEps) {
  ------------------
  |  Branch (497:11): [True: 27, False: 524]
  ------------------
  498|     27|        posEndPageSetup = startPos;
  499|     27|        implicitPageSetup = true;
  500|       |#ifdef DEBUG
  501|       |        EXV_DEBUG << "readWriteEpsMetadata: Found implicit EndPageSetup at position: " << startPos << "\n";
  502|       |#endif
  503|     27|      }
  504|    551|    }
  505|   184k|    if ((line == "%%EOF" || line == "%%Trailer") && posPageTrailer == posEndEps) {
  ------------------
  |  Branch (505:10): [True: 9, False: 184k]
  |  Branch (505:29): [True: 255, False: 184k]
  |  Branch (505:53): [True: 35, False: 229]
  ------------------
  506|     35|      posPageTrailer = startPos;
  507|     35|      implicitPageTrailer = true;
  508|       |#ifdef DEBUG
  509|       |      EXV_DEBUG << "readWriteEpsMetadata: Found implicit PageTrailer at position: " << startPos << "\n";
  510|       |#endif
  511|     35|    }
  512|       |    // remaining explicit comments
  513|   184k|    if (posEndComments == posEndEps && posLanguageLevel == posEndEps && line.starts_with("%%LanguageLevel:")) {
  ------------------
  |  Branch (513:9): [True: 12.6k, False: 172k]
  |  Branch (513:40): [True: 12.2k, False: 402]
  |  Branch (513:73): [True: 21, False: 12.1k]
  ------------------
  514|     21|      posLanguageLevel = startPos;
  515|   184k|    } else if (posEndComments == posEndEps && posContainsXmp == posEndEps && line.starts_with("%ADO_ContainsXMP:")) {
  ------------------
  |  Branch (515:16): [True: 12.6k, False: 172k]
  |  Branch (515:47): [True: 11.9k, False: 602]
  |  Branch (515:78): [True: 74, False: 11.9k]
  ------------------
  516|     74|      posContainsXmp = startPos;
  517|   184k|    } else if (posEndComments == posEndEps && posPages == posEndEps && line.starts_with("%%Pages:")) {
  ------------------
  |  Branch (517:16): [True: 12.5k, False: 172k]
  |  Branch (517:47): [True: 11.5k, False: 935]
  |  Branch (517:72): [True: 31, False: 11.5k]
  ------------------
  518|     31|      posPages = startPos;
  519|   184k|    } else if (posEndComments == posEndEps && posExiv2Version == posEndEps && line.starts_with("%Exiv2Version:")) {
  ------------------
  |  Branch (519:16): [True: 12.4k, False: 172k]
  |  Branch (519:47): [True: 9.15k, False: 3.33k]
  |  Branch (519:79): [True: 16, False: 9.14k]
  ------------------
  520|     16|      posExiv2Version = startPos;
  521|   184k|    } else if (posEndComments == posEndEps && posExiv2Website == posEndEps && line.starts_with("%Exiv2Website:")) {
  ------------------
  |  Branch (521:16): [True: 12.4k, False: 172k]
  |  Branch (521:47): [True: 11.7k, False: 744]
  |  Branch (521:79): [True: 22, False: 11.7k]
  ------------------
  522|     22|      posExiv2Website = startPos;
  523|   184k|    } else if (posEndComments == posEndEps && line.starts_with("%%Creator: Adobe Illustrator") &&
  ------------------
  |  Branch (523:16): [True: 12.4k, False: 172k]
  |  Branch (523:47): [True: 355, False: 12.1k]
  ------------------
  524|    355|               firstLine == "%!PS-Adobe-3.0 EPSF-3.0") {
  ------------------
  |  Branch (524:16): [True: 115, False: 240]
  ------------------
  525|    115|      illustrator8 = true;
  526|   184k|    } else if (posEndComments == posEndEps && line.starts_with("%AI7_Thumbnail:")) {
  ------------------
  |  Branch (526:16): [True: 12.3k, False: 172k]
  |  Branch (526:47): [True: 641, False: 11.7k]
  ------------------
  527|    641|      posAi7Thumbnail = startPos;
  528|   184k|    } else if (posEndComments == posEndEps && posAi7Thumbnail != posEndEps && posAi7ThumbnailEndData == posEndEps &&
  ------------------
  |  Branch (528:16): [True: 11.7k, False: 172k]
  |  Branch (528:47): [True: 2.85k, False: 8.84k]
  |  Branch (528:79): [True: 2.57k, False: 278]
  ------------------
  529|  2.57k|               line == "%%EndData") {
  ------------------
  |  Branch (529:16): [True: 69, False: 2.51k]
  ------------------
  530|     69|      posAi7ThumbnailEndData = startPos;
  531|   183k|    } else if (posEndComments == posEndEps && line == "%%EndComments") {
  ------------------
  |  Branch (531:16): [True: 11.6k, False: 172k]
  |  Branch (531:47): [True: 1, False: 11.6k]
  ------------------
  532|      1|      posEndComments = startPos;
  533|   183k|    } else if (inDefaultsPreviewPrologSetup && line.starts_with("%%BeginResource: procset wCorel")) {
  ------------------
  |  Branch (533:16): [True: 123k, False: 60.4k]
  |  Branch (533:48): [True: 176, False: 123k]
  ------------------
  534|    176|      corelDraw = true;
  535|   183k|    } else if (line == "%%EndPreview") {
  ------------------
  |  Branch (535:16): [True: 280, False: 183k]
  ------------------
  536|    280|      inDefaultsPreviewPrologSetup = false;
  537|   183k|    } else if (line == "%%EndDefaults") {
  ------------------
  |  Branch (537:16): [True: 178, False: 183k]
  ------------------
  538|    178|      inDefaultsPreviewPrologSetup = false;
  539|   183k|    } else if (line == "%%EndProlog") {
  ------------------
  |  Branch (539:16): [True: 132, False: 183k]
  ------------------
  540|    132|      inDefaultsPreviewPrologSetup = false;
  541|   183k|    } else if (line == "%%EndSetup") {
  ------------------
  |  Branch (541:16): [True: 608, False: 182k]
  ------------------
  542|    608|      inDefaultsPreviewPrologSetup = false;
  543|   182k|    } else if (posEndPageSetup == posEndEps && line == "%%EndPageSetup") {
  ------------------
  |  Branch (543:16): [True: 105k, False: 77.4k]
  |  Branch (543:48): [True: 9, False: 105k]
  ------------------
  544|      9|      posEndPageSetup = startPos;
  545|   182k|    } else if (posPageTrailer == posEndEps && line == "%%PageTrailer") {
  ------------------
  |  Branch (545:16): [True: 161k, False: 21.2k]
  |  Branch (545:47): [True: 24, False: 161k]
  ------------------
  546|     24|      posPageTrailer = startPos;
  547|   182k|    } else if (posBeginPhotoshop == posEndEps && line.starts_with("%BeginPhotoshop:")) {
  ------------------
  |  Branch (547:16): [True: 180k, False: 2.31k]
  |  Branch (547:50): [True: 45, False: 180k]
  ------------------
  548|     45|      posBeginPhotoshop = pos;
  549|   182k|    } else if (posBeginPhotoshop != posEndEps && posEndPhotoshop == posEndEps && line == "%EndPhotoshop") {
  ------------------
  |  Branch (549:16): [True: 2.31k, False: 180k]
  |  Branch (549:50): [True: 2.10k, False: 212]
  |  Branch (549:82): [True: 10, False: 2.09k]
  ------------------
  550|     10|      posEndPhotoshop = startPos;
  551|   182k|    } else if (inRemovableEmbedding && line == removableEmbeddingEndLine) {
  ------------------
  |  Branch (551:16): [True: 85.5k, False: 96.9k]
  |  Branch (551:40): [True: 2.44k, False: 83.1k]
  ------------------
  552|  2.44k|      inRemovableEmbedding = false;
  553|  2.44k|      removableEmbeddings.back().second = pos;
  554|   180k|    } else if (line == "%%EOF") {
  ------------------
  |  Branch (554:16): [True: 9, False: 180k]
  ------------------
  555|      9|      posEof = startPos;
  556|   180k|    } else {
  557|       |#ifdef DEBUG
  558|       |      significantLine = false;
  559|       |#endif
  560|   180k|    }
  561|       |#ifdef DEBUG
  562|       |    if (significantLine) {
  563|       |      EXV_DEBUG << "readWriteEpsMetadata: Found significant line \"" << line << "\" at position: " << startPos << "\n";
  564|       |    }
  565|       |#endif
  566|   184k|  }
  567|       |
  568|       |  // check for unfinished nested documents
  569|  1.29k|  if (depth != 0) {
  ------------------
  |  Branch (569:7): [True: 17, False: 1.28k]
  ------------------
  570|     17|#ifndef SUPPRESS_WARNINGS
  571|     17|    EXV_WARNING << "Unmatched BeginDocument (" << depth << "x)\n";
  ------------------
  |  |  138|     17|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 17]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     17|  LogMsg(LogMsg::warn).os()
  ------------------
  572|     17|#endif
  573|     17|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (573:17): [True: 0, False: 17]
  ------------------
  574|     17|  }
  575|       |
  576|       |  // look for the unmarked trailers of some removable XMP embeddings
  577|  1.28k|  size_t posXmpTrailerEnd = posEof;
  578|  1.28k|  for (size_t i = 0; i < removableEmbeddingsWithUnmarkedTrailer; i++) {
  ------------------
  |  Branch (578:22): [True: 180, False: 1.10k]
  ------------------
  579|    180|    std::string line1;
  580|    180|    const size_t posLine1 = readPrevLine(line1, data, posXmpTrailerEnd, posEndEps);
  581|    180|    std::string line2;
  582|    180|    const size_t posLine2 = readPrevLine(line2, data, posLine1, posEndEps);
  583|    180|    size_t posXmpTrailer;
  584|    180|    if (line1 == "[/EMC pdfmark") {  // Exiftool style
  ------------------
  |  Branch (584:9): [True: 2, False: 178]
  ------------------
  585|      2|      posXmpTrailer = posLine1;
  586|    178|    } else if (line1 == "[/NamespacePop pdfmark" &&
  ------------------
  |  Branch (586:16): [True: 23, False: 155]
  ------------------
  587|     23|               line2 ==
  ------------------
  |  Branch (587:16): [True: 0, False: 23]
  ------------------
  588|     23|                   "[{nextImage} 1 dict begin /Metadata {photoshop_metadata_stream} def currentdict end /PUT "
  589|     23|                   "pdfmark") {  // Photoshop style
  590|      0|      posXmpTrailer = posLine2;
  591|    178|    } else {
  592|    178|#ifndef SUPPRESS_WARNINGS
  593|    178|      EXV_WARNING << "Unable to find XMP embedding trailer ending at position: " << posXmpTrailerEnd << "\n";
  ------------------
  |  |  138|    178|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 178]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    178|  LogMsg(LogMsg::warn).os()
  ------------------
  594|    178|#endif
  595|    178|      if (write)
  ------------------
  |  Branch (595:11): [True: 0, False: 178]
  ------------------
  596|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  597|    178|      break;
  598|    178|    }
  599|      2|    removableEmbeddings.emplace_back(posXmpTrailer, posXmpTrailerEnd);
  600|       |#ifdef DEBUG
  601|       |    auto [r, s] = removableEmbeddings.back();
  602|       |    EXV_DEBUG << "readWriteEpsMetadata: Recognized unmarked trailer of removable XMP embedding at [" << r << "," << s
  603|       |              << ")\n";
  604|       |#endif
  605|      2|    posXmpTrailerEnd = posXmpTrailer;
  606|      2|  }
  607|       |
  608|       |  // interpret comment "%ADO_ContainsXMP:"
  609|  1.28k|  std::string line;
  610|  1.28k|  readLine(line, data, posContainsXmp, posEndEps);
  611|  1.28k|  bool containsXmp;
  612|  1.28k|  if (line == "%ADO_ContainsXMP: MainFirst" || line == "%ADO_ContainsXMP:MainFirst") {
  ------------------
  |  Branch (612:7): [True: 275, False: 1.00k]
  |  Branch (612:48): [True: 28, False: 977]
  ------------------
  613|     30|    containsXmp = true;
  614|  1.25k|  } else if (line.empty() || line == "%ADO_ContainsXMP: NoMain" || line == "%ADO_ContainsXMP:NoMain") {
  ------------------
  |  Branch (614:14): [True: 1.20k, False: 44]
  |  Branch (614:30): [True: 0, False: 44]
  |  Branch (614:68): [True: 1, False: 43]
  ------------------
  615|    934|    containsXmp = false;
  616|    934|  } else {
  617|    316|#ifndef SUPPRESS_WARNINGS
  618|    316|    EXV_WARNING << "Invalid line \"" << line << "\" at position: " << posContainsXmp << "\n";
  ------------------
  |  |  138|    316|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 316]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    316|  LogMsg(LogMsg::warn).os()
  ------------------
  619|    316|#endif
  620|    316|    throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (620:17): [True: 0, False: 316]
  ------------------
  621|    316|  }
  622|       |
  623|    964|  const bool deleteXmp = (write && xmpPacket.empty());
  ------------------
  |  Branch (623:27): [True: 0, False: 964]
  |  Branch (623:36): [True: 0, False: 0]
  ------------------
  624|    964|  bool fixBeginXmlPacket = false;
  625|    964|  bool useFlexibleEmbedding = false;
  626|    964|  size_t xmpPos = posEndEps;
  627|    964|  size_t xmpSize = 0;
  628|    964|  if (containsXmp) {
  ------------------
  |  Branch (628:7): [True: 30, False: 934]
  ------------------
  629|       |    // search for XMP metadata
  630|     30|    findXmp(xmpPos, xmpSize, data, posEps, posEndEps, write);
  631|     30|    if (xmpPos == posEndEps) {
  ------------------
  |  Branch (631:9): [True: 9, False: 21]
  ------------------
  632|      9|#ifndef SUPPRESS_WARNINGS
  633|      9|      EXV_WARNING << "Unable to find XMP metadata as announced at position: " << posContainsXmp << "\n";
  ------------------
  |  |  138|      9|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 9]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      9|  LogMsg(LogMsg::warn).os()
  ------------------
  634|      9|#endif
  635|      9|    }
  636|       |    // check embedding of XMP metadata
  637|     30|    const size_t posLineAfterXmp = readLine(line, data, xmpPos + xmpSize, posEndEps);
  638|     30|    if (!line.empty()) {
  ------------------
  |  Branch (638:9): [True: 9, False: 21]
  ------------------
  639|      9|#ifndef SUPPRESS_WARNINGS
  640|      9|      EXV_WARNING << "Unexpected " << line.size() << " bytes of data after XMP at position: " << (xmpPos + xmpSize)
  ------------------
  |  |  138|      9|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 9]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      9|  LogMsg(LogMsg::warn).os()
  ------------------
  641|      0|                  << "\n";
  642|      9|#endif
  643|     21|    } else if (!deleteXmp) {
  ------------------
  |  Branch (643:16): [True: 17, False: 4]
  ------------------
  644|     17|      readLine(line, data, posLineAfterXmp, posEndEps);
  645|     17|      if (line == "% &&end XMP packet marker&&" || line == "%  &&end XMP packet marker&&") {
  ------------------
  |  Branch (645:11): [True: 3, False: 14]
  |  Branch (645:52): [True: 0, False: 14]
  ------------------
  646|      3|        useFlexibleEmbedding = true;
  647|      3|      }
  648|     17|    }
  649|     30|  }
  650|    964|  if (useFlexibleEmbedding) {
  ------------------
  |  Branch (650:7): [True: 3, False: 961]
  ------------------
  651|       |#ifdef DEBUG
  652|       |    EXV_DEBUG << "readWriteEpsMetadata: Using flexible XMP embedding\n";
  653|       |#endif
  654|      3|    const size_t posBeginXmlPacket = readPrevLine(line, data, xmpPos, posEndEps);
  655|      3|    if (line.starts_with("%begin_xml_packet:")) {
  ------------------
  |  Branch (655:9): [True: 0, False: 3]
  ------------------
  656|       |#ifdef DEBUG
  657|       |      EXV_DEBUG << "readWriteEpsMetadata: XMP embedding contains %begin_xml_packet\n";
  658|       |#endif
  659|      0|      if (write) {
  ------------------
  |  Branch (659:11): [True: 0, False: 0]
  ------------------
  660|      0|        fixBeginXmlPacket = true;
  661|      0|        xmpSize += (xmpPos - posBeginXmlPacket);
  662|      0|        xmpPos = posBeginXmlPacket;
  663|      0|      }
  664|      3|    } else if (posBeginPhotoshop != posEndEps) {
  ------------------
  |  Branch (664:16): [True: 1, False: 2]
  ------------------
  665|      1|#ifndef SUPPRESS_WARNINGS
  666|      1|      EXV_WARNING << "Missing %begin_xml_packet in Photoshop EPS at position: " << xmpPos << "\n";
  ------------------
  |  |  138|      1|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      1|  LogMsg(LogMsg::warn).os()
  ------------------
  667|      1|#endif
  668|      1|      if (write)
  ------------------
  |  Branch (668:11): [True: 0, False: 1]
  ------------------
  669|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  670|      1|    }
  671|      3|  }
  672|    964|  if (!useFlexibleEmbedding) {
  ------------------
  |  Branch (672:7): [True: 957, False: 7]
  ------------------
  673|       |    // check if there are irremovable XMP metadata blocks before EndPageSetup
  674|    957|    size_t posOtherXmp = containsXmp ? xmpPos : posEps;
  ------------------
  |  Branch (674:26): [True: 23, False: 934]
  ------------------
  675|    957|    size_t sizeOtherXmp = 0;
  676|  3.93k|    for (;;) {
  677|  3.93k|      findXmp(posOtherXmp, sizeOtherXmp, data, posOtherXmp + sizeOtherXmp, posEndPageSetup, write);
  678|  3.93k|      if (posOtherXmp >= posEndPageSetup)
  ------------------
  |  Branch (678:11): [True: 835, False: 3.09k]
  ------------------
  679|    835|        break;
  680|  3.09k|      bool isRemovableEmbedding = false;
  681|  23.6k|      for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (681:31): [True: 23.6k, False: 122]
  ------------------
  682|  23.6k|        if (r <= posOtherXmp && posOtherXmp < s) {
  ------------------
  |  Branch (682:13): [True: 23.5k, False: 67]
  |  Branch (682:33): [True: 2.97k, False: 20.5k]
  ------------------
  683|  2.97k|          isRemovableEmbedding = true;
  684|  2.97k|          break;
  685|  2.97k|        }
  686|  23.6k|      }
  687|  3.09k|      if (!isRemovableEmbedding) {
  ------------------
  |  Branch (687:11): [True: 26, False: 3.07k]
  ------------------
  688|     26|#ifndef SUPPRESS_WARNINGS
  689|     26|        EXV_WARNING << "XMP metadata block is not removable at position: " << posOtherXmp << "\n";
  ------------------
  |  |  138|     26|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 26]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     26|  LogMsg(LogMsg::warn).os()
  ------------------
  690|     26|#endif
  691|     26|        if (write)
  ------------------
  |  Branch (691:13): [True: 0, False: 26]
  ------------------
  692|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  693|     26|        break;
  694|     26|      }
  695|  3.09k|    }
  696|    957|  }
  697|       |
  698|    964|  if (!write) {
  ------------------
  |  Branch (698:7): [True: 864, False: 100]
  ------------------
  699|       |    // copy XMP metadata
  700|    864|    xmpPacket.assign(reinterpret_cast<const char*>(data + xmpPos), xmpSize);
  701|       |
  702|       |    // native previews
  703|    864|    nativePreviews.clear();
  704|    864|    if (posAi7ThumbnailEndData != posEndEps) {
  ------------------
  |  Branch (704:9): [True: 64, False: 800]
  ------------------
  705|     64|      NativePreview nativePreview;
  706|     64|      std::string dummy;
  707|     64|      std::string lineAi7Thumbnail;
  708|     64|      const size_t posBeginData = readLine(lineAi7Thumbnail, data, posAi7Thumbnail, posEndEps);
  709|     64|      std::istringstream lineStreamAi7Thumbnail(lineAi7Thumbnail);
  710|     64|      lineStreamAi7Thumbnail >> dummy;
  711|     64|      lineStreamAi7Thumbnail >> nativePreview.width_;
  712|     64|      lineStreamAi7Thumbnail >> nativePreview.height_;
  713|     64|      std::string depthStr;
  714|     64|      lineStreamAi7Thumbnail >> depthStr;
  715|     64|      std::string lineBeginData;
  716|     64|      const size_t posAfterBeginData = readLine(lineBeginData, data, posBeginData, posEndEps);
  717|     64|      std::istringstream lineStreamBeginData(lineBeginData);
  718|     64|      std::string beginData;
  719|     64|      lineStreamBeginData >> beginData;
  720|     64|      lineStreamBeginData >> dummy;
  721|     64|      std::string type;
  722|     64|      lineStreamBeginData >> type;
  723|     64|      nativePreview.position_ = static_cast<long>(posAfterBeginData);
  724|     64|      nativePreview.size_ = static_cast<uint32_t>(posAi7ThumbnailEndData - posAfterBeginData);
  725|     64|      nativePreview.filter_ = "hex-ai7thumbnail-pnm";
  726|     64|      nativePreview.mimeType_ = "image/x-portable-anymap";
  727|     64|      if (depthStr != "8") {
  ------------------
  |  Branch (727:11): [True: 64, False: 0]
  ------------------
  728|     64|#ifndef SUPPRESS_WARNINGS
  729|     64|        EXV_WARNING << "Unable to handle Illustrator thumbnail depth: " << depthStr << "\n";
  ------------------
  |  |  138|     64|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 64]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     64|  LogMsg(LogMsg::warn).os()
  ------------------
  730|     64|#endif
  731|     64|      } else if (beginData != "%%BeginData:") {
  ------------------
  |  Branch (731:18): [True: 0, False: 0]
  ------------------
  732|      0|#ifndef SUPPRESS_WARNINGS
  733|      0|        EXV_WARNING << "Unable to handle Illustrator thumbnail data section: " << lineBeginData << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  734|      0|#endif
  735|      0|      } else if (type != "Hex") {
  ------------------
  |  Branch (735:18): [True: 0, False: 0]
  ------------------
  736|      0|#ifndef SUPPRESS_WARNINGS
  737|      0|        EXV_WARNING << "Unable to handle Illustrator thumbnail data type: " << type << "\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  738|      0|#endif
  739|      0|      } else {
  740|      0|        nativePreviews.push_back(std::move(nativePreview));
  741|      0|      }
  742|     64|    }
  743|    864|    if (posEndPhotoshop != posEndEps) {
  ------------------
  |  Branch (743:9): [True: 10, False: 854]
  ------------------
  744|     10|      auto sizePhotoshop = posEndPhotoshop - posBeginPhotoshop;
  745|     10|      NativePreview nativePreview{posBeginPhotoshop, sizePhotoshop, 0, 0, "hex-irb", "image/jpeg"};
  746|     10|      nativePreviews.push_back(std::move(nativePreview));
  747|     10|    }
  748|    864|    if (sizeWmf != 0) {
  ------------------
  |  Branch (748:9): [True: 0, False: 864]
  ------------------
  749|      0|      NativePreview nativePreview{posWmf, sizeWmf, 0, 0, "", "image/x-wmf"};
  750|      0|      nativePreviews.push_back(std::move(nativePreview));
  751|      0|    }
  752|    864|    if (sizeTiff != 0) {
  ------------------
  |  Branch (752:9): [True: 0, False: 864]
  ------------------
  753|      0|      NativePreview nativePreview{posTiff, sizeTiff, 0, 0, "", "image/tiff"};
  754|      0|      nativePreviews.push_back(std::move(nativePreview));
  755|      0|    }
  756|    864|  } else {
  757|       |    // check for Adobe Illustrator 8.0 or older
  758|    100|    if (illustrator8) {
  ------------------
  |  Branch (758:9): [True: 0, False: 100]
  ------------------
  759|      0|#ifndef SUPPRESS_WARNINGS
  760|      0|      EXV_WARNING << "Unable to write to EPS files created by Adobe Illustrator 8.0 or older.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  761|      0|#endif
  762|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  763|      0|    }
  764|       |
  765|       |    // create temporary output file
  766|    100|    MemIo tempIo;
  767|    100|    if (!tempIo.isopen()) {
  ------------------
  |  Branch (767:9): [True: 0, False: 100]
  ------------------
  768|      0|#ifndef SUPPRESS_WARNINGS
  769|      0|      EXV_WARNING << "Unable to create temporary file for writing.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  770|      0|#endif
  771|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  772|      0|    }
  773|       |#ifdef DEBUG
  774|       |    EXV_DEBUG << "readWriteEpsMetadata: Created temporary file " << tempIo.path() << "\n";
  775|       |#endif
  776|       |
  777|       |    // sort all positions
  778|    100|    std::vector<size_t> positions;
  779|    100|    positions.push_back(posLanguageLevel);
  780|    100|    positions.push_back(posContainsXmp);
  781|    100|    positions.push_back(posPages);
  782|    100|    positions.push_back(posExiv2Version);
  783|    100|    positions.push_back(posExiv2Website);
  784|    100|    positions.push_back(posEndComments);
  785|    100|    positions.push_back(posPage);
  786|    100|    positions.push_back(posBeginPageSetup);
  787|    100|    positions.push_back(posEndPageSetup);
  788|    100|    positions.push_back(posPageTrailer);
  789|    100|    positions.push_back(posEof);
  790|    100|    positions.push_back(posEndEps);
  791|    100|    if (useFlexibleEmbedding) {
  ------------------
  |  Branch (791:9): [True: 0, False: 100]
  ------------------
  792|      0|      positions.push_back(xmpPos);
  793|      0|    }
  794|    100|    for (const auto& [r, s] : removableEmbeddings) {
  ------------------
  |  Branch (794:29): [True: 0, False: 100]
  ------------------
  795|      0|      positions.push_back(r);
  796|      0|    }
  797|    100|    std::sort(positions.begin(), positions.end());
  798|       |
  799|       |    // assemble result EPS document
  800|    100|    if (dosEps) {
  ------------------
  |  Branch (800:9): [True: 0, False: 100]
  ------------------
  801|       |      // DOS EPS header will be written afterwards
  802|      0|      writeTemp(tempIo, std::string(30, '\x00'));
  803|      0|    }
  804|    100|    const std::string containsXmpLine = deleteXmp ? "%ADO_ContainsXMP: NoMain" : "%ADO_ContainsXMP: MainFirst";
  ------------------
  |  Branch (804:41): [True: 0, False: 100]
  ------------------
  805|    100|    const uint32_t posEpsNew = posTemp(tempIo);
  806|    100|    size_t prevPos = posEps;
  807|    100|    size_t prevSkipPos = prevPos;
  808|    100|    for (const auto& pos : positions) {
  ------------------
  |  Branch (808:26): [True: 0, False: 100]
  ------------------
  809|      0|      if (pos == prevPos)
  ------------------
  |  Branch (809:11): [True: 0, False: 0]
  ------------------
  810|      0|        continue;
  811|       |#ifdef DEBUG
  812|       |      EXV_DEBUG << "readWriteEpsMetadata: Writing at " << pos << "\n";
  813|       |#endif
  814|      0|      if (pos < prevSkipPos) {
  ------------------
  |  Branch (814:11): [True: 0, False: 0]
  ------------------
  815|      0|#ifndef SUPPRESS_WARNINGS
  816|      0|        EXV_WARNING << "Internal error while assembling the result EPS document: "
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  817|      0|                       "Unable to continue at position "
  818|      0|                    << pos << " after skipping to position " << prevSkipPos << "\n";
  819|      0|#endif
  820|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  821|      0|      }
  822|      0|      writeTemp(tempIo, data + prevSkipPos, pos - prevSkipPos);
  823|      0|      const size_t posLineEnd = readLine(line, data, pos, posEndEps);
  824|      0|      size_t skipPos = pos;
  825|       |      // add last line ending if necessary
  826|      0|      if (pos == posEndEps && pos >= 1 && data[pos - 1] != '\r' && data[pos - 1] != '\n') {
  ------------------
  |  Branch (826:11): [True: 0, False: 0]
  |  Branch (826:31): [True: 0, False: 0]
  |  Branch (826:43): [True: 0, False: 0]
  |  Branch (826:68): [True: 0, False: 0]
  ------------------
  827|      0|        writeTemp(tempIo, lineEnding);
  828|       |#ifdef DEBUG
  829|       |        EXV_DEBUG << "readWriteEpsMetadata: Added missing line ending of last line\n";
  830|       |#endif
  831|      0|      }
  832|       |      // update and complement DSC comments
  833|      0|      if (pos == posLanguageLevel && posLanguageLevel != posEndEps && !deleteXmp && !useFlexibleEmbedding &&
  ------------------
  |  Branch (833:11): [True: 0, False: 0]
  |  Branch (833:38): [True: 0, False: 0]
  |  Branch (833:71): [True: 0, False: 0]
  |  Branch (833:85): [True: 0, False: 0]
  ------------------
  834|      0|          (line == "%%LanguageLevel:1" || line == "%%LanguageLevel: 1")) {
  ------------------
  |  Branch (834:12): [True: 0, False: 0]
  |  Branch (834:43): [True: 0, False: 0]
  ------------------
  835|      0|        writeTemp(tempIo, "%%LanguageLevel: 2" + lineEnding);
  836|      0|        skipPos = posLineEnd;
  837|       |#ifdef DEBUG
  838|       |        EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "\n";
  839|       |#endif
  840|      0|      }
  841|      0|      if (pos == posContainsXmp && posContainsXmp != posEndEps && line != containsXmpLine) {
  ------------------
  |  Branch (841:11): [True: 0, False: 0]
  |  Branch (841:36): [True: 0, False: 0]
  |  Branch (841:67): [True: 0, False: 0]
  ------------------
  842|      0|        writeTemp(tempIo, containsXmpLine + lineEnding);
  843|      0|        skipPos = posLineEnd;
  844|       |#ifdef DEBUG
  845|       |        EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "\n";
  846|       |#endif
  847|      0|      }
  848|      0|      if (pos == posExiv2Version && posExiv2Version != posEndEps) {
  ------------------
  |  Branch (848:11): [True: 0, False: 0]
  |  Branch (848:37): [True: 0, False: 0]
  ------------------
  849|      0|        writeTemp(tempIo, "%Exiv2Version: " + versionNumberHexString() + lineEnding);
  850|      0|        skipPos = posLineEnd;
  851|       |#ifdef DEBUG
  852|       |        EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "\n";
  853|       |#endif
  854|      0|      }
  855|      0|      if (pos == posExiv2Website && posExiv2Website != posEndEps) {
  ------------------
  |  Branch (855:11): [True: 0, False: 0]
  |  Branch (855:37): [True: 0, False: 0]
  ------------------
  856|      0|        writeTemp(tempIo, "%Exiv2Website: http://www.exiv2.org/" + lineEnding);
  857|      0|        skipPos = posLineEnd;
  858|       |#ifdef DEBUG
  859|       |        EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "\n";
  860|       |#endif
  861|      0|      }
  862|      0|      if (pos == posEndComments) {
  ------------------
  |  Branch (862:11): [True: 0, False: 0]
  ------------------
  863|      0|        if (posLanguageLevel == posEndEps && !deleteXmp && !useFlexibleEmbedding) {
  ------------------
  |  Branch (863:13): [True: 0, False: 0]
  |  Branch (863:46): [True: 0, False: 0]
  |  Branch (863:60): [True: 0, False: 0]
  ------------------
  864|      0|          writeTemp(tempIo, "%%LanguageLevel: 2" + lineEnding);
  865|      0|        }
  866|      0|        if (posContainsXmp == posEndEps) {
  ------------------
  |  Branch (866:13): [True: 0, False: 0]
  ------------------
  867|      0|          writeTemp(tempIo, containsXmpLine + lineEnding);
  868|      0|        }
  869|      0|        if (posPages == posEndEps) {
  ------------------
  |  Branch (869:13): [True: 0, False: 0]
  ------------------
  870|      0|          writeTemp(tempIo, "%%Pages: 1" + lineEnding);
  871|      0|        }
  872|      0|        if (posExiv2Version == posEndEps) {
  ------------------
  |  Branch (872:13): [True: 0, False: 0]
  ------------------
  873|      0|          writeTemp(tempIo, "%Exiv2Version: " + versionNumberHexString() + lineEnding);
  874|      0|        }
  875|      0|        if (posExiv2Website == posEndEps) {
  ------------------
  |  Branch (875:13): [True: 0, False: 0]
  ------------------
  876|      0|          writeTemp(tempIo, "%Exiv2Website: http://www.exiv2.org/" + lineEnding);
  877|      0|        }
  878|      0|        readLine(line, data, posEndComments, posEndEps);
  879|      0|        if (line != "%%EndComments") {
  ------------------
  |  Branch (879:13): [True: 0, False: 0]
  ------------------
  880|      0|          writeTemp(tempIo, "%%EndComments" + lineEnding);
  881|      0|        }
  882|      0|      }
  883|      0|      if (pos == posPage && !line.starts_with("%%Page:")) {
  ------------------
  |  Branch (883:11): [True: 0, False: 0]
  |  Branch (883:29): [True: 0, False: 0]
  ------------------
  884|      0|        writeTemp(tempIo, "%%Page: 1 1" + lineEnding);
  885|      0|        writeTemp(tempIo, "%%EndPageComments" + lineEnding);
  886|      0|      }
  887|      0|      if (pos == posBeginPageSetup && line != "%%BeginPageSetup") {
  ------------------
  |  Branch (887:11): [True: 0, False: 0]
  |  Branch (887:39): [True: 0, False: 0]
  ------------------
  888|      0|        writeTemp(tempIo, "%%BeginPageSetup" + lineEnding);
  889|      0|      }
  890|       |      // insert XMP metadata into existing flexible embedding
  891|      0|      if (useFlexibleEmbedding && pos == xmpPos) {
  ------------------
  |  Branch (891:11): [True: 0, False: 0]
  |  Branch (891:35): [True: 0, False: 0]
  ------------------
  892|      0|        if (fixBeginXmlPacket) {
  ------------------
  |  Branch (892:13): [True: 0, False: 0]
  ------------------
  893|      0|          writeTemp(tempIo, "%begin_xml_packet: " + toString(xmpPacket.size()) + lineEnding);
  894|      0|        }
  895|      0|        writeTemp(tempIo, xmpPacket);
  896|      0|        skipPos += xmpSize;
  897|       |#ifdef DEBUG
  898|       |        EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "\n";
  899|       |#endif
  900|      0|      }
  901|      0|      if (!useFlexibleEmbedding) {
  ------------------
  |  Branch (901:11): [True: 0, False: 0]
  ------------------
  902|       |        // remove preceding embedding(s)
  903|      0|        for (const auto& [p, s] : removableEmbeddings) {
  ------------------
  |  Branch (903:33): [True: 0, False: 0]
  ------------------
  904|      0|          if (pos == p) {
  ------------------
  |  Branch (904:15): [True: 0, False: 0]
  ------------------
  905|      0|            skipPos = s;
  906|       |#ifdef DEBUG
  907|       |            EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__
  908|       |                      << "\n";
  909|       |#endif
  910|      0|            break;
  911|      0|          }
  912|      0|        }
  913|       |        // insert XMP metadata with new flexible embedding, if necessary
  914|      0|        if (pos == posEndPageSetup && !deleteXmp) {
  ------------------
  |  Branch (914:13): [True: 0, False: 0]
  |  Branch (914:39): [True: 0, False: 0]
  ------------------
  915|      0|          writeTemp(tempIo, "%Exiv2BeginXMP: Before %%EndPageSetup" + lineEnding);
  916|      0|          if (corelDraw) {
  ------------------
  |  Branch (916:15): [True: 0, False: 0]
  ------------------
  917|      0|            writeTemp(tempIo, "%Exiv2Notice: The following line is needed by CorelDRAW." + lineEnding);
  918|      0|            writeTemp(tempIo, "@rs" + lineEnding);
  919|      0|          }
  920|      0|          if (posBeginPhotoshop != posEndEps) {
  ------------------
  |  Branch (920:15): [True: 0, False: 0]
  ------------------
  921|      0|            writeTemp(tempIo, "%Exiv2Notice: The following line is needed by Photoshop." + lineEnding);
  922|      0|            writeTemp(tempIo, "%begin_xml_code" + lineEnding);
  923|      0|          }
  924|      0|          writeTemp(tempIo, "/currentdistillerparams where" + lineEnding);
  925|      0|          writeTemp(tempIo, "{pop currentdistillerparams /CoreDistVersion get 5000 lt} {true} ifelse" + lineEnding);
  926|      0|          writeTemp(tempIo, "{userdict /Exiv2_pdfmark /cleartomark load put" + lineEnding);
  927|      0|          writeTemp(tempIo, "    userdict /Exiv2_metafile_pdfmark {flushfile cleartomark} bind put}" + lineEnding);
  928|      0|          writeTemp(tempIo, "{userdict /Exiv2_pdfmark /pdfmark load put" + lineEnding);
  929|      0|          writeTemp(tempIo, "    userdict /Exiv2_metafile_pdfmark {/PUT pdfmark} bind put} ifelse" + lineEnding);
  930|      0|          writeTemp(tempIo, "[/NamespacePush Exiv2_pdfmark" + lineEnding);
  931|      0|          writeTemp(tempIo, "[/_objdef {Exiv2_metadata_stream} /type /stream /OBJ Exiv2_pdfmark" + lineEnding);
  932|      0|          writeTemp(tempIo, "[{Exiv2_metadata_stream} 2 dict begin" + lineEnding);
  933|      0|          writeTemp(tempIo,
  934|      0|                    "    /Type /Metadata def /Subtype /XML def currentdict end /PUT Exiv2_pdfmark" + lineEnding);
  935|      0|          writeTemp(tempIo, "[{Exiv2_metadata_stream}" + lineEnding);
  936|      0|          writeTemp(tempIo, "    currentfile 0 (% &&end XMP packet marker&&)" + lineEnding);
  937|      0|          writeTemp(tempIo, "    /SubFileDecode filter Exiv2_metafile_pdfmark" + lineEnding);
  938|      0|          if (posBeginPhotoshop != posEndEps) {
  ------------------
  |  Branch (938:15): [True: 0, False: 0]
  ------------------
  939|      0|            writeTemp(tempIo,
  940|      0|                      "%Exiv2Notice: The following line is needed by Photoshop. "
  941|      0|                      "Parameter must be exact size of XMP metadata." +
  942|      0|                          lineEnding);
  943|      0|            writeTemp(tempIo, "%begin_xml_packet: " + toString(xmpPacket.size()) + lineEnding);
  944|      0|          }
  945|      0|          writeTemp(tempIo, xmpPacket);
  946|      0|          writeTemp(tempIo, lineEnding);
  947|      0|          writeTemp(tempIo, "% &&end XMP packet marker&&" + lineEnding);
  948|      0|          writeTemp(tempIo, "[/Document 1 dict begin" + lineEnding);
  949|      0|          writeTemp(tempIo,
  950|      0|                    "    /Metadata {Exiv2_metadata_stream} def currentdict end /BDC Exiv2_pdfmark" + lineEnding);
  951|      0|          if (posBeginPhotoshop != posEndEps) {
  ------------------
  |  Branch (951:15): [True: 0, False: 0]
  ------------------
  952|      0|            writeTemp(tempIo, "%Exiv2Notice: The following line is needed by Photoshop." + lineEnding);
  953|      0|            writeTemp(tempIo, "%end_xml_code" + lineEnding);
  954|      0|          }
  955|      0|          if (corelDraw) {
  ------------------
  |  Branch (955:15): [True: 0, False: 0]
  ------------------
  956|      0|            writeTemp(tempIo, "%Exiv2Notice: The following line is needed by CorelDRAW." + lineEnding);
  957|      0|            writeTemp(tempIo, "@sv" + lineEnding);
  958|      0|          }
  959|      0|          writeTemp(tempIo, "%Exiv2EndXMP" + lineEnding);
  960|      0|        }
  961|      0|      }
  962|      0|      if (pos == posEndPageSetup && line != "%%EndPageSetup") {
  ------------------
  |  Branch (962:11): [True: 0, False: 0]
  |  Branch (962:37): [True: 0, False: 0]
  ------------------
  963|      0|        writeTemp(tempIo, "%%EndPageSetup" + lineEnding);
  964|      0|      }
  965|      0|      if (!useFlexibleEmbedding && pos == posPageTrailer && !deleteXmp) {
  ------------------
  |  Branch (965:11): [True: 0, False: 0]
  |  Branch (965:36): [True: 0, False: 0]
  |  Branch (965:61): [True: 0, False: 0]
  ------------------
  966|      0|        if (!implicitPageTrailer) {
  ------------------
  |  Branch (966:13): [True: 0, False: 0]
  ------------------
  967|      0|          skipPos = posLineEnd;
  968|       |#ifdef DEBUG
  969|       |          EXV_DEBUG << "readWriteEpsMetadata: Skipping to " << skipPos << " at " << __FILE__ << ":" << __LINE__ << "\n";
  970|       |#endif
  971|      0|        }
  972|      0|        writeTemp(tempIo, "%%PageTrailer" + lineEnding);
  973|      0|        writeTemp(tempIo, "%Exiv2BeginXMP: After %%PageTrailer" + lineEnding);
  974|      0|        writeTemp(tempIo, "[/EMC Exiv2_pdfmark" + lineEnding);
  975|      0|        writeTemp(tempIo, "[/NamespacePop Exiv2_pdfmark" + lineEnding);
  976|      0|        writeTemp(tempIo, "%Exiv2EndXMP" + lineEnding);
  977|      0|      }
  978|       |      // add EOF comment if necessary
  979|      0|      if (pos == posEndEps && posEof == posEndEps) {
  ------------------
  |  Branch (979:11): [True: 0, False: 0]
  |  Branch (979:31): [True: 0, False: 0]
  ------------------
  980|      0|        writeTemp(tempIo, "%%EOF" + lineEnding);
  981|      0|      }
  982|      0|      prevPos = pos;
  983|      0|      prevSkipPos = skipPos;
  984|      0|    }
  985|    100|    const uint32_t posEndEpsNew = posTemp(tempIo);
  986|       |#ifdef DEBUG
  987|       |    EXV_DEBUG << "readWriteEpsMetadata: New EPS size: " << (posEndEpsNew - posEpsNew) << "\n";
  988|       |#endif
  989|    100|    if (dosEps) {
  ------------------
  |  Branch (989:9): [True: 0, False: 100]
  ------------------
  990|       |      // write WMF and/or TIFF section if present
  991|      0|      writeTemp(tempIo, data + posWmf, sizeWmf);
  992|      0|      writeTemp(tempIo, data + posTiff, sizeTiff);
  993|       |#ifdef DEBUG
  994|       |      EXV_DEBUG << "readWriteEpsMetadata: New DOS EPS total size: " << posTemp(tempIo) << "\n";
  995|       |#endif
  996|       |      // write DOS EPS header
  997|      0|      if (tempIo.seek(0, BasicIo::beg) != 0) {
  ------------------
  |  Branch (997:11): [True: 0, False: 0]
  ------------------
  998|      0|#ifndef SUPPRESS_WARNINGS
  999|      0|        EXV_WARNING << "Internal error while seeking in temporary file.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
 1000|      0|#endif
 1001|      0|        throw Error(ErrorCode::kerImageWriteFailed);
 1002|      0|      }
 1003|      0|      byte dosEpsHeader[30];
 1004|      0|      dosEpsSignature.copy(reinterpret_cast<char*>(dosEpsHeader), dosEpsSignature.size());
 1005|      0|      ul2Data(dosEpsHeader + 4, posEpsNew, littleEndian);
 1006|      0|      ul2Data(dosEpsHeader + 8, posEndEpsNew - posEpsNew, littleEndian);
 1007|      0|      ul2Data(dosEpsHeader + 12, sizeWmf == 0 ? 0 : posEndEpsNew, littleEndian);
  ------------------
  |  Branch (1007:34): [True: 0, False: 0]
  ------------------
 1008|      0|      ul2Data(dosEpsHeader + 16, sizeWmf, littleEndian);
 1009|      0|      ul2Data(dosEpsHeader + 20, sizeTiff == 0 ? 0 : posEndEpsNew + sizeWmf, littleEndian);
  ------------------
  |  Branch (1009:34): [True: 0, False: 0]
  ------------------
 1010|      0|      ul2Data(dosEpsHeader + 24, sizeTiff, littleEndian);
 1011|      0|      us2Data(dosEpsHeader + 28, 0xFFFF, littleEndian);
 1012|      0|      writeTemp(tempIo, dosEpsHeader, sizeof(dosEpsHeader));
 1013|      0|    }
 1014|       |
 1015|       |    // copy temporary file to real output file
 1016|    100|    io.close();
 1017|    100|    io.transfer(tempIo);
 1018|    100|  }
 1019|    964|}
epsimage.cpp:_ZN12_GLOBAL__N_18readLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  117|   259k|size_t readLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  118|   259k|  line.clear();
  119|   259k|  size_t pos = startPos;
  120|       |  // step through line
  121|  11.4M|  while (pos < size && data[pos] != '\r' && data[pos] != '\n') {
  ------------------
  |  Branch (121:10): [True: 11.4M, False: 1.96k]
  |  Branch (121:24): [True: 11.3M, False: 92.3k]
  |  Branch (121:45): [True: 11.2M, False: 165k]
  ------------------
  122|  11.2M|    line += data[pos];
  123|  11.2M|    pos++;
  124|  11.2M|  }
  125|       |  // skip line ending, if present
  126|   259k|  if (pos >= size)
  ------------------
  |  Branch (126:7): [True: 1.96k, False: 257k]
  ------------------
  127|  1.96k|    return pos;
  128|   257k|  pos++;
  129|   257k|  if (pos >= size)
  ------------------
  |  Branch (129:7): [True: 99, False: 257k]
  ------------------
  130|     99|    return pos;
  131|   257k|  if (data[pos - 1] == '\r' && data[pos] == '\n')
  ------------------
  |  Branch (131:7): [True: 92.2k, False: 165k]
  |  Branch (131:32): [True: 1.91k, False: 90.3k]
  ------------------
  132|  1.91k|    pos++;
  133|   257k|  return pos;
  134|   257k|}
epsimage.cpp:_ZN12_GLOBAL__N_115onlyWhitespacesERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE:
  110|  2.07k|bool onlyWhitespaces(const std::string& s) {
  111|       |  // According to the DSC 3.0 specification, 4.4 Parsing Rules,
  112|       |  // only spaces and tabs are considered to be white space characters.
  113|  2.07k|  return s.find_first_not_of(" \t") == std::string::npos;
  114|  2.07k|}
epsimage.cpp:_ZN12_GLOBAL__N_112readPrevLineERNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEPKhmm:
  137|    363|size_t readPrevLine(std::string& line, const byte* data, size_t startPos, size_t size) {
  138|    363|  line.clear();
  139|    363|  size_t pos = startPos;
  140|    363|  if (pos > size)
  ------------------
  |  Branch (140:7): [True: 0, False: 363]
  ------------------
  141|      0|    return pos;
  142|       |  // skip line ending of previous line, if present
  143|    363|  if (pos <= 0)
  ------------------
  |  Branch (143:7): [True: 0, False: 363]
  ------------------
  144|      0|    return pos;
  145|    363|  if (data[pos - 1] == '\r' || data[pos - 1] == '\n') {
  ------------------
  |  Branch (145:7): [True: 86, False: 277]
  |  Branch (145:32): [True: 133, False: 144]
  ------------------
  146|    219|    pos--;
  147|    219|    if (pos <= 0)
  ------------------
  |  Branch (147:9): [True: 0, False: 219]
  ------------------
  148|      0|      return pos;
  149|    219|    if (data[pos - 1] == '\r' && data[pos] == '\n') {
  ------------------
  |  Branch (149:9): [True: 32, False: 187]
  |  Branch (149:34): [True: 16, False: 16]
  ------------------
  150|     16|      pos--;
  151|     16|      if (pos <= 0)
  ------------------
  |  Branch (151:11): [True: 0, False: 16]
  ------------------
  152|      0|        return pos;
  153|     16|    }
  154|    219|  }
  155|       |  // step through previous line
  156|  3.68M|  while (pos >= 1 && data[pos - 1] != '\r' && data[pos - 1] != '\n') {
  ------------------
  |  Branch (156:10): [True: 3.68M, False: 1]
  |  Branch (156:22): [True: 3.68M, False: 128]
  |  Branch (156:47): [True: 3.68M, False: 234]
  ------------------
  157|  3.68M|    pos--;
  158|  3.68M|    line += data[pos];
  159|  3.68M|  }
  160|    363|  std::reverse(line.begin(), line.end());
  161|    363|  return pos;
  162|    363|}
epsimage.cpp:_ZN12_GLOBAL__N_17findXmpERmS0_PKhmmb:
  165|  3.96k|void findXmp(size_t& xmpPos, size_t& xmpSize, const byte* data, size_t startPos, size_t size, bool write) {
  166|       |  // search for valid XMP header
  167|  3.96k|  xmpSize = 0;
  168|  2.69M|  for (xmpPos = startPos; xmpPos < size; xmpPos++) {
  ------------------
  |  Branch (168:27): [True: 2.69M, False: 844]
  ------------------
  169|  2.69M|    if (data[xmpPos] != '\x00' && data[xmpPos] != '<')
  ------------------
  |  Branch (169:9): [True: 2.10M, False: 587k]
  |  Branch (169:35): [True: 2.08M, False: 21.1k]
  ------------------
  170|  2.08M|      continue;
  171|  4.85M|    for (auto&& header : xmpHeaders) {
  ------------------
  |  Branch (171:24): [True: 4.85M, False: 605k]
  ------------------
  172|  4.85M|      if (xmpPos + header.size() > size)
  ------------------
  |  Branch (172:11): [True: 29.8k, False: 4.82M]
  ------------------
  173|  29.8k|        continue;
  174|  4.82M|      if (memcmp(data + xmpPos, header.data(), header.size()) != 0)
  ------------------
  |  Branch (174:11): [True: 4.82M, False: 3.11k]
  ------------------
  175|  4.82M|        continue;
  176|       |#ifdef DEBUG
  177|       |      EXV_DEBUG << "findXmp: Found XMP header at position: " << xmpPos << "\n";
  178|       |#endif
  179|       |
  180|       |      // search for valid XMP trailer
  181|  2.61M|      for (size_t trailerPos = xmpPos + header.size(); trailerPos < size; trailerPos++) {
  ------------------
  |  Branch (181:56): [True: 2.61M, False: 54]
  ------------------
  182|  2.61M|        if (data[xmpPos] != '\x00' && data[xmpPos] != '<')
  ------------------
  |  Branch (182:13): [True: 2.61M, False: 0]
  |  Branch (182:39): [True: 0, False: 2.61M]
  ------------------
  183|      0|          continue;
  184|  10.4M|        for (const auto& [trailer, readOnly] : xmpTrailers) {
  ------------------
  |  Branch (184:46): [True: 10.4M, False: 2.60M]
  ------------------
  185|  10.4M|          if (trailerPos + trailer.size() > size)
  ------------------
  |  Branch (185:15): [True: 2.57k, False: 10.4M]
  ------------------
  186|  2.57k|            continue;
  187|  10.4M|          if (memcmp(data + trailerPos, trailer.data(), trailer.size()) != 0)
  ------------------
  |  Branch (187:15): [True: 10.4M, False: 3.06k]
  ------------------
  188|  10.4M|            continue;
  189|       |#ifdef DEBUG
  190|       |          EXV_DEBUG << "findXmp: Found XMP trailer at position: " << trailerPos << "\n";
  191|       |#endif
  192|       |
  193|  3.06k|          if (readOnly) {
  ------------------
  |  Branch (193:15): [True: 18, False: 3.04k]
  ------------------
  194|     18|#ifndef SUPPRESS_WARNINGS
  195|     18|            EXV_WARNING << "Unable to handle read-only XMP metadata yet. Please provide your "
  ------------------
  |  |  138|     18|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 18]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     18|  LogMsg(LogMsg::warn).os()
  ------------------
  196|      0|                           "sample EPS file to the Exiv2 project: http://dev.exiv2.org/projects/exiv2\n";
  197|     18|#endif
  198|     18|            throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (198:25): [True: 0, False: 18]
  ------------------
  199|     18|          }
  200|       |
  201|       |          // search for end of XMP trailer
  202|   791k|          for (size_t trailerEndPos = trailerPos + trailer.size(); trailerEndPos + xmpTrailerEnd.size() <= size;
  ------------------
  |  Branch (202:68): [True: 791k, False: 28]
  ------------------
  203|   791k|               trailerEndPos++) {
  204|   791k|            if (memcmp(data + trailerEndPos, xmpTrailerEnd.data(), xmpTrailerEnd.size()) == 0) {
  ------------------
  |  Branch (204:17): [True: 3.01k, False: 788k]
  ------------------
  205|  3.01k|              xmpSize = (trailerEndPos + xmpTrailerEnd.size()) - xmpPos;
  206|  3.01k|              return;
  207|  3.01k|            }
  208|   791k|          }
  209|     28|#ifndef SUPPRESS_WARNINGS
  210|     28|          EXV_WARNING << "Found XMP header but incomplete XMP trailer.\n";
  ------------------
  |  |  138|     28|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 28]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     28|  LogMsg(LogMsg::warn).os()
  ------------------
  211|     28|#endif
  212|     28|          throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (212:23): [True: 0, False: 28]
  ------------------
  213|  3.04k|        }
  214|  2.61M|      }
  215|     54|#ifndef SUPPRESS_WARNINGS
  216|     54|      EXV_WARNING << "Found XMP header but no XMP trailer.\n";
  ------------------
  |  |  138|     54|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 54]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     54|  LogMsg(LogMsg::warn).os()
  ------------------
  217|     54|#endif
  218|     54|      throw Error(write ? ErrorCode::kerImageWriteFailed : ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (218:19): [True: 0, False: 54]
  ------------------
  219|  3.11k|    }
  220|   608k|  }
  221|  3.96k|}

_ZN5Exiv26LogMsg8setLevelENS0_5LevelE:
  119|  29.4k|void LogMsg::setLevel(LogMsg::Level level) {
  120|  29.4k|  level_ = level;
  121|  29.4k|}
_ZN5Exiv26LogMsg5levelEv:
  127|  11.3M|LogMsg::Level LogMsg::level() {
  128|  11.3M|  return level_;
  129|  11.3M|}
_ZN5Exiv25ErrorC2ENS_9ErrorCodeE:
  155|  22.1k|Error::Error(ErrorCode code) : code_(code) {
  156|  22.1k|  setMsg(0);
  157|  22.1k|}
_ZNK5Exiv25Error4codeEv:
  159|      4|ErrorCode Error::code() const noexcept {
  160|      4|  return code_;
  161|      4|}
_ZN5Exiv25Error6setMsgEi:
  167|  29.6k|void Error::setMsg(int count) {
  168|  29.6k|  std::string msg{_(errList.at(static_cast<size_t>(code_)))};
  ------------------
  |  |   40|  29.6k|#define _(String) (String)
  ------------------
  169|  29.6k|  auto pos = msg.find("%0");
  170|  29.6k|  if (pos != std::string::npos) {
  ------------------
  |  Branch (170:7): [True: 0, False: 29.6k]
  ------------------
  171|      0|    msg.replace(pos, 2, std::to_string(static_cast<int>(code_)));
  172|      0|  }
  173|  29.6k|  if (count > 0) {
  ------------------
  |  Branch (173:7): [True: 7.48k, False: 22.1k]
  ------------------
  174|  7.48k|    pos = msg.find("%1");
  175|  7.48k|    if (pos != std::string::npos) {
  ------------------
  |  Branch (175:9): [True: 7.48k, False: 0]
  ------------------
  176|  7.48k|      msg.replace(pos, 2, arg1_);
  177|  7.48k|    }
  178|  7.48k|  }
  179|  29.6k|  if (count > 1) {
  ------------------
  |  Branch (179:7): [True: 18, False: 29.6k]
  ------------------
  180|     18|    pos = msg.find("%2");
  181|     18|    if (pos != std::string::npos) {
  ------------------
  |  Branch (181:9): [True: 18, False: 0]
  ------------------
  182|     18|      msg.replace(pos, 2, arg2_);
  183|     18|    }
  184|     18|  }
  185|  29.6k|  if (count > 2) {
  ------------------
  |  Branch (185:7): [True: 0, False: 29.6k]
  ------------------
  186|      0|    pos = msg.find("%3");
  187|      0|    if (pos != std::string::npos) {
  ------------------
  |  Branch (187:9): [True: 0, False: 0]
  ------------------
  188|      0|      msg.replace(pos, 2, arg3_);
  189|      0|    }
  190|      0|  }
  191|  29.6k|  msg_ = std::move(msg);
  192|  29.6k|}

_ZN5Exiv29ExifdatumC2ERKNS_7ExifKeyEPKNS_5ValueE:
  157|  17.2M|Exifdatum::Exifdatum(const ExifKey& key, const Value* pValue) : key_(key.clone()) {
  158|  17.2M|  if (pValue)
  ------------------
  |  Branch (158:7): [True: 17.2M, False: 28.7k]
  ------------------
  159|  17.2M|    value_ = pValue->clone();
  160|  17.2M|}
_ZN5Exiv29ExifdatumC2ERKS0_:
  162|  19.9M|Exifdatum::Exifdatum(const Exifdatum& rhs) {
  163|  19.9M|  if (rhs.key_)
  ------------------
  |  Branch (163:7): [True: 19.9M, False: 0]
  ------------------
  164|  19.9M|    key_ = rhs.key_->clone();  // deep copy
  165|  19.9M|  if (rhs.value_)
  ------------------
  |  Branch (165:7): [True: 19.9M, False: 0]
  ------------------
  166|  19.9M|    value_ = rhs.value_->clone();  // deep copy
  167|  19.9M|}
_ZN5Exiv29ExifdatumD2Ev:
  169|  37.2M|Exifdatum::~Exifdatum() = default;
_ZNK5Exiv29Exifdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
  171|  1.26M|std::ostream& Exifdatum::write(std::ostream& os, const ExifData* pMetadata) const {
  172|  1.26M|  if (value().count() == 0)
  ------------------
  |  Branch (172:7): [True: 532k, False: 728k]
  ------------------
  173|   532k|    return os;
  174|       |
  175|   728k|  PrintFct fct = printValue;
  176|       |  // be careful with comments (User.Photo.UserComment, GPSAreaInfo etc).
  177|   728k|  if (auto ti = Internal::tagInfo(tag(), ifdId())) {
  ------------------
  |  Branch (177:12): [True: 728k, False: 0]
  ------------------
  178|   728k|    fct = ti->printFct_;
  179|   728k|    if (ti->typeId_ == comment) {
  ------------------
  |  Branch (179:9): [True: 1.35k, False: 727k]
  ------------------
  180|  1.35k|      os << value().toString();
  181|  1.35k|      fct = nullptr;
  182|  1.35k|    }
  183|   728k|  }
  184|   728k|  if (fct) {
  ------------------
  |  Branch (184:7): [True: 727k, False: 1.35k]
  ------------------
  185|       |    // https://github.com/Exiv2/exiv2/issues/1706
  186|       |    // Sometimes the type of the value doesn't match what the
  187|       |    // print function expects. (The expected types are stored
  188|       |    // in the TagInfo tables, but they are not enforced when the
  189|       |    // metadata is parsed.) These type mismatches can sometimes
  190|       |    // cause a std::out_of_range exception to be thrown.
  191|   727k|    try {
  192|   727k|      fct(os, value(), pMetadata);
  193|   727k|    } catch (const std::out_of_range&) {
  194|    476|      os << "Bad value";
  195|       |#ifdef EXIV2_DEBUG_MESSAGES
  196|       |      std::cerr << "Caught std::out_of_range exception in Exifdatum::write().\n";
  197|       |#endif
  198|    476|    }
  199|   727k|  }
  200|   728k|  return os;
  201|   728k|}
_ZNK5Exiv29Exifdatum5valueEv:
  203|  2.10M|const Value& Exifdatum::value() const {
  204|  2.10M|  if (!value_)
  ------------------
  |  Branch (204:7): [True: 0, False: 2.10M]
  ------------------
  205|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  206|  2.10M|  return *value_;
  207|  2.10M|}
_ZN5Exiv29ExifdatumaSERKS0_:
  209|  9.69k|Exifdatum& Exifdatum::operator=(const Exifdatum& rhs) {
  210|  9.69k|  if (this == &rhs)
  ------------------
  |  Branch (210:7): [True: 0, False: 9.69k]
  ------------------
  211|      0|    return *this;
  212|       |
  213|  9.69k|  key_.reset();
  214|  9.69k|  if (rhs.key_)
  ------------------
  |  Branch (214:7): [True: 9.69k, False: 0]
  ------------------
  215|  9.69k|    key_ = rhs.key_->clone();  // deep copy
  216|       |
  217|  9.69k|  value_.reset();
  218|  9.69k|  if (rhs.value_)
  ------------------
  |  Branch (218:7): [True: 9.69k, False: 0]
  ------------------
  219|  9.69k|    value_ = rhs.value_->clone();  // deep copy
  220|       |
  221|  9.69k|  return *this;
  222|  9.69k|}  // Exifdatum::operator=
_ZN5Exiv29ExifdatumaSERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  224|  28.8k|Exifdatum& Exifdatum::operator=(const std::string& value) {
  225|  28.8k|  setValue(value);
  226|  28.8k|  return *this;
  227|  28.8k|}
_ZN5Exiv29ExifdatumaSERKt:
  229|      4|Exifdatum& Exifdatum::operator=(const uint16_t& value) {
  230|      4|  return Exiv2::setValue(*this, value);
  231|      4|}
_ZN5Exiv29ExifdatumaSERKj:
  233|  29.0k|Exifdatum& Exifdatum::operator=(const uint32_t& value) {
  234|  29.0k|  return Exiv2::setValue(*this, value);
  235|  29.0k|}
_ZN5Exiv29ExifdatumaSERKNS_5ValueE:
  253|  4.35k|Exifdatum& Exifdatum::operator=(const Value& value) {
  254|  4.35k|  setValue(&value);
  255|  4.35k|  return *this;
  256|  4.35k|}
_ZN5Exiv29Exifdatum8setValueEPKNS_5ValueE:
  258|  4.35k|void Exifdatum::setValue(const Value* pValue) {
  259|  4.35k|  value_.reset();
  260|  4.35k|  if (pValue)
  ------------------
  |  Branch (260:7): [True: 4.35k, False: 0]
  ------------------
  261|  4.35k|    value_ = pValue->clone();
  262|  4.35k|}
_ZN5Exiv29Exifdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  264|  28.8k|int Exifdatum::setValue(const std::string& value) {
  265|  28.8k|  if (!value_) {
  ------------------
  |  Branch (265:7): [True: 14.0k, False: 14.7k]
  ------------------
  266|  14.0k|    TypeId type = key_->defaultTypeId();
  267|  14.0k|    value_ = Value::create(type);
  268|  14.0k|  }
  269|  28.8k|  return value_->read(value);
  270|  28.8k|}
_ZNK5Exiv29Exifdatum11setDataAreaEPKhm:
  272|      4|int Exifdatum::setDataArea(const byte* buf, size_t len) const {
  273|      4|  return value_ ? value_->setDataArea(buf, len) : -1;
  ------------------
  |  Branch (273:10): [True: 4, False: 0]
  ------------------
  274|      4|}
_ZNK5Exiv29Exifdatum3keyEv:
  276|   170M|std::string Exifdatum::key() const {
  277|   170M|  return key_ ? key_->key() : "";
  ------------------
  |  Branch (277:10): [True: 170M, False: 0]
  ------------------
  278|   170M|}
_ZNK5Exiv29Exifdatum9groupNameEv:
  284|  3.24M|std::string Exifdatum::groupName() const {
  285|  3.24M|  return key_ ? key_->groupName() : "";
  ------------------
  |  Branch (285:10): [True: 3.24M, False: 0]
  ------------------
  286|  3.24M|}
_ZNK5Exiv29Exifdatum7tagNameEv:
  288|  15.9M|std::string Exifdatum::tagName() const {
  289|  15.9M|  return key_ ? key_->tagName() : "";
  ------------------
  |  Branch (289:10): [True: 15.9M, False: 0]
  ------------------
  290|  15.9M|}
_ZNK5Exiv29Exifdatum3tagEv:
  300|  8.60M|uint16_t Exifdatum::tag() const {
  301|  8.60M|  return key_ ? key_->tag() : 0xffff;
  ------------------
  |  Branch (301:10): [True: 8.60M, False: 0]
  ------------------
  302|  8.60M|}
_ZNK5Exiv29Exifdatum5ifdIdEv:
  304|  18.4M|IfdId Exifdatum::ifdId() const {
  305|  18.4M|  return key_ ? key_->ifdId() : IfdId::ifdIdNotSet;
  ------------------
  |  Branch (305:10): [True: 18.4M, False: 0]
  ------------------
  306|  18.4M|}
_ZNK5Exiv29Exifdatum3idxEv:
  312|  2.65M|int Exifdatum::idx() const {
  313|  2.65M|  return key_ ? key_->idx() : 0;
  ------------------
  |  Branch (313:10): [True: 2.65M, False: 0]
  ------------------
  314|  2.65M|}
_ZNK5Exiv29Exifdatum4copyEPhNS_9ByteOrderE:
  316|     31|size_t Exifdatum::copy(byte* buf, ByteOrder byteOrder) const {
  317|     31|  return value_ ? value_->copy(buf, byteOrder) : 0;
  ------------------
  |  Branch (317:10): [True: 31, False: 0]
  ------------------
  318|     31|}
_ZNK5Exiv29Exifdatum6typeIdEv:
  320|  17.4k|TypeId Exifdatum::typeId() const {
  321|  17.4k|  return value_ ? value_->typeId() : invalidTypeId;
  ------------------
  |  Branch (321:10): [True: 17.4k, False: 0]
  ------------------
  322|  17.4k|}
_ZNK5Exiv29Exifdatum8typeSizeEv:
  328|     55|size_t Exifdatum::typeSize() const {
  329|     55|  return TypeInfo::typeSize(typeId());
  330|     55|}
_ZNK5Exiv29Exifdatum5countEv:
  332|  29.4k|size_t Exifdatum::count() const {
  333|  29.4k|  return value_ ? value_->count() : 0;
  ------------------
  |  Branch (333:10): [True: 29.4k, False: 0]
  ------------------
  334|  29.4k|}
_ZNK5Exiv29Exifdatum4sizeEv:
  336|  4.88M|size_t Exifdatum::size() const {
  337|  4.88M|  return value_ ? value_->size() : 0;
  ------------------
  |  Branch (337:10): [True: 4.88M, False: 0]
  ------------------
  338|  4.88M|}
_ZNK5Exiv29Exifdatum8toStringEv:
  340|  21.9k|std::string Exifdatum::toString() const {
  341|  21.9k|  return value_ ? value_->toString() : "";
  ------------------
  |  Branch (341:10): [True: 21.9k, False: 0]
  ------------------
  342|  21.9k|}
_ZNK5Exiv29Exifdatum8toStringEm:
  344|  4.99k|std::string Exifdatum::toString(size_t n) const {
  345|  4.99k|  return value_ ? value_->toString(n) : "";
  ------------------
  |  Branch (345:10): [True: 4.99k, False: 0]
  ------------------
  346|  4.99k|}
_ZNK5Exiv29Exifdatum7toInt64Em:
  348|  30.3k|int64_t Exifdatum::toInt64(size_t n) const {
  349|  30.3k|  return value_ ? value_->toInt64(n) : -1;
  ------------------
  |  Branch (349:10): [True: 30.3k, False: 0]
  ------------------
  350|  30.3k|}
_ZNK5Exiv29Exifdatum7toFloatEm:
  352|    361|float Exifdatum::toFloat(size_t n) const {
  353|    361|  return value_ ? value_->toFloat(n) : -1;
  ------------------
  |  Branch (353:10): [True: 361, False: 0]
  ------------------
  354|    361|}
_ZNK5Exiv29Exifdatum8getValueEv:
  360|  2.55M|Value::UniquePtr Exifdatum::getValue() const {
  361|  2.55M|  return value_ ? value_->clone() : nullptr;
  ------------------
  |  Branch (361:10): [True: 2.55M, False: 0]
  ------------------
  362|  2.55M|}
_ZNK5Exiv29Exifdatum12sizeDataAreaEv:
  364|     33|size_t Exifdatum::sizeDataArea() const {
  365|     33|  return value_ ? value_->sizeDataArea() : 0;
  ------------------
  |  Branch (365:10): [True: 33, False: 0]
  ------------------
  366|     33|}
_ZNK5Exiv29Exifdatum8dataAreaEv:
  368|     10|DataBuf Exifdatum::dataArea() const {
  369|     10|  return value_ ? value_->dataArea() : DataBuf(nullptr, 0);
  ------------------
  |  Branch (369:10): [True: 10, False: 0]
  ------------------
  370|     10|}
_ZN5Exiv210ExifThumbCC2ERKNS_8ExifDataE:
  372|      4|ExifThumbC::ExifThumbC(const ExifData& exifData) : exifData_(exifData) {
  373|      4|}
_ZN5Exiv29ExifThumbC2ERNS_8ExifDataE:
  411|      4|ExifThumb::ExifThumb(ExifData& exifData) : ExifThumbC(exifData), exifData_(exifData) {
  412|      4|}
_ZN5Exiv29ExifThumb16setJpegThumbnailEPKhm:
  435|      4|void ExifThumb::setJpegThumbnail(const byte* buf, size_t size) {
  436|      4|  exifData_["Exif.Thumbnail.Compression"] = std::uint16_t{6};
  437|      4|  Exifdatum& format = exifData_["Exif.Thumbnail.JPEGInterchangeFormat"];
  438|      4|  format = 0U;
  439|      4|  format.setDataArea(buf, size);
  440|      4|  exifData_["Exif.Thumbnail.JPEGInterchangeFormatLength"] = static_cast<uint32_t>(size);
  441|      4|}
_ZN5Exiv28ExifDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  447|  67.2k|Exifdatum& ExifData::operator[](const std::string& key) {
  448|  67.2k|  ExifKey exifKey(key);
  449|  67.2k|  auto pos = findKey(exifKey);
  450|  67.2k|  if (pos == end()) {
  ------------------
  |  Branch (450:7): [True: 28.7k, False: 38.5k]
  ------------------
  451|  28.7k|    return exifMetadata_.emplace_back(exifKey);
  452|  28.7k|  }
  453|  38.5k|  return *pos;
  454|  67.2k|}
_ZN5Exiv28ExifData3addERKNS_7ExifKeyEPKNS_5ValueE:
  456|  17.2M|void ExifData::add(const ExifKey& key, const Value* pValue) {
  457|  17.2M|  add(Exifdatum(key, pValue));
  458|  17.2M|}
_ZN5Exiv28ExifData3addERKNS_9ExifdatumE:
  460|  17.3M|void ExifData::add(const Exifdatum& exifdatum) {
  461|       |  // allow duplicates
  462|  17.3M|  exifMetadata_.push_back(exifdatum);
  463|  17.3M|}
_ZNK5Exiv28ExifData7findKeyERKNS_7ExifKeyE:
  465|   146k|ExifData::const_iterator ExifData::findKey(const ExifKey& key) const {
  466|   146k|  return std::find_if(exifMetadata_.begin(), exifMetadata_.end(), FindExifdatumByKey(key.key()));
  467|   146k|}
_ZN5Exiv28ExifData7findKeyERKNS_7ExifKeyE:
  469|   360k|ExifData::iterator ExifData::findKey(const ExifKey& key) {
  470|   360k|  return std::find_if(exifMetadata_.begin(), exifMetadata_.end(), FindExifdatumByKey(key.key()));
  471|   360k|}
_ZN5Exiv28ExifData5clearEv:
  473|  30.3k|void ExifData::clear() {
  474|  30.3k|  exifMetadata_.clear();
  475|  30.3k|}
_ZN5Exiv28ExifData5eraseENSt3__115__list_iteratorINS_9ExifdatumEPvEES5_:
  485|  53.3k|ExifData::iterator ExifData::erase(ExifData::iterator beg, ExifData::iterator end) {
  486|  53.3k|  return exifMetadata_.erase(beg, end);
  487|  53.3k|}
_ZN5Exiv28ExifData5eraseENSt3__115__list_iteratorINS_9ExifdatumEPvEE:
  489|  13.0k|ExifData::iterator ExifData::erase(ExifData::iterator pos) {
  490|  13.0k|  return exifMetadata_.erase(pos);
  491|  13.0k|}
_ZN5Exiv210ExifParser6decodeERNS_8ExifDataEPKhm:
  493|    714|ByteOrder ExifParser::decode(ExifData& exifData, const byte* pData, size_t size) {
  494|    714|  IptcData iptcData;
  495|    714|  XmpData xmpData;
  496|    714|  ByteOrder bo = TiffParser::decode(exifData, iptcData, xmpData, pData, size);
  497|    714|#ifndef SUPPRESS_WARNINGS
  498|    714|  if (!iptcData.empty()) {
  ------------------
  |  Branch (498:7): [True: 4, False: 710]
  ------------------
  499|      4|    EXV_WARNING << "Ignoring IPTC information encoded in the Exif data.\n";
  ------------------
  |  |  138|      4|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      4|  LogMsg(LogMsg::warn).os()
  ------------------
  500|      4|  }
  501|    714|  if (!xmpData.empty()) {
  ------------------
  |  Branch (501:7): [True: 0, False: 714]
  ------------------
  502|      0|    EXV_WARNING << "Ignoring XMP information encoded in the Exif data.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  503|      0|  }
  504|    714|#endif
  505|    714|  return bo;
  506|    714|}
_ZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEEPKhmNS_9ByteOrderERNS_8ExifDataE:
  512|  3.74k|WriteMethod ExifParser::encode(Blob& blob, const byte* pData, size_t size, ByteOrder byteOrder, ExifData& exifData) {
  513|       |  // Delete IFD0 tags that are "not recorded" in compressed images
  514|       |  // Reference: Exif 2.2 specs, 4.6.8 Tag Support Levels, section A
  515|  3.74k|  static constexpr auto filteredIfd0Tags = std::array{
  516|  3.74k|      "Exif.Image.PhotometricInterpretation",
  517|  3.74k|      "Exif.Image.StripOffsets",
  518|  3.74k|      "Exif.Image.RowsPerStrip",
  519|  3.74k|      "Exif.Image.StripByteCounts",
  520|  3.74k|      "Exif.Image.JPEGInterchangeFormat",
  521|  3.74k|      "Exif.Image.JPEGInterchangeFormatLength",
  522|  3.74k|      "Exif.Image.SubIFDs",
  523|       |      // Issue 981.  Never allow manufactured data to be written
  524|  3.74k|      "Exif.Canon.AFInfoSize",
  525|  3.74k|      "Exif.Canon.AFAreaMode",
  526|  3.74k|      "Exif.Canon.AFNumPoints",
  527|  3.74k|      "Exif.Canon.AFValidPoints",
  528|  3.74k|      "Exif.Canon.AFCanonImageWidth",
  529|  3.74k|      "Exif.Canon.AFCanonImageHeight",
  530|  3.74k|      "Exif.Canon.AFImageWidth",
  531|  3.74k|      "Exif.Canon.AFImageHeight",
  532|  3.74k|      "Exif.Canon.AFAreaWidths",
  533|  3.74k|      "Exif.Canon.AFAreaHeights",
  534|  3.74k|      "Exif.Canon.AFXPositions",
  535|  3.74k|      "Exif.Canon.AFYPositions",
  536|  3.74k|      "Exif.Canon.AFPointsInFocus",
  537|  3.74k|      "Exif.Canon.AFPointsSelected",
  538|  3.74k|      "Exif.Canon.AFPointsUnusable",
  539|  3.74k|      "Exif.Canon.AFFineRotation",
  540|  3.74k|  };
  541|  86.1k|  for (auto&& filteredIfd0Tag : filteredIfd0Tags) {
  ------------------
  |  Branch (541:31): [True: 86.1k, False: 3.74k]
  ------------------
  542|  86.1k|    auto pos = exifData.findKey(ExifKey(filteredIfd0Tag));
  543|  86.1k|    if (pos != exifData.end()) {
  ------------------
  |  Branch (543:9): [True: 1.19k, False: 84.9k]
  ------------------
  544|       |#ifdef EXIV2_DEBUG_MESSAGES
  545|       |      std::cerr << "Warning: Exif tag " << pos->key() << " not encoded\n";
  546|       |#endif
  547|  1.19k|      exifData.erase(pos);
  548|  1.19k|    }
  549|  86.1k|  }
  550|       |
  551|       |  // Delete IFDs which do not occur in JPEGs
  552|  3.74k|  static constexpr auto filteredIfds = std::array{
  553|  3.74k|      IfdId::subImage1Id, IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id,
  554|  3.74k|      IfdId::subImage6Id, IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id, IfdId::subThumb1Id,
  555|  3.74k|      IfdId::panaRawId,   IfdId::ifd2Id,      IfdId::ifd3Id,
  556|  3.74k|  };
  557|  48.7k|  for (auto&& filteredIfd : filteredIfds) {
  ------------------
  |  Branch (557:27): [True: 48.7k, False: 3.74k]
  ------------------
  558|       |#ifdef EXIV2_DEBUG_MESSAGES
  559|       |    std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
  560|       |#endif
  561|  48.7k|    eraseIfd(exifData, filteredIfd);
  562|  48.7k|  }
  563|       |
  564|       |  // IPTC and XMP are stored elsewhere, not in the Exif APP1 segment.
  565|  3.74k|  IptcData emptyIptc;
  566|  3.74k|  XmpData emptyXmp;
  567|       |
  568|       |  // Encode and check if the result fits into a JPEG Exif APP1 segment
  569|  3.74k|  MemIo mio1;
  570|  3.74k|  TiffHeader header(byteOrder, 0x00000008, false);
  571|  3.74k|  WriteMethod wm = TiffParserWorker::encode(mio1, pData, size, exifData, emptyIptc, emptyXmp, Tag::root,
  572|  3.74k|                                            TiffMapping::findEncoder, &header, nullptr);
  573|  3.74k|  if (mio1.size() <= 65527) {
  ------------------
  |  Branch (573:7): [True: 1.50k, False: 2.23k]
  ------------------
  574|  1.50k|    append(blob, mio1.mmap(), mio1.size());
  575|  1.50k|    return wm;
  576|  1.50k|  }
  577|       |
  578|       |  // If it doesn't fit, remove additional tags
  579|       |
  580|       |  // Delete preview tags if the preview is larger than 32kB.
  581|       |  // Todo: Enhance preview classes to be able to write and delete previews and use that instead.
  582|       |  // Table must be sorted by preview, the first tag in each group is the size
  583|  2.23k|  static constexpr auto filteredPvTags = std::array{
  584|  2.23k|      std::pair(pttLen, "Exif.Minolta.ThumbnailLength"),
  585|  2.23k|      std::pair(pttTag, "Exif.Minolta.ThumbnailOffset"),
  586|  2.23k|      std::pair(pttLen, "Exif.Minolta.Thumbnail"),
  587|  2.23k|      std::pair(pttLen, "Exif.NikonPreview.JPEGInterchangeFormatLength"),
  588|  2.23k|      std::pair(pttIfd, "NikonPreview"),
  589|  2.23k|      std::pair(pttLen, "Exif.Olympus.ThumbnailLength"),
  590|  2.23k|      std::pair(pttTag, "Exif.Olympus.ThumbnailOffset"),
  591|  2.23k|      std::pair(pttLen, "Exif.Olympus.ThumbnailImage"),
  592|  2.23k|      std::pair(pttLen, "Exif.Olympus.Thumbnail"),
  593|  2.23k|      std::pair(pttLen, "Exif.Olympus2.ThumbnailLength"),
  594|  2.23k|      std::pair(pttTag, "Exif.Olympus2.ThumbnailOffset"),
  595|  2.23k|      std::pair(pttLen, "Exif.Olympus2.ThumbnailImage"),
  596|  2.23k|      std::pair(pttLen, "Exif.Olympus2.Thumbnail"),
  597|  2.23k|      std::pair(pttLen, "Exif.OlympusCs.PreviewImageLength"),
  598|  2.23k|      std::pair(pttTag, "Exif.OlympusCs.PreviewImageStart"),
  599|  2.23k|      std::pair(pttTag, "Exif.OlympusCs.PreviewImageValid"),
  600|  2.23k|      std::pair(pttLen, "Exif.Pentax.PreviewLength"),
  601|  2.23k|      std::pair(pttTag, "Exif.Pentax.PreviewOffset"),
  602|  2.23k|      std::pair(pttTag, "Exif.Pentax.PreviewResolution"),
  603|  2.23k|      std::pair(pttLen, "Exif.PentaxDng.PreviewLength"),
  604|  2.23k|      std::pair(pttTag, "Exif.PentaxDng.PreviewOffset"),
  605|  2.23k|      std::pair(pttTag, "Exif.PentaxDng.PreviewResolution"),
  606|  2.23k|      std::pair(pttLen, "Exif.SamsungPreview.JPEGInterchangeFormatLength"),
  607|  2.23k|      std::pair(pttIfd, "SamsungPreview"),
  608|  2.23k|      std::pair(pttLen, "Exif.Thumbnail.StripByteCounts"),
  609|  2.23k|      std::pair(pttIfd, "Thumbnail"),
  610|  2.23k|      std::pair(pttLen, "Exif.Thumbnail.JPEGInterchangeFormatLength"),
  611|  2.23k|      std::pair(pttIfd, "Thumbnail"),
  612|  2.23k|  };
  613|  2.23k|  bool delTags = false;
  614|  60.7k|  for (auto&& [ptt, key] : filteredPvTags) {
  ------------------
  |  Branch (614:26): [True: 60.7k, False: 2.23k]
  ------------------
  615|  60.7k|    switch (ptt) {
  ------------------
  |  Branch (615:13): [True: 60.7k, False: 0]
  ------------------
  616|  32.5k|      case pttLen: {
  ------------------
  |  Branch (616:7): [True: 32.5k, False: 28.2k]
  ------------------
  617|  32.5k|        delTags = false;
  618|  32.5k|        if (auto pos = exifData.findKey(ExifKey(key)); pos != exifData.end() && sumToLong(*pos) > 32768) {
  ------------------
  |  Branch (618:56): [True: 1.81k, False: 30.7k]
  |  Branch (618:56): [True: 14, False: 32.5k]
  |  Branch (618:81): [True: 14, False: 1.80k]
  ------------------
  619|     14|          delTags = true;
  620|     14|#ifndef SUPPRESS_WARNINGS
  621|     14|          EXV_WARNING << "Exif tag " << pos->key() << " not encoded\n";
  ------------------
  |  |  138|     14|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 14]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     14|  LogMsg(LogMsg::warn).os()
  ------------------
  622|     14|#endif
  623|     14|          exifData.erase(pos);
  624|     14|        }
  625|  32.5k|        break;
  626|      0|      }
  627|  19.5k|      case pttTag: {
  ------------------
  |  Branch (627:7): [True: 19.5k, False: 41.2k]
  ------------------
  628|  19.5k|        if (delTags) {
  ------------------
  |  Branch (628:13): [True: 22, False: 19.5k]
  ------------------
  629|     22|          if (auto pos = exifData.findKey(ExifKey(key)); pos != exifData.end()) {
  ------------------
  |  Branch (629:58): [True: 10, False: 12]
  ------------------
  630|     10|#ifndef SUPPRESS_WARNINGS
  631|     10|            EXV_WARNING << "Exif tag " << pos->key() << " not encoded\n";
  ------------------
  |  |  138|     10|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 10]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     10|  LogMsg(LogMsg::warn).os()
  ------------------
  632|     10|#endif
  633|     10|            exifData.erase(pos);
  634|     10|          }
  635|     22|        }
  636|  19.5k|        break;
  637|      0|      }
  638|  8.68k|      case pttIfd:
  ------------------
  |  Branch (638:7): [True: 8.68k, False: 52.1k]
  ------------------
  639|  8.68k|        if (delTags) {
  ------------------
  |  Branch (639:13): [True: 1, False: 8.68k]
  ------------------
  640|      1|#ifndef SUPPRESS_WARNINGS
  641|      1|          EXV_WARNING << "Exif IFD " << key << " not encoded\n";
  ------------------
  |  |  138|      1|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      1|  LogMsg(LogMsg::warn).os()
  ------------------
  642|      1|#endif
  643|      1|          eraseIfd(exifData, Internal::groupId(key));
  644|      1|        }
  645|  8.68k|        break;
  646|  60.7k|    }
  647|  60.7k|  }
  648|       |
  649|       |  // Delete unknown tags larger than 4kB and known tags larger than 20kB.
  650|  2.23k|  auto f = [](const auto& tag) { return (tag.size() > 4096 && tag.tagName().starts_with("0x")) || tag.size() > 20480; };
  651|  2.23k|  exifData.erase(std::remove_if(exifData.begin(), exifData.end(), f), exifData.end());
  652|       |
  653|       |  // Encode the remaining Exif tags again, don't care if it fits this time
  654|  2.23k|  MemIo mio2;
  655|  2.23k|  wm = TiffParserWorker::encode(mio2, pData, size, exifData, emptyIptc, emptyXmp, Tag::root, TiffMapping::findEncoder,
  656|  2.23k|                                &header, nullptr);
  657|  2.23k|  append(blob, mio2.mmap(), mio2.size());
  658|       |#ifdef EXIV2_DEBUG_MESSAGES
  659|       |  if (wm == wmIntrusive) {
  660|       |    std::cerr << "SIZE OF EXIF DATA IS " << std::dec << mio2.size() << " BYTES\n";
  661|       |  } else {
  662|       |    std::cerr << "SIZE DOESN'T MATTER, NON-INTRUSIVE WRITING USED\n";
  663|       |  }
  664|       |#endif
  665|  2.23k|  return wm;
  666|       |
  667|  2.23k|}  // ExifParser::encode
exif.cpp:_ZNK12_GLOBAL__N_118FindExifdatumByKeyclERKN5Exiv29ExifdatumE:
   45|   170M|  bool operator()(const Exiv2::Exifdatum& exifdatum) const {
   46|   170M|    return key_ == exifdatum.key();
   47|   170M|  }
exif.cpp:_ZN12_GLOBAL__N_118FindExifdatumByKeyC2ENSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   39|   506k|  explicit FindExifdatumByKey(std::string key) : key_(std::move(key)) {
   40|   506k|  }
exif.cpp:_ZZN5Exiv210ExifParser6encodeERNSt3__16vectorIhNS1_9allocatorIhEEEEPKhmNS_9ByteOrderERNS_8ExifDataEENK3$_0clINS_9ExifdatumEEEDaRKT_:
  650|  1.15M|  auto f = [](const auto& tag) { return (tag.size() > 4096 && tag.tagName().starts_with("0x")) || tag.size() > 20480; };
  ------------------
  |  Branch (650:42): [True: 224, False: 1.15M]
  |  Branch (650:63): [True: 111, False: 113]
  |  Branch (650:99): [True: 18, False: 1.15M]
  ------------------
exif.cpp:_ZN12_GLOBAL__N_19sumToLongERKN5Exiv29ExifdatumE:
  734|  1.81k|int64_t sumToLong(const Exiv2::Exifdatum& md) {
  735|  1.81k|  int64_t sum = 0;
  736|  10.8k|  for (size_t i = 0; i < md.count(); ++i) {
  ------------------
  |  Branch (736:22): [True: 9.01k, False: 1.81k]
  ------------------
  737|  9.01k|    sum = Safe::add(sum, md.toInt64(i));
  738|  9.01k|  }
  739|  1.81k|  return sum;
  740|  1.81k|}
exif.cpp:_ZN12_GLOBAL__N_18eraseIfdERN5Exiv28ExifDataENS0_5IfdIdE:
  742|  48.7k|void eraseIfd(Exiv2::ExifData& ed, Exiv2::IfdId ifdId) {
  743|  48.7k|  ed.erase(std::remove_if(ed.begin(), ed.end(), Exiv2::FindExifdatum(ifdId)), ed.end());
  744|  48.7k|}
_ZN5Exiv28setValueItEERNS_9ExifdatumES2_RKT_:
  150|      4|Exiv2::Exifdatum& setValue(Exiv2::Exifdatum& exifDatum, const T& value) {
  151|      4|  auto v = std::make_unique<Exiv2::ValueType<T>>();
  152|      4|  v->value_.push_back(value);
  153|      4|  exifDatum.value_ = std::move(v);
  154|      4|  return exifDatum;
  155|      4|}
_ZN5Exiv28setValueIjEERNS_9ExifdatumES2_RKT_:
  150|  29.0k|Exiv2::Exifdatum& setValue(Exiv2::Exifdatum& exifDatum, const T& value) {
  151|  29.0k|  auto v = std::make_unique<Exiv2::ValueType<T>>();
  152|  29.0k|  v->value_.push_back(value);
  153|  29.0k|  exifDatum.value_ = std::move(v);
  154|  29.0k|  return exifDatum;
  155|  29.0k|}

fujimn_int.cpp:_ZN5Exiv28InternalL29printFujiWhiteBalanceFineTuneERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   97|    162|static std::ostream& printFujiWhiteBalanceFineTune(std::ostream& os, const Value& value, const ExifData*) {
   98|    162|  if (value.typeId() == signedLong && value.size() == 8) {
  ------------------
  |  Branch (98:7): [True: 154, False: 8]
  |  Branch (98:39): [True: 104, False: 50]
  ------------------
   99|    104|    if (auto longValue = dynamic_cast<const LongValue*>(&value)) {
  ------------------
  |  Branch (99:14): [True: 104, False: 0]
  ------------------
  100|    104|      if (longValue->toInt64(0) % 20 == 0 && longValue->toInt64(1) % 20 == 0) {
  ------------------
  |  Branch (100:11): [True: 48, False: 56]
  |  Branch (100:46): [True: 10, False: 38]
  ------------------
  101|     10|        auto redShift = longValue->toInt64(0) / 20;
  102|     10|        auto blueShift = longValue->toInt64(1) / 20;
  103|     10|        os << "R: " << redShift << " B: " << blueShift;
  104|     10|        return os;
  105|     10|      }
  106|    104|    }
  107|    104|  }
  108|    152|  os << "(" << value << ")";
  109|    152|  return os;
  110|    162|}
fujimn_int.cpp:_ZN5Exiv28InternalL20printFujiDigitalZoomERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  229|    106|static std::ostream& printFujiDigitalZoom(std::ostream& os, const Value& value, const ExifData*) {
  230|    106|  if (value.typeId() == unsignedLong && value.size() == 4) {
  ------------------
  |  Branch (230:7): [True: 42, False: 64]
  |  Branch (230:41): [True: 36, False: 6]
  ------------------
  231|     36|    os << (value.toFloat() / 8);
  232|     36|  }
  233|    106|  os << "(" << value << ")";
  234|    106|  return os;
  235|    106|}
fujimn_int.cpp:_ZN5Exiv28InternalL27printFujiMonochromaticColorERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  255|     24|static std::ostream& printFujiMonochromaticColor(std::ostream& os, const Value& value, const ExifData*) {
  256|     24|  if (value.size() == 1) {
  ------------------
  |  Branch (256:7): [True: 14, False: 10]
  ------------------
  257|     14|    auto v = static_cast<std::int8_t>(value.toInt64());
  258|     14|    os << (v > 0 ? "+" : "") << static_cast<int>(v);
  ------------------
  |  Branch (258:12): [True: 6, False: 8]
  ------------------
  259|     14|  } else {
  260|     10|    os << "(" << value << ")";
  261|     10|  }
  262|     24|  return os;
  263|     24|}
fujimn_int.cpp:_ZN5Exiv28InternalL21printFujiDriveSettingERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  289|    158|static std::ostream& printFujiDriveSetting(std::ostream& os, const Value& value, const ExifData*) {
  290|    158|  auto valint = value.toUint32();
  291|    158|  auto byte1 = static_cast<byte>(valint);
  292|    158|  auto byte2 = static_cast<byte>(valint >> 8);
  293|    158|  auto byte3 = static_cast<byte>(valint >> 16);
  294|    158|  auto fps = valint >> 24;
  295|       |
  296|    158|  if (auto setting = Exiv2::find(fujiDriveSettingByte1, byte1)) {
  ------------------
  |  Branch (296:12): [True: 98, False: 60]
  ------------------
  297|     98|    os << _(setting->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  298|     98|  } else {
  299|     60|    os << "(" << +byte1 << ")";
  300|     60|  }
  301|       |
  302|    158|  if (fps != 0) {
  ------------------
  |  Branch (302:7): [True: 48, False: 110]
  ------------------
  303|     48|    os << ", " << fps << " fps";
  304|     48|  }
  305|       |
  306|    158|  if (byte1 != 0) {
  ------------------
  |  Branch (306:7): [True: 124, False: 34]
  ------------------
  307|    124|    os << ", (" << +byte2 << ", " << +byte3 << ")";  // unknown values
  308|    124|  }
  309|    158|  return os;
  310|    158|}
fujimn_int.cpp:_ZN5Exiv28InternalL25printFujiFaceElementTypesERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  420|    130|static std::ostream& printFujiFaceElementTypes(std::ostream& os, const Value& value, const ExifData*) {
  421|    130|  if (value.typeId() == asciiString || value.typeId() == unsignedShort) {
  ------------------
  |  Branch (421:7): [True: 66, False: 64]
  |  Branch (421:40): [True: 48, False: 16]
  ------------------
  422|    114|    auto elements = value.count();
  423|       |
  424|    114|    if (value.typeId() == asciiString && elements > 0) {
  ------------------
  |  Branch (424:9): [True: 66, False: 48]
  |  Branch (424:42): [True: 66, False: 0]
  ------------------
  425|     66|      elements -= 1;  // null escaped
  426|     66|    }
  427|       |
  428|  15.1k|    for (size_t n = 0; n < elements; n++) {
  ------------------
  |  Branch (428:24): [True: 15.0k, False: 114]
  ------------------
  429|  15.0k|      auto longValue = value.toInt64(n);
  430|       |
  431|  15.0k|      if (value.typeId() == asciiString) {
  ------------------
  |  Branch (431:11): [True: 1.67k, False: 13.3k]
  ------------------
  432|  1.67k|        longValue -= '0';
  433|  1.67k|      }
  434|       |
  435|  15.0k|      if (n != 0) {
  ------------------
  |  Branch (435:11): [True: 14.9k, False: 92]
  ------------------
  436|  14.9k|        os << " ";
  437|  14.9k|      }
  438|  15.0k|      if (auto td = Exiv2::find(fujiFaceElementType, longValue)) {
  ------------------
  |  Branch (438:16): [True: 562, False: 14.4k]
  ------------------
  439|    562|        os << _(td->label_);
  ------------------
  |  |   40|    562|#define _(String) (String)
  ------------------
  440|  14.4k|      } else {
  441|  14.4k|        os << "(" << value.toInt64(n) << ")";
  442|  14.4k|      }
  443|  15.0k|    }
  444|    114|  } else {
  445|     16|    os << "(" << value << ")";
  446|     16|  }
  447|    130|  return os;
  448|    130|}

_ZN5Exiv28Internal13FujiMakerNote7tagListEv:
   19|  51.2k|  static constexpr auto tagList() {
   20|  51.2k|    return tagInfo_;
   21|  51.2k|  }

_ZN5Exiv28GifImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   19|     18|GifImage::GifImage(BasicIo::UniquePtr io) : Image(ImageType::gif, mdNone, std::move(io)) {
   20|     18|}
_ZN5Exiv28GifImage12readMetadataEv:
   41|     17|void GifImage::readMetadata() {
   42|       |#ifdef EXIV2_DEBUG_MESSAGES
   43|       |  std::cerr << "Exiv2::GifImage::readMetadata: Reading GIF file " << io_->path() << "\n";
   44|       |#endif
   45|     17|  if (io_->open() != 0) {
  ------------------
  |  Branch (45:7): [True: 0, False: 17]
  ------------------
   46|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   47|      0|  }
   48|     17|  IoCloser closer(*io_);
   49|       |  // Ensure that this is the correct image type
   50|     17|  if (!isGifType(*io_, true)) {
  ------------------
  |  Branch (50:7): [True: 0, False: 17]
  ------------------
   51|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (51:9): [True: 0, False: 0]
  |  Branch (51:25): [True: 0, False: 0]
  ------------------
   52|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   53|      0|    throw Error(ErrorCode::kerNotAnImage, "GIF");
   54|      0|  }
   55|     17|  clearMetadata();
   56|       |
   57|     17|  byte buf[4];
   58|     17|  if (io_->read(buf, sizeof(buf)) == sizeof(buf)) {
  ------------------
  |  Branch (58:7): [True: 17, False: 0]
  ------------------
   59|     17|    pixelWidth_ = getShort(buf, littleEndian);
   60|     17|    pixelHeight_ = getShort(buf + 2, littleEndian);
   61|     17|  }
   62|     17|}  // GifImage::readMetadata
_ZN5Exiv214newGifInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
   71|     18|Image::UniquePtr newGifInstance(BasicIo::UniquePtr io, bool /*create*/) {
   72|     18|  auto image = std::make_unique<GifImage>(std::move(io));
   73|     18|  if (!image->good()) {
  ------------------
  |  Branch (73:7): [True: 1, False: 17]
  ------------------
   74|      1|    return nullptr;
   75|      1|  }
   76|     17|  return image;
   77|     18|}
_ZN5Exiv29isGifTypeERNS_7BasicIoEb:
   79|  10.2k|bool isGifType(BasicIo& iIo, bool advance) {
   80|  10.2k|  const int32_t len = 6;
   81|  10.2k|  const std::array<byte, len> Gif87aId{'G', 'I', 'F', '8', '7', 'a'};
   82|  10.2k|  const std::array<byte, len> Gif89aId{'G', 'I', 'F', '8', '9', 'a'};
   83|  10.2k|  std::array<byte, len> buf;
   84|  10.2k|  iIo.read(buf.data(), len);
   85|  10.2k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (85:7): [True: 0, False: 10.2k]
  |  Branch (85:22): [True: 139, False: 10.1k]
  ------------------
   86|    139|    return false;
   87|    139|  }
   88|  10.1k|  bool matched = buf == Gif87aId || buf == Gif89aId;
  ------------------
  |  Branch (88:18): [True: 19, False: 10.1k]
  |  Branch (88:37): [True: 33, False: 10.0k]
  ------------------
   89|  10.1k|  if (!advance || !matched) {
  ------------------
  |  Branch (89:7): [True: 10.1k, False: 17]
  |  Branch (89:19): [True: 0, False: 17]
  ------------------
   90|  10.1k|    iIo.seek(-len, BasicIo::cur);
   91|  10.1k|  }
   92|  10.1k|  return matched;
   93|  10.2k|}

_Z24string_from_unterminatedPKcm:
   13|  60.2k|std::string string_from_unterminated(const char* data, size_t data_length) {
   14|  60.2k|  if (data_length == 0) {
  ------------------
  |  Branch (14:7): [True: 2.91k, False: 57.3k]
  ------------------
   15|  2.91k|    return {};
   16|  2.91k|  }
   17|  57.3k|  const size_t StringLength = strnlen(data, data_length);
   18|  57.3k|  return {data, StringLength};
   19|  60.2k|}
_ZN5Exiv212readQWORDTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEE:
   22|  1.74k|uint64_t readQWORDTag(const BasicIo::UniquePtr& io) {
   23|  1.74k|  Internal::enforce(QWORD <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   24|  1.74k|  auto FieldBuf = io->read(QWORD);
   25|  1.74k|  return FieldBuf.read_uint64(0, littleEndian);
   26|  1.74k|}
_ZN5Exiv212readDWORDTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEE:
   28|  33.5k|uint32_t readDWORDTag(const BasicIo::UniquePtr& io) {
   29|  33.5k|  Internal::enforce(DWORD <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   30|  33.5k|  DataBuf FieldBuf = io->read(DWORD);
   31|  33.5k|  return FieldBuf.read_uint32(0, littleEndian);
   32|  33.5k|}
_ZN5Exiv211readWORDTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEE:
   34|  10.5k|uint16_t readWORDTag(const BasicIo::UniquePtr& io) {
   35|  10.5k|  Internal::enforce(WORD <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   36|  10.5k|  DataBuf FieldBuf = io->read(WORD);
   37|  10.5k|  return FieldBuf.read_uint16(0, littleEndian);
   38|  10.5k|}
_ZN5Exiv218readStringWcharTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEm:
   40|  1.96k|std::string readStringWcharTag(const BasicIo::UniquePtr& io, size_t length) {
   41|  1.96k|  Internal::enforce(length <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   42|  1.96k|  DataBuf FieldBuf(length + 1);
   43|  1.96k|  io->readOrThrow(FieldBuf.data(), length, ErrorCode::kerFailedToReadImageData);
   44|  1.96k|  std::string wst(FieldBuf.begin(), FieldBuf.end() - 3);
   45|  1.96k|  if (wst.size() % 2 != 0)
  ------------------
  |  Branch (45:7): [True: 1.00k, False: 955]
  ------------------
   46|  1.00k|    Exiv2::convertStringCharset(wst, "UCS-2LE", "UTF-8");
   47|  1.96k|  Exiv2::convertStringCharset(wst, "UCS-2LE", "UTF-8");
   48|  1.96k|  return wst;
   49|  1.96k|}
_ZN5Exiv213readStringTagERKNSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEm:
   51|  31.7k|std::string readStringTag(const BasicIo::UniquePtr& io, size_t length) {
   52|  31.7k|  Internal::enforce(length <= io->size() - io->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
   53|  31.7k|  DataBuf FieldBuf(length + 1);
   54|  31.7k|  io->readOrThrow(FieldBuf.data(), length, ErrorCode::kerFailedToReadImageData);
   55|  31.7k|  return Exiv2::toString(FieldBuf.data()).substr(0, length);
   56|  31.7k|}
_ZN5Exiv214getAspectRatioEmm:
   58|  1.35k|std::string getAspectRatio(uint64_t width, uint64_t height) {
   59|  1.35k|  if (height == 0 || width == 0)
  ------------------
  |  Branch (59:7): [True: 35, False: 1.31k]
  |  Branch (59:22): [True: 4, False: 1.31k]
  ------------------
   60|     39|    return std::to_string(width) + ":" + std::to_string(height);
   61|       |
   62|  1.31k|  auto ratioWidth = width / std::gcd(width, height);
   63|  1.31k|  auto ratioHeight = height / std::gcd(width, height);
   64|  1.31k|  return std::to_string(ratioWidth) + ":" + std::to_string(ratioHeight);
   65|  1.35k|}

_ZN5Exiv25ImageC2ENS_9ImageTypeEtNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  140|  31.9k|    io_(std::move(io)), imageType_(type), supportedMetadata_(supportedMetadata) {
  141|  31.9k|}
_ZN5Exiv25ImageD2Ev:
  143|  31.9k|Image::~Image() = default;
_ZN5Exiv25Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  145|  2.58k|void Image::printStructure(std::ostream&, PrintStructureOption, size_t /*depth*/) {
  146|  2.58k|  throw Error(ErrorCode::kerUnsupportedImageType, io_->path());
  147|  2.58k|}
_ZN5Exiv25Image12isStringTypeEt:
  149|  25.9k|bool Image::isStringType(uint16_t type) {
  150|  25.9k|  return type == Exiv2::asciiString || type == Exiv2::unsignedByte || type == Exiv2::signedByte ||
  ------------------
  |  Branch (150:10): [True: 871, False: 25.0k]
  |  Branch (150:40): [True: 69, False: 25.0k]
  |  Branch (150:71): [True: 2.44k, False: 22.5k]
  ------------------
  151|  22.5k|         type == Exiv2::undefined;
  ------------------
  |  Branch (151:10): [True: 3.77k, False: 18.8k]
  ------------------
  152|  25.9k|}
_ZN5Exiv25Image11isShortTypeEt:
  153|  13.5k|bool Image::isShortType(uint16_t type) {
  154|  13.5k|  return type == Exiv2::unsignedShort || type == Exiv2::signedShort;
  ------------------
  |  Branch (154:10): [True: 912, False: 12.6k]
  |  Branch (154:42): [True: 2.53k, False: 10.1k]
  ------------------
  155|  13.5k|}
_ZN5Exiv25Image10isLongTypeEt:
  156|  10.1k|bool Image::isLongType(uint16_t type) {
  157|  10.1k|  return type == Exiv2::unsignedLong || type == Exiv2::signedLong;
  ------------------
  |  Branch (157:10): [True: 4.08k, False: 6.06k]
  |  Branch (157:41): [True: 615, False: 5.45k]
  ------------------
  158|  10.1k|}
_ZN5Exiv25Image14isLongLongTypeEt:
  159|     21|bool Image::isLongLongType(uint16_t type) {
  160|     21|  return type == Exiv2::unsignedLongLong || type == Exiv2::signedLongLong;
  ------------------
  |  Branch (160:10): [True: 0, False: 21]
  |  Branch (160:45): [True: 0, False: 21]
  ------------------
  161|     21|}
_ZN5Exiv25Image14isRationalTypeEt:
  162|  4.47k|bool Image::isRationalType(uint16_t type) {
  163|  4.47k|  return type == Exiv2::unsignedRational || type == Exiv2::signedRational;
  ------------------
  |  Branch (163:10): [True: 1.64k, False: 2.83k]
  |  Branch (163:45): [True: 72, False: 2.76k]
  ------------------
  164|  4.47k|}
_ZN5Exiv25Image11is2ByteTypeEt:
  165|  5.94k|bool Image::is2ByteType(uint16_t type) {
  166|  5.94k|  return isShortType(type);
  167|  5.94k|}
_ZN5Exiv25Image11is4ByteTypeEt:
  168|  4.21k|bool Image::is4ByteType(uint16_t type) {
  169|  4.21k|  return isLongType(type) || type == Exiv2::tiffFloat || type == Exiv2::tiffIfd;
  ------------------
  |  Branch (169:10): [True: 2.35k, False: 1.85k]
  |  Branch (169:30): [True: 86, False: 1.77k]
  |  Branch (169:58): [True: 887, False: 883]
  ------------------
  170|  4.21k|}
_ZN5Exiv25Image11is8ByteTypeEt:
  171|    883|bool Image::is8ByteType(uint16_t type) {
  172|    883|  return isRationalType(type) || isLongLongType(type) || type == Exiv2::tiffIfd8 || type == Exiv2::tiffDouble;
  ------------------
  |  Branch (172:10): [True: 862, False: 21]
  |  Branch (172:34): [True: 0, False: 21]
  |  Branch (172:58): [True: 0, False: 21]
  |  Branch (172:85): [True: 21, False: 0]
  ------------------
  173|    883|}
_ZN5Exiv25Image10isPrintXMPEtNS_20PrintStructureOptionE:
  174|  15.3k|bool Image::isPrintXMP(uint16_t type, Exiv2::PrintStructureOption option) {
  175|  15.3k|  return type == 700 && option == kpsXMP;
  ------------------
  |  Branch (175:10): [True: 2, False: 15.3k]
  |  Branch (175:25): [True: 0, False: 2]
  ------------------
  176|  15.3k|}
_ZN5Exiv25Image10isPrintICCEtNS_20PrintStructureOptionE:
  177|  15.3k|bool Image::isPrintICC(uint16_t type, Exiv2::PrintStructureOption option) {
  178|  15.3k|  return type == 0x8773 && option == kpsIccProfile;
  ------------------
  |  Branch (178:10): [True: 1, False: 15.3k]
  |  Branch (178:28): [True: 0, False: 1]
  ------------------
  179|  15.3k|}
_ZN5Exiv25Image19isBigEndianPlatformEv:
  181|  2.55k|bool Image::isBigEndianPlatform() {
  182|  2.55k|  return std::endian::native == std::endian::big;
  183|  2.55k|}
_ZN5Exiv25Image22isLittleEndianPlatformEv:
  184|  15.6k|bool Image::isLittleEndianPlatform() {
  185|  15.6k|  return std::endian::native == std::endian::little;
  186|  15.6k|}
_ZN5Exiv25Image8byteSwapEjb:
  205|  45.7k|uint32_t Image::byteSwap(uint32_t value, bool bSwap) {
  206|       |#ifdef __cpp_lib_byteswap
  207|       |  return bSwap ? std::byteswap(value) : value;
  208|       |#elif defined(_MSC_VER)
  209|       |  return bSwap ? _byteswap_ulong(value) : value;
  210|       |#else
  211|  45.7k|  uint32_t result = 0;
  212|  45.7k|  result |= (value & 0x000000FFU) << 24;
  213|  45.7k|  result |= (value & 0x0000FF00U) << 8;
  214|  45.7k|  result |= (value & 0x00FF0000U) >> 8;
  215|  45.7k|  result |= (value & 0xFF000000U) >> 24;
  216|  45.7k|  return bSwap ? result : value;
  ------------------
  |  Branch (216:10): [True: 34.8k, False: 10.9k]
  ------------------
  217|  45.7k|#endif
  218|  45.7k|}
_ZN5Exiv25Image8byteSwapEtb:
  220|  36.1k|uint16_t Image::byteSwap(uint16_t value, bool bSwap) {
  221|       |#ifdef __cpp_lib_byteswap
  222|       |  return bSwap ? std::byteswap(value) : value;
  223|       |#elif defined(_MSC_VER)
  224|       |  return bSwap ? _byteswap_ushort(value) : value;
  225|       |#else
  226|  36.1k|  uint16_t result = 0;
  227|  36.1k|  result |= (value & 0x00FFU) << 8;
  228|  36.1k|  result |= (value & 0xFF00U) >> 8;
  229|  36.1k|  return bSwap ? result : value;
  ------------------
  |  Branch (229:10): [True: 28.1k, False: 8.00k]
  ------------------
  230|  36.1k|#endif
  231|  36.1k|}
_ZN5Exiv25Image9byteSwap2ERKNS_7DataBufEmb:
  233|  36.1k|uint16_t Image::byteSwap2(const DataBuf& buf, size_t offset, bool bSwap) {
  234|  36.1k|  uint16_t v = 0;
  235|  36.1k|  auto p = reinterpret_cast<char*>(&v);
  236|  36.1k|  p[0] = buf.read_uint8(offset);
  237|  36.1k|  p[1] = buf.read_uint8(offset + 1);
  238|  36.1k|  return Image::byteSwap(v, bSwap);
  239|  36.1k|}
_ZN5Exiv25Image9byteSwap4ERKNS_7DataBufEmb:
  241|  45.3k|uint32_t Image::byteSwap4(const DataBuf& buf, size_t offset, bool bSwap) {
  242|  45.3k|  uint32_t v = 0;
  243|  45.3k|  auto p = reinterpret_cast<char*>(&v);
  244|  45.3k|  p[0] = buf.read_uint8(offset);
  245|  45.3k|  p[1] = buf.read_uint8(offset + 1);
  246|  45.3k|  p[2] = buf.read_uint8(offset + 2);
  247|  45.3k|  p[3] = buf.read_uint8(offset + 3);
  248|  45.3k|  return Image::byteSwap(v, bSwap);
  249|  45.3k|}
_ZN5Exiv25Image8typeNameEt:
  262|  7.65k|const char* Image::typeName(uint16_t tag) {
  263|       |  //! List of TIFF image tags
  264|  7.65k|  const char* result = nullptr;
  265|  7.65k|  switch (tag) {
  266|     15|    case Exiv2::unsignedByte:
  ------------------
  |  Branch (266:5): [True: 15, False: 7.64k]
  ------------------
  267|     15|      result = "BYTE";
  268|     15|      break;
  269|    193|    case Exiv2::asciiString:
  ------------------
  |  Branch (269:5): [True: 193, False: 7.46k]
  ------------------
  270|    193|      result = "ASCII";
  271|    193|      break;
  272|    453|    case Exiv2::unsignedShort:
  ------------------
  |  Branch (272:5): [True: 453, False: 7.20k]
  ------------------
  273|    453|      result = "SHORT";
  274|    453|      break;
  275|  2.03k|    case Exiv2::unsignedLong:
  ------------------
  |  Branch (275:5): [True: 2.03k, False: 5.62k]
  ------------------
  276|  2.03k|      result = "LONG";
  277|  2.03k|      break;
  278|    816|    case Exiv2::unsignedRational:
  ------------------
  |  Branch (278:5): [True: 816, False: 6.84k]
  ------------------
  279|    816|      result = "RATIONAL";
  280|    816|      break;
  281|    611|    case Exiv2::signedByte:
  ------------------
  |  Branch (281:5): [True: 611, False: 7.04k]
  ------------------
  282|    611|      result = "SBYTE";
  283|    611|      break;
  284|    941|    case Exiv2::undefined:
  ------------------
  |  Branch (284:5): [True: 941, False: 6.71k]
  ------------------
  285|    941|      result = "UNDEFINED";
  286|    941|      break;
  287|  1.26k|    case Exiv2::signedShort:
  ------------------
  |  Branch (287:5): [True: 1.26k, False: 6.39k]
  ------------------
  288|  1.26k|      result = "SSHORT";
  289|  1.26k|      break;
  290|    306|    case Exiv2::signedLong:
  ------------------
  |  Branch (290:5): [True: 306, False: 7.35k]
  ------------------
  291|    306|      result = "SLONG";
  292|    306|      break;
  293|     35|    case Exiv2::signedRational:
  ------------------
  |  Branch (293:5): [True: 35, False: 7.62k]
  ------------------
  294|     35|      result = "SRATIONAL";
  295|     35|      break;
  296|     82|    case Exiv2::tiffFloat:
  ------------------
  |  Branch (296:5): [True: 82, False: 7.57k]
  ------------------
  297|     82|      result = "FLOAT";
  298|     82|      break;
  299|     18|    case Exiv2::tiffDouble:
  ------------------
  |  Branch (299:5): [True: 18, False: 7.64k]
  ------------------
  300|     18|      result = "DOUBLE";
  301|     18|      break;
  302|    885|    case Exiv2::tiffIfd:
  ------------------
  |  Branch (302:5): [True: 885, False: 6.77k]
  ------------------
  303|    885|      result = "IFD";
  304|    885|      break;
  305|      0|    default:
  ------------------
  |  Branch (305:5): [True: 0, False: 7.65k]
  ------------------
  306|      0|      result = "unknown";
  307|      0|      break;
  308|  7.65k|  }
  309|  7.65k|  return result;
  310|  7.65k|}
_ZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcm:
  319|  18.0k|                              bool bSwap, char c, size_t depth) {
  320|  18.0k|  if (depth == 1)
  ------------------
  |  Branch (320:7): [True: 2.35k, False: 15.7k]
  ------------------
  321|  2.35k|    visits.clear();
  322|  18.0k|  bool bFirst = true;
  323|       |
  324|       |  // buffer
  325|  18.0k|  const size_t dirSize = 32;
  326|  18.0k|  DataBuf dir(dirSize);
  327|  18.0k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (327:17): [True: 15.6k, False: 2.37k]
  |  Branch (327:39): [True: 2.37k, False: 2]
  ------------------
  328|       |
  329|  18.0k|  do {
  330|       |    // Read top of directory
  331|  18.0k|    io.seekOrThrow(start, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  332|  18.0k|    io.readOrThrow(dir.data(), 2, ErrorCode::kerCorruptedMetadata);
  333|  18.0k|    uint16_t dirLength = byteSwap2(dir, 0, bSwap);
  334|       |    // Prevent infinite loops. (GHSA-m479-7frc-gqqg)
  335|  18.0k|    Internal::enforce(dirLength > 0, ErrorCode::kerCorruptedMetadata);
  336|       |
  337|  18.0k|    if (dirLength > 500)  // tooBig
  ------------------
  |  Branch (337:9): [True: 18, False: 18.0k]
  ------------------
  338|     18|      throw Error(ErrorCode::kerTiffDirectoryTooLarge);
  339|       |
  340|  18.0k|    if (bFirst && bPrint) {
  ------------------
  |  Branch (340:9): [True: 17.9k, False: 162]
  |  Branch (340:19): [True: 17.9k, False: 2]
  ------------------
  341|  17.9k|      out << Internal::indent(depth) << stringFormat("STRUCTURE OF TIFF FILE ({}{}): {}\n", c, c, io.path());
  ------------------
  |  |   18|  17.9k|#define stringFormat std::format
  ------------------
  342|  17.9k|    }
  343|       |
  344|       |    // Read the dictionary
  345|  25.7k|    for (int i = 0; i < dirLength; i++) {
  ------------------
  |  Branch (345:21): [True: 23.2k, False: 2.50k]
  ------------------
  346|  23.2k|      if (visits.contains(io.tell())) {  // #547
  ------------------
  |  Branch (346:11): [True: 15.2k, False: 7.96k]
  ------------------
  347|  15.2k|        throw Error(ErrorCode::kerCorruptedMetadata);
  348|  15.2k|      }
  349|  7.96k|      visits.insert(io.tell());
  350|       |
  351|  7.96k|      if (bFirst && bPrint) {
  ------------------
  |  Branch (351:11): [True: 2.62k, False: 5.34k]
  |  Branch (351:21): [True: 2.62k, False: 0]
  ------------------
  352|  2.62k|        out << Internal::indent(depth) << " address |    tag                              |     "
  353|  2.62k|            << " type |    count |    offset | value\n";
  354|  2.62k|      }
  355|  7.96k|      bFirst = false;
  356|       |
  357|  7.96k|      io.readOrThrow(dir.data(), 12, ErrorCode::kerCorruptedMetadata);
  358|  7.96k|      uint16_t tag = byteSwap2(dir, 0, bSwap);
  359|  7.96k|      uint16_t type = byteSwap2(dir, 2, bSwap);
  360|  7.96k|      uint32_t count = byteSwap4(dir, 4, bSwap);
  361|  7.96k|      uint32_t offset = byteSwap4(dir, 8, bSwap);
  362|       |
  363|       |      // Break for unknown tag types else we may segfault.
  364|  7.96k|      if (!typeValid(type)) {
  ------------------
  |  Branch (364:11): [True: 211, False: 7.75k]
  ------------------
  365|    211|        EXV_ERROR << "invalid type in tiff structure" << type << '\n';
  ------------------
  |  |  142|    211|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 211]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    211|  LogMsg(LogMsg::error).os()
  ------------------
  366|    211|        throw Error(ErrorCode::kerInvalidTypeValue);
  367|    211|      }
  368|       |
  369|       |      // prepare to print the value
  370|  7.75k|      uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  7.75k|        if (isPrintXMP(tag, option))
  373|  7.75k|          return count;
  374|       |        // ditto
  375|  7.75k|        if (isPrintICC(tag, option))
  376|  7.75k|          return count;
  377|       |        // restrict long arrays
  378|  7.75k|        if (isStringType(type)) {
  379|  7.75k|          return std::min(count, 32u);
  380|  7.75k|        }
  381|  7.75k|        return std::min(count, 5u);
  382|  7.75k|      }();
  383|  7.75k|      uint32_t pad = isStringType(type) ? 1 : 0;
  ------------------
  |  Branch (383:22): [True: 1.79k, False: 5.95k]
  ------------------
  384|  7.75k|      size_t size = [=] {
  385|  7.75k|        if (isStringType(type))
  386|  7.75k|          return 1;
  387|  7.75k|        if (is2ByteType(type))
  388|  7.75k|          return 2;
  389|  7.75k|        if (is4ByteType(type))
  390|  7.75k|          return 4;
  391|  7.75k|        if (is8ByteType(type))
  392|  7.75k|          return 8;
  393|  7.75k|        return 1;
  394|  7.75k|      }();
  395|       |
  396|       |      // if ( offset > io.size() ) offset = 0; // Denial of service?
  397|       |
  398|       |      // #55 and #56 memory allocation crash test/data/POC8
  399|  7.75k|      const size_t allocate64 = (size * count) + pad + 20;
  400|  7.75k|      if (allocate64 > io.size()) {
  ------------------
  |  Branch (400:11): [True: 73, False: 7.68k]
  ------------------
  401|     73|        throw Error(ErrorCode::kerInvalidMalloc);
  402|     73|      }
  403|  7.68k|      DataBuf buf(allocate64);                       // allocate a buffer
  404|  7.68k|      std::copy_n(dir.begin() + 8, 4, buf.begin());  // copy dir[8:11] into buffer (short strings)
  405|       |
  406|       |      // We have already checked that this multiplication cannot overflow.
  407|  7.68k|      const size_t count_x_size = count * size;
  408|  7.68k|      const bool bOffsetIsPointer = count_x_size > 4;
  409|       |
  410|  7.68k|      if (bOffsetIsPointer) {                                                       // read into buffer
  ------------------
  |  Branch (410:11): [True: 3.40k, False: 4.28k]
  ------------------
  411|  3.40k|        const size_t restore = io.tell();                                           // save
  412|  3.40k|        io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);      // position
  413|  3.40k|        io.readOrThrow(buf.data(), count_x_size, ErrorCode::kerCorruptedMetadata);  // read
  414|  3.40k|        io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);     // restore
  415|  3.40k|      }
  416|       |
  417|  7.68k|      if (bPrint) {
  ------------------
  |  Branch (417:11): [True: 7.65k, False: 24]
  ------------------
  418|  7.65k|        const size_t address = start + 2 + (i * 12);
  419|  7.65k|        const std::string offsetString = bOffsetIsPointer ? stringFormat("{:9}", offset) : "";
  ------------------
  |  |   18|  3.39k|#define stringFormat std::format
  ------------------
  |  Branch (419:42): [True: 3.39k, False: 4.26k]
  ------------------
  420|  7.65k|        std::string sp;  // output spacer
  421|       |
  422|  7.65k|        out << Internal::indent(depth)
  423|  7.65k|            << stringFormat("{:8} | {:#06x} {:<28} | {:>9} | {:>8} | {:9} | ", address, tag, tagName(tag),
  ------------------
  |  |   18|  7.65k|#define stringFormat std::format
  ------------------
  424|  7.65k|                            typeName(type), count, offsetString);
  425|  7.65k|        if (isShortType(type)) {
  ------------------
  |  Branch (425:13): [True: 1.71k, False: 5.94k]
  ------------------
  426|  3.86k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (426:30): [True: 2.14k, False: 1.71k]
  ------------------
  427|  2.14k|            out << sp << byteSwap2(buf, k * size, bSwap);
  428|  2.14k|            sp = " ";
  429|  2.14k|          }
  430|  5.94k|        } else if (isLongType(type)) {
  ------------------
  |  Branch (430:20): [True: 2.34k, False: 3.59k]
  ------------------
  431|  8.22k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (431:30): [True: 5.87k, False: 2.34k]
  ------------------
  432|  5.87k|            out << sp << byteSwap4(buf, k * size, bSwap);
  433|  5.87k|            sp = " ";
  434|  5.87k|          }
  435|       |
  436|  3.59k|        } else if (isRationalType(type)) {
  ------------------
  |  Branch (436:20): [True: 851, False: 2.74k]
  ------------------
  437|  2.44k|          for (size_t k = 0; k < kount; k++) {
  ------------------
  |  Branch (437:30): [True: 1.59k, False: 851]
  ------------------
  438|  1.59k|            uint32_t a = byteSwap4(buf, (k * size) + 0, bSwap);
  439|  1.59k|            uint32_t b = byteSwap4(buf, (k * size) + 4, bSwap);
  440|  1.59k|            out << sp << a << "/" << b;
  441|  1.59k|            sp = " ";
  442|  1.59k|          }
  443|  2.74k|        } else if (isStringType(type)) {
  ------------------
  |  Branch (443:20): [True: 1.76k, False: 985]
  ------------------
  444|  1.76k|          out << sp << Internal::binaryToString(makeSlice(buf, 0, kount));
  445|  1.76k|        }
  446|       |
  447|  7.65k|        sp = kount == count ? "" : " ...";
  ------------------
  |  Branch (447:14): [True: 5.70k, False: 1.95k]
  ------------------
  448|  7.65k|        out << sp << '\n';
  449|       |
  450|  7.65k|        if (option == kpsRecursive && (tag == 0x8769 /* ExifTag */ || tag == 0x014a /*SubIFDs*/ || type == tiffIfd)) {
  ------------------
  |  Branch (450:13): [True: 7.29k, False: 364]
  |  Branch (450:40): [True: 20, False: 7.27k]
  |  Branch (450:71): [True: 181, False: 7.09k]
  |  Branch (450:100): [True: 879, False: 6.21k]
  ------------------
  451|  1.09k|          for (size_t k = 0; k < count; k++) {
  ------------------
  |  Branch (451:30): [True: 16, False: 1.08k]
  ------------------
  452|     16|            const size_t restore = io.tell();
  453|     16|            offset = byteSwap4(buf, k * size, bSwap);
  454|     16|            printIFDStructure(io, out, option, offset, bSwap, c, depth + 1);
  455|     16|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  456|     16|          }
  457|  6.57k|        } else if (option == kpsRecursive && tag == 0x83bb /* IPTCNAA */) {
  ------------------
  |  Branch (457:20): [True: 6.21k, False: 364]
  |  Branch (457:46): [True: 1.11k, False: 5.10k]
  ------------------
  458|  1.11k|          if (count > 0) {
  ------------------
  |  Branch (458:15): [True: 496, False: 618]
  ------------------
  459|    496|            if (static_cast<size_t>(Safe::add(count, offset)) > io.size()) {
  ------------------
  |  Branch (459:17): [True: 1, False: 495]
  ------------------
  460|      1|              throw Error(ErrorCode::kerCorruptedMetadata);
  461|      1|            }
  462|       |
  463|    495|            const size_t restore = io.tell();
  464|    495|            io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  465|    495|            auto bytes = std::make_unique<byte[]>(count);                           // allocate memory
  466|    495|            io.readOrThrow(bytes.get(), count, ErrorCode::kerCorruptedMetadata);
  467|    495|            io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);
  468|    495|            IptcData::printStructure(out, makeSliceUntil(bytes.get(), count), depth);
  469|    495|          }
  470|  5.46k|        } else if (option == kpsRecursive && tag == 0x927c /* MakerNote */ && count > 10) {
  ------------------
  |  Branch (470:20): [True: 5.10k, False: 364]
  |  Branch (470:46): [True: 876, False: 4.22k]
  |  Branch (470:79): [True: 3, False: 873]
  ------------------
  471|      3|          const size_t restore = io.tell();  // save
  472|       |
  473|      3|          uint32_t jump = 10;
  474|      3|          byte bytes[20];
  475|      3|          const auto chars = reinterpret_cast<const char*>(&bytes[0]);
  476|      3|          io.seekOrThrow(offset, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  477|      3|          io.readOrThrow(bytes, jump, ErrorCode::kerCorruptedMetadata);           // read
  478|      3|          bytes[jump] = 0;
  479|       |
  480|      3|          bool bNikon = ::strcmp("Nikon", chars) == 0;
  481|      3|          bool bSony = ::strcmp("SONY DSC ", chars) == 0;
  482|       |
  483|      3|          if (bNikon) {
  ------------------
  |  Branch (483:15): [True: 0, False: 3]
  ------------------
  484|       |            // tag is an embedded tiff
  485|      0|            const long byteslen = count - jump;
  486|      0|            auto b = DataBuf(byteslen);                                           // allocate a buffer
  487|      0|            io.readOrThrow(b.data(), byteslen, ErrorCode::kerCorruptedMetadata);  // read
  488|      0|            MemIo memIo(b.c_data(), byteslen);                                    // create a file
  489|      0|            printTiffStructure(memIo, out, option, depth + 1);
  490|      3|          } else {
  491|       |            // tag is an IFD
  492|      3|            uint32_t punt = bSony ? 12 : 0;
  ------------------
  |  Branch (492:29): [True: 1, False: 2]
  ------------------
  493|      3|            io.seekOrThrow(0, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // position
  494|      3|            printIFDStructure(io, out, option, offset + punt, bSwap, c, depth + 1);
  495|      3|          }
  496|       |
  497|      3|          io.seekOrThrow(restore, BasicIo::beg, ErrorCode::kerCorruptedMetadata);  // restore
  498|      3|        }
  499|  7.65k|      }
  500|       |
  501|  7.68k|      if (isPrintXMP(tag, option)) {
  ------------------
  |  Branch (501:11): [True: 0, False: 7.68k]
  ------------------
  502|      0|        buf.write_uint8(count, 0);
  503|      0|        out << buf.c_str();
  504|      0|      }
  505|  7.68k|      if (isPrintICC(tag, option)) {
  ------------------
  |  Branch (505:11): [True: 0, False: 7.68k]
  ------------------
  506|      0|        out.write(buf.c_str(), count);
  507|      0|      }
  508|  7.68k|    }
  509|  2.50k|    if (start) {
  ------------------
  |  Branch (509:9): [True: 2.31k, False: 189]
  ------------------
  510|  2.31k|      io.readOrThrow(dir.data(), 4, ErrorCode::kerCorruptedMetadata);
  511|  2.31k|      start = byteSwap4(dir, 0, bSwap);
  512|  2.31k|    }
  513|  2.50k|  } while (start);
  ------------------
  |  Branch (513:12): [True: 23, False: 2.47k]
  ------------------
  514|       |
  515|  2.47k|  if (bPrint) {
  ------------------
  |  Branch (515:7): [True: 2.28k, False: 191]
  ------------------
  516|  2.28k|    out << Internal::indent(depth) << "END " << io.path() << '\n';
  517|  2.28k|  }
  518|  2.47k|  out.flush();
  519|  2.47k|}
_ZN5Exiv25Image18printTiffStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmm:
  522|  33.7k|                               size_t offset /*=0*/) {
  523|  33.7k|  if (option == kpsBasic || option == kpsXMP || option == kpsRecursive || option == kpsIccProfile) {
  ------------------
  |  Branch (523:7): [True: 15.6k, False: 18.0k]
  |  Branch (523:29): [True: 2, False: 18.0k]
  |  Branch (523:49): [True: 2.37k, False: 15.6k]
  |  Branch (523:75): [True: 0, False: 15.6k]
  ------------------
  524|       |    // buffer
  525|  18.0k|    const size_t dirSize = 32;
  526|  18.0k|    DataBuf dir(dirSize);
  527|       |
  528|       |    // read header (we already know for certain that we have a Tiff file)
  529|  18.0k|    io.readOrThrow(dir.data(), 8, ErrorCode::kerCorruptedMetadata);
  530|  18.0k|    auto c = dir.read_uint8(0);
  531|  18.0k|    bool bSwap = (c == 'M' && isLittleEndianPlatform()) || (c == 'I' && isBigEndianPlatform());
  ------------------
  |  Branch (531:19): [True: 15.6k, False: 2.45k]
  |  Branch (531:31): [True: 15.6k, False: 0]
  |  Branch (531:61): [True: 2.41k, False: 17]
  |  Branch (531:73): [True: 0, False: 2.41k]
  ------------------
  532|  18.0k|    size_t start = byteSwap4(dir, 4, bSwap);
  533|  18.0k|    printIFDStructure(io, out, option, start + offset, bSwap, c, depth);
  534|  18.0k|  }
  535|  33.7k|}
_ZN5Exiv25Image13clearMetadataEv:
  537|  30.3k|void Image::clearMetadata() {
  538|  30.3k|  clearExifData();
  539|  30.3k|  clearIptcData();
  540|  30.3k|  clearXmpPacket();
  541|  30.3k|  clearXmpData();
  542|  30.3k|  clearComment();
  543|  30.3k|  clearIccProfile();
  544|  30.3k|}
_ZN5Exiv25Image8exifDataEv:
  546|   687k|ExifData& Image::exifData() {
  547|   687k|  return exifData_;
  548|   687k|}
_ZN5Exiv25Image8iptcDataEv:
  550|  51.6k|IptcData& Image::iptcData() {
  551|  51.6k|  return iptcData_;
  552|  51.6k|}
_ZN5Exiv25Image7xmpDataEv:
  554|  60.7k|XmpData& Image::xmpData() {
  555|  60.7k|  return xmpData_;
  556|  60.7k|}
_ZN5Exiv25Image9xmpPacketEv:
  558|    103|std::string& Image::xmpPacket() {
  559|       |  // Serialize the current XMP
  560|    103|  if (!xmpData_.empty() && !writeXmpFromPacket()) {
  ------------------
  |  Branch (560:7): [True: 0, False: 103]
  |  Branch (560:28): [True: 0, False: 0]
  ------------------
  561|      0|    XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting);
  562|      0|  }
  563|    103|  return xmpPacket_;
  564|    103|}
_ZN5Exiv25Image13clearExifDataEv:
  586|  30.3k|void Image::clearExifData() {
  587|  30.3k|  exifData_.clear();
  588|  30.3k|}
_ZN5Exiv25Image13clearIptcDataEv:
  594|  30.3k|void Image::clearIptcData() {
  595|  30.3k|  iptcData_.clear();
  596|  30.3k|}
_ZN5Exiv25Image14clearXmpPacketEv:
  602|  30.3k|void Image::clearXmpPacket() {
  603|  30.3k|  xmpPacket_.clear();
  604|  30.3k|  writeXmpFromPacket(true);
  605|  30.3k|}
_ZN5Exiv25Image12clearXmpDataEv:
  614|  30.3k|void Image::clearXmpData() {
  615|  30.3k|  xmpData_.clear();
  616|  30.3k|  writeXmpFromPacket(false);
  617|  30.3k|}
_ZN5Exiv25Image18writeXmpFromPacketEb:
  625|  60.6k|void Image::writeXmpFromPacket(bool flag) {
  626|  60.6k|  writeXmpFromPacket_ = flag;
  627|  60.6k|}
_ZN5Exiv25Image12clearCommentEv:
  633|  30.3k|void Image::clearComment() {
  634|  30.3k|  comment_.erase();
  635|  30.3k|}
_ZN5Exiv25Image10setCommentERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  637|     58|void Image::setComment(const std::string& comment) {
  638|     58|  comment_ = comment;
  639|     58|}
_ZN5Exiv25Image13setIccProfileEONS_7DataBufEb:
  641|     72|void Image::setIccProfile(Exiv2::DataBuf&& iccProfile, bool bTestValid) {
  642|     72|  iccProfile_ = std::move(iccProfile);
  643|     72|  if (bTestValid) {
  ------------------
  |  Branch (643:7): [True: 72, False: 0]
  ------------------
  644|     72|    checkIccProfile();
  645|     72|  }
  646|     72|}
_ZN5Exiv25Image16appendIccProfileEPKhmb:
  648|  1.23k|void Image::appendIccProfile(const uint8_t* bytes, size_t size, bool bTestValid) {
  649|  1.23k|  if (size == 0) {
  ------------------
  |  Branch (649:7): [True: 73, False: 1.15k]
  ------------------
  650|     73|    return;
  651|     73|  }
  652|  1.15k|  const size_t start = iccProfile_.size();
  653|  1.15k|  iccProfile_.resize(Safe::add(start, size));
  654|  1.15k|  memcpy(iccProfile_.data(start), bytes, size);
  655|  1.15k|  if (bTestValid) {
  ------------------
  |  Branch (655:7): [True: 19, False: 1.14k]
  ------------------
  656|     19|    checkIccProfile();
  657|     19|  }
  658|  1.15k|}
_ZNK5Exiv25Image15checkIccProfileEv:
  660|     91|void Image::checkIccProfile() const {
  661|     91|  if (iccProfile_.size() < sizeof(long)) {
  ------------------
  |  Branch (661:7): [True: 3, False: 88]
  ------------------
  662|      3|    throw Error(ErrorCode::kerInvalidIccProfile);
  663|      3|  }
  664|     88|  const size_t size = iccProfile_.read_uint32(0, bigEndian);
  665|     88|  if (size != iccProfile_.size()) {
  ------------------
  |  Branch (665:7): [True: 10, False: 78]
  ------------------
  666|     10|    throw Error(ErrorCode::kerInvalidIccProfile);
  667|     10|  }
  668|     88|}
_ZN5Exiv25Image15clearIccProfileEv:
  670|  30.3k|void Image::clearIccProfile() {
  671|  30.3k|  iccProfile_.reset();
  672|  30.3k|}
_ZN5Exiv25Image12setByteOrderENS_9ByteOrderE:
  674|  17.8k|void Image::setByteOrder(ByteOrder byteOrder) {
  675|  17.8k|  byteOrder_ = byteOrder;
  676|  17.8k|}
_ZNK5Exiv25Image9byteOrderEv:
  678|  1.26k|ByteOrder Image::byteOrder() const {
  679|  1.26k|  return byteOrder_;
  680|  1.26k|}
_ZNK5Exiv25Image10pixelWidthEv:
  682|    338|uint32_t Image::pixelWidth() const {
  683|    338|  return pixelWidth_;
  684|    338|}
_ZNK5Exiv25Image11pixelHeightEv:
  686|    338|uint32_t Image::pixelHeight() const {
  687|    338|  return pixelHeight_;
  688|    338|}
_ZNK5Exiv25Image8exifDataEv:
  690|  91.2k|const ExifData& Image::exifData() const {
  691|  91.2k|  return exifData_;
  692|  91.2k|}
_ZNK5Exiv25Image7xmpDataEv:
  698|  2.21k|const XmpData& Image::xmpData() const {
  699|  2.21k|  return xmpData_;
  700|  2.21k|}
_ZNK5Exiv25Image7commentEv:
  702|    181|std::string Image::comment() const {
  703|    181|  return comment_;
  704|    181|}
_ZNK5Exiv25Image2ioEv:
  710|  40.7k|BasicIo& Image::io() const {
  711|  40.7k|  return *io_;
  712|  40.7k|}
_ZNK5Exiv25Image18writeXmpFromPacketEv:
  714|  7.57k|bool Image::writeXmpFromPacket() const {
  715|  7.57k|  return writeXmpFromPacket_;
  716|  7.57k|}
_ZNK5Exiv25Image14nativePreviewsEv:
  718|  9.12k|const NativePreviewList& Image::nativePreviews() const {
  719|  9.12k|  return nativePreviews_;
  720|  9.12k|}
_ZNK5Exiv25Image4goodEv:
  722|  31.7k|bool Image::good() const {
  723|  31.7k|  if (io_->open() != 0)
  ------------------
  |  Branch (723:7): [True: 0, False: 31.7k]
  ------------------
  724|      0|    return false;
  725|  31.7k|  IoCloser closer(*io_);
  726|  31.7k|  return ImageFactory::checkType(imageType_, *io_, false);
  727|  31.7k|}
_ZN5Exiv25Image7tagNameEt:
  738|  7.65k|const std::string& Image::tagName(uint16_t tag) {
  739|  7.65k|  if (init_) {
  ------------------
  |  Branch (739:7): [True: 194, False: 7.46k]
  ------------------
  740|    194|    int idx;
  741|    194|    const TagInfo* ti;
  742|    582|    for (ti = Internal::mnTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (742:47): [True: 388, False: 194]
  ------------------
  743|    388|      tags_[ti[idx].tag_] = ti[idx].name_;
  744|  1.16k|    for (ti = Internal::iopTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (744:48): [True: 970, False: 194]
  ------------------
  745|    970|      tags_[ti[idx].tag_] = ti[idx].name_;
  746|  6.40k|    for (ti = Internal::gpsTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (746:48): [True: 6.20k, False: 194]
  ------------------
  747|  6.20k|      tags_[ti[idx].tag_] = ti[idx].name_;
  748|  49.8k|    for (ti = Internal::ifdTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (748:48): [True: 49.6k, False: 194]
  ------------------
  749|  49.6k|      tags_[ti[idx].tag_] = ti[idx].name_;
  750|  17.4k|    for (ti = Internal::exifTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (750:49): [True: 17.2k, False: 194]
  ------------------
  751|  17.2k|      tags_[ti[idx].tag_] = ti[idx].name_;
  752|  3.88k|    for (ti = Internal::mpfTagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (752:48): [True: 3.68k, False: 194]
  ------------------
  753|  3.68k|      tags_[ti[idx].tag_] = ti[idx].name_;
  754|  3.29k|    for (ti = Internal::Nikon1MakerNote::tagList(), idx = 0; ti[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (754:62): [True: 3.10k, False: 194]
  ------------------
  755|  3.10k|      tags_[ti[idx].tag_] = ti[idx].name_;
  756|    194|  }
  757|  7.65k|  init_ = false;
  758|       |
  759|  7.65k|  return tags_[tag];
  760|  7.65k|}
_ZN5Exiv212ImageFactory9checkTypeENS_9ImageTypeERNS_7BasicIoEb:
  777|  31.7k|bool ImageFactory::checkType(ImageType type, BasicIo& io, bool advance) {
  778|  31.7k|  if (auto r = Exiv2::find(registry, type))
  ------------------
  |  Branch (778:12): [True: 31.7k, False: 0]
  ------------------
  779|  31.7k|    return r->isThisType_(io, advance);
  780|      0|  return false;
  781|  31.7k|}
_ZN5Exiv212ImageFactory4openEPKhm:
  863|  32.3k|Image::UniquePtr ImageFactory::open(const byte* data, size_t size) {
  864|  32.3k|  auto image = open(std::make_unique<MemIo>(data, size));  // may throw
  865|  32.3k|  if (!image)
  ------------------
  |  Branch (865:7): [True: 408, False: 31.9k]
  ------------------
  866|    408|    throw Error(ErrorCode::kerMemoryContainsUnknownImageType);
  867|  31.9k|  return image;
  868|  32.3k|}
_ZN5Exiv212ImageFactory4openENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  870|  32.3k|Image::UniquePtr ImageFactory::open(BasicIo::UniquePtr io) {
  871|  32.3k|  if (io->open() != 0) {
  ------------------
  |  Branch (871:7): [True: 0, False: 32.3k]
  ------------------
  872|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io->path(), strError());
  873|      0|  }
  874|   466k|  for (const auto& r : registry) {
  ------------------
  |  Branch (874:22): [True: 466k, False: 530]
  ------------------
  875|   466k|    if (r.isThisType_(*io, false)) {
  ------------------
  |  Branch (875:9): [True: 31.7k, False: 434k]
  ------------------
  876|  31.7k|      return r.newInstance_(std::move(io), false);
  877|  31.7k|    }
  878|   466k|  }
  879|    530|  return nullptr;
  880|  32.3k|}
_ZN5Exiv26appendERNSt3__16vectorIhNS0_9allocatorIhEEEEPKhm:
  918|  69.6k|void append(Blob& blob, const byte* buf, size_t len) {
  919|  69.6k|  if (len != 0) {
  ------------------
  |  Branch (919:7): [True: 68.6k, False: 1.01k]
  ------------------
  920|  68.6k|    Blob::size_type size = blob.size();
  921|  68.6k|    if (blob.capacity() - size < len) {
  ------------------
  |  Branch (921:9): [True: 4.44k, False: 64.1k]
  ------------------
  922|  4.44k|      blob.reserve(size + 65536);
  923|  4.44k|    }
  924|  68.6k|    blob.resize(size + len);
  925|  68.6k|    std::copy_n(buf, len, blob.begin() + size);
  926|  68.6k|  }
  927|  69.6k|}  // append
image.cpp:_ZN5Exiv2L9typeValidEt:
  312|  7.95k|static bool typeValid(uint16_t type) {
  313|  7.95k|  return type >= 1 && type <= 13;
  ------------------
  |  Branch (313:10): [True: 7.89k, False: 54]
  |  Branch (313:23): [True: 7.73k, False: 157]
  ------------------
  314|  7.95k|}
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_0clEv:
  370|  7.73k|      uint32_t kount = [=] {
  371|       |        // haul in all the data
  372|  7.73k|        if (isPrintXMP(tag, option))
  ------------------
  |  Branch (372:13): [True: 0, False: 7.73k]
  ------------------
  373|      0|          return count;
  374|       |        // ditto
  375|  7.73k|        if (isPrintICC(tag, option))
  ------------------
  |  Branch (375:13): [True: 0, False: 7.73k]
  ------------------
  376|      0|          return count;
  377|       |        // restrict long arrays
  378|  7.73k|        if (isStringType(type)) {
  ------------------
  |  Branch (378:13): [True: 1.79k, False: 5.94k]
  ------------------
  379|  1.79k|          return std::min(count, 32u);
  380|  1.79k|        }
  381|  5.94k|        return std::min(count, 5u);
  382|  7.73k|      }();
image.cpp:_ZZN5Exiv25Image17printIFDStructureERNS_7BasicIoERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEENS_20PrintStructureOptionEmbcmENK3$_1clEv:
  384|  7.73k|      size_t size = [=] {
  385|  7.73k|        if (isStringType(type))
  ------------------
  |  Branch (385:13): [True: 1.79k, False: 5.94k]
  ------------------
  386|  1.79k|          return 1;
  387|  5.94k|        if (is2ByteType(type))
  ------------------
  |  Branch (387:13): [True: 1.72k, False: 4.21k]
  ------------------
  388|  1.72k|          return 2;
  389|  4.21k|        if (is4ByteType(type))
  ------------------
  |  Branch (389:13): [True: 3.32k, False: 883]
  ------------------
  390|  3.32k|          return 4;
  391|    883|        if (is8ByteType(type))
  ------------------
  |  Branch (391:13): [True: 883, False: 0]
  ------------------
  392|    883|          return 8;
  393|      0|        return 1;
  394|    883|      }();
image.cpp:_ZNK12_GLOBAL__N_18RegistryeqERKN5Exiv29ImageTypeE:
   66|   452k|  bool operator==(const ImageType& imageType) const {
   67|   452k|    return imageType == imageType_;
   68|   452k|  }

_ZN5Exiv28Internal6indentEm:
    9|  84.6k|[[nodiscard]] std::string indent(size_t i) {
   10|  84.6k|  return std::string(2 * i, ' ');
   11|  84.6k|}

_ZN5Exiv28Internal14binaryToStringIPhEEDaONS_5SliceIT_EE:
   95|  35.4k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  35.4k|  return binaryToStringHelper<T>(std::move(sl));
   97|  35.4k|}
_ZN5Exiv28Internal20binaryToStringHelperIPhEC2EONS_5SliceIS2_EE:
   64|  35.4k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  35.4k|  }
_ZN5Exiv28InternallsIPhEERNSt3__113basic_ostreamIcNS3_11char_traitsIcEEEES8_RKNS0_20binaryToStringHelperIT_EE:
   49|  35.4k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|   855k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 820k, False: 35.4k]
  ------------------
   51|   820k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|   820k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 626k, False: 193k]
  |  Branch (52:19): [True: 176k, False: 17.2k]
  ------------------
   53|   802k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 246k, False: 556k]
  |  Branch (53:21): [True: 99.4k, False: 456k]
  ------------------
   54|   346k|        stream.put('.');
   55|   456k|      else
   56|   456k|        stream.put(static_cast<char>(c));
   57|   802k|    }
   58|   820k|  }
   59|  35.4k|  return stream;
   60|  35.4k|}
_ZN5Exiv28Internal14binaryToStringIKNS_5SliceIPhEEEEDaONS2_IT_EE:
   95|  1.05k|constexpr auto binaryToString(Slice<T>&& sl) noexcept {
   96|  1.05k|  return binaryToStringHelper<T>(std::move(sl));
   97|  1.05k|}
_ZN5Exiv28Internal20binaryToStringHelperIKNS_5SliceIPhEEEC2EONS2_IS5_EE:
   64|  1.05k|  explicit constexpr binaryToStringHelper(Slice<T>&& myBuf) noexcept : buf_(std::move(myBuf)) {
   65|  1.05k|  }
_ZN5Exiv28InternallsIKNS_5SliceIPhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS0_20binaryToStringHelperIT_EE:
   49|  1.05k|std::ostream& operator<<(std::ostream& stream, const binaryToStringHelper<T>& binToStr) noexcept {
   50|  7.33k|  for (size_t i = 0; i < binToStr.buf_.size(); ++i) {
  ------------------
  |  Branch (50:22): [True: 6.27k, False: 1.05k]
  ------------------
   51|  6.27k|    auto c = static_cast<unsigned char>(binToStr.buf_.at(i));
   52|  6.27k|    if (c != 0 || i != binToStr.buf_.size() - 1) {
  ------------------
  |  Branch (52:9): [True: 4.70k, False: 1.57k]
  |  Branch (52:19): [True: 1.22k, False: 350]
  ------------------
   53|  5.92k|      if (c < 32 || c > 126)
  ------------------
  |  Branch (53:11): [True: 2.11k, False: 3.80k]
  |  Branch (53:21): [True: 875, False: 2.93k]
  ------------------
   54|  2.99k|        stream.put('.');
   55|  2.93k|      else
   56|  2.93k|        stream.put(static_cast<char>(c));
   57|  5.92k|    }
   58|  6.27k|  }
   59|  1.05k|  return stream;
   60|  1.05k|}

_ZN5Exiv29IptcdatumC2ERKNS_7IptcKeyEPKNS_5ValueE:
   56|  38.6k|Iptcdatum::Iptcdatum(const IptcKey& key, const Value* pValue) : key_(key.clone()) {
   57|  38.6k|  if (pValue)
  ------------------
  |  Branch (57:7): [True: 38.3k, False: 292]
  ------------------
   58|  38.3k|    value_ = pValue->clone();
   59|  38.6k|}
_ZN5Exiv29IptcdatumC2ERKS0_:
   61|   281k|Iptcdatum::Iptcdatum(const Iptcdatum& rhs) {
   62|   281k|  if (rhs.key_)
  ------------------
  |  Branch (62:7): [True: 281k, False: 0]
  ------------------
   63|   281k|    key_ = rhs.key_->clone();  // deep copy
   64|   281k|  if (rhs.value_)
  ------------------
  |  Branch (64:7): [True: 281k, False: 0]
  ------------------
   65|   281k|    value_ = rhs.value_->clone();  // deep copy
   66|   281k|}
_ZN5Exiv29IptcdatumD2Ev:
   68|   320k|Iptcdatum::~Iptcdatum() = default;
_ZNK5Exiv29Iptcdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
   74|  2.97k|std::ostream& Iptcdatum::write(std::ostream& os, const ExifData*) const {
   75|  2.97k|  return os << value();
   76|  2.97k|}
_ZNK5Exiv29Iptcdatum6recordEv:
   86|   668k|uint16_t Iptcdatum::record() const {
   87|   668k|  return key_ ? key_->record() : 0;
  ------------------
  |  Branch (87:10): [True: 668k, False: 0]
  ------------------
   88|   668k|}
_ZNK5Exiv29Iptcdatum7tagNameEv:
   98|  2.43k|std::string Iptcdatum::tagName() const {
   99|  2.43k|  return key_ ? key_->tagName() : "";
  ------------------
  |  Branch (99:10): [True: 2.43k, False: 0]
  ------------------
  100|  2.43k|}
_ZNK5Exiv29Iptcdatum3tagEv:
  110|  85.9k|uint16_t Iptcdatum::tag() const {
  111|  85.9k|  return key_ ? key_->tag() : 0;
  ------------------
  |  Branch (111:10): [True: 85.9k, False: 0]
  ------------------
  112|  85.9k|}
_ZNK5Exiv29Iptcdatum4sizeEv:
  130|  64.9k|size_t Iptcdatum::size() const {
  131|  64.9k|  return value_ ? value_->size() : 0;
  ------------------
  |  Branch (131:10): [True: 64.9k, False: 0]
  ------------------
  132|  64.9k|}
_ZNK5Exiv29Iptcdatum5valueEv:
  158|  35.4k|const Value& Iptcdatum::value() const {
  159|  35.4k|  if (!value_)
  ------------------
  |  Branch (159:7): [True: 0, False: 35.4k]
  ------------------
  160|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  161|  35.4k|  return *value_;
  162|  35.4k|}
_ZN5Exiv29IptcdatumaSERKS0_:
  164|   176k|Iptcdatum& Iptcdatum::operator=(const Iptcdatum& rhs) {
  165|   176k|  if (this == &rhs)
  ------------------
  |  Branch (165:7): [True: 0, False: 176k]
  ------------------
  166|      0|    return *this;
  167|       |
  168|   176k|  key_.reset();
  169|   176k|  if (rhs.key_)
  ------------------
  |  Branch (169:7): [True: 176k, False: 0]
  ------------------
  170|   176k|    key_ = rhs.key_->clone();  // deep copy
  171|       |
  172|   176k|  value_.reset();
  173|   176k|  if (rhs.value_)
  ------------------
  |  Branch (173:7): [True: 176k, False: 0]
  ------------------
  174|   176k|    value_ = rhs.value_->clone();  // deep copy
  175|       |
  176|   176k|  return *this;
  177|   176k|}  // Iptcdatum::operator=
_ZN5Exiv29IptcdatumaSERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  186|    292|Iptcdatum& Iptcdatum::operator=(const std::string& value) {
  187|    292|  setValue(value);
  188|    292|  return *this;
  189|    292|}
_ZN5Exiv29Iptcdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  202|    292|int Iptcdatum::setValue(const std::string& value) {
  203|    292|  if (!value_) {
  ------------------
  |  Branch (203:7): [True: 292, False: 0]
  ------------------
  204|    292|    TypeId type = IptcDataSets::dataSetType(tag(), record());
  205|    292|    value_ = Value::create(type);
  206|    292|  }
  207|    292|  return value_->read(value);
  208|    292|}
_ZN5Exiv28IptcDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  210|    292|Iptcdatum& IptcData::operator[](const std::string& key) {
  211|    292|  IptcKey iptcKey(key);
  212|    292|  auto pos = findKey(iptcKey);
  213|    292|  if (pos == end()) {
  ------------------
  |  Branch (213:7): [True: 292, False: 0]
  ------------------
  214|    292|    return iptcMetadata_.emplace_back(iptcKey);
  215|    292|  }
  216|      0|  return *pos;
  217|    292|}
_ZNK5Exiv28IptcData4sizeEv:
  219|    322|size_t IptcData::size() const {
  220|    322|  size_t newSize = 0;
  221|  32.4k|  for (auto&& iptc : iptcMetadata_) {
  ------------------
  |  Branch (221:20): [True: 32.4k, False: 322]
  ------------------
  222|       |    // marker, record Id, dataset num, first 2 bytes of size
  223|  32.4k|    newSize += 5;
  224|  32.4k|    size_t dataSize = iptc.size();
  225|  32.4k|    newSize += dataSize;
  226|  32.4k|    if (dataSize > 32767) {
  ------------------
  |  Branch (226:9): [True: 0, False: 32.4k]
  ------------------
  227|       |      // extended dataset (we always use 4 bytes)
  228|      0|      newSize += 4;
  229|      0|    }
  230|  32.4k|  }
  231|    322|  return newSize;
  232|    322|}
_ZN5Exiv28IptcData3addERKNS_7IptcKeyEPKNS_5ValueE:
  234|  38.3k|int IptcData::add(const IptcKey& key, const Value* value) {
  235|  38.3k|  return add(Iptcdatum(key, value));
  236|  38.3k|}
_ZN5Exiv28IptcData3addERKNS_9IptcdatumE:
  238|  38.3k|int IptcData::add(const Iptcdatum& iptcDatum) {
  239|  38.3k|  if (!IptcDataSets::dataSetRepeatable(iptcDatum.tag(), iptcDatum.record()) &&
  ------------------
  |  Branch (239:7): [True: 3.06k, False: 35.3k]
  |  Branch (239:7): [True: 2.24k, False: 36.1k]
  ------------------
  240|  3.06k|      findId(iptcDatum.tag(), iptcDatum.record()) != end()) {
  ------------------
  |  Branch (240:7): [True: 2.24k, False: 827]
  ------------------
  241|  2.24k|    return 6;
  242|  2.24k|  }
  243|       |  // allow duplicates
  244|  36.1k|  iptcMetadata_.push_back(iptcDatum);
  245|  36.1k|  return 0;
  246|  38.3k|}
_ZN5Exiv28IptcData7findKeyERKNS_7IptcKeyE:
  252|    438|IptcData::iterator IptcData::findKey(const IptcKey& key) {
  253|    438|  return std::find_if(iptcMetadata_.begin(), iptcMetadata_.end(), FindIptcdatum(key.tag(), key.record()));
  254|    438|}
_ZN5Exiv28IptcData6findIdEtt:
  260|  3.06k|IptcData::iterator IptcData::findId(uint16_t dataset, uint16_t record) {
  261|  3.06k|  return std::find_if(iptcMetadata_.begin(), iptcMetadata_.end(), FindIptcdatum(dataset, record));
  262|  3.06k|}
_ZN5Exiv28IptcData14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5SliceIPhEEm:
  278|  3.06k|void IptcData::printStructure(std::ostream& out, const Slice<byte*>& bytes, size_t depth) {
  279|  3.06k|  if (bytes.size() < 3) {
  ------------------
  |  Branch (279:7): [True: 13, False: 3.05k]
  ------------------
  280|     13|    return;
  281|     13|  }
  282|  3.05k|  size_t i = 0;
  283|  62.7k|  while (i < bytes.size() - 3 && bytes.at(i) != 0x1c)
  ------------------
  |  Branch (283:10): [True: 60.7k, False: 2.01k]
  |  Branch (283:34): [True: 59.7k, False: 1.03k]
  ------------------
  284|  59.7k|    i++;
  285|  3.05k|  out << Internal::indent(++depth) << "Record | DataSet | Name                     | Length | Data" << '\n';
  286|  4.13k|  while (i < bytes.size() - 3) {
  ------------------
  |  Branch (286:10): [True: 1.81k, False: 2.32k]
  ------------------
  287|  1.81k|    if (bytes.at(i) != 0x1c) {
  ------------------
  |  Branch (287:9): [True: 734, False: 1.07k]
  ------------------
  288|    734|      break;
  289|    734|    }
  290|  1.07k|    uint16_t record = bytes.at(i + 1);
  291|  1.07k|    uint16_t dataset = bytes.at(i + 2);
  292|  1.07k|    Internal::enforce(bytes.size() - i >= 5, ErrorCode::kerCorruptedMetadata);
  293|  1.07k|    uint16_t len = getUShort(bytes.subSlice(i + 3, bytes.size()), bigEndian);
  294|       |
  295|  1.07k|    Internal::enforce(bytes.size() - i >= 5 + static_cast<size_t>(len), ErrorCode::kerCorruptedMetadata);
  296|  1.07k|    out << stringFormat("  {:6} | {:7} | {:<24} | {:6} | ", record, dataset,
  ------------------
  |  |   18|  1.07k|#define stringFormat std::format
  ------------------
  297|  1.07k|                        Exiv2::IptcDataSets::dataSetName(dataset, record), len);
  298|  1.07k|    out << Internal::binaryToString(makeSlice(bytes, i + 5, i + 5 + std::min<uint16_t>(40, len)))
  299|  1.07k|        << (len > 40 ? "...\n" : "\n");
  ------------------
  |  Branch (299:13): [True: 30, False: 1.04k]
  ------------------
  300|  1.07k|    i += 5 + len;
  301|  1.07k|  }
  302|  3.05k|}
_ZN5Exiv210IptcParser6decodeERNS_8IptcDataEPKhm:
  362|    865|int IptcParser::decode(IptcData& iptcData, const byte* pData, size_t size) {
  363|       |#ifdef EXIV2_DEBUG_MESSAGES
  364|       |  std::cerr << "IptcParser::decode, size = " << size << "\n";
  365|       |#endif
  366|    865|  auto pRead = pData;
  367|    865|  const auto pEnd = pData + size;
  368|    865|  iptcData.clear();
  369|       |
  370|    865|  uint16_t record = 0;
  371|    865|  uint16_t dataSet = 0;
  372|    865|  uint32_t sizeData = 0;
  373|    865|  byte extTest = 0;
  374|       |
  375|   750k|  while (6 <= static_cast<size_t>(pEnd - pRead)) {
  ------------------
  |  Branch (375:10): [True: 749k, False: 666]
  ------------------
  376|       |    // First byte should be a marker. If it isn't, scan forward and skip
  377|       |    // the chunk bytes present in some images. This deviates from the
  378|       |    // standard, which advises to treat such cases as errors.
  379|   749k|    if (*pRead++ != marker_)
  ------------------
  |  Branch (379:9): [True: 710k, False: 38.6k]
  ------------------
  380|   710k|      continue;
  381|  38.6k|    record = *pRead++;
  382|  38.6k|    dataSet = *pRead++;
  383|       |
  384|  38.6k|    extTest = *pRead;
  385|  38.6k|    if (extTest & 0x80) {
  ------------------
  |  Branch (385:9): [True: 262, False: 38.3k]
  ------------------
  386|       |      // extended dataset
  387|    262|      uint16_t sizeOfSize = (getUShort(pRead, bigEndian) & 0x7FFF);
  388|    262|      if (sizeOfSize > 4)
  ------------------
  |  Branch (388:11): [True: 37, False: 225]
  ------------------
  389|     37|        return 5;
  390|    225|      pRead += 2;
  391|    225|      if (sizeOfSize > pEnd - pRead)
  ------------------
  |  Branch (391:11): [True: 4, False: 221]
  ------------------
  392|      4|        return 6;
  393|    221|      sizeData = 0;
  394|    816|      for (; sizeOfSize > 0; --sizeOfSize) {
  ------------------
  |  Branch (394:14): [True: 595, False: 221]
  ------------------
  395|    595|        sizeData |= *pRead++ << (8 * (sizeOfSize - 1));
  396|    595|      }
  397|  38.3k|    } else {
  398|       |      // standard dataset
  399|  38.3k|      sizeData = getUShort(pRead, bigEndian);
  400|  38.3k|      pRead += 2;
  401|  38.3k|    }
  402|  38.5k|    if (sizeData <= static_cast<size_t>(pEnd - pRead)) {
  ------------------
  |  Branch (402:9): [True: 38.4k, False: 158]
  ------------------
  403|  38.4k|      int rc = readData(iptcData, dataSet, record, pRead, sizeData);
  404|  38.4k|      if (rc != 0) {
  ------------------
  |  Branch (404:11): [True: 0, False: 38.4k]
  ------------------
  405|      0|#ifndef SUPPRESS_WARNINGS
  406|      0|        EXV_WARNING << "Failed to read IPTC dataset " << IptcKey(dataSet, record) << " (rc = " << rc << "); skipped.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  407|      0|#endif
  408|      0|      }
  409|  38.4k|    } else {
  410|    158|#ifndef SUPPRESS_WARNINGS
  411|    158|      EXV_WARNING << "IPTC dataset " << IptcKey(dataSet, record) << " has invalid size " << sizeData << "; skipped.\n";
  ------------------
  |  |  138|    158|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 158]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    158|  LogMsg(LogMsg::warn).os()
  ------------------
  412|    158|#endif
  413|    158|      return 7;
  414|    158|    }
  415|  38.4k|    pRead += sizeData;
  416|  38.4k|  }
  417|       |
  418|    666|  return 0;
  419|    865|}  // IptcParser::decode
_ZN5Exiv210IptcParser6encodeERKNS_8IptcDataE:
  421|  9.57k|DataBuf IptcParser::encode(const IptcData& iptcData) {
  422|  9.57k|  DataBuf buf;
  423|  9.57k|  if (iptcData.empty())
  ------------------
  |  Branch (423:7): [True: 9.25k, False: 322]
  ------------------
  424|  9.25k|    return buf;
  425|       |
  426|    322|  buf = DataBuf(iptcData.size());
  427|    322|  byte* pWrite = buf.data();
  428|       |
  429|       |  // Copy the iptc data sets and sort them by record but preserve the order of datasets
  430|    322|  IptcMetadata sortedIptcData(iptcData.begin(), iptcData.end());
  431|    322|  std::stable_sort(sortedIptcData.begin(), sortedIptcData.end(),
  432|    322|                   [](const auto& l, const auto& r) { return l.record() < r.record(); });
  433|       |
  434|  32.4k|  for (const auto& iter : sortedIptcData) {
  ------------------
  |  Branch (434:25): [True: 32.4k, False: 322]
  ------------------
  435|       |    // marker, record Id, dataset num
  436|  32.4k|    *pWrite++ = marker_;
  437|  32.4k|    *pWrite++ = static_cast<byte>(iter.record());
  438|  32.4k|    *pWrite++ = static_cast<byte>(iter.tag());
  439|       |
  440|       |    // extended or standard dataset?
  441|  32.4k|    if (size_t dataSize = iter.size(); dataSize > 32767) {
  ------------------
  |  Branch (441:40): [True: 0, False: 32.4k]
  ------------------
  442|       |      // always use 4 bytes for extended length
  443|      0|      uint16_t sizeOfSize = 4 | 0x8000;
  444|      0|      us2Data(pWrite, sizeOfSize, bigEndian);
  445|      0|      pWrite += 2;
  446|      0|      ul2Data(pWrite, static_cast<uint32_t>(dataSize), bigEndian);
  447|      0|      pWrite += 4;
  448|  32.4k|    } else {
  449|  32.4k|      us2Data(pWrite, static_cast<uint16_t>(dataSize), bigEndian);
  450|  32.4k|      pWrite += 2;
  451|  32.4k|    }
  452|  32.4k|    pWrite += iter.value().copy(pWrite, bigEndian);
  453|  32.4k|  }
  454|       |
  455|    322|  return buf;
  456|  9.57k|}  // IptcParser::encode
iptc.cpp:_ZNK12_GLOBAL__N_113FindIptcdatumclERKN5Exiv29IptcdatumE:
   41|  11.7k|  bool operator()(const Exiv2::Iptcdatum& iptcdatum) const {
   42|  11.7k|    return dataset_ == iptcdatum.tag() && record_ == iptcdatum.record();
  ------------------
  |  Branch (42:12): [True: 4.04k, False: 7.68k]
  |  Branch (42:43): [True: 2.24k, False: 1.80k]
  ------------------
   43|  11.7k|  }
iptc.cpp:_ZN12_GLOBAL__N_113FindIptcdatumC2Ett:
   35|  3.50k|  FindIptcdatum(uint16_t dataset, uint16_t record) : dataset_(dataset), record_(record) {
   36|  3.50k|  }
iptc.cpp:_ZN12_GLOBAL__N_18readDataERN5Exiv28IptcDataEttPKhj:
  463|  38.4k|int readData(Exiv2::IptcData& iptcData, uint16_t dataSet, uint16_t record, const Exiv2::byte* data, uint32_t sizeData) {
  464|  38.4k|  Exiv2::TypeId type = Exiv2::IptcDataSets::dataSetType(dataSet, record);
  465|  38.4k|  auto value = Exiv2::Value::create(type);
  466|  38.4k|  int rc = value->read(data, sizeData, Exiv2::bigEndian);
  467|  38.4k|  if (0 == rc) {
  ------------------
  |  Branch (467:7): [True: 34.8k, False: 3.62k]
  ------------------
  468|  34.8k|    Exiv2::IptcKey key(dataSet, record);
  469|  34.8k|    iptcData.add(key, value.get());
  470|  34.8k|  } else if (1 == rc) {
  ------------------
  |  Branch (470:14): [True: 3.59k, False: 32]
  ------------------
  471|       |    // If the first attempt failed, try with a string value
  472|  3.59k|    value = Exiv2::Value::create(Exiv2::string);
  473|  3.59k|    rc = value->read(data, sizeData, Exiv2::bigEndian);
  474|  3.59k|    if (0 == rc) {
  ------------------
  |  Branch (474:9): [True: 3.59k, False: 0]
  ------------------
  475|  3.59k|      Exiv2::IptcKey key(dataSet, record);
  476|  3.59k|      iptcData.add(key, value.get());
  477|  3.59k|    }
  478|  3.59k|  }
  479|  38.4k|  return rc;
  480|  38.4k|}
iptc.cpp:_ZZN5Exiv210IptcParser6encodeERKNS_8IptcDataEENK3$_0clINS_9IptcdatumES6_EEDaRKT_RKT0_:
  432|   295k|                   [](const auto& l, const auto& r) { return l.record() < r.record(); });

_ZN5Exiv28Jp2ImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
  100|    855|Jp2Image::Jp2Image(BasicIo::UniquePtr io, bool create) : Image(ImageType::jp2, mdExif | mdIptc | mdXmp, std::move(io)) {
  101|    855|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (101:7): [True: 0, False: 855]
  |  Branch (101:17): [True: 0, False: 0]
  ------------------
  102|       |#ifdef EXIV2_DEBUG_MESSAGES
  103|       |    std::cerr << "Exiv2::Jp2Image:: Creating JPEG2000 image to memory" << '\n';
  104|       |#endif
  105|      0|    IoCloser closer(*io_);
  106|      0|    if (io_->write(Jp2Blank.data(), Jp2Blank.size()) != Jp2Blank.size()) {
  ------------------
  |  Branch (106:9): [True: 0, False: 0]
  ------------------
  107|       |#ifdef EXIV2_DEBUG_MESSAGES
  108|       |      std::cerr << "Exiv2::Jp2Image:: Failed to create JPEG2000 image on memory" << '\n';
  109|       |#endif
  110|      0|    }
  111|      0|  }
  112|    855|}
_ZN5Exiv28Jp2Image7toAsciiEj:
  115|  19.4k|std::string Jp2Image::toAscii(uint32_t n) {
  116|  19.4k|  std::string result(sizeof(uint32_t), '\0');
  117|  97.1k|  for (size_t i = 0; i < result.size(); ++i) {
  ------------------
  |  Branch (117:22): [True: 77.7k, False: 19.4k]
  ------------------
  118|  77.7k|    auto c = static_cast<unsigned char>(n >> (8 * (3 - i)));
  119|  77.7k|    result[i] = static_cast<char>(c);
  120|  77.7k|  }
  121|  19.4k|  return result;
  122|  19.4k|}
_ZN5Exiv28Jp2Image12readMetadataEv:
  134|    854|void Jp2Image::readMetadata() {
  135|       |#ifdef EXIV2_DEBUG_MESSAGES
  136|       |  std::cerr << "Exiv2::Jp2Image::readMetadata: Reading JPEG-2000 file " << io_->path() << '\n';
  137|       |#endif
  138|    854|  if (io_->open() != 0) {
  ------------------
  |  Branch (138:7): [True: 0, False: 854]
  ------------------
  139|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  140|      0|  }
  141|    854|  IoCloser closer(*io_);
  142|    854|  if (!isJp2Type(*io_, false)) {
  ------------------
  |  Branch (142:7): [True: 0, False: 854]
  ------------------
  143|      0|    throw Error(ErrorCode::kerNotAnImage, "JPEG-2000");
  144|      0|  }
  145|       |
  146|    854|  Internal::Jp2BoxHeader box = {0, 0};
  147|    854|  Internal::Jp2BoxHeader subBox = {0, 0};
  148|    854|  Internal::Jp2ImageHeaderBox ihdr = {0, 0, 0, 0, 0, 0, 0};
  149|    854|  Internal::Jp2UuidBox uuid = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
  150|    854|  size_t boxesCount = 0;
  151|    854|  const size_t boxem = 1000;  // boxes max
  152|    854|  uint32_t lastBoxTypeRead = 0;
  153|    854|  bool boxSignatureFound = false;
  154|    854|  bool boxFileTypeFound = false;
  155|       |
  156|  10.7k|  while (io_->read(reinterpret_cast<byte*>(&box), boxHSize) == boxHSize) {
  ------------------
  |  Branch (156:10): [True: 10.4k, False: 272]
  ------------------
  157|  10.4k|    boxes_check(boxesCount++, boxem);
  158|  10.4k|    const size_t position = io_->tell();
  159|  10.4k|    box.length = getULong(reinterpret_cast<byte*>(&box.length), bigEndian);
  160|  10.4k|    box.type = getULong(reinterpret_cast<byte*>(&box.type), bigEndian);
  161|       |#ifdef EXIV2_DEBUG_MESSAGES
  162|       |    std::cout << "Exiv2::Jp2Image::readMetadata: Position: " << position << " box type: " << toAscii(box.type)
  163|       |              << " length: " << box.length << '\n';
  164|       |#endif
  165|  10.4k|    Internal::enforce(box.length <= boxHSize + io_->size() - io_->tell(), ErrorCode::kerCorruptedMetadata);
  166|       |
  167|  10.4k|    if (box.length == 0)
  ------------------
  |  Branch (167:9): [True: 434, False: 10.0k]
  ------------------
  168|    434|      return;
  169|       |
  170|  10.0k|    if (box.length == 1) {
  ------------------
  |  Branch (170:9): [True: 4, False: 10.0k]
  ------------------
  171|       |      /// \todo In this case, the real box size is given in XLBox (bytes 8-15)
  172|      4|    }
  173|       |
  174|  10.0k|    switch (box.type) {
  175|    855|      case kJp2BoxType::Signature: {
  ------------------
  |  Branch (175:7): [True: 855, False: 9.15k]
  ------------------
  176|    855|        if (boxSignatureFound)  // Only one is allowed
  ------------------
  |  Branch (176:13): [True: 1, False: 854]
  ------------------
  177|      1|          throw Error(ErrorCode::kerCorruptedMetadata);
  178|    854|        boxSignatureFound = true;
  179|    854|        break;
  180|    855|      }
  181|     64|      case kJp2BoxType::FileTypeBox: {
  ------------------
  |  Branch (181:7): [True: 64, False: 9.94k]
  ------------------
  182|       |        // This box shall immediately follow the JPEG 2000 Signature box
  183|     64|        if (boxFileTypeFound || lastBoxTypeRead != kJp2BoxType::Signature) {  // Only one is allowed
  ------------------
  |  Branch (183:13): [True: 0, False: 64]
  |  Branch (183:33): [True: 5, False: 59]
  ------------------
  184|      5|          throw Error(ErrorCode::kerCorruptedMetadata);
  185|      5|        }
  186|     59|        boxFileTypeFound = true;
  187|     59|        Blob boxData(box.length - boxHSize);
  188|     59|        io_->readOrThrow(boxData.data(), boxData.size(), ErrorCode::kerCorruptedMetadata);
  189|     59|        if (!Internal::isValidBoxFileType(boxData))
  ------------------
  |  Branch (189:13): [True: 35, False: 24]
  ------------------
  190|     35|          throw Error(ErrorCode::kerCorruptedMetadata);
  191|     24|        brand_ = getULong(boxData.data(), bigEndian);
  192|     24|        break;
  193|     59|      }
  194|  3.74k|      case kJp2BoxType::Header: {
  ------------------
  |  Branch (194:7): [True: 3.74k, False: 6.26k]
  ------------------
  195|       |#ifdef EXIV2_DEBUG_MESSAGES
  196|       |        std::cout << "Exiv2::Jp2Image::readMetadata: JP2Header box found\n";
  197|       |#endif
  198|  3.74k|        size_t restore = io_->tell();
  199|       |
  200|  56.3k|        while (io_->read(reinterpret_cast<byte*>(&subBox), boxHSize) == boxHSize && subBox.length) {
  ------------------
  |  Branch (200:16): [True: 55.2k, False: 1.11k]
  |  Branch (200:85): [True: 52.6k, False: 2.60k]
  ------------------
  201|  52.6k|          boxes_check(boxesCount++, boxem);
  202|  52.6k|          subBox.length = getULong(reinterpret_cast<byte*>(&subBox.length), bigEndian);
  203|  52.6k|          subBox.type = getULong(reinterpret_cast<byte*>(&subBox.type), bigEndian);
  204|  52.6k|          if (subBox.length > io_->size()) {
  ------------------
  |  Branch (204:15): [True: 20, False: 52.6k]
  ------------------
  205|     20|            throw Error(ErrorCode::kerCorruptedMetadata);
  206|     20|          }
  207|       |#ifdef EXIV2_DEBUG_MESSAGES
  208|       |          std::cout << "Exiv2::Jp2Image::readMetadata: "
  209|       |                    << "subBox = " << toAscii(subBox.type) << " length = " << subBox.length << '\n';
  210|       |#endif
  211|  52.6k|          if (subBox.type == kJp2BoxType::ColorSpec && subBox.length != 15) {
  ------------------
  |  Branch (211:15): [True: 85, False: 52.5k]
  |  Branch (211:56): [True: 41, False: 44]
  ------------------
  212|       |#ifdef EXIV2_DEBUG_MESSAGES
  213|       |            std::cout << "Exiv2::Jp2Image::readMetadata: "
  214|       |                      << "Color data found" << '\n';
  215|       |#endif
  216|       |
  217|     41|            const size_t pad = 3;  // 3 padding bytes 2 0 0
  218|     41|            const size_t data_length = Safe::add(subBox.length, 8u);
  219|       |            // data_length makes no sense if it is larger than the rest of the file
  220|     41|            if (data_length > io_->size() - io_->tell()) {
  ------------------
  |  Branch (220:17): [True: 0, False: 41]
  ------------------
  221|      0|              throw Error(ErrorCode::kerCorruptedMetadata);
  222|      0|            }
  223|     41|            DataBuf data(data_length);
  224|     41|            io_->read(data.data(), data.size());
  225|     41|            const size_t iccLength = data.read_uint32(pad, bigEndian);
  226|       |            // subtracting pad from data.size() is safe:
  227|       |            // data.size() is at least 8 and pad = 3
  228|     41|            if (iccLength > data.size() - pad) {
  ------------------
  |  Branch (228:17): [True: 2, False: 39]
  ------------------
  229|      2|              throw Error(ErrorCode::kerCorruptedMetadata);
  230|      2|            }
  231|     39|            DataBuf icc(iccLength);
  232|     39|            std::copy_n(data.begin() + pad, icc.size(), icc.begin());
  233|       |#ifdef EXIV2_DEBUG_MESSAGES
  234|       |            const char* iccPath = "/tmp/libexiv2_jp2.icc";
  235|       |            if (auto f = std::ofstream(iccPath, std::ios::binary)) {
  236|       |              f.write(reinterpret_cast<const char*>(icc.c_data()), static_cast<std::streamsize>(icc.size()));
  237|       |              f.close();
  238|       |              std::cout << "Exiv2::Jp2Image::readMetadata: wrote iccProfile " << icc.size() << " bytes to " << iccPath
  239|       |                        << '\n';
  240|       |            }
  241|       |#endif
  242|     39|            setIccProfile(std::move(icc));
  243|     39|          }
  244|       |
  245|  52.6k|          if (subBox.type == kJp2BoxType::ImageHeader) {
  ------------------
  |  Branch (245:15): [True: 64, False: 52.5k]
  ------------------
  246|     64|            io_->read(reinterpret_cast<byte*>(&ihdr), sizeof(ihdr));
  247|       |#ifdef EXIV2_DEBUG_MESSAGES
  248|       |            std::cout << "Exiv2::Jp2Image::readMetadata: Ihdr data found" << '\n';
  249|       |#endif
  250|     64|            ihdr.imageHeight = getULong(reinterpret_cast<byte*>(&ihdr.imageHeight), bigEndian);
  251|     64|            ihdr.imageWidth = getULong(reinterpret_cast<byte*>(&ihdr.imageWidth), bigEndian);
  252|     64|            ihdr.componentCount = getShort(reinterpret_cast<byte*>(&ihdr.componentCount), bigEndian);
  253|     64|            Internal::enforce(ihdr.c == 7, ErrorCode::kerCorruptedMetadata);
  254|       |
  255|     64|            pixelWidth_ = ihdr.imageWidth;
  256|     64|            pixelHeight_ = ihdr.imageHeight;
  257|     64|          }
  258|       |
  259|  52.6k|          io_->seek(restore, BasicIo::beg);
  260|  52.6k|          if (io_->seek(subBox.length, BasicIo::cur) != 0) {
  ------------------
  |  Branch (260:15): [True: 4, False: 52.6k]
  ------------------
  261|      4|            throw Error(ErrorCode::kerCorruptedMetadata);
  262|      4|          }
  263|  52.6k|          restore = io_->tell();
  264|  52.6k|        }
  265|  3.71k|        break;
  266|  3.74k|      }
  267|       |
  268|  3.71k|      case kJp2BoxType::Uuid: {
  ------------------
  |  Branch (268:7): [True: 978, False: 9.02k]
  ------------------
  269|       |#ifdef EXIV2_DEBUG_MESSAGES
  270|       |        std::cout << "Exiv2::Jp2Image::readMetadata: UUID box found" << '\n';
  271|       |#endif
  272|       |
  273|    978|        if (io_->read(reinterpret_cast<byte*>(&uuid), sizeof(uuid)) == sizeof(uuid)) {
  ------------------
  |  Branch (273:13): [True: 977, False: 1]
  ------------------
  274|    977|          DataBuf rawData;
  275|    977|          size_t bufRead;
  276|    977|          bool bIsExif = uuid.uuid == kJp2UuidExif;
  277|    977|          bool bIsIPTC = uuid.uuid == kJp2UuidIptc;
  278|    977|          bool bIsXMP = uuid.uuid == kJp2UuidXmp;
  279|       |
  280|    977|          if (bIsExif) {
  ------------------
  |  Branch (280:15): [True: 445, False: 532]
  ------------------
  281|       |#ifdef EXIV2_DEBUG_MESSAGES
  282|       |            std::cout << "Exiv2::Jp2Image::readMetadata: Exif data found" << '\n';
  283|       |#endif
  284|    445|            Internal::enforce(box.length >= boxHSize + sizeof(uuid), ErrorCode::kerCorruptedMetadata);
  285|    445|            rawData.alloc(box.length - (boxHSize + sizeof(uuid)));
  286|    445|            bufRead = io_->read(rawData.data(), rawData.size());
  287|    445|            if (io_->error())
  ------------------
  |  Branch (287:17): [True: 0, False: 445]
  ------------------
  288|      0|              throw Error(ErrorCode::kerFailedToReadImageData);
  289|    445|            if (bufRead != rawData.size())
  ------------------
  |  Branch (289:17): [True: 0, False: 445]
  ------------------
  290|      0|              throw Error(ErrorCode::kerInputDataReadFailed);
  291|       |
  292|    445|            if (rawData.size() > 8)  // "II*\0long"
  ------------------
  |  Branch (292:17): [True: 436, False: 9]
  ------------------
  293|    436|            {
  294|       |              // Find the position of Exif header in bytes array.
  295|    436|              const char a = rawData.read_uint8(0);
  296|    436|              const char b = rawData.read_uint8(1);
  297|    436|              const size_t notfound = std::numeric_limits<size_t>::max();
  298|    436|              size_t pos = (a == b && (a == 'I' || a == 'M')) ? 0 : notfound;
  ------------------
  |  Branch (298:29): [True: 424, False: 12]
  |  Branch (298:40): [True: 5, False: 419]
  |  Branch (298:52): [True: 1, False: 418]
  ------------------
  299|       |
  300|       |              // #1242  Forgive having Exif\0\0 in rawData.pData_
  301|    436|              std::array<byte, 6> exifHeader{0x45, 0x78, 0x69, 0x66, 0x00, 0x00};
  302|  76.8k|              for (size_t i = 0; pos == notfound && i < (rawData.size() - exifHeader.size()); i++) {
  ------------------
  |  Branch (302:34): [True: 76.4k, False: 427]
  |  Branch (302:53): [True: 76.4k, False: 9]
  ------------------
  303|  76.4k|                if (rawData.cmpBytes(i, exifHeader.data(), exifHeader.size()) == 0) {
  ------------------
  |  Branch (303:21): [True: 421, False: 75.9k]
  ------------------
  304|    421|                  pos = i + sizeof(exifHeader);
  305|    421|#ifndef SUPPRESS_WARNINGS
  306|    421|                  EXV_WARNING << "Reading non-standard UUID-EXIF_bad box in " << io_->path() << '\n';
  ------------------
  |  |  138|    421|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 421]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    421|  LogMsg(LogMsg::warn).os()
  ------------------
  307|    421|#endif
  308|    421|                }
  309|  76.4k|              }
  310|       |
  311|       |              // If found it, store only these data at from this place.
  312|    436|              if (pos != notfound) {
  ------------------
  |  Branch (312:19): [True: 427, False: 9]
  ------------------
  313|       |#ifdef EXIV2_DEBUG_MESSAGES
  314|       |                std::cout << "Exiv2::Jp2Image::readMetadata: Exif header found at position " << pos << '\n';
  315|       |#endif
  316|    427|                ByteOrder bo =
  317|    427|                    TiffParser::decode(exifData(), iptcData(), xmpData(), rawData.c_data(pos), rawData.size() - pos);
  318|    427|                setByteOrder(bo);
  319|    427|              }
  320|    436|            } else {
  321|      9|#ifndef SUPPRESS_WARNINGS
  322|      9|              EXV_WARNING << "Failed to decode Exif metadata." << '\n';
  ------------------
  |  |  138|      9|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 9]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      9|  LogMsg(LogMsg::warn).os()
  ------------------
  323|      9|#endif
  324|      9|              exifData_.clear();
  325|      9|            }
  326|    445|          }
  327|       |
  328|    977|          if (bIsIPTC) {
  ------------------
  |  Branch (328:15): [True: 213, False: 764]
  ------------------
  329|       |#ifdef EXIV2_DEBUG_MESSAGES
  330|       |            std::cout << "Exiv2::Jp2Image::readMetadata: Iptc data found" << '\n';
  331|       |#endif
  332|    213|            Internal::enforce(box.length >= boxHSize + sizeof(uuid), ErrorCode::kerCorruptedMetadata);
  333|    213|            rawData.alloc(box.length - (boxHSize + sizeof(uuid)));
  334|    213|            bufRead = io_->read(rawData.data(), rawData.size());
  335|    213|            if (io_->error())
  ------------------
  |  Branch (335:17): [True: 0, False: 213]
  ------------------
  336|      0|              throw Error(ErrorCode::kerFailedToReadImageData);
  337|    213|            if (bufRead != rawData.size())
  ------------------
  |  Branch (337:17): [True: 0, False: 213]
  ------------------
  338|      0|              throw Error(ErrorCode::kerInputDataReadFailed);
  339|       |
  340|    213|            if (IptcParser::decode(iptcData_, rawData.c_data(), rawData.size())) {
  ------------------
  |  Branch (340:17): [True: 32, False: 181]
  ------------------
  341|     32|#ifndef SUPPRESS_WARNINGS
  342|     32|              EXV_WARNING << "Failed to decode IPTC metadata." << '\n';
  ------------------
  |  |  138|     32|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 32]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     32|  LogMsg(LogMsg::warn).os()
  ------------------
  343|     32|#endif
  344|     32|              iptcData_.clear();
  345|     32|            }
  346|    213|          }
  347|       |
  348|    977|          if (bIsXMP) {
  ------------------
  |  Branch (348:15): [True: 131, False: 846]
  ------------------
  349|       |#ifdef EXIV2_DEBUG_MESSAGES
  350|       |            std::cout << "Exiv2::Jp2Image::readMetadata: Xmp data found" << '\n';
  351|       |#endif
  352|    131|            Internal::enforce(box.length >= boxHSize + sizeof(uuid), ErrorCode::kerCorruptedMetadata);
  353|    131|            rawData.alloc(box.length - (boxHSize + sizeof(uuid)));
  354|    131|            bufRead = io_->read(rawData.data(), rawData.size());
  355|    131|            if (io_->error())
  ------------------
  |  Branch (355:17): [True: 0, False: 131]
  ------------------
  356|      0|              throw Error(ErrorCode::kerFailedToReadImageData);
  357|    131|            if (bufRead != rawData.size())
  ------------------
  |  Branch (357:17): [True: 0, False: 131]
  ------------------
  358|      0|              throw Error(ErrorCode::kerInputDataReadFailed);
  359|    131|            xmpPacket_.assign(rawData.c_str(), rawData.size());
  360|       |
  361|    131|            if (auto idx = xmpPacket_.find_first_of('<'); idx != std::string::npos && idx > 0) {
  ------------------
  |  Branch (361:59): [True: 76, False: 55]
  |  Branch (361:87): [True: 72, False: 4]
  ------------------
  362|     72|#ifndef SUPPRESS_WARNINGS
  363|     72|              EXV_WARNING << "Removing " << static_cast<uint32_t>(idx)
  ------------------
  |  |  138|     72|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 72]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     72|  LogMsg(LogMsg::warn).os()
  ------------------
  364|      0|                          << " characters from the beginning of the XMP packet" << '\n';
  365|     72|#endif
  366|     72|              xmpPacket_ = xmpPacket_.substr(idx);
  367|     72|            }
  368|       |
  369|    131|            if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (369:17): [True: 81, False: 50]
  |  Branch (369:40): [True: 81, False: 0]
  ------------------
  370|     81|#ifndef SUPPRESS_WARNINGS
  371|     81|              EXV_WARNING << "Failed to decode XMP metadata." << '\n';
  ------------------
  |  |  138|     81|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 81]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     81|  LogMsg(LogMsg::warn).os()
  ------------------
  372|     81|#endif
  373|     81|            }
  374|    131|          }
  375|    977|        }
  376|    978|        break;
  377|    978|      }
  378|       |
  379|  4.29k|      default:
  ------------------
  |  Branch (379:7): [True: 4.29k, False: 5.70k]
  ------------------
  380|  4.29k|        break;
  381|  10.0k|    }
  382|  9.85k|    lastBoxTypeRead = box.type;
  383|       |
  384|       |    // Move to the next box.
  385|  9.85k|    io_->seek(static_cast<int64_t>(position - boxHSize + box.length), BasicIo::beg);
  386|  9.85k|    if (io_->error())
  ------------------
  |  Branch (386:9): [True: 0, False: 9.85k]
  ------------------
  387|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  388|  9.85k|  }
  389|       |
  390|    854|}  // Jp2Image::readMetadata
_ZN5Exiv28Jp2Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  392|  4.01k|void Jp2Image::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  393|  4.01k|  if (io_->open() != 0)
  ------------------
  |  Branch (393:7): [True: 0, False: 4.01k]
  ------------------
  394|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  395|       |
  396|  4.01k|  if (!isJp2Type(*io_, false)) {
  ------------------
  |  Branch (396:7): [True: 0, False: 4.01k]
  ------------------
  397|      0|    throw Error(ErrorCode::kerNotAJpeg);
  398|      0|  }
  399|       |
  400|       |  // According to the JP2 standard: The start of the first box shall be the first byte of the file, and the
  401|       |  // last byte of the last box shall be the last byte of the file.
  402|       |
  403|  4.01k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (403:17): [True: 699, False: 3.31k]
  |  Branch (403:39): [True: 661, False: 2.65k]
  ------------------
  404|  4.01k|  bool bRecursive = option == kpsRecursive;
  405|  4.01k|  bool bICC = option == kpsIccProfile;
  406|  4.01k|  bool bXMP = option == kpsXMP;
  407|  4.01k|  bool bIPTCErase = option == kpsIptcErase;
  408|  4.01k|  bool boxSignatureFound = false;
  409|       |
  410|  4.01k|  if (bPrint) {
  ------------------
  |  Branch (410:7): [True: 1.36k, False: 2.65k]
  ------------------
  411|  1.36k|    out << "STRUCTURE OF JPEG2000 FILE: " << io_->path() << '\n';
  412|  1.36k|    out << " address |   length | box       | data" << '\n';
  413|  1.36k|  }
  414|       |
  415|  4.01k|  if (bPrint || bXMP || bICC || bIPTCErase) {
  ------------------
  |  Branch (415:7): [True: 1.36k, False: 2.65k]
  |  Branch (415:17): [True: 661, False: 1.98k]
  |  Branch (415:25): [True: 645, False: 1.34k]
  |  Branch (415:33): [True: 645, False: 699]
  ------------------
  416|  3.31k|    Internal::Jp2BoxHeader box = {1, 1};
  417|  3.31k|    Internal::Jp2BoxHeader subBox = {1, 1};
  418|  3.31k|    Internal::Jp2UuidBox uuid = {{0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0}};
  419|  3.31k|    bool bLF = false;
  420|       |
  421|  50.6k|    while (box.length && box.type != kJp2BoxType::Close &&
  ------------------
  |  Branch (421:12): [True: 48.6k, False: 2.03k]
  |  Branch (421:26): [True: 48.6k, False: 0]
  ------------------
  422|  48.6k|           io_->read(reinterpret_cast<byte*>(&box), boxHSize) == boxHSize) {
  ------------------
  |  Branch (422:12): [True: 47.4k, False: 1.19k]
  ------------------
  423|  47.4k|      const size_t position = io_->tell();
  424|  47.4k|      box.length = getULong(reinterpret_cast<byte*>(&box.length), bigEndian);
  425|  47.4k|      box.type = getULong(reinterpret_cast<byte*>(&box.type), bigEndian);
  426|  47.4k|      Internal::enforce(box.length <= boxHSize + io_->size() - io_->tell(), ErrorCode::kerCorruptedMetadata);
  427|       |
  428|  47.4k|      if (bPrint) {
  ------------------
  |  Branch (428:11): [True: 19.1k, False: 28.3k]
  ------------------
  429|  19.1k|        out << stringFormat("{:8} | {:8} | {}      | ", position - boxHSize, box.length, toAscii(box.type));
  ------------------
  |  |   18|  19.1k|#define stringFormat std::format
  ------------------
  430|  19.1k|        bLF = true;
  431|  19.1k|        if (box.type == kJp2BoxType::Close)
  ------------------
  |  Branch (431:13): [True: 12, False: 19.1k]
  ------------------
  432|     12|          lf(out, bLF);
  433|  19.1k|      }
  434|  47.4k|      if (box.type == kJp2BoxType::Close)
  ------------------
  |  Branch (434:11): [True: 29, False: 47.4k]
  ------------------
  435|     29|        break;
  436|       |
  437|  47.4k|      switch (box.type) {
  438|  3.31k|        case kJp2BoxType::Signature: {
  ------------------
  |  Branch (438:9): [True: 3.31k, False: 44.1k]
  ------------------
  439|  3.31k|          if (boxSignatureFound)  // Only one is allowed
  ------------------
  |  Branch (439:15): [True: 1, False: 3.31k]
  ------------------
  440|      1|            throw Error(ErrorCode::kerCorruptedMetadata);
  441|  3.31k|          boxSignatureFound = true;
  442|  3.31k|          break;
  443|  3.31k|        }
  444|     80|        case kJp2BoxType::FileTypeBox: {
  ------------------
  |  Branch (444:9): [True: 80, False: 47.3k]
  ------------------
  445|       |          // This box shall immediately follow the JPEG 2000 Signature box
  446|       |          /// \todo  All files shall contain one and only one File Type box.
  447|     80|          Blob boxData(box.length - boxHSize);
  448|     80|          io_->readOrThrow(boxData.data(), boxData.size(), ErrorCode::kerCorruptedMetadata);
  449|     80|          if (!Internal::isValidBoxFileType(boxData))
  ------------------
  |  Branch (449:15): [True: 0, False: 80]
  ------------------
  450|      0|            throw Error(ErrorCode::kerCorruptedMetadata);
  451|     80|          break;
  452|     80|        }
  453|  18.0k|        case kJp2BoxType::Header: {
  ------------------
  |  Branch (453:9): [True: 18.0k, False: 29.3k]
  ------------------
  454|  18.0k|          lf(out, bLF);
  455|       |          /// \todo  All files shall contain one and only one Header box.
  456|       |
  457|  18.7k|          while (io_->read(reinterpret_cast<byte*>(&subBox), boxHSize) == boxHSize &&
  ------------------
  |  Branch (457:18): [True: 18.6k, False: 144]
  ------------------
  458|  18.6k|                 io_->tell() < position + box.length)  // don't read beyond the box!
  ------------------
  |  Branch (458:18): [True: 719, False: 17.9k]
  ------------------
  459|    719|          {
  460|    719|            const size_t address = io_->tell() - boxHSize;
  461|    719|            subBox.length = getULong(reinterpret_cast<byte*>(&subBox.length), bigEndian);
  462|    719|            subBox.type = getULong(reinterpret_cast<byte*>(&subBox.type), bigEndian);
  463|       |
  464|    719|            if (subBox.length < boxHSize || subBox.length > io_->size() - io_->tell()) {
  ------------------
  |  Branch (464:17): [True: 9, False: 710]
  |  Branch (464:45): [True: 2, False: 708]
  ------------------
  465|     11|              throw Error(ErrorCode::kerCorruptedMetadata);
  466|     11|            }
  467|       |
  468|    708|            DataBuf data(subBox.length - boxHSize);
  469|    708|            io_->read(data.data(), data.size());
  470|    708|            if (bPrint) {
  ------------------
  |  Branch (470:17): [True: 323, False: 385]
  ------------------
  471|    323|              out << stringFormat("{:8} | {:8} |  sub:{} | ", address, subBox.length, toAscii(subBox.type))
  ------------------
  |  |   18|    323|#define stringFormat std::format
  ------------------
  472|    323|                  << Internal::binaryToString(makeSlice(data, 0, std::min<size_t>(30, data.size())));
  473|    323|              bLF = true;
  474|    323|            }
  475|       |
  476|    708|            if (subBox.type == kJp2BoxType::ImageHeader) {
  ------------------
  |  Branch (476:17): [True: 115, False: 593]
  ------------------
  477|    115|              Internal::enforce(subBox.length == 22, ErrorCode::kerCorruptedMetadata);
  478|       |              // height (4), width (4), componentsCount (2), bpc (1)
  479|    115|              auto compressionType = data.read_uint8(11);
  480|    115|              auto unkC = data.read_uint8(12);
  481|    115|              auto ipr = data.read_uint8(13);
  482|    115|              if (compressionType != 7 || unkC > 1 || ipr > 1) {
  ------------------
  |  Branch (482:19): [True: 1, False: 114]
  |  Branch (482:43): [True: 3, False: 111]
  |  Branch (482:55): [True: 1, False: 110]
  ------------------
  483|      4|                throw Error(ErrorCode::kerCorruptedMetadata);
  484|      4|              }
  485|    593|            } else if (subBox.type == kJp2BoxType::ColorSpec) {
  ------------------
  |  Branch (485:24): [True: 69, False: 524]
  ------------------
  486|     69|              const size_t pad = 3;  // don't know why there are 3 padding bytes
  487|       |
  488|       |              // Bounds-check for the `getULong()` below, which reads 4 bytes, starting at `pad`.
  489|     69|              Internal::enforce(data.size() >= pad + 4, ErrorCode::kerCorruptedMetadata);
  490|       |
  491|       |              /// \todo A conforming JP2 reader shall ignore all Colour Specification boxes after the first.
  492|     69|              auto METH = data.read_uint8(0);
  493|       |              // auto PREC = data.read_uint8(1);
  494|       |              // auto APPROX = data.read_uint8(2);
  495|     69|              if (METH == 1) {  // Enumerated Colourspace
  ------------------
  |  Branch (495:19): [True: 23, False: 46]
  ------------------
  496|     23|                auto enumCS = data.read_uint32(3, bigEndian);
  497|     23|                if (enumCS != 16 && enumCS != 17) {
  ------------------
  |  Branch (497:21): [True: 23, False: 0]
  |  Branch (497:37): [True: 1, False: 22]
  ------------------
  498|      1|                  throw Error(ErrorCode::kerCorruptedMetadata);
  499|      1|                }
  500|     46|              } else {  // Restricted ICC Profile
  501|       |                        // see the ICC Profile Format Specification, version ICC.1:1998-09
  502|     46|                const size_t iccLength = data.read_uint32(pad, bigEndian);
  503|     46|                if (bPrint) {
  ------------------
  |  Branch (503:21): [True: 22, False: 24]
  ------------------
  504|     22|                  out << " | iccLength:" << iccLength;
  505|     22|                }
  506|     46|                Internal::enforce(iccLength <= data.size() - pad, ErrorCode::kerCorruptedMetadata);
  507|     46|                if (bICC) {
  ------------------
  |  Branch (507:21): [True: 8, False: 38]
  ------------------
  508|      8|                  out.write(data.c_str(pad), iccLength);
  509|      8|                }
  510|     46|              }
  511|     69|            }
  512|    703|            lf(out, bLF);
  513|    703|          }
  514|  18.0k|        } break;
  515|       |
  516|  18.0k|        case kJp2BoxType::Uuid: {
  ------------------
  |  Branch (516:9): [True: 3.67k, False: 43.7k]
  ------------------
  517|  3.67k|          if (io_->read(reinterpret_cast<byte*>(&uuid), sizeof(uuid)) == sizeof(uuid)) {
  ------------------
  |  Branch (517:15): [True: 3.65k, False: 15]
  ------------------
  518|  3.65k|            bool bIsExif = uuid.uuid == kJp2UuidExif;
  519|  3.65k|            bool bIsIPTC = uuid.uuid == kJp2UuidIptc;
  520|  3.65k|            bool bIsXMP = uuid.uuid == kJp2UuidXmp;
  521|       |
  522|  3.65k|            bool bUnknown = !(bIsExif || bIsIPTC || bIsXMP);
  ------------------
  |  Branch (522:31): [True: 2.16k, False: 1.49k]
  |  Branch (522:42): [True: 844, False: 648]
  |  Branch (522:53): [True: 340, False: 308]
  ------------------
  523|       |
  524|  3.65k|            if (bPrint) {
  ------------------
  |  Branch (524:17): [True: 1.49k, False: 2.16k]
  ------------------
  525|  1.49k|              if (bIsExif)
  ------------------
  |  Branch (525:19): [True: 868, False: 626]
  ------------------
  526|    868|                out << "Exif: ";
  527|  1.49k|              if (bIsIPTC)
  ------------------
  |  Branch (527:19): [True: 350, False: 1.14k]
  ------------------
  528|    350|                out << "IPTC: ";
  529|  1.49k|              if (bIsXMP)
  ------------------
  |  Branch (529:19): [True: 139, False: 1.35k]
  ------------------
  530|    139|                out << "XMP : ";
  531|  1.49k|              if (bUnknown)
  ------------------
  |  Branch (531:19): [True: 137, False: 1.35k]
  ------------------
  532|    137|                out << "????: ";
  533|  1.49k|            }
  534|       |
  535|  3.65k|            DataBuf rawData;
  536|  3.65k|            Internal::enforce(box.length >= sizeof(uuid) + boxHSize, ErrorCode::kerCorruptedMetadata);
  537|  3.65k|            rawData.alloc(box.length - sizeof(uuid) - boxHSize);
  538|  3.65k|            const size_t bufRead = io_->read(rawData.data(), rawData.size());
  539|  3.65k|            if (io_->error())
  ------------------
  |  Branch (539:17): [True: 0, False: 3.65k]
  ------------------
  540|      0|              throw Error(ErrorCode::kerFailedToReadImageData);
  541|  3.65k|            if (bufRead != rawData.size())
  ------------------
  |  Branch (541:17): [True: 0, False: 3.65k]
  ------------------
  542|      0|              throw Error(ErrorCode::kerInputDataReadFailed);
  543|       |
  544|  3.65k|            if (bPrint) {
  ------------------
  |  Branch (544:17): [True: 1.48k, False: 2.16k]
  ------------------
  545|  1.48k|              out << Internal::binaryToString(makeSlice(rawData, 0, std::min<size_t>(40, rawData.size())));
  546|  1.48k|              out.flush();
  547|  1.48k|            }
  548|  3.65k|            lf(out, bLF);
  549|       |
  550|  3.65k|            if (bIsExif && bRecursive && rawData.size() > 8) {  // "II*\0long"
  ------------------
  |  Branch (550:17): [True: 2.16k, False: 1.49k]
  |  Branch (550:28): [True: 433, False: 1.73k]
  |  Branch (550:42): [True: 427, False: 6]
  ------------------
  551|    427|              const char a = rawData.read_uint8(0);
  552|    427|              const char b = rawData.read_uint8(1);
  553|    427|              if (a == b && (a == 'I' || a == 'M')) {
  ------------------
  |  Branch (553:19): [True: 418, False: 9]
  |  Branch (553:30): [True: 2, False: 416]
  |  Branch (553:42): [True: 0, False: 416]
  ------------------
  554|      2|                MemIo p(rawData.c_data(), rawData.size());
  555|      2|                printTiffStructure(p, out, option, depth + 1);
  556|      2|              }
  557|    427|            }
  558|       |
  559|  3.65k|            if (bIsIPTC && bRecursive) {
  ------------------
  |  Branch (559:17): [True: 843, False: 2.81k]
  |  Branch (559:28): [True: 173, False: 670]
  ------------------
  560|    173|              IptcData::printStructure(out, makeSlice(rawData, 0, rawData.size()), depth);
  561|    173|            }
  562|       |
  563|  3.65k|            if (bIsXMP && bXMP) {
  ------------------
  |  Branch (563:17): [True: 337, False: 3.31k]
  |  Branch (563:27): [True: 67, False: 270]
  ------------------
  564|     67|              out.write(rawData.c_str(), rawData.size());
  565|     67|            }
  566|  3.65k|          }
  567|  3.67k|        } break;
  568|       |
  569|  22.2k|        default:
  ------------------
  |  Branch (569:9): [True: 22.2k, False: 25.1k]
  ------------------
  570|  22.2k|          break;
  571|  47.4k|      }
  572|       |
  573|       |      // Move to the next box.
  574|  47.3k|      io_->seek(static_cast<int64_t>(position - boxHSize + box.length), BasicIo::beg);
  575|  47.3k|      if (io_->error())
  ------------------
  |  Branch (575:11): [True: 0, False: 47.3k]
  ------------------
  576|      0|        throw Error(ErrorCode::kerFailedToReadImageData);
  577|  47.3k|      if (bPrint)
  ------------------
  |  Branch (577:11): [True: 19.0k, False: 28.3k]
  ------------------
  578|  19.0k|        lf(out, bLF);
  579|  47.3k|    }
  580|  3.31k|  }
  581|  4.01k|}
_ZN5Exiv28Jp2Image13writeMetadataEv:
  583|    645|void Jp2Image::writeMetadata() {
  584|    645|  if (io_->open() != 0) {
  ------------------
  |  Branch (584:7): [True: 0, False: 645]
  ------------------
  585|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  586|      0|  }
  587|    645|  IoCloser closer(*io_);
  588|    645|  MemIo tempIo;
  589|       |
  590|    645|  doWriteMetadata(tempIo);  // may throw
  591|    645|  io_->close();
  592|    645|  io_->transfer(tempIo);  // may throw
  593|       |
  594|    645|}  // Jp2Image::writeMetadata
_ZN5Exiv28Jp2Image15encodeJp2HeaderERKNS_7DataBufERS1_:
  596|  3.62k|void Jp2Image::encodeJp2Header(const DataBuf& boxBuf, DataBuf& outBuf) {
  597|  3.62k|  DataBuf output(boxBuf.size() + iccProfile_.size() + 100);  // allocate sufficient space
  598|  3.62k|  size_t outlen = boxHSize;                                  // now many bytes have we written to output?
  599|  3.62k|  size_t inlen = boxHSize;                                   // how many bytes have we read from boxBuf?
  600|  3.62k|  Internal::enforce(boxHSize <= output.size(), ErrorCode::kerCorruptedMetadata);
  601|  3.62k|  uint32_t length = getULong(boxBuf.c_data(0), bigEndian);
  602|  3.62k|  Internal::enforce(length <= output.size(), ErrorCode::kerCorruptedMetadata);
  603|  3.62k|  uint32_t count = boxHSize;
  604|  3.62k|  bool bWroteColor = false;
  605|       |
  606|  3.76k|  while (count < length && !bWroteColor) {
  ------------------
  |  Branch (606:10): [True: 142, False: 3.62k]
  |  Branch (606:28): [True: 139, False: 3]
  ------------------
  607|    139|    Internal::enforce(boxHSize <= length - count, ErrorCode::kerCorruptedMetadata);
  608|    139|    Internal::Jp2BoxHeader subBox;
  609|    139|    std::memcpy(&subBox, boxBuf.c_data(count), boxHSize);
  610|    139|    Internal::Jp2BoxHeader newBox = subBox;
  611|       |
  612|    139|    if (count < length) {
  ------------------
  |  Branch (612:9): [True: 138, False: 1]
  ------------------
  613|    138|      subBox.length = getULong(boxBuf.c_data(count), bigEndian);
  614|    138|      subBox.type = getULong(boxBuf.c_data(count + 4), bigEndian);
  615|       |#ifdef EXIV2_DEBUG_MESSAGES
  616|       |      std::cout << "Jp2Image::encodeJp2Header subbox: " << toAscii(subBox.type) << " length = " << subBox.length
  617|       |                << '\n';
  618|       |#endif
  619|    138|      Internal::enforce(subBox.length > 0, ErrorCode::kerCorruptedMetadata);
  620|    138|      Internal::enforce(subBox.length <= length - count, ErrorCode::kerCorruptedMetadata);
  621|    138|      count += subBox.length;
  622|    138|      newBox.type = subBox.type;
  623|    138|    } else {
  624|      1|      subBox.length = 0;
  625|      1|      newBox.type = kJp2BoxType::ColorSpec;
  626|      1|      count = length;
  627|      1|    }
  628|       |
  629|    139|    size_t newlen = subBox.length;
  630|    139|    if (newBox.type == kJp2BoxType::ColorSpec) {
  ------------------
  |  Branch (630:9): [True: 14, False: 125]
  ------------------
  631|     14|      bWroteColor = true;
  632|     14|      if (!iccProfileDefined()) {
  ------------------
  |  Branch (632:11): [True: 11, False: 3]
  ------------------
  633|     11|        const char* pad = "\x01\x00\x00\x00\x00\x00\x10\x00\x00\x05\x1cuuid";
  634|     11|        uint32_t psize = 15;
  635|     11|        Internal::enforce(newlen <= output.size() - outlen, ErrorCode::kerCorruptedMetadata);
  636|     11|        ul2Data(reinterpret_cast<byte*>(&newBox.length), psize, bigEndian);
  637|     11|        ul2Data(reinterpret_cast<byte*>(&newBox.type), newBox.type, bigEndian);
  638|     11|        std::memcpy(output.data(outlen), &newBox, sizeof(newBox));
  639|     11|        std::memcpy(output.data(outlen) + sizeof(newBox), pad, psize);
  640|     11|      } else {
  641|      3|        const char* pad = "\x02\x00\x00";
  642|      3|        uint32_t psize = 3;
  643|      3|        newlen = sizeof(newBox) + psize + iccProfile_.size();
  644|      3|        Internal::enforce(newlen <= output.size() - outlen, ErrorCode::kerCorruptedMetadata);
  645|      3|        ul2Data(reinterpret_cast<byte*>(&newBox.length), static_cast<uint32_t>(newlen), bigEndian);
  646|      3|        ul2Data(reinterpret_cast<byte*>(&newBox.type), newBox.type, bigEndian);
  647|      3|        std::memcpy(output.data(outlen), &newBox, sizeof(newBox));
  648|      3|        std::memcpy(output.data(outlen) + sizeof(newBox), pad, psize);
  649|      3|        std::copy(iccProfile_.begin(), iccProfile_.end(), output.begin() + outlen + sizeof(newBox) + psize);
  650|      3|      }
  651|    125|    } else {
  652|    125|      Internal::enforce(newlen <= output.size() - outlen, ErrorCode::kerCorruptedMetadata);
  653|    125|      std::copy_n(boxBuf.begin() + inlen, subBox.length, output.begin() + outlen);
  654|    125|    }
  655|       |
  656|    139|    outlen += newlen;
  657|    139|    inlen += subBox.length;
  658|    139|  }
  659|       |
  660|       |  // allocate the correct number of bytes, copy the data and update the box header
  661|  3.62k|  outBuf.alloc(outlen);
  662|  3.62k|  std::copy_n(output.begin(), outlen, outBuf.begin());
  663|  3.62k|  ul2Data(outBuf.data(0), static_cast<uint32_t>(outlen), bigEndian);
  664|  3.62k|  ul2Data(outBuf.data(4), kJp2BoxType::Header, bigEndian);
  665|  3.62k|}
_ZN5Exiv28Jp2Image15doWriteMetadataERNS_7BasicIoE:
  667|    645|void Jp2Image::doWriteMetadata(BasicIo& outIo) {
  668|    645|  if (!io_->isopen())
  ------------------
  |  Branch (668:7): [True: 0, False: 645]
  ------------------
  669|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  670|    645|  if (!outIo.isopen())
  ------------------
  |  Branch (670:7): [True: 0, False: 645]
  ------------------
  671|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  672|       |
  673|       |#ifdef EXIV2_DEBUG_MESSAGES
  674|       |  std::cout << "Exiv2::Jp2Image::doWriteMetadata: Writing JPEG-2000 file " << io_->path() << '\n';
  675|       |  std::cout << "Exiv2::Jp2Image::doWriteMetadata: tmp file created " << outIo.path() << '\n';
  676|       |#endif
  677|       |
  678|       |  // Ensure that this is the correct image type
  679|    645|  if (!isJp2Type(*io_, true)) {
  ------------------
  |  Branch (679:7): [True: 0, False: 645]
  ------------------
  680|      0|    throw Error(ErrorCode::kerNoImageInInputData);
  681|      0|  }
  682|       |
  683|       |  // Write JPEG2000 Signature (This is the 1st box)
  684|    645|  if (outIo.write(Jp2Signature.data(), Jp2Signature.size()) != 12)
  ------------------
  |  Branch (684:7): [True: 0, False: 645]
  ------------------
  685|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  686|       |
  687|       |#ifdef EXIV2_DEBUG_MESSAGES
  688|       |  std::cout << "Jp2Image::doWriteMetadata: JPEG 2000 Signature box written" << '\n';
  689|       |#endif
  690|       |
  691|    645|  Internal::Jp2BoxHeader box = {0, 0};
  692|       |
  693|    645|  std::array<byte, 4> boxDataSize;
  694|    645|  std::array<byte, 4> boxUUIDtype;
  695|    645|  DataBuf bheaderBuf(8);
  696|       |
  697|  9.46k|  while (io_->tell() < io_->size()) {
  ------------------
  |  Branch (697:10): [True: 9.02k, False: 438]
  ------------------
  698|       |#ifdef EXIV2_DEBUG_MESSAGES
  699|       |    std::cout << "Exiv2::Jp2Image::doWriteMetadata: Position: " << io_->tell() << " / " << io_->size() << '\n';
  700|       |#endif
  701|       |
  702|       |    // Read chunk header.
  703|  9.02k|    io_->readOrThrow(bheaderBuf.data(), bheaderBuf.size(), ErrorCode::kerInputDataReadFailed);
  704|       |
  705|       |    // Decode box header.
  706|  9.02k|    box.length = bheaderBuf.read_uint32(0, bigEndian);
  707|  9.02k|    box.type = bheaderBuf.read_uint32(4, bigEndian);
  708|       |
  709|       |#ifdef EXIV2_DEBUG_MESSAGES
  710|       |    std::cout << "Exiv2::Jp2Image::doWriteMetadata: box type: " << toAscii(box.type) << " length: " << box.length
  711|       |              << '\n';
  712|       |#endif
  713|       |
  714|  9.02k|    if (box.length == 0) {
  ------------------
  |  Branch (714:9): [True: 396, False: 8.62k]
  ------------------
  715|       |#ifdef EXIV2_DEBUG_MESSAGES
  716|       |      std::cout << "Exiv2::Jp2Image::doWriteMetadata: Null Box size has been found. "
  717|       |                   "This is the last box of file."
  718|       |                << '\n';
  719|       |#endif
  720|    396|      box.length = static_cast<uint32_t>(io_->size() - io_->tell() + 8);
  721|    396|    }
  722|  9.02k|    if (box.length < 8) {
  ------------------
  |  Branch (722:9): [True: 7, False: 9.01k]
  ------------------
  723|       |      // box is broken, so there is nothing we can do here
  724|      7|      throw Error(ErrorCode::kerCorruptedMetadata);
  725|      7|    }
  726|       |
  727|       |    // Prevent a malicious file from causing a large memory allocation.
  728|  9.01k|    Internal::enforce(box.length - 8 <= io_->size() - io_->tell(), ErrorCode::kerCorruptedMetadata);
  729|       |
  730|       |    // Read whole box : Box header + Box data (not fixed size - can be null).
  731|  9.01k|    DataBuf boxBuf(box.length);                                       // Box header (8 bytes) + box data.
  732|  9.01k|    std::copy(bheaderBuf.begin(), bheaderBuf.end(), boxBuf.begin());  // Copy header.
  733|  9.01k|    io_->readOrThrow(boxBuf.data(8), box.length - 8, ErrorCode::kerInputDataReadFailed);  // Extract box data.
  734|       |
  735|  9.01k|    switch (box.type) {
  736|  3.62k|      case kJp2BoxType::Header: {
  ------------------
  |  Branch (736:7): [True: 3.62k, False: 5.39k]
  ------------------
  737|  3.62k|        DataBuf newBuf;
  738|  3.62k|        encodeJp2Header(boxBuf, newBuf);
  739|       |#ifdef EXIV2_DEBUG_MESSAGES
  740|       |        std::cout << "Exiv2::Jp2Image::doWriteMetadata: Write JP2Header box (length: " << box.length << ")\n";
  741|       |#endif
  742|  3.62k|        if (outIo.write(newBuf.data(), newBuf.size()) != newBuf.size())
  ------------------
  |  Branch (742:13): [True: 0, False: 3.62k]
  ------------------
  743|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  744|       |
  745|       |        // Write all updated metadata here, just after JP2Header.
  746|       |
  747|  3.62k|        if (!exifData_.empty()) {
  ------------------
  |  Branch (747:13): [True: 3.15k, False: 469]
  ------------------
  748|       |          // Update Exif data to a new UUID box
  749|       |
  750|  3.15k|          Blob blob;
  751|  3.15k|          ExifParser::encode(blob, littleEndian, exifData_);
  752|  3.15k|          if (!blob.empty()) {
  ------------------
  |  Branch (752:15): [True: 3.13k, False: 27]
  ------------------
  753|  3.13k|            DataBuf rawExif(blob.size());
  754|  3.13k|            std::copy(blob.begin(), blob.end(), rawExif.begin());
  755|       |
  756|  3.13k|            DataBuf boxData(8 + 16 + rawExif.size());
  757|  3.13k|            ul2Data(boxDataSize.data(), static_cast<uint32_t>(boxData.size()), bigEndian);
  758|  3.13k|            ul2Data(boxUUIDtype.data(), kJp2BoxType::Uuid, bigEndian);
  759|  3.13k|            std::copy(boxDataSize.begin(), boxDataSize.end(), boxData.begin());
  760|  3.13k|            std::copy(boxUUIDtype.begin(), boxUUIDtype.end(), boxData.begin() + 4);
  761|  3.13k|            std::copy(kJp2UuidExif.begin(), kJp2UuidExif.end(), boxData.begin() + 8);
  762|  3.13k|            std::copy(rawExif.begin(), rawExif.end(), boxData.begin() + 8 + 16);
  763|       |
  764|       |#ifdef EXIV2_DEBUG_MESSAGES
  765|       |            std::cout << "Exiv2::Jp2Image::doWriteMetadata: Write box with Exif metadata (length: " << boxData.size()
  766|       |                      << '\n';
  767|       |#endif
  768|  3.13k|            if (outIo.write(boxData.c_data(), boxData.size()) != boxData.size())
  ------------------
  |  Branch (768:17): [True: 0, False: 3.13k]
  ------------------
  769|      0|              throw Error(ErrorCode::kerImageWriteFailed);
  770|  3.13k|          }
  771|  3.15k|        }
  772|       |
  773|  3.62k|        if (!iptcData_.empty()) {
  ------------------
  |  Branch (773:13): [True: 280, False: 3.34k]
  ------------------
  774|       |          // Update Iptc data to a new UUID box
  775|       |
  776|    280|          DataBuf rawIptc = IptcParser::encode(iptcData_);
  777|    280|          if (!rawIptc.empty()) {
  ------------------
  |  Branch (777:15): [True: 280, False: 0]
  ------------------
  778|    280|            DataBuf boxData(8 + 16 + rawIptc.size());
  779|    280|            ul2Data(boxDataSize.data(), static_cast<uint32_t>(boxData.size()), bigEndian);
  780|    280|            ul2Data(boxUUIDtype.data(), kJp2BoxType::Uuid, bigEndian);
  781|    280|            std::copy(boxDataSize.begin(), boxDataSize.end(), boxData.begin());
  782|    280|            std::copy(boxUUIDtype.begin(), boxUUIDtype.end(), boxData.begin() + 4);
  783|    280|            std::copy(kJp2UuidIptc.begin(), kJp2UuidIptc.end(), boxData.begin() + 8);
  784|    280|            std::copy(rawIptc.begin(), rawIptc.end(), boxData.begin() + 8 + 16);
  785|       |
  786|       |#ifdef EXIV2_DEBUG_MESSAGES
  787|       |            std::cout << "Exiv2::Jp2Image::doWriteMetadata: Write box with Iptc metadata (length: " << boxData.size()
  788|       |                      << '\n';
  789|       |#endif
  790|    280|            if (outIo.write(boxData.c_data(), boxData.size()) != boxData.size())
  ------------------
  |  Branch (790:17): [True: 0, False: 280]
  ------------------
  791|      0|              throw Error(ErrorCode::kerImageWriteFailed);
  792|    280|          }
  793|    280|        }
  794|       |
  795|  3.62k|        if (!writeXmpFromPacket() && XmpParser::encode(xmpPacket_, xmpData_) > 1) {
  ------------------
  |  Branch (795:13): [True: 3.61k, False: 7]
  |  Branch (795:38): [True: 0, False: 3.61k]
  ------------------
  796|      0|#ifndef SUPPRESS_WARNINGS
  797|      0|          EXV_ERROR << "Failed to encode XMP metadata." << '\n';
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  798|      0|#endif
  799|      0|        }
  800|  3.62k|        if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (800:13): [True: 0, False: 3.62k]
  ------------------
  801|       |          // Update Xmp data to a new UUID box
  802|       |
  803|      0|          DataBuf xmp(reinterpret_cast<const byte*>(xmpPacket_.data()), xmpPacket_.size());
  804|      0|          DataBuf boxData(8 + 16 + xmp.size());
  805|      0|          ul2Data(boxDataSize.data(), static_cast<uint32_t>(boxData.size()), bigEndian);
  806|      0|          ul2Data(boxUUIDtype.data(), kJp2BoxType::Uuid, bigEndian);
  807|      0|          std::copy(boxDataSize.begin(), boxDataSize.end(), boxData.begin());
  808|      0|          std::copy(boxUUIDtype.begin(), boxUUIDtype.end(), boxData.begin() + 4);
  809|      0|          std::copy(kJp2UuidXmp.begin(), kJp2UuidXmp.end(), boxData.begin() + 8);
  810|      0|          std::copy(xmp.begin(), xmp.end(), boxData.begin() + 8 + 16);
  811|       |
  812|       |#ifdef EXIV2_DEBUG_MESSAGES
  813|       |          std::cout << "Exiv2::Jp2Image::doWriteMetadata: Write box with XMP metadata (length: " << boxData.size()
  814|       |                    << ")" << '\n';
  815|       |#endif
  816|      0|          if (outIo.write(boxData.c_data(), boxData.size()) != boxData.size())
  ------------------
  |  Branch (816:15): [True: 0, False: 0]
  ------------------
  817|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  818|      0|        }
  819|       |
  820|  3.62k|        break;
  821|  3.62k|      }
  822|       |
  823|  3.62k|      case kJp2BoxType::Uuid: {
  ------------------
  |  Branch (823:7): [True: 722, False: 8.29k]
  ------------------
  824|    722|        Internal::enforce(boxBuf.size() >= 24, ErrorCode::kerCorruptedMetadata);
  825|    722|        if (boxBuf.cmpBytes(8, kJp2UuidExif.data(), 16) == 0) {
  ------------------
  |  Branch (825:13): [True: 429, False: 293]
  ------------------
  826|       |#ifdef EXIV2_DEBUG_MESSAGES
  827|       |          std::cout << "Exiv2::Jp2Image::doWriteMetadata: strip Exif Uuid box" << '\n';
  828|       |#endif
  829|    429|        } else if (boxBuf.cmpBytes(8, kJp2UuidIptc.data(), 16) == 0) {
  ------------------
  |  Branch (829:20): [True: 159, False: 134]
  ------------------
  830|       |#ifdef EXIV2_DEBUG_MESSAGES
  831|       |          std::cout << "Exiv2::Jp2Image::doWriteMetadata: strip Iptc Uuid box" << '\n';
  832|       |#endif
  833|    159|        } else if (boxBuf.cmpBytes(8, kJp2UuidXmp.data(), 16) == 0) {
  ------------------
  |  Branch (833:20): [True: 67, False: 67]
  ------------------
  834|       |#ifdef EXIV2_DEBUG_MESSAGES
  835|       |          std::cout << "Exiv2::Jp2Image::doWriteMetadata: strip Xmp Uuid box" << '\n';
  836|       |#endif
  837|     67|        } else {
  838|       |#ifdef EXIV2_DEBUG_MESSAGES
  839|       |          std::cout << "Exiv2::Jp2Image::doWriteMetadata: write Uuid box (length: " << box.length << ")" << '\n';
  840|       |#endif
  841|     67|          if (outIo.write(boxBuf.c_data(), boxBuf.size()) != boxBuf.size())
  ------------------
  |  Branch (841:15): [True: 0, False: 67]
  ------------------
  842|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  843|     67|        }
  844|    722|        break;
  845|    722|      }
  846|       |
  847|  4.47k|      default: {
  ------------------
  |  Branch (847:7): [True: 4.47k, False: 4.53k]
  ------------------
  848|       |#ifdef EXIV2_DEBUG_MESSAGES
  849|       |        std::cout << "Exiv2::Jp2Image::doWriteMetadata: write box (length: " << box.length << ")" << '\n';
  850|       |#endif
  851|  4.47k|        if (outIo.write(boxBuf.c_data(), boxBuf.size()) != boxBuf.size())
  ------------------
  |  Branch (851:13): [True: 0, False: 4.47k]
  ------------------
  852|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  853|       |
  854|  4.47k|        break;
  855|  4.47k|      }
  856|  9.01k|    }
  857|  9.01k|  }
  858|       |
  859|       |#ifdef EXIV2_DEBUG_MESSAGES
  860|       |  std::cout << "Exiv2::Jp2Image::doWriteMetadata: EOF" << '\n';
  861|       |#endif
  862|       |
  863|    645|}  // Jp2Image::doWriteMetadata
_ZN5Exiv214newJp2InstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  867|    855|Image::UniquePtr newJp2Instance(BasicIo::UniquePtr io, bool create) {
  868|    855|  auto image = std::make_unique<Jp2Image>(std::move(io), create);
  869|    855|  if (!image->good()) {
  ------------------
  |  Branch (869:7): [True: 1, False: 854]
  ------------------
  870|      1|    return nullptr;
  871|      1|  }
  872|    854|  return image;
  873|    855|}
_ZN5Exiv29isJp2TypeERNS_7BasicIoEb:
  875|  16.4k|bool isJp2Type(BasicIo& iIo, bool advance) {
  876|  16.4k|  std::array<byte, Jp2Signature.size()> buf;
  877|  16.4k|  const size_t bytesRead = iIo.read(buf.data(), Jp2Signature.size());
  878|  16.4k|  if (iIo.error() || iIo.eof() || bytesRead != Jp2Signature.size()) {
  ------------------
  |  Branch (878:7): [True: 0, False: 16.4k]
  |  Branch (878:22): [True: 139, False: 16.2k]
  |  Branch (878:35): [True: 0, False: 16.2k]
  ------------------
  879|    139|    return false;
  880|    139|  }
  881|  16.2k|  bool matched = buf == Jp2Signature;
  882|  16.2k|  if (!advance || !matched) {
  ------------------
  |  Branch (882:7): [True: 15.6k, False: 645]
  |  Branch (882:19): [True: 0, False: 645]
  ------------------
  883|  15.6k|    iIo.seek(-static_cast<int64_t>(Jp2Signature.size()), BasicIo::cur);  // Return to original position
  884|  15.6k|  }
  885|  16.2k|  return matched;
  886|  16.4k|}
jp2image.cpp:_ZN5Exiv212_GLOBAL__N_111boxes_checkEmm:
   89|  63.1k|void boxes_check(size_t b, size_t m) {
   90|  63.1k|  if (b > m) {
  ------------------
  |  Branch (90:7): [True: 2, False: 63.1k]
  ------------------
   91|       |#ifdef EXIV2_DEBUG_MESSAGES
   92|       |    std::cout << "Exiv2::Jp2Image::readMetadata box maximum exceeded" << '\n';
   93|       |#endif
   94|      2|    throw Error(ErrorCode::kerCorruptedMetadata);
   95|      2|  }
   96|  63.1k|}
jp2image.cpp:_ZN5Exiv212_GLOBAL__N_12lfERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERb:
   81|  41.4k|void lf(std::ostream& out, bool& bLF) {
   82|  41.4k|  if (bLF) {
  ------------------
  |  Branch (82:7): [True: 19.4k, False: 22.0k]
  ------------------
   83|  19.4k|    out << '\n';
   84|  19.4k|    out.flush();
   85|  19.4k|    bLF = false;
   86|  19.4k|  }
   87|  41.4k|}

_ZN5Exiv28Internal18isValidBoxFileTypeERKNSt3__16vectorIhNS1_9allocatorIhEEEE:
   13|    137|bool isValidBoxFileType(const std::vector<uint8_t>& boxData) {
   14|       |  // BR & MinV are obligatory (4 + 4 bytes). Afterwards we have N compatibility lists (of size 4)
   15|    137|  if (boxData.size() < 8 || ((boxData.size() - 8u) % 4u) != 0) {
  ------------------
  |  Branch (15:7): [True: 4, False: 133]
  |  Branch (15:29): [True: 1, False: 132]
  ------------------
   16|      5|    return false;
   17|      5|  }
   18|       |
   19|    132|  const size_t N = (boxData.size() - 8u) / 4u;
   20|    132|  const uint32_t brand = getULong(boxData.data(), bigEndian);
   21|    132|  const uint32_t minorVersion = getULong(boxData.data() + 4, bigEndian);
   22|       |
   23|    132|  bool clWithRightBrand = false;
   24|    453|  for (size_t i = 0; i < N; i++) {
  ------------------
  |  Branch (24:22): [True: 427, False: 26]
  ------------------
   25|    427|    uint32_t compatibilityList = getULong(boxData.data() + 8 + (i * 4), bigEndian);
   26|    427|    if ((brand == brandJp2 && compatibilityList == brandJp2) || (brand == brandJph && compatibilityList == brandJph)) {
  ------------------
  |  Branch (26:10): [True: 173, False: 254]
  |  Branch (26:31): [True: 90, False: 83]
  |  Branch (26:66): [True: 90, False: 247]
  |  Branch (26:87): [True: 16, False: 74]
  ------------------
   27|    106|      clWithRightBrand = true;
   28|    106|      break;
   29|    106|    }
   30|    427|  }
   31|    132|  return (minorVersion == 0 && clWithRightBrand);
  ------------------
  |  Branch (31:11): [True: 107, False: 25]
  |  Branch (31:32): [True: 102, False: 5]
  ------------------
   32|    137|}

_ZN5Exiv28JpegBaseC2ENS_9ImageTypeENSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEEbPKhm:
  116|  1.69k|    Image(type, mdExif | mdIptc | mdXmp | mdComment, std::move(io)) {
  117|  1.69k|  if (create) {
  ------------------
  |  Branch (117:7): [True: 0, False: 1.69k]
  ------------------
  118|      0|    initImage(initData, dataSize);
  119|      0|  }
  120|  1.69k|}
_ZNK5Exiv28JpegBase15advanceToMarkerENS_9ErrorCodeE:
  133|   254k|byte JpegBase::advanceToMarker(ErrorCode err) const {
  134|   254k|  int c = -1;
  135|       |  // Skips potential padding between markers
  136|  9.81M|  while ((c = io_->getb()) != 0xff) {
  ------------------
  |  Branch (136:10): [True: 9.56M, False: 253k]
  ------------------
  137|  9.56M|    if (c == EOF)
  ------------------
  |  Branch (137:9): [True: 375, False: 9.56M]
  ------------------
  138|    375|      throw Error(err);
  139|  9.56M|  }
  140|       |
  141|       |  // Markers can start with any number of 0xff
  142|   302k|  while ((c = io_->getb()) == 0xff) {
  ------------------
  |  Branch (142:10): [True: 48.2k, False: 253k]
  ------------------
  143|  48.2k|  }
  144|   253k|  if (c == EOF)
  ------------------
  |  Branch (144:7): [True: 46, False: 253k]
  ------------------
  145|     46|    throw Error(err);
  146|       |
  147|   253k|  return static_cast<byte>(c);
  148|   253k|}
_ZN5Exiv28JpegBase12readMetadataEv:
  150|  2.52k|void JpegBase::readMetadata() {
  151|  2.52k|  int rc = 0;  // Todo: this should be the return value
  152|       |
  153|  2.52k|  if (io_->open() != 0)
  ------------------
  |  Branch (153:7): [True: 0, False: 2.52k]
  ------------------
  154|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  155|  2.52k|  IoCloser closer(*io_);
  156|       |  // Ensure that this is the correct image type
  157|  2.52k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (157:7): [True: 124, False: 2.39k]
  ------------------
  158|    124|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (158:9): [True: 0, False: 124]
  |  Branch (158:25): [True: 0, False: 124]
  ------------------
  159|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  160|    124|    throw Error(ErrorCode::kerNotAJpeg);
  161|    124|  }
  162|  2.39k|  clearMetadata();
  163|  2.39k|  int search = 6;  // Exif, ICC, XMP, Comment, IPTC, SOF
  164|  2.39k|  Blob psBlob;
  165|  2.39k|  bool foundCompletePsData = false;
  166|  2.39k|  bool foundExifData = false;
  167|  2.39k|  bool foundXmpData = false;
  168|  2.39k|  bool foundIccData = false;
  169|       |
  170|       |  // Read section marker
  171|  2.39k|  byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  172|       |
  173|  65.7k|  while (marker != sos_ && marker != eoi_ && search > 0) {
  ------------------
  |  Branch (173:10): [True: 65.3k, False: 424]
  |  Branch (173:28): [True: 63.8k, False: 1.46k]
  |  Branch (173:46): [True: 63.8k, False: 12]
  ------------------
  174|  63.8k|    const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  175|       |
  176|       |    // Read the rest of the segment.
  177|  63.8k|    DataBuf buf(size);
  178|       |    // check if the segment is not empty
  179|  63.8k|    if (size > 2) {
  ------------------
  |  Branch (179:9): [True: 55.1k, False: 8.69k]
  ------------------
  180|  55.1k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  181|  55.1k|      std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  182|  55.1k|    }
  183|       |
  184|  63.8k|    if (auto itSofMarker = Exiv2::find(jpegProcessMarkerTags, marker)) {
  ------------------
  |  Branch (184:14): [True: 2.55k, False: 61.3k]
  ------------------
  185|  2.55k|      sof_encoding_process_ = itSofMarker->label_;
  186|  2.55k|      if (size >= 7 && buf.c_data(7)) {
  ------------------
  |  Branch (186:11): [True: 1.87k, False: 677]
  |  Branch (186:24): [True: 1.51k, False: 366]
  ------------------
  187|  1.51k|        num_color_components_ = *buf.c_data(7);
  188|  1.51k|      }
  189|  2.55k|    }
  190|       |
  191|  63.8k|    if (!foundExifData && marker == app1_ && size >= 8  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (191:9): [True: 56.8k, False: 7.01k]
  |  Branch (191:27): [True: 4.42k, False: 52.4k]
  |  Branch (191:46): [True: 3.34k, False: 1.08k]
  ------------------
  192|  3.34k|        && buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (192:12): [True: 691, False: 2.64k]
  ------------------
  193|    691|      ByteOrder bo = ExifParser::decode(exifData_, buf.c_data(8), size - 8);
  194|    691|      setByteOrder(bo);
  195|    691|      if (size > 8 && byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (195:11): [True: 672, False: 19]
  |  Branch (195:23): [True: 0, False: 672]
  ------------------
  196|      0|#ifndef SUPPRESS_WARNINGS
  197|      0|        EXV_WARNING << "Failed to decode Exif metadata.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  198|      0|#endif
  199|      0|        exifData_.clear();
  200|      0|      }
  201|    691|      --search;
  202|    691|      foundExifData = true;
  203|  63.1k|    } else if (!foundXmpData && marker == app1_ && size >= 31  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (203:16): [True: 62.4k, False: 691]
  |  Branch (203:33): [True: 7.20k, False: 55.2k]
  |  Branch (203:52): [True: 6.02k, False: 1.18k]
  ------------------
  204|  6.02k|               && buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (204:19): [True: 167, False: 5.85k]
  ------------------
  205|    167|      xmpPacket_.assign(buf.c_str(31), size - 31);
  206|    167|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (206:11): [True: 166, False: 1]
  |  Branch (206:34): [True: 83, False: 83]
  ------------------
  207|     83|#ifndef SUPPRESS_WARNINGS
  208|     83|        EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     83|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 83]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     83|  LogMsg(LogMsg::warn).os()
  ------------------
  209|     83|#endif
  210|     83|      }
  211|    167|      --search;
  212|    167|      foundXmpData = true;
  213|  63.0k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (213:16): [True: 62.4k, False: 531]
  |  Branch (213:40): [True: 37.7k, False: 24.7k]
  ------------------
  214|  37.7k|               size >= 16  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (214:16): [True: 37.1k, False: 582]
  ------------------
  215|  37.1k|               && buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (215:19): [True: 25.3k, False: 11.7k]
  ------------------
  216|       |#ifdef EXIV2_DEBUG_MESSAGES
  217|       |      std::cerr << "Found app13 segment, size = " << size << "\n";
  218|       |#endif
  219|  25.3k|      if (buf.size() > 16) {  // Append to psBlob
  ------------------
  |  Branch (219:11): [True: 23.2k, False: 2.06k]
  ------------------
  220|  23.2k|        append(psBlob, buf.c_data(16), size - 16);
  221|  23.2k|      }
  222|       |      // Check whether psBlob is complete
  223|  25.3k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (223:11): [True: 24.4k, False: 898]
  |  Branch (223:30): [True: 77, False: 24.3k]
  ------------------
  224|     77|        --search;
  225|     77|        foundCompletePsData = true;
  226|     77|      }
  227|  37.6k|    } else if (marker == com_ && comment_.empty()) {
  ------------------
  |  Branch (227:16): [True: 2.21k, False: 35.4k]
  |  Branch (227:34): [True: 765, False: 1.45k]
  ------------------
  228|       |      // JPEGs can have multiple comments, but for now only read
  229|       |      // the first one (most jpegs only have one anyway). Comments
  230|       |      // are simple single byte ISO-8859-1 strings.
  231|    765|      comment_.assign(buf.c_str(2), size - 2);
  232|  2.01k|      while (!comment_.empty() && comment_.back() == '\0') {
  ------------------
  |  Branch (232:14): [True: 1.84k, False: 165]
  |  Branch (232:35): [True: 1.24k, False: 600]
  ------------------
  233|  1.24k|        comment_.pop_back();
  234|  1.24k|      }
  235|    765|      --search;
  236|  36.8k|    } else if (marker == app2_ && size >= 13  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (236:16): [True: 3.42k, False: 33.4k]
  |  Branch (236:35): [True: 2.83k, False: 587]
  ------------------
  237|  2.83k|               && buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (237:19): [True: 1.25k, False: 1.58k]
  ------------------
  238|  1.25k|      if (size < 2 + 14 + 4) {
  ------------------
  |  Branch (238:11): [True: 10, False: 1.24k]
  ------------------
  239|     10|        rc = 8;
  240|     10|        break;
  241|     10|      }
  242|       |      // ICC profile
  243|  1.24k|      if (!foundIccData) {
  ------------------
  |  Branch (243:11): [True: 83, False: 1.15k]
  ------------------
  244|     83|        foundIccData = true;
  245|     83|        --search;
  246|     83|      }
  247|  1.24k|      auto chunk = static_cast<int>(buf.read_uint8(2 + 12));
  248|  1.24k|      auto chunks = static_cast<int>(buf.read_uint8(2 + 13));
  249|       |      // ICC1v43_2010-12.pdf header is 14 bytes
  250|       |      // header = "ICC_PROFILE\0" (12 bytes)
  251|       |      // chunk/chunks are a single byte
  252|       |      // Spec 7.2 Profile bytes 0-3 size
  253|  1.24k|      uint32_t s = buf.read_uint32(2 + 14, bigEndian);
  254|       |#ifdef EXIV2_DEBUG_MESSAGES
  255|       |      std::cerr << "Found ICC Profile chunk " << chunk << " of " << chunks << (chunk == 1 ? " size: " : "")
  256|       |                << (chunk == 1 ? s : 0) << '\n';
  257|       |#endif
  258|       |      // #1286 profile can be padded
  259|  1.24k|      size_t icc_size = size - 2 - 14;
  260|  1.24k|      if (chunk == 1 && chunks == 1) {
  ------------------
  |  Branch (260:11): [True: 982, False: 259]
  |  Branch (260:25): [True: 94, False: 888]
  ------------------
  261|     94|        enforce(s <= static_cast<uint32_t>(icc_size), ErrorCode::kerInvalidIccProfile);
  262|     94|        icc_size = s;
  263|     94|      }
  264|       |
  265|  1.24k|      appendIccProfile(buf.c_data(2 + 14), icc_size, chunk == chunks);
  266|  35.6k|    } else if (pixelHeight_ == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (266:16): [True: 29.1k, False: 6.52k]
  |  Branch (266:37): [True: 214, False: 28.8k]
  ------------------
  267|       |      // We hit a SOFn (start-of-frame) marker
  268|    214|      if (size < 8) {
  ------------------
  |  Branch (268:11): [True: 45, False: 169]
  ------------------
  269|     45|        rc = 7;
  270|     45|        break;
  271|     45|      }
  272|    169|      pixelHeight_ = buf.read_uint16(3, bigEndian);
  273|    169|      pixelWidth_ = buf.read_uint16(5, bigEndian);
  274|    169|      if (pixelHeight_ != 0)
  ------------------
  |  Branch (274:11): [True: 85, False: 84]
  ------------------
  275|     85|        --search;
  276|    169|    }
  277|       |
  278|       |    // Read the beginning of the next segment
  279|  63.8k|    try {
  280|  63.8k|      marker = advanceToMarker(ErrorCode::kerFailedToReadImageData);
  281|  63.8k|    } catch (const Error&) {
  282|    210|      rc = 5;
  283|    210|      break;
  284|    210|    }
  285|  63.8k|  }  // while there are segments to process
  286|       |
  287|  2.16k|  if (!psBlob.empty()) {
  ------------------
  |  Branch (287:7): [True: 484, False: 1.67k]
  ------------------
  288|       |    // Find actual IPTC data within the psBlob
  289|    484|    Blob iptcBlob;
  290|    484|    const byte* record = nullptr;
  291|    484|    uint32_t sizeIptc = 0;
  292|    484|    uint32_t sizeHdr = 0;
  293|    484|    const byte* pCur = psBlob.data();
  294|    484|    const byte* pEnd = pCur + psBlob.size();
  295|  20.5k|    while (pCur < pEnd && 0 == Photoshop::locateIptcIrb(pCur, pEnd - pCur, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (295:12): [True: 20.5k, False: 7]
  |  Branch (295:27): [True: 20.0k, False: 477]
  ------------------
  296|       |#ifdef EXIV2_DEBUG_MESSAGES
  297|       |      std::cerr << "Found IPTC IRB, size = " << sizeIptc << "\n";
  298|       |#endif
  299|  20.0k|      if (sizeIptc) {
  ------------------
  |  Branch (299:11): [True: 20.0k, False: 7]
  ------------------
  300|  20.0k|        append(iptcBlob, record + sizeHdr, sizeIptc);
  301|  20.0k|      }
  302|  20.0k|      pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
  303|  20.0k|    }
  304|    484|    if (!iptcBlob.empty() && IptcParser::decode(iptcData_, iptcBlob.data(), iptcBlob.size())) {
  ------------------
  |  Branch (304:9): [True: 74, False: 410]
  |  Branch (304:30): [True: 12, False: 62]
  ------------------
  305|     12|#ifndef SUPPRESS_WARNINGS
  306|     12|      EXV_WARNING << "Failed to decode IPTC metadata.\n";
  ------------------
  |  |  138|     12|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 12]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     12|  LogMsg(LogMsg::warn).os()
  ------------------
  307|     12|#endif
  308|     12|      iptcData_.clear();
  309|     12|    }
  310|    484|  }
  311|       |
  312|  2.16k|  if (rc != 0) {
  ------------------
  |  Branch (312:7): [True: 265, False: 1.89k]
  ------------------
  313|    265|#ifndef SUPPRESS_WARNINGS
  314|    265|    EXV_WARNING << "JPEG format error, rc = " << rc << "\n";
  ------------------
  |  |  138|    265|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 265]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    265|  LogMsg(LogMsg::warn).os()
  ------------------
  315|    265|#endif
  316|    265|  }
  317|  2.16k|}  // JpegBase::readMetadata
_ZN5Exiv28JpegBase14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  323|  7.23k|void JpegBase::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  324|  7.23k|  if (io_->open() != 0)
  ------------------
  |  Branch (324:7): [True: 0, False: 7.23k]
  ------------------
  325|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  326|       |  // Ensure that this is the correct image type
  327|  7.23k|  if (!isThisType(*io_, false)) {
  ------------------
  |  Branch (327:7): [True: 0, False: 7.23k]
  ------------------
  328|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (328:9): [True: 0, False: 0]
  |  Branch (328:25): [True: 0, False: 0]
  ------------------
  329|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  330|      0|    throw Error(ErrorCode::kerNotAJpeg);
  331|      0|  }
  332|       |
  333|  7.23k|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (333:17): [True: 1.35k, False: 5.88k]
  |  Branch (333:39): [True: 1.17k, False: 4.70k]
  ------------------
  334|  7.23k|  std::vector<std::pair<size_t, size_t>> iptcDataSegs;
  335|       |
  336|  7.23k|  if (bPrint || option == kpsXMP || option == kpsIccProfile || option == kpsIptcErase) {
  ------------------
  |  Branch (336:7): [True: 2.52k, False: 4.70k]
  |  Branch (336:17): [True: 1.17k, False: 3.52k]
  |  Branch (336:37): [True: 1.08k, False: 2.44k]
  |  Branch (336:64): [True: 1.08k, False: 1.35k]
  ------------------
  337|       |    // mnemonic for markers
  338|  5.88k|    std::string nm[256];
  339|  5.88k|    nm[0xd8] = "SOI";
  340|  5.88k|    nm[0xd9] = "EOI";
  341|  5.88k|    nm[0xda] = "SOS";
  342|  5.88k|    nm[0xdb] = "DQT";
  343|  5.88k|    nm[0xdd] = "DRI";
  344|  5.88k|    nm[0xfe] = "COM";
  345|       |
  346|       |    // 0xe0 .. 0xef are APPn
  347|       |    // 0xc0 .. 0xcf are SOFn (except 4)
  348|  5.88k|    nm[0xc4] = "DHT";
  349|   100k|    for (int i = 0; i <= 15; i++) {
  ------------------
  |  Branch (349:21): [True: 94.1k, False: 5.88k]
  ------------------
  350|  94.1k|      nm[0xe0 + i] = stringFormat("APP{}", i);
  ------------------
  |  |   18|  94.1k|#define stringFormat std::format
  ------------------
  351|  94.1k|      if (i != 4) {
  ------------------
  |  Branch (351:11): [True: 88.2k, False: 5.88k]
  ------------------
  352|  88.2k|        nm[0xc0 + i] = stringFormat("SOF{}", i);
  ------------------
  |  |   18|  88.2k|#define stringFormat std::format
  ------------------
  353|  88.2k|      }
  354|  94.1k|    }
  355|       |
  356|       |    // Container for the signature
  357|  5.88k|    bool bExtXMP = false;
  358|       |
  359|       |    // Read section marker
  360|  5.88k|    byte marker = advanceToMarker(ErrorCode::kerNotAJpeg);
  361|       |
  362|  5.88k|    bool done = false;
  363|  5.88k|    bool first = true;
  364|   102k|    while (!done) {
  ------------------
  |  Branch (364:12): [True: 97.0k, False: 5.88k]
  ------------------
  365|       |      // print marker bytes
  366|  97.0k|      if (first && bPrint) {
  ------------------
  |  Branch (366:11): [True: 5.88k, False: 91.1k]
  |  Branch (366:20): [True: 2.52k, False: 3.35k]
  ------------------
  367|  2.52k|        out << "STRUCTURE OF JPEG FILE: " << io_->path() << '\n';
  368|  2.52k|        out << " address | marker       |  length | data" << '\n';
  369|  2.52k|        REPORT_MARKER;
  ------------------
  |  |  320|  2.52k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 1.35k, False: 1.17k]
  |  |  |  Branch (320:30): [True: 1.17k, False: 0]
  |  |  ------------------
  |  |  321|  2.52k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  2.52k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  370|  2.52k|      }
  371|  97.0k|      first = false;
  372|  97.0k|      bool bLF = bPrint;
  373|       |
  374|  97.0k|      const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  375|       |
  376|       |      // Read the rest of the segment if not empty.
  377|  97.0k|      DataBuf buf(size);
  378|  97.0k|      if (size > 2) {
  ------------------
  |  Branch (378:11): [True: 66.4k, False: 30.5k]
  ------------------
  379|  66.4k|        io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  380|  66.4k|        std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  381|  66.4k|      }
  382|       |
  383|  97.0k|      if (bPrint && markerHasLength(marker))
  ------------------
  |  Branch (383:11): [True: 43.5k, False: 53.4k]
  |  Branch (383:21): [True: 32.0k, False: 11.4k]
  ------------------
  384|  32.0k|        out << stringFormat(" | {:7} ", size);
  ------------------
  |  |   18|  32.0k|#define stringFormat std::format
  ------------------
  385|       |
  386|       |      // print signature for APPn
  387|  97.0k|      if (marker >= app0_ && marker <= (app0_ | 0x0F)) {
  ------------------
  |  Branch (387:11): [True: 64.8k, False: 32.1k]
  |  Branch (387:30): [True: 59.5k, False: 5.24k]
  ------------------
  388|       |        // http://www.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf p75
  389|  59.5k|        const std::string signature = string_from_unterminated(buf.c_str(2), size - 2);
  390|       |
  391|       |        // 728 rmills@rmillsmbp:~/gnu/exiv2/ttt $ exiv2 -pS test/data/exiv2-bug922.jpg
  392|       |        // STRUCTURE OF JPEG FILE: test/data/exiv2-bug922.jpg
  393|       |        // address | marker     | length  | data
  394|       |        //       0 | 0xd8 SOI   |       0
  395|       |        //       2 | 0xe1 APP1  |     911 | Exif..MM.*.......%.........#....
  396|       |        //     915 | 0xe1 APP1  |     870 | http://ns.adobe.com/xap/1.0/.<x:
  397|       |        //    1787 | 0xe1 APP1  |   65460 | http://ns.adobe.com/xmp/extensio
  398|  59.5k|        if (option == kpsXMP && signature.starts_with("http://ns.adobe.com/x")) {
  ------------------
  |  Branch (398:13): [True: 13.5k, False: 46.0k]
  |  Branch (398:33): [True: 420, False: 13.1k]
  ------------------
  399|       |          // extract XMP
  400|    420|          const char* xmp = buf.c_str();
  401|    420|          size_t start = 2;
  402|       |
  403|       |          // http://wwwimages.adobe.com/content/dam/Adobe/en/devnet/xmp/pdfs/XMPSpecificationPart3.pdf
  404|       |          // if we find HasExtendedXMP, set the flag and ignore this block
  405|       |          // the first extended block is a copy of the Standard block.
  406|       |          // a robust implementation allows extended blocks to be out of sequence
  407|       |          // we could implement out of sequence with a dictionary of sequence/offset
  408|       |          // and dumping the XMP in a post read operation similar to kpsIptcErase
  409|       |          // for the moment, dumping 'on the fly' is working fine
  410|    420|          if (!bExtXMP) {
  ------------------
  |  Branch (410:15): [True: 101, False: 319]
  ------------------
  411|  7.47k|            while (start < size && xmp[start]) {
  ------------------
  |  Branch (411:20): [True: 7.47k, False: 1]
  |  Branch (411:36): [True: 7.37k, False: 100]
  ------------------
  412|  7.37k|              start++;
  413|  7.37k|            }
  414|    101|            start++;
  415|    101|            if (start < size) {
  ------------------
  |  Branch (415:17): [True: 100, False: 1]
  ------------------
  416|    100|              const std::string xmp_from_start = string_from_unterminated(&xmp[start], size - start);
  417|    100|              if (xmp_from_start.find("HasExtendedXMP", start) != std::string::npos) {
  ------------------
  |  Branch (417:19): [True: 14, False: 86]
  ------------------
  418|     14|                start = size;  // ignore this packet, we'll get on the next time around
  419|     14|                bExtXMP = true;
  420|     14|              }
  421|    100|            }
  422|    319|          } else {
  423|    319|            start = 2 + 35 + 32 + 4 + 4;  // Adobe Spec, p19
  424|    319|          }
  425|       |
  426|    420|          enforce(start <= size, ErrorCode::kerInvalidXmpText);
  427|    420|          out.write(&xmp[start], size - start);
  428|    420|          done = !bExtXMP;
  429|  59.1k|        } else if (option == kpsIccProfile && signature == iccId_) {
  ------------------
  |  Branch (429:20): [True: 9.74k, False: 49.4k]
  |  Branch (429:47): [True: 788, False: 8.95k]
  ------------------
  430|       |          // extract ICCProfile
  431|    788|          if (size >= 16) {
  ------------------
  |  Branch (431:15): [True: 788, False: 0]
  ------------------
  432|    788|            out.write(buf.c_str(16), size - 16);
  433|       |#ifdef EXIV2_DEBUG_MESSAGES
  434|       |            std::cout << "iccProfile size = " << size - 16 << '\n';
  435|       |#endif
  436|    788|          }
  437|  58.3k|        } else if (option == kpsIptcErase && signature == "Photoshop 3.0") {
  ------------------
  |  Branch (437:20): [True: 9.74k, False: 48.6k]
  |  Branch (437:46): [True: 2.33k, False: 7.40k]
  ------------------
  438|       |          // delete IPTC data segment from JPEG
  439|  2.33k|          iptcDataSegs.emplace_back(io_->tell() - size, io_->tell());
  440|  56.0k|        } else if (bPrint) {
  ------------------
  |  Branch (440:20): [True: 26.5k, False: 29.4k]
  ------------------
  441|  26.5k|          const size_t start = 2;
  442|  26.5k|          const auto end = std::min<size_t>(34, size);
  443|  26.5k|          out << "| ";
  444|  26.5k|          if (start < end)
  ------------------
  |  Branch (444:15): [True: 25.3k, False: 1.25k]
  ------------------
  445|  25.3k|            out << Internal::binaryToString(makeSlice(buf, start, end));
  446|  26.5k|          if (signature == iccId_) {
  ------------------
  |  Branch (446:15): [True: 1.63k, False: 24.9k]
  ------------------
  447|       |            // extract the chunk information from the buffer
  448|       |            //
  449|       |            // the buffer looks like this in this branch
  450|       |            // ICC_PROFILE\0AB
  451|       |            // where A & B are bytes (the variables chunk & chunks)
  452|       |            //
  453|       |            // We cannot extract the variables A and B from the signature string, as they are beyond the
  454|       |            // null termination (and signature ends there).
  455|       |            // => Read the chunk info from the DataBuf directly
  456|  1.63k|            enforce<std::out_of_range>(size >= 16, "Buffer too small to extract chunk information.");
  457|  1.63k|            const int chunk = buf.read_uint8(2 + 12);
  458|  1.63k|            const int chunks = buf.read_uint8(2 + 13);
  459|  1.63k|            out << stringFormat(" chunk {}/{}", chunk, chunks);
  ------------------
  |  |   18|  1.63k|#define stringFormat std::format
  ------------------
  460|  1.63k|          }
  461|  26.5k|        }
  462|       |
  463|       |        // for MPF: http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/MPF.html
  464|       |        // for FLIR: http://owl.phy.queensu.ca/~phil/exiftool/TagNames/FLIR.html
  465|  59.5k|        bool bFlir = option == kpsRecursive && marker == (app0_ + 1) && signature == "FLIR";
  ------------------
  |  Branch (465:22): [True: 12.3k, False: 47.2k]
  |  Branch (465:48): [True: 5.04k, False: 7.29k]
  |  Branch (465:73): [True: 1.22k, False: 3.81k]
  ------------------
  466|  59.5k|        bool bExif = option == kpsRecursive && marker == (app0_ + 1) && signature == "Exif";
  ------------------
  |  Branch (466:22): [True: 12.3k, False: 47.2k]
  |  Branch (466:48): [True: 5.04k, False: 7.29k]
  |  Branch (466:73): [True: 1.44k, False: 3.59k]
  ------------------
  467|  59.5k|        bool bMPF = option == kpsRecursive && marker == (app0_ + 2) && signature == "MPF";
  ------------------
  |  Branch (467:21): [True: 12.3k, False: 47.2k]
  |  Branch (467:47): [True: 2.73k, False: 9.60k]
  |  Branch (467:72): [True: 395, False: 2.34k]
  ------------------
  468|  59.5k|        bool bPS = option == kpsRecursive && signature == "Photoshop 3.0";
  ------------------
  |  Branch (468:20): [True: 12.3k, False: 47.2k]
  |  Branch (468:46): [True: 2.39k, False: 9.94k]
  ------------------
  469|  59.5k|        if (bFlir || bExif || bMPF || bPS) {
  ------------------
  |  Branch (469:13): [True: 1.22k, False: 58.3k]
  |  Branch (469:22): [True: 1.44k, False: 56.9k]
  |  Branch (469:31): [True: 395, False: 56.5k]
  |  Branch (469:39): [True: 2.39k, False: 54.1k]
  ------------------
  470|       |          // extract Exif data block which is tiff formatted
  471|  5.45k|          out << '\n';
  472|       |
  473|       |          //                        const byte* exif = buf.c_data();
  474|  5.45k|          uint32_t start = signature == "Exif" ? 8 : 6;
  ------------------
  |  Branch (474:28): [True: 1.44k, False: 4.00k]
  ------------------
  475|  5.45k|          uint32_t max = static_cast<uint32_t>(size) - 1;
  476|       |
  477|       |          // is this an fff block?
  478|  5.45k|          if (bFlir) {
  ------------------
  |  Branch (478:15): [True: 1.22k, False: 4.23k]
  ------------------
  479|  1.22k|            start = 2;
  480|  1.22k|            bFlir = false;
  481|  50.5k|            while (start + 3 <= max) {
  ------------------
  |  Branch (481:20): [True: 50.5k, False: 20]
  ------------------
  482|  50.5k|              if (std::strcmp(buf.c_str(start), "FFF") == 0) {
  ------------------
  |  Branch (482:19): [True: 1.20k, False: 49.3k]
  ------------------
  483|  1.20k|                bFlir = true;
  484|  1.20k|                break;
  485|  1.20k|              }
  486|  49.3k|              start++;
  487|  49.3k|            }
  488|  1.22k|          }
  489|       |
  490|       |          // there is a header in FLIR, followed by a tiff block
  491|       |          // Hunt down the tiff using brute force
  492|  5.45k|          if (bFlir) {
  ------------------
  |  Branch (492:15): [True: 1.20k, False: 4.25k]
  ------------------
  493|       |            // FLIRFILEHEAD* pFFF = (FLIRFILEHEAD*) (exif+start) ;
  494|  43.7k|            while (start < max) {
  ------------------
  |  Branch (494:20): [True: 43.4k, False: 305]
  ------------------
  495|  43.4k|              if (buf.read_uint8(start) == 'I' && buf.read_uint8(start + 1) == 'I')
  ------------------
  |  Branch (495:19): [True: 317, False: 43.1k]
  |  Branch (495:51): [True: 3, False: 314]
  ------------------
  496|      3|                break;
  497|  43.4k|              if (buf.read_uint8(start) == 'M' && buf.read_uint8(start + 1) == 'M')
  ------------------
  |  Branch (497:19): [True: 1.40k, False: 42.0k]
  |  Branch (497:51): [True: 894, False: 507]
  ------------------
  498|    894|                break;
  499|  42.5k|              start++;
  500|  42.5k|            }
  501|       |#ifdef EXIV2_DEBUG_MESSAGES
  502|       |            if (start < max)
  503|       |              std::cout << "  FFF start = " << start << '\n';
  504|       |              // << " index = " << pFFF->dwIndexOff << '\n';
  505|       |#endif
  506|  1.20k|          }
  507|       |
  508|  5.45k|          if (bPS) {
  ------------------
  |  Branch (508:15): [True: 2.39k, False: 3.06k]
  ------------------
  509|  2.39k|            IptcData::printStructure(out, makeSlice(buf, 0, size), depth);
  510|  3.06k|          } else {
  511|  3.06k|            if (start < max) {
  ------------------
  |  Branch (511:17): [True: 2.35k, False: 707]
  ------------------
  512|       |              // create a copy on write memio object with the data, then print the structure
  513|  2.35k|              MemIo p(buf.c_data(start), size - start);
  514|  2.35k|              printTiffStructure(p, out, option, depth + 1);
  515|  2.35k|            }
  516|  3.06k|          }
  517|       |
  518|       |          // restore and clean up
  519|  5.45k|          bLF = false;
  520|  5.45k|        }
  521|  59.5k|      }
  522|       |
  523|       |      // print COM marker
  524|  97.0k|      if (bPrint && marker == com_) {
  ------------------
  |  Branch (524:11): [True: 43.4k, False: 53.5k]
  |  Branch (524:21): [True: 2.24k, False: 41.1k]
  ------------------
  525|       |        // size includes 2 for the two bytes for size!
  526|  2.24k|        const auto n = std::min<size_t>(32, size - 2);
  527|       |        // start after the two bytes
  528|  2.24k|        out << "| "
  529|  2.24k|            << Internal::binaryToString(makeSlice(buf, 2, n + 2 /* cannot overflow as n is at most size - 2 */));
  530|  2.24k|      }
  531|       |
  532|  97.0k|      if (bLF)
  ------------------
  |  Branch (532:11): [True: 38.0k, False: 58.9k]
  ------------------
  533|  38.0k|        out << '\n';
  534|       |
  535|  97.0k|      if (marker != sos_) {
  ------------------
  |  Branch (535:11): [True: 96.8k, False: 107]
  ------------------
  536|       |        // Read the beginning of the next segment
  537|  96.8k|        marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  538|  96.8k|        REPORT_MARKER;
  ------------------
  |  |  320|  96.8k|  if ((option == kpsBasic || option == kpsRecursive)) \
  |  |  ------------------
  |  |  |  Branch (320:8): [True: 24.0k, False: 72.8k]
  |  |  |  Branch (320:30): [True: 19.3k, False: 53.4k]
  |  |  ------------------
  |  |  321|  96.8k|  out << stringFormat("{:8} | 0xff{:02x} {:<5}", io_->tell() - 2, marker, nm[marker].c_str())
  |  |  ------------------
  |  |  |  |   18|  43.2k|#define stringFormat std::format
  |  |  ------------------
  ------------------
  539|  96.8k|      }
  540|  97.0k|      done |= marker == eoi_ || marker == sos_;
  ------------------
  |  Branch (540:15): [True: 5.02k, False: 91.9k]
  |  Branch (540:33): [True: 802, False: 91.1k]
  ------------------
  541|  97.0k|      if (done && bPrint)
  ------------------
  |  Branch (541:11): [True: 5.62k, False: 91.3k]
  |  Branch (541:19): [True: 2.26k, False: 3.35k]
  ------------------
  542|  2.26k|        out << '\n';
  543|  97.0k|    }
  544|  5.88k|  }
  545|  7.23k|  if (option == kpsIptcErase && !iptcDataSegs.empty()) {
  ------------------
  |  Branch (545:7): [True: 1.08k, False: 6.14k]
  |  Branch (545:33): [True: 823, False: 266]
  ------------------
  546|       |    // Add a sentinel to the end of iptcDataSegs
  547|    823|    iptcDataSegs.emplace_back(io_->size(), 0);
  548|       |
  549|       |    // $ dd bs=1 skip=$((0)) count=$((13164)) if=ETH0138028.jpg of=E1.jpg
  550|       |    // $ dd bs=1 skip=$((49304)) count=2000000  if=ETH0138028.jpg of=E2.jpg
  551|       |    // cat E1.jpg E2.jpg > E.jpg
  552|       |    // exiv2 -pS E.jpg
  553|       |
  554|       |    // binary copy io_ to a temporary file
  555|    823|    MemIo tempIo;
  556|    823|    size_t start = 0;
  557|  3.15k|    for (const auto& [l, s] : iptcDataSegs) {
  ------------------
  |  Branch (557:29): [True: 3.15k, False: 823]
  ------------------
  558|  3.15k|      const size_t length = l - start;
  559|  3.15k|      io_->seekOrThrow(start, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  560|  3.15k|      DataBuf buf(length);
  561|  3.15k|      io_->readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  562|  3.15k|      tempIo.write(buf.c_data(), buf.size());
  563|  3.15k|      start = s + 2;  // skip the 2 byte marker
  564|  3.15k|    }
  565|       |
  566|    823|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  567|    823|    io_->transfer(tempIo);  // may throw
  568|    823|    io_->seekOrThrow(0, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  569|       |
  570|       |    // Check that the result is correctly formatted.
  571|    823|    readMetadata();
  572|    823|  }
  573|  7.23k|}  // JpegBase::printStructure
_ZN5Exiv28JpegBase13writeMetadataEv:
  575|  1.01k|void JpegBase::writeMetadata() {
  576|  1.01k|  if (io_->open() != 0) {
  ------------------
  |  Branch (576:7): [True: 0, False: 1.01k]
  ------------------
  577|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  578|      0|  }
  579|  1.01k|  IoCloser closer(*io_);
  580|  1.01k|  MemIo tempIo;
  581|       |
  582|  1.01k|  doWriteMetadata(tempIo);  // may throw
  583|  1.01k|  io_->close();
  584|  1.01k|  io_->transfer(tempIo);  // may throw
  585|  1.01k|}
_ZN5Exiv28JpegBase15readNextSegmentEh:
  587|  84.0k|DataBuf JpegBase::readNextSegment(byte marker) {
  588|  84.0k|  const auto [sizebuf, size] = readSegmentSize(marker, *io_);
  589|       |
  590|       |  // Read the rest of the segment if not empty.
  591|  84.0k|  DataBuf buf(size);
  592|  84.0k|  if (size > 0) {
  ------------------
  |  Branch (592:7): [True: 76.9k, False: 7.08k]
  ------------------
  593|  76.9k|    std::copy(sizebuf.begin(), sizebuf.end(), buf.begin());
  594|  76.9k|    if (size > 2) {
  ------------------
  |  Branch (594:9): [True: 75.6k, False: 1.32k]
  ------------------
  595|  75.6k|      io_->readOrThrow(buf.data(2), size - 2, ErrorCode::kerFailedToReadImageData);
  596|  75.6k|    }
  597|  76.9k|  }
  598|  84.0k|  return buf;
  599|  84.0k|}
_ZN5Exiv28JpegBase15doWriteMetadataERNS_7BasicIoE:
  601|  1.01k|void JpegBase::doWriteMetadata(BasicIo& outIo) {
  602|  1.01k|  if (!io_->isopen())
  ------------------
  |  Branch (602:7): [True: 0, False: 1.01k]
  ------------------
  603|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  604|  1.01k|  if (!outIo.isopen())
  ------------------
  |  Branch (604:7): [True: 0, False: 1.01k]
  ------------------
  605|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  606|       |
  607|       |  // Ensure that this is the correct image type
  608|  1.01k|  if (!isThisType(*io_, true)) {
  ------------------
  |  Branch (608:7): [True: 0, False: 1.01k]
  ------------------
  609|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (609:9): [True: 0, False: 0]
  |  Branch (609:25): [True: 0, False: 0]
  ------------------
  610|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  611|      0|    throw Error(ErrorCode::kerNoImageInInputData);
  612|      0|  }
  613|       |
  614|       |  // Used to initialize search variables such as skipCom.
  615|  1.01k|  static const size_t notfound = std::numeric_limits<size_t>::max();
  616|       |
  617|  1.01k|  const size_t seek = io_->tell();
  618|  1.01k|  size_t count = 0;
  619|  1.01k|  size_t search = 0;
  620|  1.01k|  size_t insertPos = 0;
  621|  1.01k|  size_t comPos = 0;
  622|  1.01k|  size_t skipApp1Exif = notfound;
  623|  1.01k|  size_t skipApp1Xmp = notfound;
  624|  1.01k|  bool foundCompletePsData = false;
  625|  1.01k|  bool foundIccData = false;
  626|  1.01k|  std::vector<size_t> skipApp13Ps3;
  627|  1.01k|  std::vector<size_t> skipApp2Icc;
  628|  1.01k|  size_t skipCom = notfound;
  629|  1.01k|  Blob psBlob;
  630|  1.01k|  DataBuf rawExif;
  631|  1.01k|  xmpData().usePacket(writeXmpFromPacket());
  632|       |
  633|       |  // Write image header
  634|  1.01k|  if (writeHeader(outIo))
  ------------------
  |  Branch (634:7): [True: 0, False: 1.01k]
  ------------------
  635|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  636|       |
  637|       |  // Read section marker
  638|  1.01k|  byte marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  639|       |
  640|       |  // First find segments of interest. Normally app0 is first and we want
  641|       |  // to insert after it. But if app0 comes after com, app1 and app13 then
  642|       |  // don't bother.
  643|  46.0k|  while (marker != sos_ && marker != eoi_ && search < 6) {
  ------------------
  |  Branch (643:10): [True: 45.7k, False: 366]
  |  Branch (643:28): [True: 45.0k, False: 648]
  |  Branch (643:46): [True: 45.0k, False: 0]
  ------------------
  644|  45.0k|    DataBuf buf = readNextSegment(marker);
  645|       |
  646|  45.0k|    if (marker == app0_) {
  ------------------
  |  Branch (646:9): [True: 263, False: 44.7k]
  ------------------
  647|    263|      insertPos = count + 1;
  648|  44.7k|    } else if (skipApp1Exif == notfound && marker == app1_ &&
  ------------------
  |  Branch (648:16): [True: 42.5k, False: 2.26k]
  |  Branch (648:44): [True: 2.28k, False: 40.2k]
  ------------------
  649|  2.28k|               buf.size() >= 8 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (649:16): [True: 1.77k, False: 513]
  ------------------
  650|  1.77k|               buf.cmpBytes(2, exifId_.data(), 6) == 0) {
  ------------------
  |  Branch (650:16): [True: 602, False: 1.17k]
  ------------------
  651|    602|      skipApp1Exif = count;
  652|    602|      ++search;
  653|    602|      if (buf.size() > 8) {
  ------------------
  |  Branch (653:11): [True: 596, False: 6]
  ------------------
  654|    596|        rawExif.alloc(buf.size() - 8);
  655|    596|        std::copy_n(buf.begin() + 8, rawExif.size(), rawExif.begin());
  656|    596|      }
  657|  44.1k|    } else if (skipApp1Xmp == notfound && marker == app1_ &&
  ------------------
  |  Branch (657:16): [True: 43.8k, False: 332]
  |  Branch (657:43): [True: 2.46k, False: 41.3k]
  ------------------
  658|  2.46k|               buf.size() >= 31 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (658:16): [True: 1.89k, False: 572]
  ------------------
  659|  1.89k|               buf.cmpBytes(2, xmpId_.data(), 29) == 0) {
  ------------------
  |  Branch (659:16): [True: 85, False: 1.80k]
  ------------------
  660|     85|      skipApp1Xmp = count;
  661|     85|      ++search;
  662|  44.1k|    } else if (marker == app2_ && buf.size() >= 13 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (662:16): [True: 2.57k, False: 41.5k]
  |  Branch (662:35): [True: 2.00k, False: 571]
  ------------------
  663|  2.00k|               buf.cmpBytes(2, iccId_, 11) == 0) {
  ------------------
  |  Branch (663:16): [True: 748, False: 1.25k]
  ------------------
  664|    748|      skipApp2Icc.push_back(count);
  665|    748|      if (!foundIccData) {
  ------------------
  |  Branch (665:11): [True: 42, False: 706]
  ------------------
  666|     42|        ++search;
  667|     42|        foundIccData = true;
  668|     42|      }
  669|  43.3k|    } else if (!foundCompletePsData && marker == app13_ &&
  ------------------
  |  Branch (669:16): [True: 43.1k, False: 254]
  |  Branch (669:40): [True: 32.3k, False: 10.7k]
  ------------------
  670|  32.3k|               buf.size() >= 16 &&  // prevent out-of-bounds read in memcmp on next line
  ------------------
  |  Branch (670:16): [True: 31.7k, False: 557]
  ------------------
  671|  31.7k|               buf.cmpBytes(2, Photoshop::ps3Id_, 14) == 0) {
  ------------------
  |  Branch (671:16): [True: 21.6k, False: 10.0k]
  ------------------
  672|       |#ifdef EXIV2_DEBUG_MESSAGES
  673|       |      std::cerr << "Found APP13 Photoshop PS3 segment\n";
  674|       |#endif
  675|  21.6k|      skipApp13Ps3.push_back(count);
  676|       |      // Append to psBlob
  677|  21.6k|      append(psBlob, buf.c_data(16), buf.size() - 16);
  678|       |      // Check whether psBlob is complete
  679|  21.6k|      if (!psBlob.empty() && Photoshop::valid(psBlob.data(), psBlob.size())) {
  ------------------
  |  Branch (679:11): [True: 21.3k, False: 324]
  |  Branch (679:30): [True: 57, False: 21.3k]
  ------------------
  680|     57|        foundCompletePsData = true;
  681|     57|      }
  682|  21.6k|    } else if (marker == com_ && skipCom == notfound) {
  ------------------
  |  Branch (682:16): [True: 981, False: 20.6k]
  |  Branch (682:34): [True: 269, False: 712]
  ------------------
  683|       |      // Jpegs can have multiple comments, but for now only handle
  684|       |      // the first one (most jpegs only have one anyway).
  685|    269|      skipCom = count;
  686|    269|      ++search;
  687|    269|    }
  688|       |
  689|       |    // As in jpeg-6b/wrjpgcom.c:
  690|       |    // We will insert the new comment marker just before SOFn.
  691|       |    // This (a) causes the new comment to appear after, rather than before,
  692|       |    // existing comments; and (b) ensures that comments come after any JFIF
  693|       |    // or JFXX markers, as required by the JFIF specification.
  694|  45.0k|    if (comPos == 0 && inRange2(marker, sof0_, sof3_, sof5_, sof15_)) {
  ------------------
  |  Branch (694:9): [True: 43.4k, False: 1.58k]
  |  Branch (694:24): [True: 56, False: 43.4k]
  ------------------
  695|     56|      comPos = count;
  696|     56|      ++search;
  697|     56|    }
  698|  45.0k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  699|  45.0k|    ++count;
  700|  45.0k|  }
  701|       |
  702|  1.01k|  if (!foundCompletePsData && !psBlob.empty())
  ------------------
  |  Branch (702:7): [True: 922, False: 92]
  |  Branch (702:31): [True: 10, False: 912]
  ------------------
  703|     10|    throw Error(ErrorCode::kerNoImageInInputData);
  704|  1.00k|  search += skipApp13Ps3.size() + skipApp2Icc.size();
  705|       |
  706|  1.00k|  if (comPos == 0) {
  ------------------
  |  Branch (706:7): [True: 938, False: 66]
  ------------------
  707|    938|    if (marker == eoi_)
  ------------------
  |  Branch (707:9): [True: 629, False: 309]
  ------------------
  708|    629|      comPos = count;
  709|    309|    else
  710|    309|      comPos = insertPos;
  711|    938|    ++search;
  712|    938|  }
  713|  1.00k|  if (!exifData_.empty())
  ------------------
  |  Branch (713:7): [True: 590, False: 414]
  ------------------
  714|    590|    ++search;
  715|  1.00k|  if (!writeXmpFromPacket() && !xmpData_.empty())
  ------------------
  |  Branch (715:7): [True: 966, False: 38]
  |  Branch (715:32): [True: 45, False: 921]
  ------------------
  716|     45|    ++search;
  717|  1.00k|  if (writeXmpFromPacket() && !xmpPacket_.empty())
  ------------------
  |  Branch (717:7): [True: 0, False: 1.00k]
  |  Branch (717:31): [True: 0, False: 0]
  ------------------
  718|      0|    ++search;
  719|  1.00k|  if (foundCompletePsData || !iptcData_.empty())
  ------------------
  |  Branch (719:7): [True: 92, False: 912]
  |  Branch (719:30): [True: 0, False: 912]
  ------------------
  720|     54|    ++search;
  721|  1.00k|  if (!comment_.empty())
  ------------------
  |  Branch (721:7): [True: 257, False: 747]
  ------------------
  722|    257|    ++search;
  723|       |
  724|  1.00k|  io_->seekOrThrow(seek, BasicIo::beg, ErrorCode::kerNoImageInInputData);
  725|  1.00k|  count = 0;
  726|  1.00k|  marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  727|       |
  728|       |  // To simplify this a bit, new segments are inserts at either the start
  729|       |  // or right after app0. This is standard in most jpegs, but has the
  730|       |  // potential to change segment ordering (which is allowed).
  731|       |  // Segments are erased if there is no assigned metadata.
  732|  39.4k|  while (marker != sos_ && search > 0) {
  ------------------
  |  Branch (732:10): [True: 39.0k, False: 338]
  |  Branch (732:28): [True: 38.9k, False: 90]
  ------------------
  733|  38.9k|    DataBuf buf = readNextSegment(marker);
  734|       |
  735|  38.9k|    if (insertPos == count) {
  ------------------
  |  Branch (735:9): [True: 957, False: 38.0k]
  ------------------
  736|       |      // Write Exif data first so that - if there is no app0 - we
  737|       |      // create "Exif images" according to the Exif standard.
  738|    957|      if (!exifData_.empty()) {
  ------------------
  |  Branch (738:11): [True: 590, False: 367]
  ------------------
  739|    590|        Blob blob;
  740|    590|        ByteOrder bo = byteOrder();
  741|    590|        if (bo == invalidByteOrder) {
  ------------------
  |  Branch (741:13): [True: 0, False: 590]
  ------------------
  742|      0|          bo = littleEndian;
  743|      0|          setByteOrder(bo);
  744|      0|        }
  745|    590|        const byte* pExifData = rawExif.c_data();
  746|    590|        size_t exifSize = rawExif.size();
  747|    590|        if (ExifParser::encode(blob, pExifData, exifSize, bo, exifData_) == wmIntrusive) {
  ------------------
  |  Branch (747:13): [True: 489, False: 101]
  ------------------
  748|    489|          pExifData = !blob.empty() ? blob.data() : nullptr;
  ------------------
  |  Branch (748:23): [True: 474, False: 15]
  ------------------
  749|    489|          exifSize = blob.size();
  750|    489|        }
  751|    590|        if (exifSize > 0) {
  ------------------
  |  Branch (751:13): [True: 509, False: 81]
  ------------------
  752|    509|          std::array<byte, 10> tmpBuf;
  753|       |          // Write APP1 marker, size of APP1 field, Exif id and Exif data
  754|    509|          tmpBuf[0] = 0xff;
  755|    509|          tmpBuf[1] = app1_;
  756|       |
  757|    509|          if (exifSize > 0xffff - 8)
  ------------------
  |  Branch (757:15): [True: 75, False: 434]
  ------------------
  758|     75|            throw Error(ErrorCode::kerTooLargeJpegSegment, "Exif");
  759|    434|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(exifSize + 8), bigEndian);
  760|    434|          std::copy(exifId_.begin(), exifId_.end(), tmpBuf.begin() + 4);
  761|    434|          if (outIo.write(tmpBuf.data(), 10) != 10)
  ------------------
  |  Branch (761:15): [True: 0, False: 434]
  ------------------
  762|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  763|       |
  764|       |          // Write new Exif data buffer
  765|    434|          if (outIo.write(pExifData, exifSize) != exifSize)
  ------------------
  |  Branch (765:15): [True: 0, False: 434]
  ------------------
  766|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  767|    434|          if (outIo.error())
  ------------------
  |  Branch (767:15): [True: 0, False: 434]
  ------------------
  768|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  769|    434|          --search;
  770|    434|        }
  771|    590|      }
  772|    882|      if (!writeXmpFromPacket() &&
  ------------------
  |  Branch (772:11): [True: 816, False: 66]
  ------------------
  773|    816|          XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting) > 1) {
  ------------------
  |  Branch (773:11): [True: 0, False: 816]
  ------------------
  774|      0|#ifndef SUPPRESS_WARNINGS
  775|      0|        EXV_ERROR << "Failed to encode XMP metadata.\n";
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  776|      0|#endif
  777|      0|      }
  778|    882|      if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (778:11): [True: 45, False: 837]
  ------------------
  779|     45|        std::array<byte, 33> tmpBuf;
  780|       |        // Write APP1 marker, size of APP1 field, XMP id and XMP packet
  781|     45|        tmpBuf[0] = 0xff;
  782|     45|        tmpBuf[1] = app1_;
  783|       |
  784|     45|        if (xmpPacket_.size() > 0xffff - 31)
  ------------------
  |  Branch (784:13): [True: 0, False: 45]
  ------------------
  785|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "XMP");
  786|     45|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(xmpPacket_.size() + 31), bigEndian);
  787|     45|        std::copy(xmpId_.begin(), xmpId_.end(), tmpBuf.begin() + 4);
  788|     45|        if (outIo.write(tmpBuf.data(), 33) != 33)
  ------------------
  |  Branch (788:13): [True: 0, False: 45]
  ------------------
  789|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  790|       |
  791|       |        // Write new XMP packet
  792|     45|        if (outIo.write(reinterpret_cast<const byte*>(xmpPacket_.data()), xmpPacket_.size()) != xmpPacket_.size())
  ------------------
  |  Branch (792:13): [True: 0, False: 45]
  ------------------
  793|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  794|     45|        if (outIo.error())
  ------------------
  |  Branch (794:13): [True: 0, False: 45]
  ------------------
  795|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  796|     45|        --search;
  797|     45|      }
  798|       |
  799|    882|      if (iccProfileDefined()) {
  ------------------
  |  Branch (799:11): [True: 32, False: 850]
  ------------------
  800|     32|        std::array<byte, 4> tmpBuf;
  801|       |        // Write APP2 marker, size of APP2 field, and IccProfile
  802|       |        // See comments in readMetadata() about the ICC embedding specification
  803|     32|        tmpBuf[0] = 0xff;
  804|     32|        tmpBuf[1] = app2_;
  805|       |
  806|     32|        const size_t chunk_size = (256 * 256) - 40;  // leave bytes for marker, header and padding
  807|     32|        size_t size = iccProfile_.size();
  808|     32|        if (size >= 255 * chunk_size)
  ------------------
  |  Branch (808:13): [True: 0, False: 32]
  ------------------
  809|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "IccProfile");
  810|     32|        const size_t chunks = 1 + ((size - 1) / chunk_size);
  811|     64|        for (size_t chunk = 0; chunk < chunks; chunk++) {
  ------------------
  |  Branch (811:32): [True: 32, False: 32]
  ------------------
  812|     32|          auto bytes = std::min<size_t>(size, chunk_size);  // bytes to write
  813|     32|          size -= bytes;
  814|       |
  815|       |          // write JPEG marker (2 bytes)
  816|     32|          if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (816:15): [True: 0, False: 32]
  ------------------
  817|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Marker
  818|       |          // write length (2 bytes).  length includes the 2 bytes for the length
  819|     32|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(2 + 14 + bytes), bigEndian);
  820|     32|          if (outIo.write(tmpBuf.data() + 2, 2) != 2)
  ------------------
  |  Branch (820:15): [True: 0, False: 32]
  ------------------
  821|      0|            throw Error(ErrorCode::kerImageWriteFailed);  // JPEG Length
  822|       |
  823|       |          // write the ICC_PROFILE header (14 bytes)
  824|     32|          uint8_t pad[2];
  825|     32|          pad[0] = static_cast<uint8_t>(chunk + 1);
  826|     32|          pad[1] = static_cast<uint8_t>(chunks);
  827|     32|          outIo.write(reinterpret_cast<const byte*>(iccId_), 12);
  828|     32|          outIo.write(reinterpret_cast<const byte*>(pad), 2);
  829|     32|          if (outIo.write(iccProfile_.c_data(chunk * chunk_size), bytes) != bytes)
  ------------------
  |  Branch (829:15): [True: 0, False: 32]
  ------------------
  830|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  831|     32|          if (outIo.error())
  ------------------
  |  Branch (831:15): [True: 0, False: 32]
  ------------------
  832|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  833|     32|        }
  834|     32|        --search;
  835|     32|      }
  836|       |
  837|    882|      if (foundCompletePsData || !iptcData_.empty()) {
  ------------------
  |  Branch (837:11): [True: 120, False: 762]
  |  Branch (837:34): [True: 0, False: 762]
  ------------------
  838|       |        // Set the new IPTC IRB, keeps existing IRBs but removes the
  839|       |        // IPTC block if there is no new IPTC data to write
  840|     54|        DataBuf newPsData = Photoshop::setIptcIrb(psBlob.data(), psBlob.size(), iptcData_);
  841|     54|        const size_t maxChunkSize = 0xffff - 16;
  842|     54|        const byte* chunkStart = newPsData.empty() ? nullptr : newPsData.c_data();
  ------------------
  |  Branch (842:34): [True: 1, False: 53]
  ------------------
  843|     54|        const byte* chunkEnd = newPsData.empty() ? nullptr : newPsData.c_data(newPsData.size() - 1);
  ------------------
  |  Branch (843:32): [True: 1, False: 53]
  ------------------
  844|    107|        while (chunkStart < chunkEnd) {
  ------------------
  |  Branch (844:16): [True: 53, False: 54]
  ------------------
  845|       |          // Determine size of next chunk
  846|     53|          size_t chunkSize = (chunkEnd + 1 - chunkStart);
  847|     53|          if (chunkSize > maxChunkSize) {
  ------------------
  |  Branch (847:15): [True: 3, False: 50]
  ------------------
  848|      3|            chunkSize = maxChunkSize;
  849|       |            // Don't break at a valid IRB boundary
  850|      3|            const auto writtenSize = chunkStart - newPsData.c_data();
  851|      3|            if (Photoshop::valid(newPsData.c_data(), writtenSize + chunkSize)) {
  ------------------
  |  Branch (851:17): [True: 0, False: 3]
  ------------------
  852|       |              // Since an IRB has minimum size 12,
  853|       |              // (chunkSize - 8) can't be also a IRB boundary
  854|      0|              chunkSize -= 8;
  855|      0|            }
  856|      3|          }
  857|       |
  858|       |          // Write APP13 marker, chunk size, and ps3Id
  859|     53|          std::array<byte, 18> tmpBuf;
  860|     53|          tmpBuf[0] = 0xff;
  861|     53|          tmpBuf[1] = app13_;
  862|     53|          us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(chunkSize + 16), bigEndian);
  863|     53|          std::copy_n(Photoshop::ps3Id_, 14, tmpBuf.begin() + 4);
  864|     53|          if (outIo.write(tmpBuf.data(), 18) != 18)
  ------------------
  |  Branch (864:15): [True: 0, False: 53]
  ------------------
  865|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  866|     53|          if (outIo.error())
  ------------------
  |  Branch (866:15): [True: 0, False: 53]
  ------------------
  867|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  868|       |
  869|       |          // Write next chunk of the Photoshop IRB data buffer
  870|     53|          if (outIo.write(chunkStart, chunkSize) != chunkSize)
  ------------------
  |  Branch (870:15): [True: 0, False: 53]
  ------------------
  871|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  872|     53|          if (outIo.error())
  ------------------
  |  Branch (872:15): [True: 0, False: 53]
  ------------------
  873|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  874|       |
  875|     53|          chunkStart += chunkSize;
  876|     53|        }
  877|     54|        --search;
  878|     54|      }
  879|    882|    }
  880|  38.9k|    if (comPos == count) {
  ------------------
  |  Branch (880:9): [True: 815, False: 38.1k]
  ------------------
  881|    815|      if (!comment_.empty()) {
  ------------------
  |  Branch (881:11): [True: 135, False: 680]
  ------------------
  882|    135|        std::array<byte, 4> tmpBuf;
  883|       |        // Write COM marker, size of comment, and string
  884|    135|        tmpBuf[0] = 0xff;
  885|    135|        tmpBuf[1] = com_;
  886|       |
  887|    135|        if (comment_.length() > 0xffff - 3)
  ------------------
  |  Branch (887:13): [True: 0, False: 135]
  ------------------
  888|      0|          throw Error(ErrorCode::kerTooLargeJpegSegment, "JPEG comment");
  889|    135|        us2Data(tmpBuf.data() + 2, static_cast<uint16_t>(comment_.length() + 3), bigEndian);
  890|       |
  891|    135|        if (outIo.write(tmpBuf.data(), 4) != 4)
  ------------------
  |  Branch (891:13): [True: 0, False: 135]
  ------------------
  892|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  893|    135|        if (outIo.write(reinterpret_cast<byte*>(comment_.data()), comment_.length()) != comment_.length())
  ------------------
  |  Branch (893:13): [True: 0, False: 135]
  ------------------
  894|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  895|    135|        if (outIo.putb(0) == EOF)
  ------------------
  |  Branch (895:13): [True: 0, False: 135]
  ------------------
  896|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  897|    135|        if (outIo.error())
  ------------------
  |  Branch (897:13): [True: 0, False: 135]
  ------------------
  898|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  899|    135|        --search;
  900|    135|      }
  901|    815|      --search;
  902|    815|    }
  903|  38.9k|    if (marker == eoi_) {
  ------------------
  |  Branch (903:9): [True: 501, False: 38.4k]
  ------------------
  904|    501|      break;
  905|    501|    }
  906|  38.4k|    if (skipApp1Exif == count || skipApp1Xmp == count ||
  ------------------
  |  Branch (906:9): [True: 524, False: 37.8k]
  |  Branch (906:9): [True: 21.5k, False: 16.8k]
  |  Branch (906:34): [True: 82, False: 37.8k]
  ------------------
  907|  37.8k|        std::find(skipApp13Ps3.begin(), skipApp13Ps3.end(), count) != skipApp13Ps3.end() ||
  ------------------
  |  Branch (907:9): [True: 20.1k, False: 17.6k]
  ------------------
  908|  21.5k|        std::find(skipApp2Icc.begin(), skipApp2Icc.end(), count) != skipApp2Icc.end() || skipCom == count) {
  ------------------
  |  Branch (908:9): [True: 735, False: 16.9k]
  |  Branch (908:90): [True: 141, False: 16.7k]
  ------------------
  909|  21.5k|      --search;
  910|  21.5k|    } else {
  911|  16.8k|      std::array<byte, 2> tmpBuf;
  912|       |      // Write marker and a copy of the segment.
  913|  16.8k|      tmpBuf[0] = 0xff;
  914|  16.8k|      tmpBuf[1] = marker;
  915|  16.8k|      if (outIo.write(tmpBuf.data(), 2) != 2)
  ------------------
  |  Branch (915:11): [True: 0, False: 16.8k]
  ------------------
  916|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  917|  16.8k|      if (outIo.write(buf.c_data(), buf.size()) != buf.size())
  ------------------
  |  Branch (917:11): [True: 0, False: 16.8k]
  ------------------
  918|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  919|  16.8k|      if (outIo.error())
  ------------------
  |  Branch (919:11): [True: 0, False: 16.8k]
  ------------------
  920|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  921|  16.8k|    }
  922|       |
  923|       |    // Next marker
  924|  38.4k|    marker = advanceToMarker(ErrorCode::kerNoImageInInputData);
  925|  38.4k|    ++count;
  926|  38.4k|  }
  927|       |
  928|       |  // Populate the fake data, only make sense for remoteio, httpio and sshio.
  929|       |  // it avoids allocating memory for parts of the file that contain image-date.
  930|    929|  io_->populateFakeData();
  931|       |
  932|       |  // Write the final marker, then copy rest of the Io.
  933|    929|  byte tmpBuf[2];
  934|    929|  tmpBuf[0] = 0xff;
  935|    929|  tmpBuf[1] = marker;
  936|    929|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (936:7): [True: 0, False: 929]
  ------------------
  937|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  938|       |
  939|    929|  DataBuf buf(4096);
  940|    929|  size_t readSize = io_->read(buf.data(), buf.size());
  941|  1.75k|  while (readSize != 0) {
  ------------------
  |  Branch (941:10): [True: 823, False: 929]
  ------------------
  942|    823|    if (outIo.write(buf.c_data(), readSize) != readSize)
  ------------------
  |  Branch (942:9): [True: 0, False: 823]
  ------------------
  943|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  944|    823|    readSize = io_->read(buf.data(), buf.size());
  945|    823|  }
  946|    929|  if (outIo.error())
  ------------------
  |  Branch (946:7): [True: 0, False: 929]
  ------------------
  947|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  948|       |
  949|    929|}  // JpegBase::doWriteMetadata
_ZN5Exiv29JpegImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
  968|  1.68k|    JpegBase(ImageType::jpeg, std::move(io), create, blank_, sizeof(blank_)) {
  969|  1.68k|}
_ZNK5Exiv29JpegImage11writeHeaderERNS_7BasicIoE:
  975|  1.01k|int JpegImage::writeHeader(BasicIo& outIo) const {
  976|       |  // Jpeg header
  977|  1.01k|  byte tmpBuf[2];
  978|  1.01k|  tmpBuf[0] = 0xff;
  979|  1.01k|  tmpBuf[1] = soi_;
  980|  1.01k|  if (outIo.write(tmpBuf, 2) != 2)
  ------------------
  |  Branch (980:7): [True: 0, False: 1.01k]
  ------------------
  981|      0|    return 4;
  982|  1.01k|  if (outIo.error())
  ------------------
  |  Branch (982:7): [True: 0, False: 1.01k]
  ------------------
  983|      0|    return 4;
  984|  1.01k|  return 0;
  985|  1.01k|}
_ZNK5Exiv29JpegImage10isThisTypeERNS_7BasicIoEb:
  987|  10.7k|bool JpegImage::isThisType(BasicIo& iIo, bool advance) const {
  988|  10.7k|  return isJpegType(iIo, advance);
  989|  10.7k|}
_ZN5Exiv215newJpegInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  991|  1.55k|Image::UniquePtr newJpegInstance(BasicIo::UniquePtr io, bool create) {
  992|  1.55k|  auto image = std::make_unique<JpegImage>(std::move(io), create);
  993|  1.55k|  if (!image->good()) {
  ------------------
  |  Branch (993:7): [True: 0, False: 1.55k]
  ------------------
  994|      0|    return nullptr;
  995|      0|  }
  996|  1.55k|  return image;
  997|  1.55k|}
_ZN5Exiv210isJpegTypeERNS_7BasicIoEb:
  999|  44.6k|bool isJpegType(BasicIo& iIo, bool advance) {
 1000|  44.6k|  bool result = true;
 1001|  44.6k|  byte tmpBuf[2];
 1002|  44.6k|  iIo.read(tmpBuf, 2);
 1003|  44.6k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1003:7): [True: 0, False: 44.6k]
  |  Branch (1003:22): [True: 15, False: 44.6k]
  ------------------
 1004|     15|    return false;
 1005|       |
 1006|  44.6k|  if (0xff != tmpBuf[0] || soi_ != tmpBuf[1]) {
  ------------------
  |  Branch (1006:7): [True: 30.8k, False: 13.8k]
  |  Branch (1006:28): [True: 55, False: 13.7k]
  ------------------
 1007|  30.8k|    result = false;
 1008|  30.8k|  }
 1009|  44.6k|  if (!advance || !result)
  ------------------
  |  Branch (1009:7): [True: 41.0k, False: 3.52k]
  |  Branch (1009:19): [True: 124, False: 3.39k]
  ------------------
 1010|  41.2k|    iIo.seek(-2, BasicIo::cur);
 1011|  44.6k|  return result;
 1012|  44.6k|}
_ZN5Exiv28ExvImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
 1015|     13|    JpegBase(ImageType::exv, std::move(io), create, blank_, sizeof(blank_)) {
 1016|     13|}
_ZNK5Exiv28ExvImage10isThisTypeERNS_7BasicIoEb:
 1033|     17|bool ExvImage::isThisType(BasicIo& iIo, bool advance) const {
 1034|     17|  return isExvType(iIo, advance);
 1035|     17|}
_ZN5Exiv214newExvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
 1037|     13|Image::UniquePtr newExvInstance(BasicIo::UniquePtr io, bool create) {
 1038|     13|  auto image = std::make_unique<ExvImage>(std::move(io), create);
 1039|     13|  if (!image->good())
  ------------------
  |  Branch (1039:7): [True: 0, False: 13]
  ------------------
 1040|      0|    return nullptr;
 1041|     13|  return image;
 1042|     13|}
_ZN5Exiv29isExvTypeERNS_7BasicIoEb:
 1044|  30.7k|bool isExvType(BasicIo& iIo, bool advance) {
 1045|  30.7k|  bool result = true;
 1046|  30.7k|  byte tmpBuf[7];
 1047|  30.7k|  iIo.read(tmpBuf, 7);
 1048|  30.7k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (1048:7): [True: 0, False: 30.7k]
  |  Branch (1048:22): [True: 46, False: 30.7k]
  ------------------
 1049|     46|    return false;
 1050|       |
 1051|  30.7k|  if (0xff != tmpBuf[0] || 0x01 != tmpBuf[1] || memcmp(tmpBuf + 2, ExvImage::exiv2Id_, 5) != 0) {
  ------------------
  |  Branch (1051:7): [True: 30.6k, False: 70]
  |  Branch (1051:28): [True: 17, False: 53]
  |  Branch (1051:49): [True: 10, False: 43]
  ------------------
 1052|  30.6k|    result = false;
 1053|  30.6k|  }
 1054|  30.7k|  if (!advance || !result)
  ------------------
  |  Branch (1054:7): [True: 30.7k, False: 13]
  |  Branch (1054:19): [True: 0, False: 13]
  ------------------
 1055|  30.7k|    iIo.seek(-7, BasicIo::cur);
 1056|  30.7k|  return result;
 1057|  30.7k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115readSegmentSizeEhRNS_7BasicIoE:
  103|   244k|std::pair<std::array<byte, 2>, uint16_t> readSegmentSize(const byte marker, BasicIo& io) {
  104|   244k|  std::array<byte, 2> buf{0, 0};  // 2-byte buffer for reading the size.
  105|   244k|  uint16_t size{0};               // Size of the segment, including the 2-byte size field
  106|   244k|  if (markerHasLength(marker)) {
  ------------------
  |  Branch (106:7): [True: 203k, False: 40.9k]
  ------------------
  107|   203k|    io.readOrThrow(buf.data(), buf.size(), ErrorCode::kerFailedToReadImageData);
  108|   203k|    size = getUShort(buf.data(), bigEndian);
  109|   203k|    enforce(size >= 2, ErrorCode::kerFailedToReadImageData);
  110|   203k|  }
  111|   244k|  return {buf, size};
  112|   244k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_18inRange2Eiiiii:
   91|  72.5k|constexpr bool inRange2(int value, int lo1, int hi1, int lo2, int hi2) {
   92|  72.5k|  return inRange(lo1, value, hi1) || inRange(lo2, value, hi2);
  ------------------
  |  Branch (92:10): [True: 80, False: 72.4k]
  |  Branch (92:38): [True: 190, False: 72.3k]
  ------------------
   93|  72.5k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_17inRangeEiii:
   87|   145k|constexpr bool inRange(int lo, int value, int hi) {
   88|   145k|  return lo <= value && value <= hi;
  ------------------
  |  Branch (88:10): [True: 142k, False: 2.53k]
  |  Branch (88:25): [True: 270, False: 142k]
  ------------------
   89|   145k|}
jpgimage.cpp:_ZN5Exiv212_GLOBAL__N_115markerHasLengthEh:
   98|   288k|bool markerHasLength(byte m) {
   99|   288k|  bool markerWithoutLength = m >= rst1_ && m <= eoi_;
  ------------------
  |  Branch (99:30): [True: 274k, False: 13.8k]
  |  Branch (99:44): [True: 52.4k, False: 222k]
  ------------------
  100|   288k|  return !markerWithoutLength;
  101|   288k|}

_ZN5Exiv28Internal15readExiv2ConfigERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_S9_:
   90|  16.1k|                            const std::string& def) {
   91|  16.1k|  std::string result = def;
   92|       |
   93|       |#if defined(EXV_ENABLE_INIH) && defined(EXV_ENABLE_FILESYSTEM)
   94|       |  INIReader reader(Exiv2::Internal::getExiv2ConfigPath());
   95|       |  if (reader.ParseError() == 0) {
   96|       |    result = reader.Get(section, value, def);
   97|       |  }
   98|       |#endif
   99|       |
  100|  16.1k|  return result;
  101|  16.1k|}
_ZNK5Exiv28Internal14TiffMnRegistryeqENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  133|   360k|bool TiffMnRegistry::operator==(std::string_view key) const {
  134|   360k|  if (!key.empty() && key.front() == '-')
  ------------------
  |  Branch (134:7): [True: 335k, False: 25.1k]
  |  Branch (134:23): [True: 2.10k, False: 333k]
  ------------------
  135|  2.10k|    return false;
  136|   358k|  return key.starts_with(make_);
  137|   360k|}
_ZNK5Exiv28Internal14TiffMnRegistryeqENS_5IfdIdE:
  139|  71.0k|bool TiffMnRegistry::operator==(IfdId key) const {
  140|  71.0k|  return mnGroup_ == key;
  141|  71.0k|}
_ZN5Exiv28Internal13TiffMnCreator6createEtNS_5IfdIdENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPKhmNS_9ByteOrderE:
  144|  36.9k|                                                        const byte* pData, size_t size, ByteOrder byteOrder) {
  145|  36.9k|  if (auto tmr = Exiv2::find(registry_, make))
  ------------------
  |  Branch (145:12): [True: 35.2k, False: 1.64k]
  ------------------
  146|  35.2k|    return tmr->newMnFct_(tag, group, tmr->mnGroup_, pData, size, byteOrder);
  147|  1.64k|  return nullptr;
  148|  36.9k|}  // TiffMnCreator::create
_ZN5Exiv28Internal13TiffMnCreator6createEtNS_5IfdIdES2_:
  150|  6.36k|std::unique_ptr<TiffIfdMakernote> TiffMnCreator::create(uint16_t tag, IfdId group, IfdId mnGroup) {
  151|  6.36k|  if (auto tmr = Exiv2::find(registry_, mnGroup)) {
  ------------------
  |  Branch (151:12): [True: 6.36k, False: 0]
  ------------------
  152|  6.36k|    if (tmr->newMnFct2_) {
  ------------------
  |  Branch (152:9): [True: 6.36k, False: 0]
  ------------------
  153|  6.36k|      return tmr->newMnFct2_(tag, group, mnGroup);
  154|  6.36k|    }
  155|      0|    std::cout << "mnGroup = " << mnGroup << "\n";
  156|      0|  }
  157|      0|  return nullptr;
  158|  6.36k|}  // TiffMnCreator::create
_ZN5Exiv28Internal8MnHeader12setByteOrderENS_9ByteOrderE:
  160|  4.55k|void MnHeader::setByteOrder(ByteOrder) {
  161|  4.55k|}
_ZNK5Exiv28Internal8MnHeader9ifdOffsetEv:
  163|    217|size_t MnHeader::ifdOffset() const {
  164|    217|  return 0;
  165|    217|}
_ZNK5Exiv28Internal8MnHeader9byteOrderEv:
  167|  32.3k|ByteOrder MnHeader::byteOrder() const {
  168|  32.3k|  return invalidByteOrder;
  169|  32.3k|}
_ZNK5Exiv28Internal8MnHeader10baseOffsetEm:
  171|  4.21k|size_t MnHeader::baseOffset(size_t /*mnOffset*/) const {
  172|  4.21k|  return 0;
  173|  4.21k|}
_ZN5Exiv28Internal15OlympusMnHeader15sizeOfSignatureEv:
  177|  2.42k|size_t OlympusMnHeader::sizeOfSignature() {
  178|  2.42k|  return sizeof(signature_);
  179|  2.42k|}
_ZN5Exiv28Internal15OlympusMnHeaderC2Ev:
  181|    258|OlympusMnHeader::OlympusMnHeader() {
  182|    258|  read(signature_, sizeOfSignature(), invalidByteOrder);
  183|    258|}
_ZNK5Exiv28Internal15OlympusMnHeader4sizeEv:
  185|    379|size_t OlympusMnHeader::size() const {
  186|    379|  return header_.size();
  187|    379|}
_ZNK5Exiv28Internal15OlympusMnHeader9ifdOffsetEv:
  189|     28|size_t OlympusMnHeader::ifdOffset() const {
  190|     28|  return sizeOfSignature();
  191|     28|}
_ZN5Exiv28Internal15OlympusMnHeader4readEPKhmNS_9ByteOrderE:
  193|    473|bool OlympusMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  194|    473|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (194:7): [True: 0, False: 473]
  |  Branch (194:17): [True: 0, False: 473]
  ------------------
  195|      0|    return false;
  196|    473|  header_.alloc(sizeOfSignature());
  197|    473|  std::copy_n(pData, header_.size(), header_.begin());
  198|    473|  return header_.size() >= sizeOfSignature() && 0 == header_.cmpBytes(0, signature_, 6);
  ------------------
  |  Branch (198:10): [True: 473, False: 0]
  |  Branch (198:49): [True: 286, False: 187]
  ------------------
  199|    473|}
_ZNK5Exiv28Internal15OlympusMnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  201|     42|size_t OlympusMnHeader::write(IoWrapper& ioWrapper, ByteOrder) const {
  202|     42|  ioWrapper.write(signature_, sizeOfSignature());
  203|     42|  return sizeOfSignature();
  204|     42|}  // OlympusMnHeader::write
_ZN5Exiv28Internal16Olympus2MnHeader15sizeOfSignatureEv:
  208|  37.7k|size_t Olympus2MnHeader::sizeOfSignature() {
  209|  37.7k|  return sizeof(signature_);
  210|  37.7k|}
_ZN5Exiv28Internal16Olympus2MnHeaderC2Ev:
  212|  4.18k|Olympus2MnHeader::Olympus2MnHeader() {
  213|  4.18k|  read(signature_, sizeOfSignature(), invalidByteOrder);
  214|  4.18k|}
_ZNK5Exiv28Internal16Olympus2MnHeader9ifdOffsetEv:
  220|  4.18k|size_t Olympus2MnHeader::ifdOffset() const {
  221|  4.18k|  return sizeOfSignature();
  222|  4.18k|}
_ZNK5Exiv28Internal16Olympus2MnHeader10baseOffsetEm:
  224|  4.18k|size_t Olympus2MnHeader::baseOffset(size_t mnOffset) const {
  225|  4.18k|  return mnOffset;
  226|  4.18k|}
_ZN5Exiv28Internal16Olympus2MnHeader4readEPKhmNS_9ByteOrderE:
  228|  8.37k|bool Olympus2MnHeader::read(const byte* pData, size_t size, ByteOrder) {
  229|  8.37k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (229:7): [True: 0, False: 8.37k]
  |  Branch (229:17): [True: 0, False: 8.37k]
  ------------------
  230|      0|    return false;
  231|  8.37k|  header_.alloc(sizeOfSignature());
  232|  8.37k|  std::copy_n(pData, header_.size(), header_.begin());
  233|  8.37k|  return header_.size() >= sizeOfSignature() && 0 == header_.cmpBytes(0, signature_, 10);
  ------------------
  |  Branch (233:10): [True: 8.37k, False: 0]
  |  Branch (233:49): [True: 8.37k, False: 0]
  ------------------
  234|  8.37k|}
_ZN5Exiv28Internal16OMSystemMnHeader15sizeOfSignatureEv:
  244|  31.6k|size_t OMSystemMnHeader::sizeOfSignature() {
  245|  31.6k|  return sizeof(signature_);
  246|  31.6k|}
_ZN5Exiv28Internal16OMSystemMnHeaderC2Ev:
  248|  4.48k|OMSystemMnHeader::OMSystemMnHeader() {
  249|  4.48k|  read(signature_, sizeOfSignature(), invalidByteOrder);
  250|  4.48k|}
_ZNK5Exiv28Internal16OMSystemMnHeader4sizeEv:
  252|  39.5k|size_t OMSystemMnHeader::size() const {
  253|  39.5k|  return header_.size();
  254|  39.5k|}
_ZNK5Exiv28Internal16OMSystemMnHeader9ifdOffsetEv:
  256|     15|size_t OMSystemMnHeader::ifdOffset() const {
  257|     15|  return sizeOfSignature();
  258|     15|}
_ZNK5Exiv28Internal16OMSystemMnHeader10baseOffsetEm:
  260|  4.40k|size_t OMSystemMnHeader::baseOffset(size_t mnOffset) const {
  261|  4.40k|  return mnOffset;
  262|  4.40k|}
_ZN5Exiv28Internal16OMSystemMnHeader4readEPKhmNS_9ByteOrderE:
  264|  4.55k|bool OMSystemMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  265|  4.55k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (265:7): [True: 0, False: 4.55k]
  |  Branch (265:17): [True: 0, False: 4.55k]
  ------------------
  266|      0|    return false;
  267|  4.55k|  header_.alloc(sizeOfSignature());
  268|  4.55k|  std::copy_n(pData, header_.size(), header_.begin());
  269|  4.55k|  return header_.size() >= sizeOfSignature() && 0 == header_.cmpBytes(0, signature_, sizeOfSignature() - 2);
  ------------------
  |  Branch (269:10): [True: 4.55k, False: 0]
  |  Branch (269:49): [True: 4.50k, False: 56]
  ------------------
  270|  4.55k|}
_ZNK5Exiv28Internal16OMSystemMnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  272|  4.39k|size_t OMSystemMnHeader::write(IoWrapper& ioWrapper, ByteOrder) const {
  273|  4.39k|  ioWrapper.write(signature_, sizeOfSignature());
  274|  4.39k|  return sizeOfSignature();
  275|  4.39k|}  // OMSystemMnHeader::write
_ZN5Exiv28Internal12FujiMnHeader15sizeOfSignatureEv:
  280|  18.0k|size_t FujiMnHeader::sizeOfSignature() {
  281|  18.0k|  return sizeof(signature_);
  282|  18.0k|}
_ZN5Exiv28Internal12FujiMnHeaderC2Ev:
  284|  2.18k|FujiMnHeader::FujiMnHeader() {
  285|  2.18k|  read(signature_, sizeOfSignature(), byteOrder_);
  286|  2.18k|}
_ZNK5Exiv28Internal12FujiMnHeader4sizeEv:
  288|     90|size_t FujiMnHeader::size() const {
  289|     90|  return header_.size();
  290|     90|}
_ZNK5Exiv28Internal12FujiMnHeader9ifdOffsetEv:
  292|  2.12k|size_t FujiMnHeader::ifdOffset() const {
  293|  2.12k|  return start_;
  294|  2.12k|}
_ZNK5Exiv28Internal12FujiMnHeader9byteOrderEv:
  296|  8.51k|ByteOrder FujiMnHeader::byteOrder() const {
  297|  8.51k|  return byteOrder_;
  298|  8.51k|}
_ZNK5Exiv28Internal12FujiMnHeader10baseOffsetEm:
  300|  2.13k|size_t FujiMnHeader::baseOffset(size_t mnOffset) const {
  301|  2.13k|  return mnOffset;
  302|  2.13k|}
_ZN5Exiv28Internal12FujiMnHeader4readEPKhmNS_9ByteOrderE:
  304|  4.36k|bool FujiMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  305|  4.36k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (305:7): [True: 0, False: 4.36k]
  |  Branch (305:17): [True: 0, False: 4.36k]
  ------------------
  306|      0|    return false;
  307|  4.36k|  header_.alloc(sizeOfSignature());
  308|  4.36k|  std::copy_n(pData, header_.size(), header_.begin());
  309|       |  // Read offset to the IFD relative to the start of the makernote
  310|       |  // from the header. Note that we ignore the byteOrder argument
  311|  4.36k|  start_ = header_.read_uint32(8, byteOrder_);
  312|  4.36k|  return header_.size() >= sizeOfSignature() && 0 == header_.cmpBytes(0, signature_, 8);
  ------------------
  |  Branch (312:10): [True: 4.36k, False: 0]
  |  Branch (312:49): [True: 4.30k, False: 57]
  ------------------
  313|  4.36k|}
_ZNK5Exiv28Internal12FujiMnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  315|     10|size_t FujiMnHeader::write(IoWrapper& ioWrapper, ByteOrder) const {
  316|     10|  ioWrapper.write(signature_, sizeOfSignature());
  317|     10|  return sizeOfSignature();
  318|     10|}  // FujiMnHeader::write
_ZN5Exiv28Internal14Nikon2MnHeader15sizeOfSignatureEv:
  322|  1.77k|size_t Nikon2MnHeader::sizeOfSignature() {
  323|  1.77k|  return sizeof(signature_);
  324|  1.77k|}
_ZN5Exiv28Internal14Nikon2MnHeaderC2Ev:
  326|    204|Nikon2MnHeader::Nikon2MnHeader() {
  327|    204|  read(signature_, sizeOfSignature(), invalidByteOrder);
  328|    204|}
_ZNK5Exiv28Internal14Nikon2MnHeader4sizeEv:
  330|    175|size_t Nikon2MnHeader::size() const {
  331|    175|  return sizeOfSignature();
  332|    175|}
_ZNK5Exiv28Internal14Nikon2MnHeader9ifdOffsetEv:
  334|    183|size_t Nikon2MnHeader::ifdOffset() const {
  335|    183|  return start_;
  336|    183|}
_ZN5Exiv28Internal14Nikon2MnHeader4readEPKhmNS_9ByteOrderE:
  338|    387|bool Nikon2MnHeader::read(const byte* pData, size_t size, ByteOrder) {
  339|    387|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (339:7): [True: 0, False: 387]
  |  Branch (339:17): [True: 0, False: 387]
  ------------------
  340|      0|    return false;
  341|    387|  if (0 != memcmp(pData, signature_, 6))
  ------------------
  |  Branch (341:7): [True: 0, False: 387]
  ------------------
  342|      0|    return false;
  343|    387|  buf_.alloc(sizeOfSignature());
  344|    387|  std::copy_n(pData, buf_.size(), buf_.begin());
  345|    387|  start_ = sizeOfSignature();
  346|    387|  return true;
  347|    387|}  // Nikon2MnHeader::read
_ZNK5Exiv28Internal14Nikon2MnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  349|     19|size_t Nikon2MnHeader::write(IoWrapper& ioWrapper, ByteOrder) const {
  350|     19|  ioWrapper.write(signature_, sizeOfSignature());
  351|     19|  return sizeOfSignature();
  352|     19|}  // Nikon2MnHeader::write
_ZN5Exiv28Internal14Nikon3MnHeader15sizeOfSignatureEv:
  357|  10.4k|size_t Nikon3MnHeader::sizeOfSignature() {
  358|  10.4k|  return sizeof(signature_);
  359|  10.4k|}
_ZN5Exiv28Internal14Nikon3MnHeaderC2Ev:
  361|  2.03k|Nikon3MnHeader::Nikon3MnHeader() : start_(sizeOfSignature()) {
  362|  2.03k|  buf_.alloc(sizeOfSignature());
  363|  2.03k|  std::copy_n(signature_, buf_.size(), buf_.begin());
  364|  2.03k|}
_ZNK5Exiv28Internal14Nikon3MnHeader4sizeEv:
  366|    480|size_t Nikon3MnHeader::size() const {
  367|    480|  return sizeOfSignature();
  368|    480|}
_ZNK5Exiv28Internal14Nikon3MnHeader9ifdOffsetEv:
  370|  1.97k|size_t Nikon3MnHeader::ifdOffset() const {
  371|  1.97k|  return start_;
  372|  1.97k|}
_ZNK5Exiv28Internal14Nikon3MnHeader9byteOrderEv:
  374|  8.08k|ByteOrder Nikon3MnHeader::byteOrder() const {
  375|  8.08k|  return byteOrder_;
  376|  8.08k|}
_ZNK5Exiv28Internal14Nikon3MnHeader10baseOffsetEm:
  378|  2.02k|size_t Nikon3MnHeader::baseOffset(size_t mnOffset) const {
  379|  2.02k|  return Safe::add<size_t>(mnOffset, 10);
  380|  2.02k|}
_ZN5Exiv28Internal14Nikon3MnHeader4readEPKhmNS_9ByteOrderE:
  382|  1.97k|bool Nikon3MnHeader::read(const byte* pData, size_t size, ByteOrder) {
  383|  1.97k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (383:7): [True: 0, False: 1.97k]
  |  Branch (383:17): [True: 0, False: 1.97k]
  ------------------
  384|      0|    return false;
  385|  1.97k|  if (0 != memcmp(pData, signature_, 6))
  ------------------
  |  Branch (385:7): [True: 0, False: 1.97k]
  ------------------
  386|      0|    return false;
  387|  1.97k|  buf_.alloc(sizeOfSignature());
  388|  1.97k|  std::copy_n(pData, buf_.size(), buf_.begin());
  389|  1.97k|  TiffHeader th;
  390|  1.97k|  if (!th.read(buf_.data(10), 8))
  ------------------
  |  Branch (390:7): [True: 0, False: 1.97k]
  ------------------
  391|      0|    return false;
  392|  1.97k|  byteOrder_ = th.byteOrder();
  393|  1.97k|  start_ = 10 + th.offset();
  394|  1.97k|  return true;
  395|  1.97k|}  // Nikon3MnHeader::read
_ZNK5Exiv28Internal14Nikon3MnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  397|     53|size_t Nikon3MnHeader::write(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
  398|     53|  ioWrapper.write(buf_.c_data(), 10);
  399|       |  /// \todo: This removes any gap between the header and makernote IFD. The gap should be copied too.
  400|     53|  TiffHeader th(byteOrder);
  401|     53|  DataBuf buf = th.write();
  402|     53|  ioWrapper.write(buf.c_data(), buf.size());
  403|     53|  return 10 + buf.size();
  404|     53|}
_ZN5Exiv28Internal14Nikon3MnHeader12setByteOrderENS_9ByteOrderE:
  406|     56|void Nikon3MnHeader::setByteOrder(ByteOrder byteOrder) {
  407|     56|  byteOrder_ = byteOrder;
  408|     56|}
_ZN5Exiv28Internal17PanasonicMnHeader15sizeOfSignatureEv:
  412|  17.0k|size_t PanasonicMnHeader::sizeOfSignature() {
  413|  17.0k|  return sizeof(signature_);
  414|  17.0k|}
_ZN5Exiv28Internal17PanasonicMnHeaderC2Ev:
  416|  2.11k|PanasonicMnHeader::PanasonicMnHeader() {
  417|  2.11k|  read(signature_, sizeOfSignature(), invalidByteOrder);
  418|  2.11k|}
_ZNK5Exiv28Internal17PanasonicMnHeader4sizeEv:
  420|     54|size_t PanasonicMnHeader::size() const {
  421|     54|  return sizeOfSignature();
  422|     54|}
_ZNK5Exiv28Internal17PanasonicMnHeader9ifdOffsetEv:
  424|  2.00k|size_t PanasonicMnHeader::ifdOffset() const {
  425|  2.00k|  return start_;
  426|  2.00k|}
_ZN5Exiv28Internal17PanasonicMnHeader4readEPKhmNS_9ByteOrderE:
  428|  4.22k|bool PanasonicMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  429|  4.22k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (429:7): [True: 0, False: 4.22k]
  |  Branch (429:17): [True: 0, False: 4.22k]
  ------------------
  430|      0|    return false;
  431|  4.22k|  if (0 != memcmp(pData, signature_, 9))
  ------------------
  |  Branch (431:7): [True: 100, False: 4.12k]
  ------------------
  432|    100|    return false;
  433|  4.12k|  buf_.alloc(sizeOfSignature());
  434|  4.12k|  std::copy_n(pData, buf_.size(), buf_.begin());
  435|  4.12k|  start_ = sizeOfSignature();
  436|  4.12k|  return true;
  437|  4.22k|}  // PanasonicMnHeader::read
_ZNK5Exiv28Internal17PanasonicMnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  439|      6|size_t PanasonicMnHeader::write(IoWrapper& ioWrapper, ByteOrder) const {
  440|      6|  ioWrapper.write(signature_, sizeOfSignature());
  441|      6|  return sizeOfSignature();
  442|      6|}  // PanasonicMnHeader::write
_ZN5Exiv28Internal17PentaxDngMnHeader15sizeOfSignatureEv:
  446|  32.0k|size_t PentaxDngMnHeader::sizeOfSignature() {
  447|  32.0k|  return sizeof(signature_);
  448|  32.0k|}
_ZN5Exiv28Internal17PentaxDngMnHeaderC2Ev:
  450|  3.97k|PentaxDngMnHeader::PentaxDngMnHeader() {
  451|  3.97k|  read(signature_, sizeOfSignature(), invalidByteOrder);
  452|  3.97k|}
_ZNK5Exiv28Internal17PentaxDngMnHeader4sizeEv:
  454|  6.33k|size_t PentaxDngMnHeader::size() const {
  455|  6.33k|  return header_.size();
  456|  6.33k|}
_ZNK5Exiv28Internal17PentaxDngMnHeader10baseOffsetEm:
  458|  3.97k|size_t PentaxDngMnHeader::baseOffset(size_t mnOffset) const {
  459|  3.97k|  return mnOffset;
  460|  3.97k|}
_ZNK5Exiv28Internal17PentaxDngMnHeader9ifdOffsetEv:
  462|  2.70k|size_t PentaxDngMnHeader::ifdOffset() const {
  463|  2.70k|  return sizeOfSignature();
  464|  2.70k|}
_ZN5Exiv28Internal17PentaxDngMnHeader4readEPKhmNS_9ByteOrderE:
  466|  6.68k|bool PentaxDngMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  467|  6.68k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (467:7): [True: 0, False: 6.68k]
  |  Branch (467:17): [True: 0, False: 6.68k]
  ------------------
  468|      0|    return false;
  469|  6.68k|  header_.alloc(sizeOfSignature());
  470|  6.68k|  std::copy_n(pData, header_.size(), header_.begin());
  471|  6.68k|  return header_.size() >= sizeOfSignature() && 0 == header_.cmpBytes(0, signature_, 7);
  ------------------
  |  Branch (471:10): [True: 6.68k, False: 0]
  |  Branch (471:49): [True: 6.68k, False: 0]
  ------------------
  472|  6.68k|}
_ZNK5Exiv28Internal17PentaxDngMnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  474|  1.26k|size_t PentaxDngMnHeader::write(IoWrapper& ioWrapper, ByteOrder) const {
  475|  1.26k|  ioWrapper.write(signature_, sizeOfSignature());
  476|  1.26k|  return sizeOfSignature();
  477|  1.26k|}  // PentaxDngMnHeader::write
_ZN5Exiv28Internal14PentaxMnHeader15sizeOfSignatureEv:
  481|    858|size_t PentaxMnHeader::sizeOfSignature() {
  482|    858|  return sizeof(signature_);
  483|    858|}
_ZN5Exiv28Internal14PentaxMnHeaderC2Ev:
  485|     93|PentaxMnHeader::PentaxMnHeader() {
  486|     93|  read(signature_, sizeOfSignature(), invalidByteOrder);
  487|     93|}
_ZNK5Exiv28Internal14PentaxMnHeader9ifdOffsetEv:
  493|     93|size_t PentaxMnHeader::ifdOffset() const {
  494|     93|  return sizeOfSignature();
  495|     93|}
_ZN5Exiv28Internal14PentaxMnHeader4readEPKhmNS_9ByteOrderE:
  497|    186|bool PentaxMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  498|    186|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (498:7): [True: 0, False: 186]
  |  Branch (498:17): [True: 0, False: 186]
  ------------------
  499|      0|    return false;
  500|    186|  header_.alloc(sizeOfSignature());
  501|    186|  std::copy_n(pData, header_.size(), header_.begin());
  502|    186|  return header_.size() >= sizeOfSignature() && 0 == header_.cmpBytes(0, signature_, 3);
  ------------------
  |  Branch (502:10): [True: 186, False: 0]
  |  Branch (502:49): [True: 186, False: 0]
  ------------------
  503|    186|}
_ZN5Exiv28Internal15SamsungMnHeaderC2Ev:
  510|    248|SamsungMnHeader::SamsungMnHeader() {
  511|    248|  read(nullptr, 0, invalidByteOrder);
  512|    248|}
_ZNK5Exiv28Internal15SamsungMnHeader4sizeEv:
  514|    286|size_t SamsungMnHeader::size() const {
  515|    286|  return 0;
  516|    286|}
_ZNK5Exiv28Internal15SamsungMnHeader10baseOffsetEm:
  518|    248|size_t SamsungMnHeader::baseOffset(size_t mnOffset) const {
  519|    248|  return mnOffset;
  520|    248|}
_ZN5Exiv28Internal15SamsungMnHeader4readEPKhmNS_9ByteOrderE:
  522|    465|bool SamsungMnHeader::read(const byte* /*pData*/, size_t /*size*/, ByteOrder) {
  523|    465|  return true;
  524|    465|}  // SamsungMnHeader::read
_ZNK5Exiv28Internal15SamsungMnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  526|     31|size_t SamsungMnHeader::write(IoWrapper& /*ioWrapper*/, ByteOrder) const {
  527|     31|  return 0;
  528|     31|}  // SamsungMnHeader::write
_ZN5Exiv28Internal13SigmaMnHeader15sizeOfSignatureEv:
  533|  1.12k|size_t SigmaMnHeader::sizeOfSignature() {
  534|  1.12k|  return sizeof(signature1_);
  535|  1.12k|}
_ZN5Exiv28Internal13SigmaMnHeaderC2Ev:
  537|    142|SigmaMnHeader::SigmaMnHeader() {
  538|    142|  read(signature1_, sizeOfSignature(), invalidByteOrder);
  539|    142|}
_ZNK5Exiv28Internal13SigmaMnHeader9ifdOffsetEv:
  545|     80|size_t SigmaMnHeader::ifdOffset() const {
  546|     80|  return start_;
  547|     80|}
_ZN5Exiv28Internal13SigmaMnHeader4readEPKhmNS_9ByteOrderE:
  549|    284|bool SigmaMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  550|    284|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (550:7): [True: 0, False: 284]
  |  Branch (550:17): [True: 0, False: 284]
  ------------------
  551|      0|    return false;
  552|    284|  if (0 != memcmp(pData, signature1_, 8) && 0 != memcmp(pData, signature2_, 8))
  ------------------
  |  Branch (552:7): [True: 123, False: 161]
  |  Branch (552:45): [True: 62, False: 61]
  ------------------
  553|     62|    return false;
  554|    222|  buf_.alloc(sizeOfSignature());
  555|    222|  std::copy_n(pData, buf_.size(), buf_.begin());
  556|    222|  start_ = sizeOfSignature();
  557|    222|  return true;
  558|    284|}  // SigmaMnHeader::read
_ZN5Exiv28Internal12SonyMnHeader15sizeOfSignatureEv:
  567|  10.5k|size_t SonyMnHeader::sizeOfSignature() {
  568|  10.5k|  return sizeof(signature_);
  569|  10.5k|}
_ZN5Exiv28Internal12SonyMnHeaderC2Ev:
  571|  1.03k|SonyMnHeader::SonyMnHeader() {
  572|  1.03k|  read(signature_, sizeOfSignature(), invalidByteOrder);
  573|  1.03k|}
_ZNK5Exiv28Internal12SonyMnHeader4sizeEv:
  575|    270|size_t SonyMnHeader::size() const {
  576|    270|  return sizeOfSignature();
  577|    270|}
_ZNK5Exiv28Internal12SonyMnHeader9ifdOffsetEv:
  579|  1.00k|size_t SonyMnHeader::ifdOffset() const {
  580|  1.00k|  return start_;
  581|  1.00k|}
_ZN5Exiv28Internal12SonyMnHeader4readEPKhmNS_9ByteOrderE:
  583|  2.03k|bool SonyMnHeader::read(const byte* pData, size_t size, ByteOrder) {
  584|  2.03k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (584:7): [True: 0, False: 2.03k]
  |  Branch (584:17): [True: 0, False: 2.03k]
  ------------------
  585|      0|    return false;
  586|  2.03k|  if (0 != memcmp(pData, signature_, sizeOfSignature()))
  ------------------
  |  Branch (586:7): [True: 0, False: 2.03k]
  ------------------
  587|      0|    return false;
  588|  2.03k|  buf_.alloc(sizeOfSignature());
  589|  2.03k|  std::copy_n(pData, buf_.size(), buf_.begin());
  590|  2.03k|  start_ = sizeOfSignature();
  591|  2.03k|  return true;
  592|  2.03k|}  // SonyMnHeader::read
_ZNK5Exiv28Internal12SonyMnHeader5writeERNS0_9IoWrapperENS_9ByteOrderE:
  594|     30|size_t SonyMnHeader::write(IoWrapper& ioWrapper, ByteOrder) const {
  595|     30|  ioWrapper.write(signature_, sizeOfSignature());
  596|     30|  return sizeOfSignature();
  597|     30|}  // SonyMnHeader::write
_ZN5Exiv28Internal14Casio2MnHeader15sizeOfSignatureEv:
  602|  6.48k|size_t Casio2MnHeader::sizeOfSignature() {
  603|  6.48k|  return sizeof(signature_);
  604|  6.48k|}
_ZN5Exiv28Internal14Casio2MnHeaderC2Ev:
  606|    720|Casio2MnHeader::Casio2MnHeader() {
  607|    720|  read(signature_, sizeOfSignature(), invalidByteOrder);
  608|    720|}
_ZNK5Exiv28Internal14Casio2MnHeader9ifdOffsetEv:
  614|    720|size_t Casio2MnHeader::ifdOffset() const {
  615|    720|  return start_;
  616|    720|}
_ZNK5Exiv28Internal14Casio2MnHeader9byteOrderEv:
  618|  2.88k|ByteOrder Casio2MnHeader::byteOrder() const {
  619|  2.88k|  return byteOrder_;
  620|  2.88k|}
_ZN5Exiv28Internal14Casio2MnHeader4readEPKhmNS_9ByteOrderE:
  622|  1.44k|bool Casio2MnHeader::read(const byte* pData, size_t size, ByteOrder) {
  623|  1.44k|  if (!pData || size < sizeOfSignature())
  ------------------
  |  Branch (623:7): [True: 0, False: 1.44k]
  |  Branch (623:17): [True: 0, False: 1.44k]
  ------------------
  624|      0|    return false;
  625|  1.44k|  if (0 != memcmp(pData, signature_, sizeOfSignature()))
  ------------------
  |  Branch (625:7): [True: 0, False: 1.44k]
  ------------------
  626|      0|    return false;
  627|  1.44k|  buf_.alloc(sizeOfSignature());
  628|  1.44k|  std::copy_n(pData, buf_.size(), buf_.begin());
  629|  1.44k|  start_ = sizeOfSignature();
  630|  1.44k|  return true;
  631|  1.44k|}  // Casio2MnHeader::read
_ZN5Exiv28Internal8newIfdMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  642|  5.55k|                                           ByteOrder) {
  643|       |  // Require at least an IFD with 1 entry, but not necessarily a next pointer
  644|  5.55k|  if (size < 14)
  ------------------
  |  Branch (644:7): [True: 873, False: 4.68k]
  ------------------
  645|    873|    return nullptr;
  646|  4.68k|  return newIfdMn2(tag, group, mnGroup);
  647|  5.55k|}
_ZN5Exiv28Internal9newIfdMn2EtNS_5IfdIdES1_:
  649|  6.16k|std::unique_ptr<TiffIfdMakernote> newIfdMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  650|  6.16k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, nullptr);
  651|  6.16k|}
_ZN5Exiv28Internal12newOlympusMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  654|  4.86k|                                               ByteOrder) {
  655|       |  // FIXME: workaround for overwritten OM System header in Olympus files (https://github.com/Exiv2/exiv2/issues/2542)
  656|  4.86k|  if (size >= 14 && std::string(reinterpret_cast<const char*>(pData), 14) == std::string("OM SYSTEM\0\0\0II", 14)) {
  ------------------
  |  Branch (656:7): [True: 4.43k, False: 429]
  |  Branch (656:7): [True: 33, False: 4.83k]
  |  Branch (656:21): [True: 33, False: 4.40k]
  ------------------
  657|       |    // Require at least the header and an IFD with 1 entry
  658|     33|    if (size < OMSystemMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (658:9): [True: 18, False: 15]
  ------------------
  659|     18|      return nullptr;
  660|     15|    return newOMSystemMn2(tag, group, IfdId::olympus2Id);
  661|     33|  }
  662|  4.83k|  if (size < 10 || std::string(reinterpret_cast<const char*>(pData), 10) != std::string("OLYMPUS\0II", 10)) {
  ------------------
  |  Branch (662:7): [True: 369, False: 4.46k]
  |  Branch (662:7): [True: 633, False: 4.20k]
  |  Branch (662:20): [True: 264, False: 4.20k]
  ------------------
  663|       |    // Require at least the header and an IFD with 1 entry
  664|    633|    if (size < OlympusMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (664:9): [True: 418, False: 215]
  ------------------
  665|    418|      return nullptr;
  666|    215|    return newOlympusMn2(tag, group, IfdId::olympusId);
  667|    633|  }
  668|       |  // Require at least the header and an IFD with 1 entry
  669|  4.20k|  if (size < Olympus2MnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (669:7): [True: 13, False: 4.18k]
  ------------------
  670|     13|    return nullptr;
  671|  4.18k|  return newOlympus2Mn2(tag, group, IfdId::olympus2Id);
  672|  4.20k|}
_ZN5Exiv28Internal13newOlympusMn2EtNS_5IfdIdES1_:
  674|    258|std::unique_ptr<TiffIfdMakernote> newOlympusMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  675|    258|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<OlympusMnHeader>());
  676|    258|}
_ZN5Exiv28Internal14newOlympus2Mn2EtNS_5IfdIdES1_:
  678|  4.18k|std::unique_ptr<TiffIfdMakernote> newOlympus2Mn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  679|  4.18k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<Olympus2MnHeader>());
  680|  4.18k|}
_ZN5Exiv28Internal13newOMSystemMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  683|    133|                                                ByteOrder) {
  684|       |  // Require at least the header and an IFD with 1 entry
  685|    133|  if (size < OMSystemMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (685:7): [True: 77, False: 56]
  ------------------
  686|     77|    return nullptr;
  687|     56|  return newOMSystemMn2(tag, group, mnGroup);
  688|    133|}
_ZN5Exiv28Internal14newOMSystemMn2EtNS_5IfdIdES1_:
  690|  4.48k|std::unique_ptr<TiffIfdMakernote> newOMSystemMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  691|  4.48k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<OMSystemMnHeader>());
  692|  4.48k|}
_ZN5Exiv28Internal9newFujiMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  695|  2.77k|                                            ByteOrder) {
  696|       |  // Require at least the header and an IFD with 1 entry
  697|  2.77k|  if (size < FujiMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (697:7): [True: 592, False: 2.17k]
  ------------------
  698|    592|    return nullptr;
  699|  2.17k|  return newFujiMn2(tag, group, mnGroup);
  700|  2.77k|}
_ZN5Exiv28Internal10newFujiMn2EtNS_5IfdIdES1_:
  702|  2.18k|std::unique_ptr<TiffIfdMakernote> newFujiMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  703|  2.18k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<FujiMnHeader>());
  704|  2.18k|}
_ZN5Exiv28Internal10newNikonMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  707|  3.03k|                                             ByteOrder) {
  708|       |  // If there is no "Nikon" string it must be Nikon1 format
  709|  3.03k|  if (size < 6 || std::string(reinterpret_cast<const char*>(pData), 6) != std::string("Nikon\0", 6)) {
  ------------------
  |  Branch (709:7): [True: 487, False: 2.54k]
  |  Branch (709:7): [True: 848, False: 2.18k]
  |  Branch (709:19): [True: 361, False: 2.18k]
  ------------------
  710|       |    // Require at least an IFD with 1 entry
  711|    848|    if (size < 18)
  ------------------
  |  Branch (711:9): [True: 493, False: 355]
  ------------------
  712|    493|      return nullptr;
  713|    355|    return newIfdMn2(tag, group, IfdId::nikon1Id);
  714|    848|  }
  715|       |  // If the "Nikon" string is not followed by a TIFF header, we assume
  716|       |  // Nikon2 format
  717|  2.18k|  TiffHeader tiffHeader;
  718|  2.18k|  if (size < 18 || !tiffHeader.read(pData + 10, size - 10) || tiffHeader.tag() != 0x002a) {
  ------------------
  |  Branch (718:7): [True: 6, False: 2.17k]
  |  Branch (718:20): [True: 192, False: 1.98k]
  |  Branch (718:63): [True: 1, False: 1.98k]
  ------------------
  719|       |    // Require at least the header and an IFD with 1 entry
  720|    199|    if (size < Nikon2MnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (720:9): [True: 16, False: 183]
  ------------------
  721|     16|      return nullptr;
  722|    183|    return newNikon2Mn2(tag, group, IfdId::nikon2Id);
  723|    199|  }
  724|       |  // Else we have a Nikon3 makernote
  725|       |  // Require at least the header and an IFD with 1 entry
  726|  1.98k|  if (size < Nikon3MnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (726:7): [True: 8, False: 1.97k]
  ------------------
  727|      8|    return nullptr;
  728|  1.97k|  return newNikon3Mn2(tag, group, IfdId::nikon3Id);
  729|  1.98k|}
_ZN5Exiv28Internal12newNikon2Mn2EtNS_5IfdIdES1_:
  731|    204|std::unique_ptr<TiffIfdMakernote> newNikon2Mn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  732|    204|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<Nikon2MnHeader>());
  733|    204|}
_ZN5Exiv28Internal12newNikon3Mn2EtNS_5IfdIdES1_:
  735|  2.03k|std::unique_ptr<TiffIfdMakernote> newNikon3Mn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  736|  2.03k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<Nikon3MnHeader>());
  737|  2.03k|}
_ZN5Exiv28Internal14newPanasonicMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  740|  2.36k|                                                 ByteOrder) {
  741|       |  // Require at least the header and an IFD with 1 entry, but without a next pointer
  742|  2.36k|  if (size < PanasonicMnHeader::sizeOfSignature() + 14)
  ------------------
  |  Branch (742:7): [True: 255, False: 2.10k]
  ------------------
  743|    255|    return nullptr;
  744|  2.10k|  return newPanasonicMn2(tag, group, mnGroup);
  745|  2.36k|}
_ZN5Exiv28Internal15newPanasonicMn2EtNS_5IfdIdES1_:
  747|  2.11k|std::unique_ptr<TiffIfdMakernote> newPanasonicMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  748|  2.11k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<PanasonicMnHeader>(), false);
  749|  2.11k|}
_ZN5Exiv28Internal11newPentaxMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  752|  3.27k|                                              ByteOrder) {
  753|  3.27k|  if (size > 8 && std::string(reinterpret_cast<const char*>(pData), 8) == std::string("PENTAX \0", 8)) {
  ------------------
  |  Branch (753:7): [True: 2.97k, False: 296]
  |  Branch (753:7): [True: 2.76k, False: 515]
  |  Branch (753:19): [True: 2.76k, False: 219]
  ------------------
  754|       |    // Require at least the header and an IFD with 1 entry
  755|  2.76k|    if (size < PentaxDngMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (755:9): [True: 52, False: 2.70k]
  ------------------
  756|     52|      return nullptr;
  757|  2.70k|    return newPentaxDngMn2(tag, group, (tag == 0xc634 ? IfdId::pentaxDngId : IfdId::pentaxId));
  ------------------
  |  Branch (757:41): [True: 2.70k, False: 0]
  ------------------
  758|  2.76k|  }
  759|    515|  if (size > 4 && std::string(reinterpret_cast<const char*>(pData), 4) == std::string("AOC\0", 4)) {
  ------------------
  |  Branch (759:7): [True: 231, False: 284]
  |  Branch (759:7): [True: 89, False: 426]
  |  Branch (759:19): [True: 89, False: 142]
  ------------------
  760|       |    // Require at least the header and an IFD with 1 entry
  761|     89|    if (size < PentaxMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (761:9): [True: 15, False: 74]
  ------------------
  762|     15|      return nullptr;
  763|     74|    return newPentaxMn2(tag, group, IfdId::pentaxId);
  764|     89|  }
  765|    426|  return nullptr;
  766|    515|}
_ZN5Exiv28Internal12newPentaxMn2EtNS_5IfdIdES1_:
  768|     93|std::unique_ptr<TiffIfdMakernote> newPentaxMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  769|     93|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<PentaxMnHeader>());
  770|     93|}
_ZN5Exiv28Internal15newPentaxDngMn2EtNS_5IfdIdES1_:
  772|  3.97k|std::unique_ptr<TiffIfdMakernote> newPentaxDngMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  773|  3.97k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<PentaxDngMnHeader>());
  774|  3.97k|}
_ZN5Exiv28Internal12newSamsungMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  777|    403|                                               ByteOrder) {
  778|    403|  if (size > 4 && std::string(reinterpret_cast<const char*>(pData), 4) == std::string("AOC\0", 4)) {
  ------------------
  |  Branch (778:7): [True: 281, False: 122]
  |  Branch (778:7): [True: 25, False: 378]
  |  Branch (778:19): [True: 25, False: 256]
  ------------------
  779|       |    // Samsung branded Pentax camera:
  780|       |    // Require at least the header and an IFD with 1 entry
  781|     25|    if (size < PentaxMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (781:9): [True: 6, False: 19]
  ------------------
  782|      6|      return nullptr;
  783|     19|    return newPentaxMn2(tag, group, IfdId::pentaxId);
  784|     25|  }
  785|       |  // Genuine Samsung camera:
  786|       |  // Require at least an IFD with 1 entry
  787|    378|  if (size < 18)
  ------------------
  |  Branch (787:7): [True: 161, False: 217]
  ------------------
  788|    161|    return nullptr;
  789|    217|  return newSamsungMn2(tag, group, mnGroup);
  790|    378|}
_ZN5Exiv28Internal13newSamsungMn2EtNS_5IfdIdES1_:
  792|    248|std::unique_ptr<TiffIfdMakernote> newSamsungMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  793|    248|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<SamsungMnHeader>());
  794|    248|}
_ZN5Exiv28Internal10newSigmaMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  797|    250|                                             ByteOrder) {
  798|       |  // Require at least the header and an IFD with 1 entry
  799|    250|  if (size < SigmaMnHeader::sizeOfSignature() + 18)
  ------------------
  |  Branch (799:7): [True: 108, False: 142]
  ------------------
  800|    108|    return nullptr;
  801|    142|  return newSigmaMn2(tag, group, mnGroup);
  802|    250|}
_ZN5Exiv28Internal11newSigmaMn2EtNS_5IfdIdES1_:
  804|    142|std::unique_ptr<TiffIfdMakernote> newSigmaMn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  805|    142|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<SigmaMnHeader>());
  806|    142|}
_ZN5Exiv28Internal9newSonyMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  809|  10.9k|                                            ByteOrder) {
  810|       |  // If there is no "SONY DSC " string we assume it's a simple IFD Makernote
  811|  10.9k|  if (size < 12 || std::string(reinterpret_cast<const char*>(pData), 12) != std::string("SONY DSC \0\0\0", 12)) {
  ------------------
  |  Branch (811:7): [True: 1.70k, False: 9.19k]
  |  Branch (811:7): [True: 9.87k, False: 1.02k]
  |  Branch (811:20): [True: 8.17k, False: 1.02k]
  ------------------
  812|       |    // Require at least an IFD with 1 entry
  813|  9.87k|    if (size < 18)
  ------------------
  |  Branch (813:9): [True: 1.72k, False: 8.15k]
  ------------------
  814|  1.72k|      return nullptr;
  815|  8.15k|    return newSony2Mn2(tag, group, IfdId::sony2Id);
  816|  9.87k|  }
  817|       |  // Require at least the header and an IFD with 1 entry, but without a next pointer
  818|  1.02k|  if (size < SonyMnHeader::sizeOfSignature() + 14)
  ------------------
  |  Branch (818:7): [True: 20, False: 1.00k]
  ------------------
  819|     20|    return nullptr;
  820|  1.00k|  return newSony1Mn2(tag, group, IfdId::sony1Id);
  821|  1.02k|}
_ZN5Exiv28Internal11newSony1Mn2EtNS_5IfdIdES1_:
  823|  1.03k|std::unique_ptr<TiffIfdMakernote> newSony1Mn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  824|  1.03k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<SonyMnHeader>(), false);
  825|  1.03k|}
_ZN5Exiv28Internal11newSony2Mn2EtNS_5IfdIdES1_:
  827|  8.18k|std::unique_ptr<TiffIfdMakernote> newSony2Mn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  828|  8.18k|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, nullptr, true);
  829|  8.18k|}
_ZN5Exiv28Internal10newCasioMnEtNS_5IfdIdES1_PKhmNS_9ByteOrderE:
  832|  1.74k|                                             ByteOrder) {
  833|  1.74k|  if (size > 6 && std::string(reinterpret_cast<const char*>(pData), 6) == std::string("QVC\0\0\0", 6))
  ------------------
  |  Branch (833:7): [True: 1.41k, False: 327]
  |  Branch (833:7): [True: 720, False: 1.02k]
  |  Branch (833:19): [True: 720, False: 697]
  ------------------
  834|    720|    return newCasio2Mn2(tag, group, IfdId::casio2Id);
  835|       |  // Require at least an IFD with 1 entry, but not necessarily a next pointer
  836|  1.02k|  if (size < 14)
  ------------------
  |  Branch (836:7): [True: 342, False: 682]
  ------------------
  837|    342|    return nullptr;
  838|    682|  return newIfdMn2(tag, group, IfdId::casioId);
  839|  1.02k|}
_ZN5Exiv28Internal12newCasio2Mn2EtNS_5IfdIdES1_:
  841|    720|std::unique_ptr<TiffIfdMakernote> newCasio2Mn2(uint16_t tag, IfdId group, IfdId mnGroup) {
  842|    720|  return std::make_unique<TiffIfdMakernote>(tag, group, mnGroup, std::make_unique<Casio2MnHeader>());
  843|    720|}
_ZN5Exiv28Internal13nikonSelectorEtPKhmPNS0_13TiffComponentE:
  910|    401|int nikonSelector(uint16_t tag, const byte* pData, size_t size, TiffComponent* /*pRoot*/) {
  911|    401|  if (size < 4)
  ------------------
  |  Branch (911:7): [True: 12, False: 389]
  ------------------
  912|     12|    return -1;
  913|       |
  914|    389|  auto ix = NikonArrayIdx::Key{tag, reinterpret_cast<const char*>(pData), size};
  915|    389|  if (auto it = Exiv2::find(nikonArrayIdx, ix))
  ------------------
  |  Branch (915:12): [True: 356, False: 33]
  ------------------
  916|    356|    return it->idx_;
  917|     33|  return -1;
  918|    389|}
_ZN5Exiv28Internal10nikonCryptEtPKhmPNS0_13TiffComponentE:
  920|    234|DataBuf nikonCrypt(uint16_t tag, const byte* pData, size_t size, TiffComponent* pRoot) {
  921|    234|  DataBuf buf;
  922|       |
  923|    234|  if (size < 4)
  ------------------
  |  Branch (923:7): [True: 0, False: 234]
  ------------------
  924|      0|    return buf;
  925|    234|  auto nci = Exiv2::find(nikonArrayIdx, NikonArrayIdx::Key{tag, reinterpret_cast<const char*>(pData), size});
  926|    234|  if (!nci || nci->start_ == NA || size <= nci->start_)
  ------------------
  |  |  865|    468|#define NA std::numeric_limits<uint32_t>::max()
  ------------------
  |  Branch (926:7): [True: 0, False: 234]
  |  Branch (926:15): [True: 7, False: 227]
  |  Branch (926:36): [True: 22, False: 205]
  ------------------
  927|     29|    return buf;
  928|       |
  929|       |  // Find Exif.Nikon3.ShutterCount
  930|    205|  TiffFinder finder(0x00a7, IfdId::nikon3Id);
  931|    205|  pRoot->accept(finder);
  932|    205|  auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
  933|    205|  if (!te || !te->pValue() || te->pValue()->count() == 0)
  ------------------
  |  Branch (933:7): [True: 41, False: 164]
  |  Branch (933:14): [True: 84, False: 80]
  |  Branch (933:31): [True: 14, False: 66]
  ------------------
  934|    139|    return buf;
  935|     66|  auto count = te->pValue()->toUint32();
  936|       |
  937|       |  // Find Exif.Nikon3.SerialNumber
  938|     66|  finder.init(0x001d, IfdId::nikon3Id);
  939|     66|  pRoot->accept(finder);
  940|     66|  te = dynamic_cast<const TiffEntryBase*>(finder.result());
  941|     66|  if (!te || !te->pValue() || te->pValue()->count() == 0)
  ------------------
  |  Branch (941:7): [True: 10, False: 56]
  |  Branch (941:14): [True: 15, False: 41]
  |  Branch (941:31): [True: 6, False: 35]
  ------------------
  942|     31|    return buf;
  943|     35|  bool ok(false);
  944|     35|  auto serial = stringTo<uint32_t>(te->pValue()->toString(), ok);
  945|     35|  if (!ok) {
  ------------------
  |  Branch (945:7): [True: 28, False: 7]
  ------------------
  946|     28|    std::string model = getExifModel(pRoot);
  947|     28|    if (model.empty())
  ------------------
  |  Branch (947:9): [True: 15, False: 13]
  ------------------
  948|     15|      return buf;
  949|     13|    if (Internal::contains(model, "D50")) {
  ------------------
  |  Branch (949:9): [True: 0, False: 13]
  ------------------
  950|      0|      serial = 0x22;
  951|     13|    } else {
  952|     13|      serial = 0x60;
  953|     13|    }
  954|     13|  }
  955|     20|  buf.alloc(size);
  956|     20|  std::copy_n(pData, buf.size(), buf.begin());
  957|     20|  ncrypt(buf.data(nci->start_), static_cast<uint32_t>(buf.size()) - nci->start_, count, serial);
  958|     20|  return buf;
  959|     35|}
_ZN5Exiv28Internal14sonyCsSelectorEtPKhmPNS0_13TiffComponentE:
  961|    695|int sonyCsSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/, TiffComponent* pRoot) {
  962|    695|  std::string model = getExifModel(pRoot);
  963|    695|  if (model.empty())
  ------------------
  |  Branch (963:7): [True: 89, False: 606]
  ------------------
  964|     89|    return -1;
  965|    606|  int idx = 0;
  966|    606|  if (Internal::contains(model, "DSLR-A330") || Internal::contains(model, "DSLR-A380")) {
  ------------------
  |  Branch (966:7): [True: 3, False: 603]
  |  Branch (966:49): [True: 20, False: 583]
  ------------------
  967|     23|    idx = 1;
  968|     23|  }
  969|    606|  return idx;
  970|    695|}
_ZN5Exiv28Internal17sony2010eSelectorEtPKhmPNS0_13TiffComponentE:
  971|     70|int sony2010eSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/, TiffComponent* pRoot) {
  972|     70|  static constexpr const char* models[] = {
  973|     70|      "SLT-A58",   "SLT-A99",  "ILCE-3000", "ILCE-3500", "NEX-3N",    "NEX-5R",   "NEX-5T",
  974|     70|      "NEX-6",     "VG30E",    "VG900",     "DSC-RX100", "DSC-RX1",   "DSC-RX1R", "DSC-HX300",
  975|     70|      "DSC-HX50V", "DSC-TX30", "DSC-WX60",  "DSC-WX200", "DSC-WX300",
  976|     70|  };
  977|     70|  return Exiv2::find(models, getExifModel(pRoot)) ? 0 : -1;
  ------------------
  |  Branch (977:10): [True: 8, False: 62]
  ------------------
  978|     70|}
_ZN5Exiv28Internal15sony2FpSelectorEtPKhmPNS0_13TiffComponentE:
  980|    361|int sony2FpSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/, TiffComponent* pRoot) {
  981|       |  // Not valid for models beginning
  982|    361|  std::string model = getExifModel(pRoot);
  983|    361|  for (auto str : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (983:17): [True: 1.01k, False: 315]
  ------------------
  984|  1.01k|    if (model.starts_with(str))
  ------------------
  |  Branch (984:9): [True: 46, False: 971]
  ------------------
  985|     46|      return -1;
  986|    315|  return 0;
  987|    361|}
_ZN5Exiv28Internal18sonyMisc2bSelectorEtPKhmPNS0_13TiffComponentE:
  989|     91|int sonyMisc2bSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/, TiffComponent* pRoot) {
  990|       |  // From Exiftool: https://github.com/exiftool/exiftool/blob/master/lib/Image/ExifTool/Sony.pm
  991|       |  // >  First byte must be 9 or 12 or 13 or 15 or 16 and 4th byte must be 2 (deciphered)
  992|       |
  993|       |  // Get the value from the image format that is being used
  994|     91|  auto value = getExifValue(pRoot, 0x9404, Exiv2::IfdId::sony1Id);
  995|     91|  if (!value) {
  ------------------
  |  Branch (995:7): [True: 52, False: 39]
  ------------------
  996|     52|    value = getExifValue(pRoot, 0x9404, Exiv2::IfdId::sony2Id);
  997|     52|    if (!value)
  ------------------
  |  Branch (997:9): [True: 0, False: 52]
  ------------------
  998|      0|      return -1;
  999|     52|  }
 1000|       |
 1001|     91|  if (value->count() < 4)
  ------------------
  |  Branch (1001:7): [True: 15, False: 76]
  ------------------
 1002|     15|    return -1;
 1003|       |
 1004|     76|  switch (value->toInt64(0)) {                 // Using encrypted values
 1005|      3|    case 231:                                  // 231 == 9
  ------------------
  |  Branch (1005:5): [True: 3, False: 73]
  ------------------
 1006|      9|    case 234:                                  // 234 == 12
  ------------------
  |  Branch (1006:5): [True: 6, False: 70]
  ------------------
 1007|     15|    case 205:                                  // 205 == 13
  ------------------
  |  Branch (1007:5): [True: 6, False: 70]
  ------------------
 1008|     42|    case 138:                                  // 138 == 15
  ------------------
  |  Branch (1008:5): [True: 27, False: 49]
  ------------------
 1009|     49|    case 112:                                  // 112 == 16
  ------------------
  |  Branch (1009:5): [True: 7, False: 69]
  ------------------
 1010|     49|      return value->toInt64(3) == 8 ? 0 : -1;  // 8   == 2
  ------------------
  |  Branch (1010:14): [True: 26, False: 23]
  ------------------
 1011|     27|    default:
  ------------------
  |  Branch (1011:5): [True: 27, False: 49]
  ------------------
 1012|     27|      break;
 1013|     76|  }
 1014|     27|  return -1;
 1015|     76|}
_ZN5Exiv28Internal18sonyMisc3cSelectorEtPKhmPNS0_13TiffComponentE:
 1016|    246|int sonyMisc3cSelector(uint16_t /*tag*/, const byte* /*pData*/, size_t /*size*/, TiffComponent* pRoot) {
 1017|       |  // For condition, see Exiftool (Tag 9400c):
 1018|       |  // https://github.com/exiftool/exiftool/blob/5a8b6b6ead12b39e3f32f978a4efd0233facbb01/lib/Image/ExifTool/Sony.pm#L1807
 1019|       |
 1020|       |  // Get the value from the image format that is being used
 1021|    246|  auto value = getExifValue(pRoot, 0x9400, Exiv2::IfdId::sony1Id);
 1022|    246|  if (!value) {
  ------------------
  |  Branch (1022:7): [True: 43, False: 203]
  ------------------
 1023|     43|    value = getExifValue(pRoot, 0x9400, Exiv2::IfdId::sony2Id);
 1024|     43|    if (!value)
  ------------------
  |  Branch (1024:9): [True: 0, False: 43]
  ------------------
 1025|      0|      return -1;
 1026|     43|  }
 1027|       |
 1028|    246|  if (value->count() < 1)
  ------------------
  |  Branch (1028:7): [True: 9, False: 237]
  ------------------
 1029|      9|    return -1;
 1030|       |
 1031|    237|  switch (value->toInt64()) {
 1032|     49|    case 35:  // 0x23 for DSC-RX10/HX60V/HX350/HX400V/WX220/WX350, ILCE-7/7R/5000/6000, ILCA-68/77M2
  ------------------
  |  Branch (1032:5): [True: 49, False: 188]
  ------------------
 1033|     79|    case 36:  // 0x24 for ILCA-99M2,ILCE-5100/6300/6500/7M2/7RM2/7S/7SM2/QX1,
  ------------------
  |  Branch (1033:5): [True: 30, False: 207]
  ------------------
 1034|       |              // DSC-HX80/HX90V/QX30/RX0/RX100M3/RX100M4/RX100M5/RX10M2/RX10M3/RX1RM2/WX500
 1035|    101|    case 38:  // 0x26 for ILCE-6100/6400/6600/7M3/7RM3/9, DSC-RX0M2/RX10M4/RX100M5A/RX100M6/HX95/HX99
  ------------------
  |  Branch (1035:5): [True: 22, False: 215]
  ------------------
 1036|    153|    case 40:  // 0x28 for ILCE-7RM4/9M2, DSC-RX100M7, ZV-1/1F/1M2/E10
  ------------------
  |  Branch (1036:5): [True: 52, False: 185]
  ------------------
 1037|    179|    case 49:  // 0x31 for ILCE-1/7M4/7SM3, ILME-FX3
  ------------------
  |  Branch (1037:5): [True: 26, False: 211]
  ------------------
 1038|    192|    case 50:  // 0x32 for ILCE-7RM5, ILME-FX30
  ------------------
  |  Branch (1038:5): [True: 13, False: 224]
  ------------------
 1039|    199|    case 51:  // 0x33 for ILCE-6700/7CM2/7CR/9M3, ZV-E1
  ------------------
  |  Branch (1039:5): [True: 7, False: 230]
  ------------------
 1040|    202|    case 65:  // 0x41 for ILCE-7M5
  ------------------
  |  Branch (1040:5): [True: 3, False: 234]
  ------------------
 1041|    202|      return 0;
 1042|     35|    default:
  ------------------
  |  Branch (1042:5): [True: 35, False: 202]
  ------------------
 1043|     35|      break;
 1044|    237|  }
 1045|     35|  return -1;
 1046|    237|}
makernote_int.cpp:_ZN12_GLOBAL__N_112getExifValueEPN5Exiv28Internal13TiffComponentEtNS0_5IfdIdE:
 1052|  1.58k|const Exiv2::Value* getExifValue(Exiv2::Internal::TiffComponent* pRoot, uint16_t tag, Exiv2::IfdId group) {
 1053|  1.58k|  Exiv2::Internal::TiffFinder finder(tag, group);
 1054|  1.58k|  if (!pRoot)
  ------------------
  |  Branch (1054:7): [True: 0, False: 1.58k]
  ------------------
 1055|      0|    return nullptr;
 1056|  1.58k|  pRoot->accept(finder);
 1057|  1.58k|  auto te = dynamic_cast<const Exiv2::Internal::TiffEntryBase*>(finder.result());
 1058|  1.58k|  return (!te || !te->pValue()) ? nullptr : te->pValue();
  ------------------
  |  Branch (1058:11): [True: 231, False: 1.35k]
  |  Branch (1058:18): [True: 64, False: 1.29k]
  ------------------
 1059|  1.58k|}
makernote_int.cpp:_ZN12_GLOBAL__N_112getExifModelEPN5Exiv28Internal13TiffComponentE:
 1061|  1.15k|std::string getExifModel(Exiv2::Internal::TiffComponent* pRoot) {
 1062|       |  // Lookup the Exif.Image.Model tag
 1063|  1.15k|  const auto value = getExifValue(pRoot, 0x0110, Exiv2::IfdId::ifd0Id);
 1064|  1.15k|  return (!value || value->count() == 0) ? std::string() : value->toString();
  ------------------
  |  Branch (1064:11): [True: 200, False: 954]
  |  Branch (1064:21): [True: 68, False: 886]
  ------------------
 1065|  1.15k|}
makernote_int.cpp:_ZN12_GLOBAL__N_16ncryptEPhjjj:
 1067|     20|void ncrypt(Exiv2::byte* pData, uint32_t size, uint32_t count, uint32_t serial) {
 1068|     20|  static const Exiv2::byte xlat[2][256] = {
 1069|     20|      {0xc1, 0xbf, 0x6d, 0x0d, 0x59, 0xc5, 0x13, 0x9d, 0x83, 0x61, 0x6b, 0x4f, 0xc7, 0x7f, 0x3d, 0x3d, 0x53, 0x59, 0xe3,
 1070|     20|       0xc7, 0xe9, 0x2f, 0x95, 0xa7, 0x95, 0x1f, 0xdf, 0x7f, 0x2b, 0x29, 0xc7, 0x0d, 0xdf, 0x07, 0xef, 0x71, 0x89, 0x3d,
 1071|     20|       0x13, 0x3d, 0x3b, 0x13, 0xfb, 0x0d, 0x89, 0xc1, 0x65, 0x1f, 0xb3, 0x0d, 0x6b, 0x29, 0xe3, 0xfb, 0xef, 0xa3, 0x6b,
 1072|     20|       0x47, 0x7f, 0x95, 0x35, 0xa7, 0x47, 0x4f, 0xc7, 0xf1, 0x59, 0x95, 0x35, 0x11, 0x29, 0x61, 0xf1, 0x3d, 0xb3, 0x2b,
 1073|     20|       0x0d, 0x43, 0x89, 0xc1, 0x9d, 0x9d, 0x89, 0x65, 0xf1, 0xe9, 0xdf, 0xbf, 0x3d, 0x7f, 0x53, 0x97, 0xe5, 0xe9, 0x95,
 1074|     20|       0x17, 0x1d, 0x3d, 0x8b, 0xfb, 0xc7, 0xe3, 0x67, 0xa7, 0x07, 0xf1, 0x71, 0xa7, 0x53, 0xb5, 0x29, 0x89, 0xe5, 0x2b,
 1075|     20|       0xa7, 0x17, 0x29, 0xe9, 0x4f, 0xc5, 0x65, 0x6d, 0x6b, 0xef, 0x0d, 0x89, 0x49, 0x2f, 0xb3, 0x43, 0x53, 0x65, 0x1d,
 1076|     20|       0x49, 0xa3, 0x13, 0x89, 0x59, 0xef, 0x6b, 0xef, 0x65, 0x1d, 0x0b, 0x59, 0x13, 0xe3, 0x4f, 0x9d, 0xb3, 0x29, 0x43,
 1077|     20|       0x2b, 0x07, 0x1d, 0x95, 0x59, 0x59, 0x47, 0xfb, 0xe5, 0xe9, 0x61, 0x47, 0x2f, 0x35, 0x7f, 0x17, 0x7f, 0xef, 0x7f,
 1078|     20|       0x95, 0x95, 0x71, 0xd3, 0xa3, 0x0b, 0x71, 0xa3, 0xad, 0x0b, 0x3b, 0xb5, 0xfb, 0xa3, 0xbf, 0x4f, 0x83, 0x1d, 0xad,
 1079|     20|       0xe9, 0x2f, 0x71, 0x65, 0xa3, 0xe5, 0x07, 0x35, 0x3d, 0x0d, 0xb5, 0xe9, 0xe5, 0x47, 0x3b, 0x9d, 0xef, 0x35, 0xa3,
 1080|     20|       0xbf, 0xb3, 0xdf, 0x53, 0xd3, 0x97, 0x53, 0x49, 0x71, 0x07, 0x35, 0x61, 0x71, 0x2f, 0x43, 0x2f, 0x11, 0xdf, 0x17,
 1081|     20|       0x97, 0xfb, 0x95, 0x3b, 0x7f, 0x6b, 0xd3, 0x25, 0xbf, 0xad, 0xc7, 0xc5, 0xc5, 0xb5, 0x8b, 0xef, 0x2f, 0xd3, 0x07,
 1082|     20|       0x6b, 0x25, 0x49, 0x95, 0x25, 0x49, 0x6d, 0x71, 0xc7},
 1083|     20|      {0xa7, 0xbc, 0xc9, 0xad, 0x91, 0xdf, 0x85, 0xe5, 0xd4, 0x78, 0xd5, 0x17, 0x46, 0x7c, 0x29, 0x4c, 0x4d, 0x03, 0xe9,
 1084|     20|       0x25, 0x68, 0x11, 0x86, 0xb3, 0xbd, 0xf7, 0x6f, 0x61, 0x22, 0xa2, 0x26, 0x34, 0x2a, 0xbe, 0x1e, 0x46, 0x14, 0x68,
 1085|     20|       0x9d, 0x44, 0x18, 0xc2, 0x40, 0xf4, 0x7e, 0x5f, 0x1b, 0xad, 0x0b, 0x94, 0xb6, 0x67, 0xb4, 0x0b, 0xe1, 0xea, 0x95,
 1086|     20|       0x9c, 0x66, 0xdc, 0xe7, 0x5d, 0x6c, 0x05, 0xda, 0xd5, 0xdf, 0x7a, 0xef, 0xf6, 0xdb, 0x1f, 0x82, 0x4c, 0xc0, 0x68,
 1087|     20|       0x47, 0xa1, 0xbd, 0xee, 0x39, 0x50, 0x56, 0x4a, 0xdd, 0xdf, 0xa5, 0xf8, 0xc6, 0xda, 0xca, 0x90, 0xca, 0x01, 0x42,
 1088|     20|       0x9d, 0x8b, 0x0c, 0x73, 0x43, 0x75, 0x05, 0x94, 0xde, 0x24, 0xb3, 0x80, 0x34, 0xe5, 0x2c, 0xdc, 0x9b, 0x3f, 0xca,
 1089|     20|       0x33, 0x45, 0xd0, 0xdb, 0x5f, 0xf5, 0x52, 0xc3, 0x21, 0xda, 0xe2, 0x22, 0x72, 0x6b, 0x3e, 0xd0, 0x5b, 0xa8, 0x87,
 1090|     20|       0x8c, 0x06, 0x5d, 0x0f, 0xdd, 0x09, 0x19, 0x93, 0xd0, 0xb9, 0xfc, 0x8b, 0x0f, 0x84, 0x60, 0x33, 0x1c, 0x9b, 0x45,
 1091|     20|       0xf1, 0xf0, 0xa3, 0x94, 0x3a, 0x12, 0x77, 0x33, 0x4d, 0x44, 0x78, 0x28, 0x3c, 0x9e, 0xfd, 0x65, 0x57, 0x16, 0x94,
 1092|     20|       0x6b, 0xfb, 0x59, 0xd0, 0xc8, 0x22, 0x36, 0xdb, 0xd2, 0x63, 0x98, 0x43, 0xa1, 0x04, 0x87, 0x86, 0xf7, 0xa6, 0x26,
 1093|     20|       0xbb, 0xd6, 0x59, 0x4d, 0xbf, 0x6a, 0x2e, 0xaa, 0x2b, 0xef, 0xe6, 0x78, 0xb6, 0x4e, 0xe0, 0x2f, 0xdc, 0x7c, 0xbe,
 1094|     20|       0x57, 0x19, 0x32, 0x7e, 0x2a, 0xd0, 0xb8, 0xba, 0x29, 0x00, 0x3c, 0x52, 0x7d, 0xa8, 0x49, 0x3b, 0x2d, 0xeb, 0x25,
 1095|     20|       0x49, 0xfa, 0xa3, 0xaa, 0x39, 0xa7, 0xc5, 0xa7, 0x50, 0x11, 0x36, 0xfb, 0xc6, 0x67, 0x4a, 0xf5, 0xa5, 0x12, 0x65,
 1096|     20|       0x7e, 0xb0, 0xdf, 0xaf, 0x4e, 0xb3, 0x61, 0x7f, 0x2f},
 1097|     20|  };
 1098|     20|  Exiv2::byte key = 0;
 1099|    100|  for (int i = 0; i < 4; ++i) {
  ------------------
  |  Branch (1099:19): [True: 80, False: 20]
  ------------------
 1100|     80|    key ^= static_cast<Exiv2::byte>(count >> (i * 8));
 1101|     80|  }
 1102|     20|  Exiv2::byte ci = xlat[0][serial & 0xff];
 1103|     20|  Exiv2::byte cj = xlat[1][key];
 1104|     20|  Exiv2::byte ck = 0x60;
 1105|  2.18k|  for (uint32_t i = 0; i < size; ++i) {
  ------------------
  |  Branch (1105:24): [True: 2.16k, False: 20]
  ------------------
 1106|  2.16k|    cj += ci * ck++;
 1107|  2.16k|    pData[i] ^= cj;
 1108|  2.16k|  }
 1109|     20|}
_ZNK5Exiv28Internal13NikonArrayIdxeqERKNS1_3KeyE:
  854|  10.5k|  bool operator==(const Key& key) const {
  855|  10.5k|    return key.tag_ == tag_ && 0 == strncmp(key.ver_, ver_, strlen(ver_)) && (size_ == 0 || key.size_ == size_);
  ------------------
  |  Branch (855:12): [True: 3.42k, False: 7.15k]
  |  Branch (855:32): [True: 607, False: 2.81k]
  |  Branch (855:79): [True: 552, False: 55]
  |  Branch (855:93): [True: 38, False: 17]
  ------------------
  856|  10.5k|  }

_ZN5Exiv28Internal8MnHeaderC2Ev:
   99|  21.6k|  MnHeader() = default;
_ZN5Exiv28Internal8MnHeaderD2Ev:
  101|  21.6k|  virtual ~MnHeader() = default;

_ZN5Exiv213MatroskaVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  599|  1.24k|MatroskaVideo::MatroskaVideo(BasicIo::UniquePtr io) : Image(ImageType::mkv, mdNone, std::move(io)) {
  600|  1.24k|}  // MatroskaVideo::MatroskaVideo
_ZNK5Exiv213MatroskaVideo8mimeTypeEv:
  602|  1.24k|std::string MatroskaVideo::mimeType() const {
  603|  1.24k|  return "video/matroska";
  604|  1.24k|}
_ZN5Exiv213MatroskaVideo12readMetadataEv:
  609|  1.24k|void MatroskaVideo::readMetadata() {
  610|  1.24k|  if (io_->open() != 0)
  ------------------
  |  Branch (610:7): [True: 0, False: 1.24k]
  ------------------
  611|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  612|       |
  613|       |  // Ensure that this is the correct image type
  614|  1.24k|  if (!isMkvType(*io_, false)) {
  ------------------
  |  Branch (614:7): [True: 0, False: 1.24k]
  ------------------
  615|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (615:9): [True: 0, False: 0]
  |  Branch (615:25): [True: 0, False: 0]
  ------------------
  616|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  617|      0|    throw Error(ErrorCode::kerNotAnImage, "Matroska");
  618|      0|  }
  619|       |
  620|  1.24k|  IoCloser closer(*io_);
  621|  1.24k|  clearMetadata();
  622|  1.24k|  continueTraversing_ = true;
  623|  1.24k|  height_ = width_ = 1;
  624|       |
  625|  1.24k|  xmpData_["Xmp.video.FileSize"] = io_->size() / bytesMB;
  626|  1.24k|  xmpData_["Xmp.video.MimeType"] = mimeType();
  627|       |
  628|  66.2k|  while (continueTraversing_)
  ------------------
  |  Branch (628:10): [True: 64.9k, False: 1.24k]
  ------------------
  629|  64.9k|    decodeBlock();
  630|       |
  631|  1.24k|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  632|  1.24k|}
_ZN5Exiv213MatroskaVideo11decodeBlockEv:
  634|  64.9k|void MatroskaVideo::decodeBlock() {
  635|  64.9k|  byte buf[8];
  636|  64.9k|  io_->read(buf, 1);
  637|       |
  638|  64.9k|  if (io_->eof()) {
  ------------------
  |  Branch (638:7): [True: 543, False: 64.4k]
  ------------------
  639|    543|    continueTraversing_ = false;
  640|    543|    return;
  641|    543|  }
  642|       |
  643|  64.4k|  uint32_t block_size = findBlockSize(buf[0]);  // 0-8
  644|  64.4k|  if (block_size > 0)
  ------------------
  |  Branch (644:7): [True: 64.2k, False: 158]
  ------------------
  645|  64.2k|    io_->read(buf + 1, block_size - 1);
  646|       |
  647|  64.4k|  auto tag_id = returnTagValue(buf, block_size);
  648|  64.4k|  const MatroskaTag* tag = Exiv2::find(matroskaTags, tag_id);
  649|       |
  650|  64.4k|  if (!tag) {
  ------------------
  |  Branch (650:7): [True: 498, False: 63.9k]
  ------------------
  651|    498|    continueTraversing_ = false;
  652|    498|    return;
  653|    498|  }
  654|       |
  655|       |  // tag->dump(std::cout);
  656|       |
  657|  63.9k|  if (tag->_id == Cues || tag->_id == Cluster) {
  ------------------
  |  Branch (657:7): [True: 159, False: 63.7k]
  |  Branch (657:27): [True: 0, False: 63.7k]
  ------------------
  658|      1|    continueTraversing_ = false;
  659|      1|    return;
  660|      1|  }
  661|       |
  662|  63.9k|  io_->read(buf, 1);
  663|  63.9k|  block_size = findBlockSize(buf[0]);  // 0-8
  664|       |
  665|  63.9k|  if (block_size > 0)
  ------------------
  |  Branch (665:7): [True: 63.7k, False: 182]
  ------------------
  666|  63.7k|    io_->read(buf + 1, block_size - 1);
  667|  63.9k|  size_t size = returnTagValue(buf, block_size);
  668|       |
  669|  63.9k|  if (tag->isComposite() && !tag->isSkipped())
  ------------------
  |  Branch (669:7): [True: 39.8k, False: 24.0k]
  |  Branch (669:29): [True: 39.8k, False: 0]
  ------------------
  670|  39.8k|    return;
  671|       |
  672|  24.0k|  const size_t bufMaxSize = 200;
  673|       |
  674|  24.0k|#ifndef SUPPRESS_WARNINGS
  675|  24.0k|  if (!tag->isSkipped() && size > bufMaxSize) {
  ------------------
  |  Branch (675:7): [True: 22.7k, False: 1.27k]
  |  Branch (675:28): [True: 119, False: 22.6k]
  ------------------
  676|    119|    EXV_WARNING << "Size " << size << " of Matroska tag 0x" << std::hex << tag->_id << std::dec << " is greater than "
  ------------------
  |  |  138|    119|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 119]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    119|  LogMsg(LogMsg::warn).os()
  ------------------
  677|      0|                << bufMaxSize << ": ignoring it.\n";
  678|    119|  }
  679|  24.0k|#endif
  680|  24.0k|  if (tag->isSkipped() || size > bufMaxSize) {
  ------------------
  |  Branch (680:7): [True: 1.27k, False: 22.7k]
  |  Branch (680:27): [True: 119, False: 22.6k]
  ------------------
  681|  1.21k|    io_->seek(size, BasicIo::cur);
  682|  1.21k|    return;
  683|  1.21k|  }
  684|       |
  685|  22.8k|  DataBuf buf2(bufMaxSize + 1);
  686|  22.8k|  io_->read(buf2.data(), size);
  687|  22.8k|  switch (tag->_type) {
  688|  3.23k|    case InternalField:
  ------------------
  |  Branch (688:5): [True: 3.23k, False: 19.5k]
  ------------------
  689|  3.23k|      decodeInternalTags(tag, buf2.data());
  690|  3.23k|      break;
  691|  2.58k|    case String:
  ------------------
  |  Branch (691:5): [True: 2.58k, False: 20.2k]
  ------------------
  692|  2.58k|    case Utf8:
  ------------------
  |  Branch (692:5): [True: 0, False: 22.8k]
  ------------------
  693|  2.58k|      decodeStringTags(tag, buf2.data());
  694|  2.58k|      break;
  695|  7.61k|    case Integer:
  ------------------
  |  Branch (695:5): [True: 7.61k, False: 15.2k]
  ------------------
  696|  9.09k|    case UInteger:
  ------------------
  |  Branch (696:5): [True: 1.47k, False: 21.3k]
  ------------------
  697|  9.09k|      decodeIntegerTags(tag, buf2.data());
  698|  9.09k|      break;
  699|  6.83k|    case Boolean:
  ------------------
  |  Branch (699:5): [True: 6.83k, False: 15.9k]
  ------------------
  700|  6.83k|      decodeBooleanTags(tag, buf2.data());
  701|  6.83k|      break;
  702|    506|    case Date:
  ------------------
  |  Branch (702:5): [True: 506, False: 22.3k]
  ------------------
  703|    506|      decodeDateTags(tag, buf2.data(), size);
  704|    506|      break;
  705|    403|    case Float:
  ------------------
  |  Branch (705:5): [True: 403, False: 22.4k]
  ------------------
  706|    403|      decodeFloatTags(tag, buf2.data());
  707|    403|      break;
  708|      0|    case Binary:
  ------------------
  |  Branch (708:5): [True: 0, False: 22.8k]
  ------------------
  709|      0|      break;
  710|      0|    case Master:
  ------------------
  |  Branch (710:5): [True: 0, False: 22.8k]
  ------------------
  711|      0|      break;
  712|      0|    default:
  ------------------
  |  Branch (712:5): [True: 0, False: 22.8k]
  ------------------
  713|      0|      break;
  714|  22.8k|  }
  715|  22.8k|}  // MatroskaVideo::decodeBlock
_ZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKh:
  717|  3.23k|void MatroskaVideo::decodeInternalTags(const MatroskaTag* tag, const byte* buf) {
  718|  3.23k|  uint64_t key = getULongLong(buf, bigEndian);
  719|  3.23k|  if (!key)
  ------------------
  |  Branch (719:7): [True: 108, False: 3.12k]
  ------------------
  720|    108|    return;
  721|       |
  722|  3.12k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  3.12k|    switch (tag->_id) {
  724|  3.12k|      case Xmp_video_VideoScanTpye:
  725|  3.12k|        return Exiv2::find(videoScanType, key);
  726|  3.12k|      case Xmp_audio_ChannelType:
  727|  3.12k|        return Exiv2::find(audioChannels, key);
  728|  3.12k|      case Xmp_video_ContentCompressAlgo:
  729|  3.12k|        return Exiv2::find(compressionAlgorithm, key);
  730|  3.12k|      case Xmp_video_ContentEncryptAlgo:
  731|  3.12k|        return Exiv2::find(encryptionAlgorithm, key);
  732|  3.12k|      case Xmp_video_ContentSignAlgo_1:
  733|  3.12k|      case Xmp_video_ContentSignAlgo_2:
  734|  3.12k|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|  3.12k|      case Xmp_video_ContentSignHashAlgo_1:
  736|  3.12k|      case Xmp_video_ContentSignHashAlgo_2:
  737|  3.12k|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|  3.12k|      case Xmp_video_ContentEncodingType:
  739|  3.12k|        return Exiv2::find(encodingType, key);
  740|  3.12k|      case Xmp_video_DisplayUnit:
  741|  3.12k|        return Exiv2::find(displayUnit, key);
  742|  3.12k|      case Xmp_video_AspectRatioType:
  743|  3.12k|        return Exiv2::find(aspectRatioType, key);
  744|  3.12k|      case Xmp_video_PhysicalEquivalent:
  745|  3.12k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|  3.12k|      case Xmp_video_TranslateCodec:
  747|  3.12k|        return Exiv2::find(chapterTranslateCodec, key);
  748|  3.12k|      case Video_Audio_CodecID:
  749|  3.12k|        return Exiv2::find(trackCodec, key);
  750|  3.12k|      case Video_Audio_CodecName:
  751|  3.12k|        return Exiv2::find(codecInfo, key);
  752|  3.12k|      case CodecDownloadURL:
  753|  3.12k|      case CodecInfoURL:
  754|  3.12k|        return Exiv2::find(codecDownloadUrl, key);
  755|  3.12k|    }
  756|  3.12k|    return nullptr;
  757|  3.12k|  }();
  758|  3.12k|  if (internalMt) {
  ------------------
  |  Branch (758:7): [True: 1.10k, False: 2.01k]
  ------------------
  759|  1.10k|    xmpData_[tag->_label] = internalMt->_label;
  760|  2.01k|  } else {
  761|  2.01k|    xmpData_[tag->_label] = key;
  762|  2.01k|  }
  763|  3.12k|}
_ZN5Exiv213MatroskaVideo16decodeStringTagsEPKNS_8Internal11MatroskaTagEPKh:
  765|  2.58k|void MatroskaVideo::decodeStringTags(const MatroskaTag* tag, const byte* buf) {
  766|  2.58k|  if (tag->_id == TrackNumber) {
  ------------------
  |  Branch (766:7): [True: 224, False: 2.35k]
  ------------------
  767|    224|    track_count_++;
  768|    224|    xmpData_[tag->_label] = track_count_;
  769|  2.35k|  } else {
  770|  2.35k|    xmpData_[tag->_label] = buf;
  771|  2.35k|  }
  772|  2.58k|}
_ZN5Exiv213MatroskaVideo17decodeIntegerTagsEPKNS_8Internal11MatroskaTagEPKh:
  774|  9.09k|void MatroskaVideo::decodeIntegerTags(const MatroskaTag* tag, const byte* buf) {
  775|  9.09k|  uint64_t value = getULongLong(buf, bigEndian);
  776|  9.09k|  if (!value)
  ------------------
  |  Branch (776:7): [True: 8.11k, False: 976]
  ------------------
  777|  8.11k|    return;
  778|       |
  779|    976|  if (tag->_id == Xmp_video_Width_1 || tag->_id == Xmp_video_Width_2)
  ------------------
  |  Branch (779:7): [True: 434, False: 542]
  |  Branch (779:40): [True: 134, False: 408]
  ------------------
  780|    568|    width_ = value;
  781|    976|  if (tag->_id == Xmp_video_Height_1 || tag->_id == Xmp_video_Height_2)
  ------------------
  |  Branch (781:7): [True: 284, False: 692]
  |  Branch (781:41): [True: 44, False: 648]
  ------------------
  782|    328|    height_ = value;
  783|    976|  xmpData_[tag->_label] = value;
  784|    976|}
_ZN5Exiv213MatroskaVideo17decodeBooleanTagsEPKNS_8Internal11MatroskaTagEPKh:
  786|  6.83k|void MatroskaVideo::decodeBooleanTags(const MatroskaTag* tag, const byte* buf) {
  787|  6.83k|  const MatroskaTag* internalMt = nullptr;
  788|  6.83k|  uint64_t key = getULongLong(buf, bigEndian);
  789|  6.83k|  if (!key)
  ------------------
  |  Branch (789:7): [True: 2.02k, False: 4.80k]
  ------------------
  790|  2.02k|    return;
  791|       |
  792|  4.80k|  switch (tag->_id) {
  793|  3.17k|    case TrackType:  // this tags is used internally only to deduce the type of track (video or audio)
  ------------------
  |  Branch (793:5): [True: 3.17k, False: 1.62k]
  ------------------
  794|  3.17k|      if (auto f = Exiv2::find(matroskaTrackType, key)) {
  ------------------
  |  Branch (794:16): [True: 132, False: 3.04k]
  ------------------
  795|    132|        stream_ = f->_id;
  796|    132|      }
  797|  3.17k|      break;
  798|    144|    case TrackUsed:
  ------------------
  |  Branch (798:5): [True: 144, False: 4.65k]
  ------------------
  799|    144|      internalMt = Exiv2::find(trackEnable, key);
  800|    144|      break;
  801|    433|    case TrackDefault:
  ------------------
  |  Branch (801:5): [True: 433, False: 4.37k]
  ------------------
  802|    433|      internalMt = Exiv2::find(defaultOn, key);
  803|    433|      break;
  804|    528|    case TrackForced:
  ------------------
  |  Branch (804:5): [True: 528, False: 4.27k]
  ------------------
  805|    528|      internalMt = Exiv2::find(trackForced, key);
  806|    528|      break;
  807|    132|    case TrackLacing:
  ------------------
  |  Branch (807:5): [True: 132, False: 4.67k]
  ------------------
  808|    132|      internalMt = Exiv2::find(trackLacing, key);
  809|    132|      break;
  810|    320|    case CodecDecodeAll:
  ------------------
  |  Branch (810:5): [True: 320, False: 4.48k]
  ------------------
  811|    320|      internalMt = Exiv2::find(codecDecodeAll, key);
  812|    320|      break;
  813|     60|    case CodecSettings:
  ------------------
  |  Branch (813:5): [True: 60, False: 4.74k]
  ------------------
  814|     60|      internalMt = Exiv2::find(codecSettings, key);
  815|     60|      break;
  816|      9|    case Xmp_video_TagDefault:
  ------------------
  |  Branch (816:5): [True: 9, False: 4.79k]
  ------------------
  817|      9|      internalMt = tag;
  818|      9|      break;
  819|      0|    default:
  ------------------
  |  Branch (819:5): [True: 0, False: 4.80k]
  ------------------
  820|      0|      break;
  821|  4.80k|  }
  822|       |
  823|  4.80k|  if (internalMt) {
  ------------------
  |  Branch (823:7): [True: 634, False: 4.16k]
  ------------------
  824|    634|    xmpData_[internalMt->_label] = "Yes";
  825|    634|  }
  826|  4.80k|}
_ZN5Exiv213MatroskaVideo14decodeDateTagsEPKNS_8Internal11MatroskaTagEPKhm:
  828|    506|void MatroskaVideo::decodeDateTags(const MatroskaTag* tag, const byte* buf, size_t size) {
  829|    506|  int64_t duration_in_ms = 0;
  830|    506|  uint64_t value;
  831|    506|  switch (tag->_id) {
  832|    241|    case Xmp_video_Duration:
  ------------------
  |  Branch (832:5): [True: 241, False: 265]
  ------------------
  833|    241|      if (size <= 4) {
  ------------------
  |  Branch (833:11): [True: 94, False: 147]
  ------------------
  834|     94|        duration_in_ms = std::llround(getFloat(buf, bigEndian) * time_code_scale_ * 1000.0);
  835|    147|      } else {
  836|    147|        duration_in_ms = std::llround(getDouble(buf, bigEndian) * time_code_scale_ * 1000);
  837|    147|      }
  838|    241|      xmpData_[tag->_label] = duration_in_ms;
  839|    241|      break;
  840|    215|    case Xmp_video_DateUTC:
  ------------------
  |  Branch (840:5): [True: 215, False: 291]
  ------------------
  841|    215|      value = getULongLong(buf, bigEndian);
  842|    215|      if (!value)
  ------------------
  |  Branch (842:11): [True: 46, False: 169]
  ------------------
  843|     46|        return;
  844|    169|      duration_in_ms = value / 1000000000;
  845|    169|      xmpData_[tag->_label] = duration_in_ms;
  846|    169|      break;
  847|       |
  848|     50|    case TimecodeScale:
  ------------------
  |  Branch (848:5): [True: 50, False: 456]
  ------------------
  849|     50|      value = getULongLong(buf, bigEndian);
  850|     50|      if (!value)
  ------------------
  |  Branch (850:11): [True: 29, False: 21]
  ------------------
  851|     29|        return;
  852|     21|      time_code_scale_ = static_cast<double>(value) / static_cast<double>(1000000000);
  853|     21|      xmpData_[tag->_label] = time_code_scale_;
  854|     21|      break;
  855|      0|    default:
  ------------------
  |  Branch (855:5): [True: 0, False: 506]
  ------------------
  856|      0|      break;
  857|    506|  }
  858|    506|}
_ZN5Exiv213MatroskaVideo15decodeFloatTagsEPKNS_8Internal11MatroskaTagEPKh:
  860|    403|void MatroskaVideo::decodeFloatTags(const MatroskaTag* tag, const byte* buf) {
  861|    403|  xmpData_[tag->_label] = getFloat(buf, bigEndian);
  862|       |
  863|    403|  switch (tag->_id) {
  864|     74|    case Xmp_audio_SampleRate:
  ------------------
  |  Branch (864:5): [True: 74, False: 329]
  ------------------
  865|    118|    case Xmp_audio_OutputSampleRate:
  ------------------
  |  Branch (865:5): [True: 44, False: 359]
  ------------------
  866|    118|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  867|    118|      break;
  868|      0|    case VideoFrameRate_DefaultDuration:
  ------------------
  |  Branch (868:5): [True: 0, False: 403]
  ------------------
  869|    285|    case Xmp_video_FrameRate: {
  ------------------
  |  Branch (869:5): [True: 285, False: 118]
  ------------------
  870|    285|      uint64_t key = getULongLong(buf, bigEndian);
  871|    285|      if (!key)
  ------------------
  |  Branch (871:11): [True: 8, False: 277]
  ------------------
  872|      8|        return;
  873|    277|      if (auto internalMt = Exiv2::find(streamRate, key)) {
  ------------------
  |  Branch (873:16): [True: 108, False: 169]
  ------------------
  874|    108|        double frame_rate = 0;
  875|    108|        switch (stream_) {
  876|     14|          case 1:  // video
  ------------------
  |  Branch (876:11): [True: 14, False: 94]
  ------------------
  877|     14|            frame_rate = 1000000000.0 / static_cast<double>(key);
  878|     14|            break;
  879|     18|          case 2:  // audio
  ------------------
  |  Branch (879:11): [True: 18, False: 90]
  ------------------
  880|     18|            frame_rate = static_cast<double>(key) / 1000;
  881|     18|            break;
  882|     76|          default:
  ------------------
  |  Branch (882:11): [True: 76, False: 32]
  ------------------
  883|     76|            break;
  884|    108|        }
  885|    108|        if (std::isgreater(frame_rate, 0.0))
  ------------------
  |  Branch (885:13): [True: 32, False: 76]
  ------------------
  886|     32|          xmpData_[internalMt->_label] = frame_rate;
  887|    108|      } else
  888|    169|        xmpData_[tag->_label] = "Variable Bit Rate";
  889|    277|    } break;
  890|    277|    default:
  ------------------
  |  Branch (890:5): [True: 0, False: 403]
  ------------------
  891|      0|      xmpData_[tag->_label] = getFloat(buf, bigEndian);
  892|      0|      break;
  893|    403|  }
  894|    403|}
_ZN5Exiv213MatroskaVideo13findBlockSizeEh:
  896|   128k|uint32_t MatroskaVideo::findBlockSize(byte b) {
  897|   128k|  if (b & 128)
  ------------------
  |  Branch (897:7): [True: 112k, False: 16.0k]
  ------------------
  898|   112k|    return 1;
  899|  16.0k|  if (b & 64)
  ------------------
  |  Branch (899:7): [True: 8.61k, False: 7.41k]
  ------------------
  900|  8.61k|    return 2;
  901|  7.41k|  if (b & 32)
  ------------------
  |  Branch (901:7): [True: 2.25k, False: 5.16k]
  ------------------
  902|  2.25k|    return 3;
  903|  5.16k|  if (b & 16)
  ------------------
  |  Branch (903:7): [True: 3.35k, False: 1.81k]
  ------------------
  904|  3.35k|    return 4;
  905|  1.81k|  if (b & 8)
  ------------------
  |  Branch (905:7): [True: 853, False: 960]
  ------------------
  906|    853|    return 5;
  907|    960|  if (b & 4)
  ------------------
  |  Branch (907:7): [True: 130, False: 830]
  ------------------
  908|    130|    return 6;
  909|    830|  if (b & 2)
  ------------------
  |  Branch (909:7): [True: 333, False: 497]
  ------------------
  910|    333|    return 7;
  911|    497|  if (b & 1)
  ------------------
  |  Branch (911:7): [True: 315, False: 182]
  ------------------
  912|    315|    return 8;
  913|    182|  return 0;
  914|    497|}
_ZN5Exiv214newMkvInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  916|  1.24k|Image::UniquePtr newMkvInstance(BasicIo::UniquePtr io, bool /*create*/) {
  917|  1.24k|  auto image = std::make_unique<MatroskaVideo>(std::move(io));
  918|  1.24k|  if (!image->good()) {
  ------------------
  |  Branch (918:7): [True: 0, False: 1.24k]
  ------------------
  919|      0|    return nullptr;
  920|      0|  }
  921|  1.24k|  return image;
  922|  1.24k|}
_ZN5Exiv29isMkvTypeERNS_7BasicIoEb:
  924|  9.20k|bool isMkvType(BasicIo& iIo, bool advance) {
  925|  9.20k|  bool result = true;
  926|  9.20k|  byte tmpBuf[4];
  927|  9.20k|  iIo.read(tmpBuf, 4);
  928|       |
  929|  9.20k|  if (iIo.error() || iIo.eof())
  ------------------
  |  Branch (929:7): [True: 0, False: 9.20k]
  |  Branch (929:22): [True: 139, False: 9.06k]
  ------------------
  930|    139|    return false;
  931|       |
  932|  9.06k|  if (0x1a != tmpBuf[0] || 0x45 != tmpBuf[1] || 0xdf != tmpBuf[2] || 0xa3 != tmpBuf[3]) {
  ------------------
  |  Branch (932:7): [True: 5.28k, False: 3.77k]
  |  Branch (932:28): [True: 11, False: 3.76k]
  |  Branch (932:49): [True: 7, False: 3.75k]
  |  Branch (932:70): [True: 11, False: 3.74k]
  ------------------
  933|  5.31k|    result = false;
  934|  5.31k|  }
  935|       |
  936|  9.06k|  if (!advance || !result)
  ------------------
  |  Branch (936:7): [True: 9.06k, False: 0]
  |  Branch (936:19): [True: 0, False: 0]
  ------------------
  937|  9.06k|    iIo.seek(0, BasicIo::beg);
  938|  9.06k|  return result;
  939|  9.20k|}
matroskavideo.cpp:_ZN5Exiv28InternalL14returnTagValueEPKhm:
  582|   128k|[[nodiscard]] static size_t returnTagValue(const byte* buf, size_t size) {
  583|   128k|  enforce(size > 0 && size <= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (583:11): [True: 127k, False: 182]
  |  Branch (583:23): [True: 127k, False: 0]
  ------------------
  584|       |
  585|   128k|  size_t b0 = buf[0] & (0xff >> size);
  586|   128k|  size_t tag = b0 << ((size - 1) * 8);
  587|   159k|  for (size_t i = 1; i < size; ++i) {
  ------------------
  |  Branch (587:22): [True: 31.4k, False: 128k]
  ------------------
  588|  31.4k|    tag |= static_cast<size_t>(buf[i]) << ((size - i - 1) * 8);
  589|  31.4k|  }
  590|       |
  591|   128k|  return tag;
  592|   128k|}
matroskavideo.cpp:_ZZN5Exiv213MatroskaVideo18decodeInternalTagsEPKNS_8Internal11MatroskaTagEPKhENK3$_0clEv:
  722|  3.12k|  auto internalMt = [=]() -> const MatroskaTag* {
  723|  3.12k|    switch (tag->_id) {
  ------------------
  |  Branch (723:13): [True: 3.12k, False: 0]
  ------------------
  724|    377|      case Xmp_video_VideoScanTpye:
  ------------------
  |  Branch (724:7): [True: 377, False: 2.74k]
  ------------------
  725|    377|        return Exiv2::find(videoScanType, key);
  726|    171|      case Xmp_audio_ChannelType:
  ------------------
  |  Branch (726:7): [True: 171, False: 2.95k]
  ------------------
  727|    171|        return Exiv2::find(audioChannels, key);
  728|    213|      case Xmp_video_ContentCompressAlgo:
  ------------------
  |  Branch (728:7): [True: 213, False: 2.91k]
  ------------------
  729|    213|        return Exiv2::find(compressionAlgorithm, key);
  730|    154|      case Xmp_video_ContentEncryptAlgo:
  ------------------
  |  Branch (730:7): [True: 154, False: 2.96k]
  ------------------
  731|    154|        return Exiv2::find(encryptionAlgorithm, key);
  732|     82|      case Xmp_video_ContentSignAlgo_1:
  ------------------
  |  Branch (732:7): [True: 82, False: 3.04k]
  ------------------
  733|    178|      case Xmp_video_ContentSignAlgo_2:
  ------------------
  |  Branch (733:7): [True: 96, False: 3.02k]
  ------------------
  734|    178|        return Exiv2::find(contentSignatureAlgorithm, key);
  735|     15|      case Xmp_video_ContentSignHashAlgo_1:
  ------------------
  |  Branch (735:7): [True: 15, False: 3.10k]
  ------------------
  736|    238|      case Xmp_video_ContentSignHashAlgo_2:
  ------------------
  |  Branch (736:7): [True: 223, False: 2.90k]
  ------------------
  737|    238|        return Exiv2::find(contentSignatureHashAlgorithm, key);
  738|     48|      case Xmp_video_ContentEncodingType:
  ------------------
  |  Branch (738:7): [True: 48, False: 3.07k]
  ------------------
  739|     48|        return Exiv2::find(encodingType, key);
  740|    310|      case Xmp_video_DisplayUnit:
  ------------------
  |  Branch (740:7): [True: 310, False: 2.81k]
  ------------------
  741|    310|        return Exiv2::find(displayUnit, key);
  742|    140|      case Xmp_video_AspectRatioType:
  ------------------
  |  Branch (742:7): [True: 140, False: 2.98k]
  ------------------
  743|    140|        return Exiv2::find(aspectRatioType, key);
  744|  1.10k|      case Xmp_video_PhysicalEquivalent:
  ------------------
  |  Branch (744:7): [True: 1.10k, False: 2.01k]
  ------------------
  745|  1.10k|        return Exiv2::find(chapterPhysicalEquivalent, key);
  746|    163|      case Xmp_video_TranslateCodec:
  ------------------
  |  Branch (746:7): [True: 163, False: 2.96k]
  ------------------
  747|    163|        return Exiv2::find(chapterTranslateCodec, key);
  748|      0|      case Video_Audio_CodecID:
  ------------------
  |  Branch (748:7): [True: 0, False: 3.12k]
  ------------------
  749|      0|        return Exiv2::find(trackCodec, key);
  750|     14|      case Video_Audio_CodecName:
  ------------------
  |  Branch (750:7): [True: 14, False: 3.10k]
  ------------------
  751|     14|        return Exiv2::find(codecInfo, key);
  752|      2|      case CodecDownloadURL:
  ------------------
  |  Branch (752:7): [True: 2, False: 3.12k]
  ------------------
  753|      8|      case CodecInfoURL:
  ------------------
  |  Branch (753:7): [True: 6, False: 3.11k]
  ------------------
  754|      8|        return Exiv2::find(codecDownloadUrl, key);
  755|  3.12k|    }
  756|      0|    return nullptr;
  757|  3.12k|  }();

_ZN5Exiv23KeyD2Ev:
    9|  56.6M|Key::~Key() = default;
_ZN5Exiv29MetadatumD2Ev:
   15|  37.6M|Metadatum::~Metadatum() = default;
_ZNK5Exiv29Metadatum5printEPKNS_8ExifDataE:
   17|  1.27M|std::string Metadatum::print(const ExifData* pMetadata) const {
   18|  1.27M|  std::ostringstream os;
   19|  1.27M|  write(os, pMetadata);
   20|  1.27M|  return os.str();
   21|  1.27M|}
_ZNK5Exiv29Metadatum8toUint32Em:
   23|  20.6k|uint32_t Metadatum::toUint32(size_t n) const {
   24|  20.6k|  return static_cast<uint32_t>(toInt64(n));
   25|  20.6k|}

_ZN5Exiv28Internal16MinoltaMakerNote28printMinoltaExposureSpeedStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  295|    620|std::ostream& MinoltaMakerNote::printMinoltaExposureSpeedStd(std::ostream& os, const Value& value, const ExifData*) {
  296|       |  // From the PHP JPEG Metadata Toolkit
  297|    620|  os << (value.toInt64() / 8) - 1;
  298|    620|  return os;
  299|    620|}
_ZN5Exiv28Internal16MinoltaMakerNote27printMinoltaExposureTimeStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  301|    614|std::ostream& MinoltaMakerNote::printMinoltaExposureTimeStd(std::ostream& os, const Value& value, const ExifData*) {
  302|       |  // From the PHP JPEG Metadata Toolkit
  303|    614|  os << (value.toInt64() / 8) - 6;
  304|    614|  return os;
  305|    614|}
_ZN5Exiv28Internal16MinoltaMakerNote22printMinoltaFNumberStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  307|    604|std::ostream& MinoltaMakerNote::printMinoltaFNumberStd(std::ostream& os, const Value& value, const ExifData*) {
  308|       |  // From the PHP JPEG Metadata Toolkit
  309|    604|  os << (value.toInt64() / 8) - 1;
  310|    604|  return os;
  311|    604|}
_ZN5Exiv28Internal16MinoltaMakerNote35printMinoltaExposureCompensationStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  314|    602|                                                                    const ExifData*) {
  315|       |  // From the PHP JPEG Metadata Toolkit
  316|    602|  os << value.toInt64() / 256;
  317|    602|  return os;
  318|    602|}
_ZN5Exiv28Internal16MinoltaMakerNote26printMinoltaFocalLengthStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  320|    602|std::ostream& MinoltaMakerNote::printMinoltaFocalLengthStd(std::ostream& os, const Value& value, const ExifData*) {
  321|       |  // From the PHP JPEG Metadata Toolkit
  322|    602|  os << (value.toInt64() / 3) - 2;
  323|    602|  return os;
  324|    602|}
_ZN5Exiv28Internal16MinoltaMakerNote19printMinoltaDateStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  326|    602|std::ostream& MinoltaMakerNote::printMinoltaDateStd(std::ostream& os, const Value& value, const ExifData*) {
  327|       |  // From the PHP JPEG Metadata Toolkit
  328|    602|  auto val = value.toInt64();
  329|    602|  os << stringFormat("{}:{:02}:{:02}", val / 65536, (val % 65536) / 256, val % 256);
  ------------------
  |  |   18|    602|#define stringFormat std::format
  ------------------
  330|    602|  return os;
  331|    602|}
_ZN5Exiv28Internal16MinoltaMakerNote19printMinoltaTimeStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  333|    588|std::ostream& MinoltaMakerNote::printMinoltaTimeStd(std::ostream& os, const Value& value, const ExifData*) {
  334|       |  // From the PHP JPEG Metadata Toolkit
  335|    588|  auto val = value.toInt64();
  336|    588|  os << stringFormat("{:02}:{:02}:{:02}", val / 65536, (val % 65536) / 256, val % 256);
  ------------------
  |  |   18|    588|#define stringFormat std::format
  ------------------
  337|    588|  return os;
  338|    588|}
_ZN5Exiv28Internal16MinoltaMakerNote32printMinoltaFlashExposureCompStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  341|    578|                                                                 const ExifData*) {
  342|       |  // From the PHP JPEG Metadata Toolkit
  343|    578|  os << (value.toInt64() - 6) / 3;
  344|    578|  return os;
  345|    578|}
_ZN5Exiv28Internal16MinoltaMakerNote27printMinoltaWhiteBalanceStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  347|  1.73k|std::ostream& MinoltaMakerNote::printMinoltaWhiteBalanceStd(std::ostream& os, const Value& value, const ExifData*) {
  348|       |  // From the PHP JPEG Metadata Toolkit
  349|  1.73k|  os << value.toInt64() / 256;
  350|  1.73k|  return os;
  351|  1.73k|}
_ZN5Exiv28Internal16MinoltaMakerNote25printMinoltaBrightnessStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  353|    560|std::ostream& MinoltaMakerNote::printMinoltaBrightnessStd(std::ostream& os, const Value& value, const ExifData*) {
  354|       |  // From the PHP JPEG Metadata Toolkit
  355|    560|  os << (value.toInt64() / 8) - 6;
  356|    560|  return os;
  357|    560|}
_ZN5Exiv28Internal16MinoltaMakerNote32printMinoltaExposureManualBias5DERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  685|     52|                                                                 const ExifData*) {
  686|       |  // From Xavier Raynaud: the value is converted from 0:256 to -5.33:5.33
  687|     52|  return os << stringFormat("{:.2f}", static_cast<float>(value.toInt64() - 128) / 24);
  ------------------
  |  |   18|     52|#define stringFormat std::format
  ------------------
  688|     52|}
_ZN5Exiv28Internal16MinoltaMakerNote34printMinoltaExposureCompensation5DERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  692|     64|                                                                   const ExifData*) {
  693|     64|  return os << stringFormat("{:.2f}", static_cast<float>(value.toInt64() - 300) / 100);
  ------------------
  |  |   18|     64|#define stringFormat std::format
  ------------------
  694|     64|}
_ZN5Exiv28Internal22printMinoltaSonyLensIDERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1821|  3.76k|std::ostream& printMinoltaSonyLensID(std::ostream& os, const Value& value, const ExifData* metadata) {
 1822|       |  //! List of lens ids which require special treatment from printMinoltaSonyLensID
 1823|  3.76k|  static constexpr struct LensIdFct {
 1824|  3.76k|    uint32_t idx;
 1825|  3.76k|    PrintFct fct;
 1826|       |
 1827|  3.76k|    bool operator==(uint32_t i) const {
 1828|  3.76k|      return i == idx;
 1829|  3.76k|    }
 1830|  3.76k|  } lensIdFct[] = {
 1831|  3.76k|      {0x001cu, &resolveLens0x1c}, {0x0029u, &resolveLens0x29}, {0x0034u, &resolveLens0x34},
 1832|  3.76k|      {0x0080u, &resolveLens0x80}, {0x00ffu, &resolveLens0xff}, {0xffffu, &resolveLens0xffff},
 1833|       |      //{0x00ffu, &resolveLensTypeUsingExiftool}, // was used for debugging
 1834|  3.76k|  };
 1835|       |  // #1145 end - respect lenses with shared LensID
 1836|       |  // ----------------------------------------------------------------------
 1837|       |
 1838|       |  // #1034
 1839|  3.76k|  const std::string undefined("undefined");
 1840|  3.76k|  const std::string minolta("minolta");
 1841|  3.76k|  const std::string sony("sony");
 1842|  3.76k|  if (Internal::readExiv2Config(minolta, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1842:7): [True: 0, False: 3.76k]
  ------------------
 1843|      0|    return os << Internal::readExiv2Config(minolta, value.toString(), undefined);
 1844|      0|  }
 1845|  3.76k|  if (Internal::readExiv2Config(sony, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1845:7): [True: 0, False: 3.76k]
  ------------------
 1846|      0|    return os << Internal::readExiv2Config(sony, value.toString(), undefined);
 1847|      0|  }
 1848|       |
 1849|       |  // #1145 - respect lenses with shared LensID
 1850|  3.76k|  uint32_t index = value.toUint32();
 1851|  3.76k|  if (metadata)
  ------------------
  |  Branch (1851:7): [True: 1.88k, False: 1.88k]
  ------------------
 1852|  1.88k|    if (auto f = Exiv2::find(lensIdFct, index))
  ------------------
  |  Branch (1852:14): [True: 1.17k, False: 709]
  ------------------
 1853|  1.17k|      return f->fct(os, value, metadata);
 1854|  2.59k|  return EXV_PRINT_TAG(minoltaSonyLensID)(os, value, metadata);
  ------------------
  |  |  199|  2.59k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1855|  3.76k|}
_ZN5Exiv28Internal25printMinoltaSonyColorModeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1867|    146|std::ostream& printMinoltaSonyColorMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1868|    146|  return EXV_PRINT_TAG(minoltaSonyColorMode)(os, value, metadata);
  ------------------
  |  |  199|    146|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1869|    146|}
_ZN5Exiv28Internal25printMinoltaSonyBoolValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1879|  2.77k|std::ostream& printMinoltaSonyBoolValue(std::ostream& os, const Value& value, const ExifData* metadata) {
 1880|  2.77k|  return EXV_PRINT_TAG(minoltaSonyBoolFunction)(os, value, metadata);
  ------------------
  |  |  199|  2.77k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1881|  2.77k|}
_ZN5Exiv28Internal32printMinoltaSonyBoolInverseValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1891|    748|std::ostream& printMinoltaSonyBoolInverseValue(std::ostream& os, const Value& value, const ExifData* metadata) {
 1892|    748|  return EXV_PRINT_TAG(minoltaSonyBoolInverseFunction)(os, value, metadata);
  ------------------
  |  |  199|    748|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1893|    748|}
_ZN5Exiv28Internal26printMinoltaSonyAFAreaModeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1904|    562|std::ostream& printMinoltaSonyAFAreaMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1905|    562|  return EXV_PRINT_TAG(minoltaSonyAFAreaMode)(os, value, metadata);
  ------------------
  |  |  199|    562|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1906|    562|}
_ZN5Exiv28Internal32printMinoltaSonyLocalAFAreaPointERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1917|    562|std::ostream& printMinoltaSonyLocalAFAreaPoint(std::ostream& os, const Value& value, const ExifData* metadata) {
 1918|    562|  return EXV_PRINT_TAG(minoltaSonyLocalAFAreaPoint)(os, value, metadata);
  ------------------
  |  |  199|    562|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1919|    562|}
_ZN5Exiv28Internal41printMinoltaSonyDynamicRangeOptimizerModeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1929|    706|                                                        const ExifData* metadata) {
 1930|    706|  return EXV_PRINT_TAG(minoltaSonyDynamicRangeOptimizerMode)(os, value, metadata);
  ------------------
  |  |  199|    706|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1931|    706|}
_ZN5Exiv28Internal43printMinoltaSonyPrioritySetupShutterReleaseERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1942|    486|                                                          const ExifData* metadata) {
 1943|    486|  return EXV_PRINT_TAG(minoltaSonyPrioritySetupShutterRelease)(os, value, metadata);
  ------------------
  |  |  199|    486|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1944|    486|}
_ZN5Exiv28Internal25printMinoltaSonyQualityCsERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1954|    418|std::ostream& printMinoltaSonyQualityCs(std::ostream& os, const Value& value, const ExifData* metadata) {
 1955|    418|  return EXV_PRINT_TAG(minoltaSonyQualityCs)(os, value, metadata);
  ------------------
  |  |  199|    418|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1956|    418|}
_ZN5Exiv28Internal24printMinoltaSonyRotationERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1967|    474|std::ostream& printMinoltaSonyRotation(std::ostream& os, const Value& value, const ExifData* metadata) {
 1968|    474|  return EXV_PRINT_TAG(minoltaSonyRotation)(os, value, metadata);
  ------------------
  |  |  199|    474|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1969|    474|}
_ZN5Exiv28Internal25printMinoltaSonySceneModeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2002|  2.34k|std::ostream& printMinoltaSonySceneMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 2003|  2.34k|  return EXV_PRINT_TAG(minoltaSonySceneMode)(os, value, metadata);
  ------------------
  |  |  199|  2.34k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2004|  2.34k|}
_ZN5Exiv28Internal34printMinoltaSonyTeleconverterModelERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2021|    424|std::ostream& printMinoltaSonyTeleconverterModel(std::ostream& os, const Value& value, const ExifData* metadata) {
 2022|    424|  return EXV_PRINT_TAG(minoltaSonyTeleconverterModel)(os, value, metadata);
  ------------------
  |  |  199|    424|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2023|    424|}
_ZN5Exiv28Internal28printMinoltaSonyZoneMatchingERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2034|    150|std::ostream& printMinoltaSonyZoneMatching(std::ostream& os, const Value& value, const ExifData* metadata) {
 2035|    150|  return EXV_PRINT_TAG(minoltaSonyZoneMatching)(os, value, metadata);
  ------------------
  |  |  199|    150|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2036|    150|}
minoltamn_int.cpp:_ZN5Exiv28InternalL15resolveLens0x1cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1661|     74|static std::ostream& resolveLens0x1c(std::ostream& os, const Value& value, const ExifData* metadata) {
 1662|     74|  try {
 1663|     74|    long index = 0;
 1664|       |
 1665|     74|    std::string model = getKeyString("Exif.Image.Model", metadata);
 1666|     74|    std::string lens = getKeyString("Exif.Photo.LensModel", metadata);
 1667|       |
 1668|     74|    if (model == "SLT-A77V" && lens == "100mm F2.8 Macro") {
  ------------------
  |  Branch (1668:9): [True: 20, False: 54]
  |  Branch (1668:32): [True: 0, False: 20]
  ------------------
 1669|      0|      index = 2;
 1670|      0|    }
 1671|       |
 1672|     74|    if (index > 0) {
  ------------------
  |  Branch (1672:9): [True: 0, False: 74]
  ------------------
 1673|      0|      const long lensID = 0x1c;
 1674|      0|      return resolvedLens(os, lensID, index);
 1675|      0|    }
 1676|     74|  } catch (...) {
 1677|      0|  }
 1678|     74|  return EXV_PRINT_TAG(minoltaSonyLensID)(os, value, metadata);
  ------------------
  |  |  199|     74|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1679|     74|}
minoltamn_int.cpp:_ZN5Exiv28InternalL12getKeyStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1598|  2.25k|static std::string getKeyString(const std::string& key, const ExifData* metadata) {
 1599|  2.25k|  std::string result;
 1600|  2.25k|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1600:7): [True: 1.05k, False: 1.20k]
  ------------------
 1601|  1.05k|    result = metadata->findKey(ExifKey(key))->toString();
 1602|  1.05k|  }
 1603|  2.25k|  return result;
 1604|  2.25k|}
minoltamn_int.cpp:_ZN5Exiv28InternalL12resolvedLensERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEll:
 1655|    155|static std::ostream& resolvedLens(std::ostream& os, long lensID, long index) {
 1656|    155|  auto td = Exiv2::find(minoltaSonyLensID, lensID);
 1657|    155|  std::vector<std::string> tokens = split(td[0].label_, "|");
 1658|    155|  return os << _(trim(tokens.at(index - 1)).c_str());
  ------------------
  |  |   40|    155|#define _(String) (String)
  ------------------
 1659|    155|}
minoltamn_int.cpp:_ZN5Exiv28InternalL5splitERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
 1635|    155|static std::vector<std::string> split(const std::string& str, const std::string& delim) {
 1636|    155|  std::vector<std::string> tokens;
 1637|    155|  size_t prev = 0;
 1638|    155|  size_t pos = 0;
 1639|    633|  while (pos < str.length() && prev < str.length()) {
  ------------------
  |  Branch (1639:10): [True: 478, False: 155]
  |  Branch (1639:32): [True: 478, False: 0]
  ------------------
 1640|    478|    pos = str.find(delim, prev);
 1641|    478|    if (pos == std::string::npos)
  ------------------
  |  Branch (1641:9): [True: 155, False: 323]
  ------------------
 1642|    155|      pos = str.length();
 1643|    478|    std::string token = str.substr(prev, pos - prev);
 1644|    478|    if (!token.empty())
  ------------------
  |  Branch (1644:9): [True: 478, False: 0]
  ------------------
 1645|    478|      tokens.push_back(std::move(token));
 1646|    478|    prev = pos + delim.length();
 1647|    478|  }
 1648|    155|  return tokens;
 1649|    155|}
minoltamn_int.cpp:_ZN5Exiv28InternalL4trimERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKc:
 1630|    155|static std::string& trim(std::string& s, const char* t = " \t\n\r\f\v") {
 1631|    155|  return ltrim(rtrim(s, t), t);
 1632|    155|}
minoltamn_int.cpp:_ZN5Exiv28InternalL5ltrimERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKc:
 1618|    155|static std::string& ltrim(std::string& s, const char* t = " \t\n\r\f\v") {
 1619|    155|  s.erase(0, s.find_first_not_of(t));
 1620|    155|  return s;
 1621|    155|}
minoltamn_int.cpp:_ZN5Exiv28InternalL5rtrimERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKc:
 1624|    155|static std::string& rtrim(std::string& s, const char* t = " \t\n\r\f\v") {
 1625|    155|  s.erase(s.find_last_not_of(t) + 1);
 1626|    155|  return s;
 1627|    155|}
minoltamn_int.cpp:_ZN5Exiv28InternalL15resolveLens0x29ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1681|    115|static std::ostream& resolveLens0x29(std::ostream& os, const Value& value, const ExifData* metadata) {
 1682|    115|  try {
 1683|    115|    long index = 0;
 1684|       |
 1685|    115|    std::string model = getKeyString("Exif.Image.Model", metadata);
 1686|    115|    std::string lens = getKeyString("Exif.Photo.LensModel", metadata);
 1687|       |
 1688|    115|    if (model == "SLT-A77V" && lens == "DT 11-18mm F4.5-5.6") {
  ------------------
  |  Branch (1688:9): [True: 8, False: 107]
  |  Branch (1688:32): [True: 0, False: 8]
  ------------------
 1689|      0|      index = 2;
 1690|      0|    }
 1691|       |
 1692|    115|    if (index > 0) {
  ------------------
  |  Branch (1692:9): [True: 0, False: 115]
  ------------------
 1693|      0|      const long lensID = 0x29;
 1694|      0|      return resolvedLens(os, lensID, index);
 1695|      0|    }
 1696|    115|  } catch (...) {
 1697|      0|  }
 1698|    115|  return EXV_PRINT_TAG(minoltaSonyLensID)(os, value, metadata);
  ------------------
  |  |  199|    115|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1699|    115|}
minoltamn_int.cpp:_ZN5Exiv28InternalL15resolveLens0x34ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1701|    261|static std::ostream& resolveLens0x34(std::ostream& os, const Value& value, const ExifData* metadata) {
 1702|    261|  try {
 1703|    261|    long index = 0;
 1704|       |
 1705|    261|    std::string model = getKeyString("Exif.Image.Model", metadata);
 1706|    261|    std::string maxAperture = getKeyString("Exif.Photo.MaxApertureValue", metadata);
 1707|    261|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1708|       |
 1709|       |    // F2_8
 1710|    261|    if (model == "SLT-A77V" && maxAperture == "760/256") {
  ------------------
  |  Branch (1710:9): [True: 63, False: 198]
  |  Branch (1710:32): [True: 0, False: 63]
  ------------------
 1711|      0|      index = 4;
 1712|      0|    }
 1713|    261|    if (model == "SLT-A77V" && inRange(focalLength, 70, 300)) {
  ------------------
  |  Branch (1713:9): [True: 63, False: 198]
  |  Branch (1713:32): [True: 13, False: 50]
  ------------------
 1714|     13|      index = 3;
 1715|     13|    }
 1716|       |
 1717|    261|    if (index > 0) {
  ------------------
  |  Branch (1717:9): [True: 13, False: 248]
  ------------------
 1718|     13|      const long lensID = 0x34;
 1719|     13|      return resolvedLens(os, lensID, index);
 1720|     13|    }
 1721|    261|  } catch (...) {
 1722|     86|  }
 1723|    248|  return EXV_PRINT_TAG(minoltaSonyLensID)(os, value, metadata);
  ------------------
  |  |  199|    248|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1724|    261|}
minoltamn_int.cpp:_ZN5Exiv28InternalL10getKeyLongERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataEi:
 1607|    844|static long getKeyLong(const std::string& key, const ExifData* metadata, int which) {
 1608|    844|  long result = -1;
 1609|    844|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1609:7): [True: 361, False: 483]
  ------------------
 1610|    361|    result = static_cast<long>(metadata->findKey(ExifKey(key))->toFloat(which));
 1611|    361|  }
 1612|    844|  return result;
 1613|    844|}
minoltamn_int.cpp:_ZN5Exiv28InternalL7inRangeElll:
 1651|     63|static bool inRange(long value, long min, long max) {
 1652|     63|  return min <= value && value <= max;
  ------------------
  |  Branch (1652:10): [True: 17, False: 46]
  |  Branch (1652:26): [True: 13, False: 4]
  ------------------
 1653|     63|}
minoltamn_int.cpp:_ZN5Exiv28InternalL15resolveLens0x80ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1726|    273|static std::ostream& resolveLens0x80(std::ostream& os, const Value& value, const ExifData* metadata) {
 1727|    273|  try {
 1728|    273|    long index = 0;
 1729|       |
 1730|    273|    std::string model = getKeyString("Exif.Image.Model", metadata);
 1731|    273|    std::string maxAperture = getKeyString("Exif.Photo.MaxApertureValue", metadata);
 1732|    273|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1733|       |
 1734|       |    // F4
 1735|    273|    if (model == "SLT-A77V" && maxAperture == "1024/256" && inRange(focalLength, 18, 200)) {
  ------------------
  |  Branch (1735:9): [True: 23, False: 250]
  |  Branch (1735:32): [True: 0, False: 23]
  |  Branch (1735:61): [True: 0, False: 0]
  ------------------
 1736|      0|      index = 2;
 1737|      0|    }
 1738|       |
 1739|    273|    if (index > 0) {
  ------------------
  |  Branch (1739:9): [True: 0, False: 273]
  ------------------
 1740|      0|      const long lensID = 0x80;
 1741|      0|      return resolvedLens(os, lensID, index);
 1742|      0|    }
 1743|    273|  } catch (...) {
 1744|     76|  }
 1745|    273|  return EXV_PRINT_TAG(minoltaSonyLensID)(os, value, metadata);
  ------------------
  |  |  199|    273|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1746|    273|}
minoltamn_int.cpp:_ZN5Exiv28InternalL15resolveLens0xffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1748|    310|static std::ostream& resolveLens0xff(std::ostream& os, const Value& value, const ExifData* metadata) {
 1749|    310|  try {
 1750|    310|    long index = 0;
 1751|       |
 1752|    310|    std::string model = getKeyString("Exif.Image.Model", metadata);
 1753|    310|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1754|    310|    std::string maxAperture = getKeyString("Exif.Photo.MaxApertureValue", metadata);
 1755|       |
 1756|       |    // F2_8
 1757|    310|    if (model == "SLT-A77V" && maxAperture == "760/256" && inRange(focalLength, 17, 50)) {
  ------------------
  |  Branch (1757:9): [True: 46, False: 264]
  |  Branch (1757:32): [True: 0, False: 46]
  |  Branch (1757:60): [True: 0, False: 0]
  ------------------
 1758|      0|      index = 1;
 1759|      0|    }
 1760|       |
 1761|    310|    if (index > 0) {
  ------------------
  |  Branch (1761:9): [True: 0, False: 310]
  ------------------
 1762|      0|      const long lensID = 0xff;
 1763|      0|      return resolvedLens(os, lensID, index);
 1764|      0|    }
 1765|    310|  } catch (...) {
 1766|     97|  }
 1767|    310|  return EXV_PRINT_TAG(minoltaSonyLensID)(os, value, metadata);
  ------------------
  |  |  199|    310|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1768|    310|}
minoltamn_int.cpp:_ZN5Exiv28InternalL17resolveLens0xffffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1770|    142|static std::ostream& resolveLens0xffff(std::ostream& os, const Value& value, const ExifData* metadata) {
 1771|    142|  try {
 1772|    142|    long index = 1;
 1773|       |
 1774|       |    // #1153
 1775|    142|    std::string model = getKeyString("Exif.Image.Model", metadata);
 1776|    142|    std::string maxAperture = getKeyString("Exif.Photo.MaxApertureValue", metadata);
 1777|       |
 1778|    142|    std::string F1_8 = "434/256";
 1779|    142|    static constexpr const char* maxApertures[] = {
 1780|    142|        "926/256",   // F3.5
 1781|    142|        "1024/256",  // F4
 1782|    142|        "1110/256",  // F4.5
 1783|    142|        "1188/256",  // F5
 1784|    142|        "1272/256",  // F5.6
 1785|    142|    };
 1786|       |
 1787|    142|    if (model == "ILCE-6000" && maxAperture == F1_8)
  ------------------
  |  Branch (1787:9): [True: 6, False: 136]
  |  Branch (1787:33): [True: 0, False: 6]
  ------------------
 1788|      0|      try {
 1789|      0|        long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1790|      0|        if (focalLength > 0) {
  ------------------
  |  Branch (1790:13): [True: 0, False: 0]
  ------------------
 1791|      0|          long focalL35mm = getKeyLong("Exif.Photo.FocalLengthIn35mmFilm", metadata);
 1792|      0|          long focalRatio = (focalL35mm * 100) / focalLength;
 1793|      0|          if (inRange(focalRatio, 145, 155))
  ------------------
  |  Branch (1793:15): [True: 0, False: 0]
  ------------------
 1794|      0|            index = 2;
 1795|      0|        }
 1796|      0|      } catch (...) {
 1797|      0|      }
 1798|       |
 1799|    142|    if (model == "ILCE-6000" && Exiv2::find(maxApertures, maxAperture))
  ------------------
  |  Branch (1799:9): [True: 6, False: 136]
  |  Branch (1799:33): [True: 0, False: 6]
  ------------------
 1800|      0|      try {
 1801|      0|        long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1802|      0|        if (focalLength > 0) {
  ------------------
  |  Branch (1802:13): [True: 0, False: 0]
  ------------------
 1803|      0|          long focalL35mm = getKeyLong("Exif.Photo.FocalLengthIn35mmFilm", metadata);
 1804|      0|          long focalRatio = (focalL35mm * 100) / focalLength;
 1805|      0|          if (inRange(focalRatio, 145, 155))
  ------------------
  |  Branch (1805:15): [True: 0, False: 0]
  ------------------
 1806|      0|            index = 3;
 1807|      0|        }
 1808|      0|      } catch (...) {
 1809|      0|      }
 1810|       |
 1811|    142|    if (index > 0) {
  ------------------
  |  Branch (1811:9): [True: 142, False: 0]
  ------------------
 1812|    142|      const long lensID = 0xffff;
 1813|    142|      return resolvedLens(os, lensID, index);
 1814|    142|    }
 1815|    142|  } catch (...) {
 1816|      0|  }
 1817|       |
 1818|      0|  return EXV_PRINT_TAG(minoltaSonyLensID)(os, value, metadata);
  ------------------
  |  |  199|      0|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1819|    142|}
minoltamn_int.cpp:_ZZN5Exiv28Internal22printMinoltaSonyLensIDERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK9LensIdFcteqEj:
 1827|  8.83k|    bool operator==(uint32_t i) const {
 1828|  8.83k|      return i == idx;
 1829|  8.83k|    }

_ZN5Exiv28Internal16MinoltaMakerNote7tagListEv:
   25|   155k|  static constexpr auto tagList() {
   26|   155k|    return tagInfo_;
   27|   155k|  }
_ZN5Exiv28Internal16MinoltaMakerNote11tagListCs5DEv:
   37|   775k|  static constexpr auto tagListCs5D() {
   38|   775k|    return tagInfoCs5D_;
   39|   775k|  }
_ZN5Exiv28Internal16MinoltaMakerNote11tagListCs7DEv:
   33|  1.15M|  static constexpr auto tagListCs7D() {
   34|  1.15M|    return tagInfoCs7D_;
   35|  1.15M|  }
_ZN5Exiv28Internal16MinoltaMakerNote12tagListCsStdEv:
   29|   343k|  static constexpr auto tagListCsStd() {
   30|   343k|    return tagInfoCsStd_;
   31|   343k|  }
_ZN5Exiv28Internal16MinoltaMakerNote13tagListCsA100Ev:
   41|  33.3k|  static constexpr auto tagListCsA100() {
   42|  33.3k|    return tagInfoCsA100_;
   43|  33.3k|  }

_ZN5Exiv28MrwImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   24|    129|    Image(ImageType::mrw, mdExif | mdIptc | mdXmp, std::move(io)) {
   25|    129|}
_ZNK5Exiv28MrwImage10pixelWidthEv:
   31|      3|uint32_t MrwImage::pixelWidth() const {
   32|      3|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageWidth"));
   33|      3|  if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
  ------------------
  |  Branch (33:7): [True: 0, False: 3]
  |  Branch (33:7): [True: 0, False: 3]
  |  Branch (33:40): [True: 0, False: 0]
  ------------------
   34|      0|    return imageWidth->toUint32();
   35|      0|  }
   36|      3|  return 0;
   37|      3|}
_ZNK5Exiv28MrwImage11pixelHeightEv:
   39|      3|uint32_t MrwImage::pixelHeight() const {
   40|      3|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageLength"));
   41|      3|  if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
  ------------------
  |  Branch (41:7): [True: 0, False: 3]
  |  Branch (41:7): [True: 0, False: 3]
  |  Branch (41:41): [True: 0, False: 0]
  ------------------
   42|      0|    return imageHeight->toUint32();
   43|      0|  }
   44|      3|  return 0;
   45|      3|}
_ZN5Exiv28MrwImage12readMetadataEv:
   62|    129|void MrwImage::readMetadata() {
   63|       |#ifdef EXIV2_DEBUG_MESSAGES
   64|       |  std::cerr << "Reading MRW file " << io_->path() << "\n";
   65|       |#endif
   66|    129|  if (io_->open() != 0) {
  ------------------
  |  Branch (66:7): [True: 0, False: 129]
  ------------------
   67|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   68|      0|  }
   69|    129|  IoCloser closer(*io_);
   70|       |  // Ensure that this is the correct image type
   71|    129|  if (!isMrwType(*io_, false)) {
  ------------------
  |  Branch (71:7): [True: 0, False: 129]
  ------------------
   72|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (72:9): [True: 0, False: 0]
  |  Branch (72:25): [True: 0, False: 0]
  ------------------
   73|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   74|      0|    throw Error(ErrorCode::kerNotAnImage, "MRW");
   75|      0|  }
   76|    129|  clearMetadata();
   77|       |
   78|       |  // Find the TTW block and read it into a buffer
   79|    129|  uint32_t const len = 8;
   80|    129|  byte tmp[len];
   81|    129|  io_->read(tmp, len);
   82|    129|  uint32_t pos = len;
   83|    129|  uint32_t const end = getULong(tmp + 4, bigEndian);
   84|       |
   85|    129|  pos += len;
   86|    129|  Internal::enforce(pos <= end, ErrorCode::kerFailedToReadImageData);
   87|    129|  io_->read(tmp, len);
   88|    129|  if (io_->error() || io_->eof())
  ------------------
  |  Branch (88:7): [True: 7, False: 122]
  |  Branch (88:23): [True: 0, False: 122]
  ------------------
   89|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
   90|       |
   91|    501|  while (memcmp(tmp + 1, "TTW", 3) != 0) {
  ------------------
  |  Branch (91:10): [True: 372, False: 129]
  ------------------
   92|    372|    uint32_t const siz = getULong(tmp + 4, bigEndian);
   93|    372|    Internal::enforce(siz <= end - pos, ErrorCode::kerFailedToReadImageData);
   94|    372|    pos += siz;
   95|    372|    io_->seek(siz, BasicIo::cur);
   96|    372|    Internal::enforce(!io_->error() && !io_->eof(), ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (96:23): [True: 351, False: 21]
  |  Branch (96:40): [True: 300, False: 51]
  ------------------
   97|       |
   98|    372|    Internal::enforce(len <= end - pos, ErrorCode::kerFailedToReadImageData);
   99|    372|    pos += len;
  100|    372|    io_->read(tmp, len);
  101|    372|    Internal::enforce(!io_->error() && !io_->eof(), ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (101:23): [True: 296, False: 76]
  |  Branch (101:40): [True: 276, False: 20]
  ------------------
  102|    372|  }
  103|       |
  104|    129|  const uint32_t siz = getULong(tmp + 4, bigEndian);
  105|       |  // First do an approximate bounds check of siz, so that we don't
  106|       |  // get DOS-ed by a 4GB allocation on the next line. If siz is
  107|       |  // greater than io_->size() then it is definitely invalid. But the
  108|       |  // exact bounds checking is done by the call to io_->read, which
  109|       |  // will fail if there are fewer than siz bytes left to read.
  110|    129|  Internal::enforce(siz <= io_->size(), ErrorCode::kerFailedToReadImageData);
  111|    129|  DataBuf buf(siz);
  112|    129|  io_->read(buf.data(), buf.size());
  113|    129|  Internal::enforce(!io_->error() && !io_->eof(), ErrorCode::kerFailedToReadImageData);
  ------------------
  |  Branch (113:21): [True: 13, False: 116]
  |  Branch (113:38): [True: 11, False: 2]
  ------------------
  114|       |
  115|    129|  ByteOrder bo = TiffParser::decode(exifData_, iptcData_, xmpData_, buf.c_data(), buf.size());
  116|    129|  setByteOrder(bo);
  117|    129|}  // MrwImage::readMetadata
_ZN5Exiv214newMrwInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  126|    129|Image::UniquePtr newMrwInstance(BasicIo::UniquePtr io, bool create) {
  127|    129|  auto image = std::make_unique<MrwImage>(std::move(io), create);
  128|    129|  if (!image->good()) {
  ------------------
  |  Branch (128:7): [True: 0, False: 129]
  ------------------
  129|      0|    return nullptr;
  130|      0|  }
  131|    129|  return image;
  132|    129|}
_ZN5Exiv29isMrwTypeERNS_7BasicIoEb:
  134|  30.0k|bool isMrwType(BasicIo& iIo, bool advance) {
  135|  30.0k|  const int32_t len = 4;
  136|  30.0k|  const std::array<byte, len> MrwId{0x0, 0x4d, 0x52, 0x4d};
  137|  30.0k|  std::array<byte, len> buf;
  138|  30.0k|  iIo.read(buf.data(), len);
  139|  30.0k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (139:7): [True: 0, False: 30.0k]
  |  Branch (139:22): [True: 84, False: 29.9k]
  ------------------
  140|     84|    return false;
  141|     84|  }
  142|  29.9k|  bool rc = buf == MrwId;
  143|  29.9k|  if (!advance || !rc) {
  ------------------
  |  Branch (143:7): [True: 29.9k, False: 0]
  |  Branch (143:19): [True: 0, False: 0]
  ------------------
  144|  29.9k|    iIo.seek(-len, BasicIo::cur);
  145|  29.9k|  }
  146|  29.9k|  return rc;
  147|  30.0k|}

_ZN5Exiv28Internal15Nikon1MakerNote11print0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  173|  1.68k|std::ostream& Nikon1MakerNote::print0x0002(std::ostream& os, const Value& value, const ExifData*) {
  174|  1.68k|  if (value.count() > 1)
  ------------------
  |  Branch (174:7): [True: 1.65k, False: 22]
  ------------------
  175|  1.65k|    return os << value.toInt64(1);
  176|     22|  return os << "(" << value << ")";
  177|  1.68k|}
_ZN5Exiv28Internal15Nikon1MakerNote13printBarValueERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  187|     62|std::ostream& Nikon1MakerNote::printBarValue(std::ostream& os, const Value& value, const ExifData* exifData) {
  188|     62|  if (!exifData)
  ------------------
  |  Branch (188:7): [True: 31, False: 31]
  ------------------
  189|     31|    return os << "undefined";
  190|       |
  191|     31|  if (value.count() >= 9) {
  ------------------
  |  Branch (191:7): [True: 16, False: 15]
  ------------------
  192|     16|    ByteOrder bo = getKeyString("Exif.MakerNote.ByteOrder", exifData) == "MM" ? bigEndian : littleEndian;
  ------------------
  |  Branch (192:20): [True: 16, False: 0]
  ------------------
  193|     16|    byte p[4];
  194|     80|    for (int n = 0; n < 4; n++)
  ------------------
  |  Branch (194:21): [True: 64, False: 16]
  ------------------
  195|     64|      p[n] = static_cast<byte>(value.toInt64(6 + n));
  196|     16|    os << getLong(p, bo);
  197|     16|  }
  198|       |
  199|     31|  return os;
  200|     62|}
_ZN5Exiv28Internal15Nikon1MakerNote11print0x0007ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  202|    150|std::ostream& Nikon1MakerNote::print0x0007(std::ostream& os, const Value& value, const ExifData*) {
  203|    150|  std::string focus = value.toString();
  204|    150|  if (focus == "AF-C  ")
  ------------------
  |  Branch (204:7): [True: 0, False: 150]
  ------------------
  205|      0|    return os << _("Continuous autofocus");
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  206|    150|  if (focus == "AF-S  ")
  ------------------
  |  Branch (206:7): [True: 6, False: 144]
  ------------------
  207|      6|    return os << _("Single autofocus");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  208|    144|  if (focus == "AF-A  ")
  ------------------
  |  Branch (208:7): [True: 6, False: 138]
  ------------------
  209|      6|    return os << _("Automatic");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  210|    138|  return os << "(" << value << ")";
  211|    144|}
_ZN5Exiv28Internal15Nikon1MakerNote11print0x0085ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  213|     88|std::ostream& Nikon1MakerNote::print0x0085(std::ostream& os, const Value& value, const ExifData*) {
  214|     88|  auto [r, s] = value.toRational();
  215|     88|  if (r == 0)
  ------------------
  |  Branch (215:7): [True: 30, False: 58]
  ------------------
  216|     30|    return os << _("Unknown");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  217|     58|  if (s != 0)
  ------------------
  |  Branch (217:7): [True: 44, False: 14]
  ------------------
  218|     44|    return os << stringFormat("{:.2f} m", static_cast<float>(r) / s);
  ------------------
  |  |   18|     44|#define stringFormat std::format
  ------------------
  219|     14|  return os << "(" << value << ")";
  220|     58|}
_ZN5Exiv28Internal15Nikon1MakerNote11print0x0086ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  222|    112|std::ostream& Nikon1MakerNote::print0x0086(std::ostream& os, const Value& value, const ExifData*) {
  223|    112|  auto [r, s] = value.toRational();
  224|    112|  if (r == 0)
  ------------------
  |  Branch (224:7): [True: 70, False: 42]
  ------------------
  225|     70|    return os << _("Not used");
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  226|     42|  if (s == 0)
  ------------------
  |  Branch (226:7): [True: 6, False: 36]
  ------------------
  227|      6|    return os << "(" << value << ")";
  228|     36|  return os << stringFormat("{:.1f}x", static_cast<float>(r) / s);
  ------------------
  |  |   18|     36|#define stringFormat std::format
  ------------------
  229|     42|}
_ZN5Exiv28Internal15Nikon1MakerNote11print0x0088ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  231|  1.02k|std::ostream& Nikon1MakerNote::print0x0088(std::ostream& os, const Value& value, const ExifData*) {
  232|  1.02k|  if (value.count() >= 1) {
  ------------------
  |  Branch (232:7): [True: 1.02k, False: 0]
  ------------------
  233|  1.02k|    const uint32_t focusArea = value.toUint32(0);
  234|  1.02k|    if (focusArea >= nikonFocusarea.size()) {
  ------------------
  |  Branch (234:9): [True: 790, False: 232]
  ------------------
  235|    790|      os << "Invalid value";
  236|    790|    } else {
  237|    232|      os << nikonFocusarea[focusArea];
  238|    232|    }
  239|  1.02k|  }
  240|  1.02k|  if (value.count() >= 2) {
  ------------------
  |  Branch (240:7): [True: 894, False: 128]
  ------------------
  241|    894|    os << "; ";
  242|    894|    const uint32_t focusPoint = value.toUint32(1);
  243|       |
  244|    894|    if (focusPoint <= 4) {
  ------------------
  |  Branch (244:9): [True: 284, False: 610]
  ------------------
  245|    284|      os << nikonFocuspoints[focusPoint];
  246|    610|    } else {
  247|    610|      os << value;
  248|    610|      if (focusPoint < nikonFocuspoints.size()) {
  ------------------
  |  Branch (248:11): [True: 82, False: 528]
  ------------------
  249|     82|        os << " " << _("guess") << " " << nikonFocuspoints[focusPoint];
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  250|     82|      }
  251|    610|    }
  252|    894|  }
  253|  1.02k|  if (value.count() >= 3) {
  ------------------
  |  Branch (253:7): [True: 892, False: 130]
  ------------------
  254|    892|    const uint32_t focusPointsUsed1 = value.toUint32(2);
  255|    892|    const uint32_t focusPointsUsed2 = value.toUint32(3);
  256|       |
  257|    892|    if (focusPointsUsed1 != 0 && focusPointsUsed2 != 0) {
  ------------------
  |  Branch (257:9): [True: 664, False: 228]
  |  Branch (257:34): [True: 602, False: 62]
  ------------------
  258|    602|      os << "; [";
  259|       |
  260|    602|      if (focusPointsUsed1 & 1)
  ------------------
  |  Branch (260:11): [True: 288, False: 314]
  ------------------
  261|    288|        os << nikonFocuspoints[0] << " ";
  262|    602|      if (focusPointsUsed1 & 2)
  ------------------
  |  Branch (262:11): [True: 310, False: 292]
  ------------------
  263|    310|        os << nikonFocuspoints[1] << " ";
  264|    602|      if (focusPointsUsed1 & 4)
  ------------------
  |  Branch (264:11): [True: 284, False: 318]
  ------------------
  265|    284|        os << nikonFocuspoints[2] << " ";
  266|    602|      if (focusPointsUsed1 & 8)
  ------------------
  |  Branch (266:11): [True: 174, False: 428]
  ------------------
  267|    174|        os << nikonFocuspoints[3] << " ";
  268|    602|      if (focusPointsUsed1 & 16)
  ------------------
  |  Branch (268:11): [True: 86, False: 516]
  ------------------
  269|     86|        os << nikonFocuspoints[4] << " ";
  270|    602|      if (focusPointsUsed1 & 32)
  ------------------
  |  Branch (270:11): [True: 344, False: 258]
  ------------------
  271|    344|        os << nikonFocuspoints[5] << " ";
  272|    602|      if (focusPointsUsed1 & 64)
  ------------------
  |  Branch (272:11): [True: 480, False: 122]
  ------------------
  273|    480|        os << nikonFocuspoints[6] << " ";
  274|    602|      if (focusPointsUsed1 & 128)
  ------------------
  |  Branch (274:11): [True: 110, False: 492]
  ------------------
  275|    110|        os << nikonFocuspoints[7] << " ";
  276|       |
  277|    602|      if (focusPointsUsed2 & 1)
  ------------------
  |  Branch (277:11): [True: 332, False: 270]
  ------------------
  278|    332|        os << nikonFocuspoints[8] << " ";
  279|    602|      if (focusPointsUsed2 & 2)
  ------------------
  |  Branch (279:11): [True: 174, False: 428]
  ------------------
  280|    174|        os << nikonFocuspoints[9] << " ";
  281|    602|      if (focusPointsUsed2 & 4)
  ------------------
  |  Branch (281:11): [True: 422, False: 180]
  ------------------
  282|    422|        os << nikonFocuspoints[10] << " ";
  283|       |
  284|    602|      os << "]";
  285|    602|    }
  286|    892|  } else {
  287|    130|    os << "(" << value << ")";
  288|    130|  }
  289|  1.02k|  return os;
  290|  1.02k|}
_ZN5Exiv28Internal15Nikon2MakerNote11print0x000aERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  349|    132|std::ostream& Nikon2MakerNote::print0x000a(std::ostream& os, const Value& value, const ExifData*) {
  350|    132|  auto [r, s] = value.toRational();
  351|    132|  if (r == 0)
  ------------------
  |  Branch (351:7): [True: 60, False: 72]
  ------------------
  352|     60|    return os << _("Not used");
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  353|     72|  if (s == 0)
  ------------------
  |  Branch (353:7): [True: 30, False: 42]
  ------------------
  354|     30|    return os << "(" << value << ")";
  355|     42|  return os << stringFormat("{:.1f}x", static_cast<float>(r) / s);
  ------------------
  |  |   18|     42|#define stringFormat std::format
  ------------------
  356|     72|}
_ZN5Exiv28Internal15Nikon3MakerNote10printIiIsoERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1661|     60|std::ostream& Nikon3MakerNote::printIiIso(std::ostream& os, const Value& value, const ExifData*) {
 1662|     60|  auto v = std::lround(100.0 * std::exp2((value.toInt64() / 12.0) - 5));
 1663|     60|  return os << v;
 1664|     60|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x0002ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1666|     62|std::ostream& Nikon3MakerNote::print0x0002(std::ostream& os, const Value& value, const ExifData*) {
 1667|     62|  if (value.count() > 1)
  ------------------
  |  Branch (1667:7): [True: 30, False: 32]
  ------------------
 1668|     30|    return os << value.toInt64(1);
 1669|     32|  return os << "(" << value << ")";
 1670|     62|}
_ZN5Exiv28Internal15Nikon3MakerNote16printAf2AreaModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1672|     74|std::ostream& Nikon3MakerNote::printAf2AreaMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1673|     74|  int contrastDetectAF = 0;
 1674|     74|  if (metadata) {
  ------------------
  |  Branch (1674:7): [True: 37, False: 37]
  ------------------
 1675|     37|    auto pos = metadata->findKey(ExifKey("Exif.NikonAf2.ContrastDetectAF"));
 1676|     37|    if (pos != metadata->end() && pos->count() != 0) {
  ------------------
  |  Branch (1676:9): [True: 37, False: 0]
  |  Branch (1676:9): [True: 37, False: 0]
  |  Branch (1676:35): [True: 37, False: 0]
  ------------------
 1677|     37|      contrastDetectAF = pos->toUint32();
 1678|     37|    }
 1679|     37|  }
 1680|       |
 1681|     74|  if (contrastDetectAF == 0)
  ------------------
  |  Branch (1681:7): [True: 55, False: 19]
  ------------------
 1682|     55|    return EXV_PRINT_TAG(nikonAf2AreaModeContrastDetectAfOff)(os, value, nullptr);
  ------------------
  |  |  199|     55|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1683|     19|  return EXV_PRINT_TAG(nikonAf2AreaModeContrastDetectAfOn)(os, value, nullptr);
  ------------------
  |  |  199|     19|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1684|     74|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x0007ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1686|    104|std::ostream& Nikon3MakerNote::print0x0007(std::ostream& os, const Value& value, const ExifData*) {
 1687|    104|  std::string focus = value.toString();
 1688|    104|  if (focus == "AF-C  ")
  ------------------
  |  Branch (1688:7): [True: 6, False: 98]
  ------------------
 1689|      6|    return os << _("Continuous autofocus");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1690|     98|  if (focus == "AF-S  ")
  ------------------
  |  Branch (1690:7): [True: 14, False: 84]
  ------------------
 1691|     14|    return os << _("Single autofocus");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1692|     84|  if (focus == "AF-A  ")
  ------------------
  |  Branch (1692:7): [True: 16, False: 68]
  ------------------
 1693|     16|    return os << _("Automatic");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1694|     68|  return os << "(" << value << ")";
 1695|     84|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x0083ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1697|    426|std::ostream& Nikon3MakerNote::print0x0083(std::ostream& os, const Value& value, const ExifData*) {
 1698|    426|  const uint32_t lensType = value.toUint32();
 1699|       |
 1700|    426|  bool valid = false;
 1701|    426|  if (lensType & 1) {
  ------------------
  |  Branch (1701:7): [True: 214, False: 212]
  ------------------
 1702|    214|    os << "MF ";
 1703|    214|    valid = true;
 1704|    214|  }
 1705|    426|  if (lensType & 2) {
  ------------------
  |  Branch (1705:7): [True: 134, False: 292]
  ------------------
 1706|    134|    os << "D ";
 1707|    134|    valid = true;
 1708|    134|  }
 1709|    426|  if (lensType & 4) {
  ------------------
  |  Branch (1709:7): [True: 164, False: 262]
  ------------------
 1710|    164|    os << "G ";
 1711|    164|    valid = true;
 1712|    164|  }
 1713|    426|  if (lensType & 8) {
  ------------------
  |  Branch (1713:7): [True: 122, False: 304]
  ------------------
 1714|    122|    os << "VR";
 1715|    122|    valid = true;
 1716|    122|  }
 1717|       |
 1718|    426|  if (!valid)
  ------------------
  |  Branch (1718:7): [True: 148, False: 278]
  ------------------
 1719|    148|    os << "(" << lensType << ")";
 1720|       |
 1721|    426|  return os;
 1722|    426|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x0085ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1750|     96|std::ostream& Nikon3MakerNote::print0x0085(std::ostream& os, const Value& value, const ExifData*) {
 1751|     96|  auto [r, s] = value.toRational();
 1752|     96|  if (r == 0)
  ------------------
  |  Branch (1752:7): [True: 8, False: 88]
  ------------------
 1753|      8|    return os << _("Unknown");
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
 1754|     88|  if (s == 0)
  ------------------
  |  Branch (1754:7): [True: 20, False: 68]
  ------------------
 1755|     20|    return os << "(" << value << ")";
 1756|     68|  return os << stringFormat("{:.2f} m", static_cast<float>(r) / s);
  ------------------
  |  |   18|     68|#define stringFormat std::format
  ------------------
 1757|     88|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x0086ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1759|    102|std::ostream& Nikon3MakerNote::print0x0086(std::ostream& os, const Value& value, const ExifData*) {
 1760|    102|  auto [r, s] = value.toRational();
 1761|    102|  if (r == 0)
  ------------------
  |  Branch (1761:7): [True: 32, False: 70]
  ------------------
 1762|     32|    return os << _("Not used");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
 1763|     70|  if (s == 0)
  ------------------
  |  Branch (1763:7): [True: 16, False: 54]
  ------------------
 1764|     16|    return os << "(" << value << ")";
 1765|     54|  return os << stringFormat("{:.1f}x", static_cast<float>(r) / s);
  ------------------
  |  |   18|     54|#define stringFormat std::format
  ------------------
 1766|     70|}
_ZN5Exiv28Internal15Nikon3MakerNote20printAfPointsInFocusERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1844|     98|std::ostream& Nikon3MakerNote::printAfPointsInFocus(std::ostream& os, const Value& value, const ExifData* metadata) {
 1845|     98|  if (value.typeId() != unsignedShort)
  ------------------
  |  Branch (1845:7): [True: 0, False: 98]
  ------------------
 1846|      0|    return os << "(" << value << ")";
 1847|       |
 1848|     98|  bool dModel = false;
 1849|     98|  if (metadata) {
  ------------------
  |  Branch (1849:7): [True: 49, False: 49]
  ------------------
 1850|     49|    auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
 1851|     49|    if (pos != metadata->end() && pos->count() != 0) {
  ------------------
  |  Branch (1851:9): [True: 19, False: 30]
  |  Branch (1851:9): [True: 16, False: 33]
  |  Branch (1851:35): [True: 16, False: 3]
  ------------------
 1852|     16|      std::string model = pos->toString();
 1853|     16|      if (Internal::contains(model, "NIKON D")) {
  ------------------
  |  Branch (1853:11): [True: 8, False: 8]
  ------------------
 1854|      8|        dModel = true;
 1855|      8|      }
 1856|     16|    }
 1857|     49|  }
 1858|       |
 1859|     98|  auto val = static_cast<uint16_t>(value.toInt64());
 1860|     98|  if (dModel)
  ------------------
  |  Branch (1860:7): [True: 8, False: 90]
  ------------------
 1861|      8|    val = (val >> 8) | ((val & 0x00ffU) << 8);
 1862|       |
 1863|     98|  if (val == 0x07ff)
  ------------------
  |  Branch (1863:7): [True: 2, False: 96]
  ------------------
 1864|      2|    return os << _("All 11 Points");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 1865|       |
 1866|     96|  UShortValue v;
 1867|     96|  v.value_.push_back(val);
 1868|     96|  return EXV_PRINT_TAG_BITMASK(nikonAfPointsInFocus)(os, v, nullptr);
  ------------------
  |  |  229|     96|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 1869|     98|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x0089ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1871|    854|std::ostream& Nikon3MakerNote::print0x0089(std::ostream& os, const Value& value, const ExifData* metadata) {
 1872|    854|  if (value.count() != 1 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (1872:7): [True: 42, False: 812]
  |  Branch (1872:29): [True: 62, False: 750]
  ------------------
 1873|    104|    return os << "(" << value << ")";
 1874|    104|  }
 1875|    750|  const auto l = value.toInt64(0);
 1876|    750|  if (l == 0)
  ------------------
  |  Branch (1876:7): [True: 42, False: 708]
  ------------------
 1877|     42|    return os << _("Single-frame");
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
 1878|    708|  if (!(l & 0x87))
  ------------------
  |  Branch (1878:7): [True: 218, False: 490]
  ------------------
 1879|    218|    os << _("Single-frame") << ", ";
  ------------------
  |  |   40|    218|#define _(String) (String)
  ------------------
 1880|    708|  bool d70 = false;
 1881|    708|  if (metadata) {
  ------------------
  |  Branch (1881:7): [True: 354, False: 354]
  ------------------
 1882|    354|    ExifKey key("Exif.Image.Model");
 1883|    354|    auto pos = metadata->findKey(key);
 1884|    354|    if (pos != metadata->end() && pos->count() != 0) {
  ------------------
  |  Branch (1884:9): [True: 271, False: 83]
  |  Branch (1884:9): [True: 232, False: 122]
  |  Branch (1884:35): [True: 232, False: 39]
  ------------------
 1885|    232|      std::string model = pos->toString();
 1886|    232|      if (Internal::contains(model, "D70")) {
  ------------------
  |  Branch (1886:11): [True: 142, False: 90]
  ------------------
 1887|    142|        d70 = true;
 1888|    142|      }
 1889|    232|    }
 1890|    354|  }
 1891|    708|  if (d70)
  ------------------
  |  Branch (1891:7): [True: 142, False: 566]
  ------------------
 1892|    142|    return EXV_PRINT_TAG_BITMASK(nikonShootingModeD70)(os, value, nullptr);
  ------------------
  |  |  229|    142|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 1893|    566|  return EXV_PRINT_TAG_BITMASK(nikonShootingMode)(os, value, nullptr);
  ------------------
  |  |  229|    566|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 1894|    708|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x008bERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1896|     90|std::ostream& Nikon3MakerNote::print0x008b(std::ostream& os, const Value& value, const ExifData*) {
 1897|       |  // Decoded by Robert Rottmerhusen <email@rottmerhusen.com>
 1898|     90|  if (value.size() != 4 || value.typeId() != undefined)
  ------------------
  |  Branch (1898:7): [True: 8, False: 82]
  |  Branch (1898:28): [True: 34, False: 48]
  ------------------
 1899|     42|    return os << "(" << value << ")";
 1900|     48|  float a = value.toFloat(0);
 1901|     48|  const auto b = value.toInt64(1);
 1902|     48|  const auto c = value.toInt64(2);
 1903|     48|  if (c == 0)
  ------------------
  |  Branch (1903:7): [True: 18, False: 30]
  ------------------
 1904|     18|    return os << "(" << value << ")";
 1905|     30|  return os << a * b / c;
 1906|     48|}
_ZN5Exiv28Internal15Nikon3MakerNote12printLensId1ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1920|      6|std::ostream& Nikon3MakerNote::printLensId1(std::ostream& os, const Value& value, const ExifData* metadata) {
 1921|      6|  return testConfigFile(os, value) ? os : printLensId(os, value, metadata, "NikonLd1");
  ------------------
  |  Branch (1921:10): [True: 0, False: 6]
  ------------------
 1922|      6|}
_ZN5Exiv28Internal15Nikon3MakerNote12printLensId2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1924|      6|std::ostream& Nikon3MakerNote::printLensId2(std::ostream& os, const Value& value, const ExifData* metadata) {
 1925|      6|  return testConfigFile(os, value) ? os : printLensId(os, value, metadata, "NikonLd2");
  ------------------
  |  Branch (1925:10): [True: 0, False: 6]
  ------------------
 1926|      6|}
_ZN5Exiv28Internal15Nikon3MakerNote12printLensId3ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1928|      4|std::ostream& Nikon3MakerNote::printLensId3(std::ostream& os, const Value& value, const ExifData* metadata) {
 1929|      4|  return testConfigFile(os, value) ? os : printLensId(os, value, metadata, "NikonLd3");
  ------------------
  |  Branch (1929:10): [True: 0, False: 4]
  ------------------
 1930|      4|}
_ZN5Exiv28Internal15Nikon3MakerNote12printLensId4ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1932|    142|std::ostream& Nikon3MakerNote::printLensId4(std::ostream& os, const Value& value, const ExifData* metadata) {
 1933|    142|  return testConfigFile(os, value) ? os : printLensId(os, value, metadata, "NikonLd4");
  ------------------
  |  Branch (1933:10): [True: 0, False: 142]
  ------------------
 1934|    142|}
_ZN5Exiv28Internal15Nikon3MakerNote11printLensIdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataERKNS2_12basic_stringIcS5_NS2_9allocatorIcEEEE:
 1937|    158|                                           [[maybe_unused]] const std::string& group) {
 1938|    158|#ifdef EXV_HAVE_LENSDATA
 1939|       |// 8< - - - 8< do not remove this line >8 - - - >8
 1940|       |//------------------------------------------------------------------------------
 1941|    158|#ifndef FMOUNTLH
 1942|    158|#define FMOUNTLH
 1943|       |//------------------------------------------------------------------------------
 1944|       |// List of AF F-Mount lenses - Version 4.4.550.02                    2018-03-03
 1945|       |//------------------------------------------------------------------------------
 1946|    158|#define FMLVERSION "4.4.550.02"
 1947|    158|#define FMLDATE "2018-03-03"
 1948|       |  //------------------------------------------------------------------------------
 1949|       |  //
 1950|       |  // Created by Robert Rottmerhusen 2005 - 2018
 1951|       |  // http://www.rottmerhusen.com (lens_id@rottmerhusen.com)
 1952|       |  //
 1953|       |  // Eight misidentified lenses due to double LensIDs:
 1954|       |  //
 1955|       |  // 2F 48 30 44 24 24 29 02.1: Nikon AF Zoom-Nikkor 20-35mm f/2.8D IF
 1956|       |  // 2F 48 30 44 24 24 29 02.2: Tokina AT-X 235 AF PRO (AF 20-35mm f/2.8)
 1957|       |  //
 1958|       |  // 32 54 6A 6A 24 24 35 02.1: Nikon AF Micro-Nikkor 105mm f/2.8D
 1959|       |  // 32 54 6A 6A 24 24 35 02.2: Sigma Macro 105mm F2.8 EX DG
 1960|       |  //
 1961|       |  // 7A 3C 1F 37 30 30 7E 06.1: Nikon AF-S DX Zoom-Nikkor 12-24mm f/4G IF-ED
 1962|       |  // 7A 3C 1F 37 30 30 7E 06.2: Tokina AT-X 124 AF PRO DX II (AF 12-24mm f/4)
 1963|       |  //
 1964|       |  // 8B 40 2D 80 2C 3C FD 0E.1: Nikon AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED
 1965|       |  // 8B 40 2D 80 2C 3C FD 0E.2: Nikon AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED II
 1966|       |  //
 1967|       |  // 32 53 64 64 24 24 35 02.1: Tamron SP AF 90mm F/2.8 Macro 1:1 (172E)
 1968|       |  // 32 53 64 64 24 24 35 02.2: Tamron SP AF 90mm F/2.8 Di Macro 1:1 (272E)
 1969|       |  //
 1970|       |  // 2F 40 30 44 2C 34 29 02.1: Tokina AF 235 II (AF 20-35mm f/3.5-4.5)
 1971|       |  // 2F 40 30 44 2C 34 29 02.2: Tokina AF 193 (AF 19-35mm f/3.5-4.5)
 1972|       |  //
 1973|       |  // 25 48 3C 5C 24 24 1B 02.1: Tokina AT-X 287 AF PRO SV (AF 28-70mm f/2.8)
 1974|       |  // 25 48 3C 5C 24 24 1B 02.2: Tokina AT-X 270 AF PRO II (AF 28-70mm f/2.6-2.8)
 1975|       |  //
 1976|       |  // 4A 48 24 24 24 0C 4D 02.1: Samyang AE 14mm f/2.8 ED AS IF UMC
 1977|       |  // 4A 48 24 24 24 0C 4D 02.2: Samyang 10mm f/2.8 ED AS NCS CS
 1978|       |  //
 1979|       |  //
 1980|       |  // product number/order code not complete
 1981|       |  //
 1982|       |  // Free use in non-commercial, GPL or open source software only!
 1983|       |  // Please contact me for adding lenses or use in commercial software.
 1984|       |  //
 1985|       |  //"data from TAG 0x98" "ltyp" " "TC" "MID" "maker" "PN" "lens name from manuf";
 1986|       |  //
 1987|       |  //------------------------------------------------------------------------------
 1988|       |  // EXIF data necessary for new entries
 1989|       |  //------------------------------------------------------------------------------
 1990|       |  //
 1991|       |  // lid:   LensIDNumber
 1992|       |  // stps:  LensFStops
 1993|       |  // focs:  MinFocalLength
 1994|       |  // focl:  MaxFocalLength
 1995|       |  // aps:   MaxApertureAtMinFocal
 1996|       |  // apl:   MaxApertureAtMaxFocal
 1997|       |  // lfw:   MCUVersion
 1998|       |  // ltype: LensType
 1999|       |  //
 2000|       |  // The tcinfo, dblid and mid fields are being ignored.
 2001|       |  //
 2002|       |  // Please note that all fields except LensType have to be looked up in the
 2003|       |  // Exif.NikonLd* prefix and not other Exif.Nikon* prefixes. For example: for modern
 2004|       |  // Nikon bodies with modern lenses, there will be both a Exif.Nikon3.LensFStops and a
 2005|       |  // Exif.NikonLd3.LensFStops entry in the EXIF data. You are looking for
 2006|       |  // Exif.NikonLd3.LensFStops.
 2007|       |  //
 2008|       |  // In most cases the necessary hex values should be extracted from a test image using
 2009|       |  // the following command:
 2010|       |  //
 2011|       |  // exiv2 -ph -g NikonLd3.LensIDNumber -g NikonLd3.LensFStops
 2012|       |  // -g NikonLd3.MinFocalLength -g NikonLd3.MaxFocalLength
 2013|       |  // -g NikonLd3.MaxApertureAtMinFocal -g NikonLd3.MaxApertureAtMaxFocal
 2014|       |  // -g NikonLd3.MCUVersion -g Nikon3.LensType test.NEF
 2015|       |  //
 2016|       |  // Please consider, that sequence of output is sligthly different from sequence in
 2017|       |  // data structure: LensType (ltype) is printed first, but has to be entered after
 2018|       |  // MCUVersion (lfw).
 2019|       |  //
 2020|       |  //------------------------------------------------------------------------------
 2021|       |  // Nikkor lenses by their LensID
 2022|       |  //------------------------------------------------------------------------------
 2023|       |
 2024|    158|  static constexpr struct FMntLens {
 2025|    158|    unsigned char lid, stps, focs, focl, aps, apl, lfw, ltype, tcinfo, dblid, mid;
 2026|    158|    std::string_view manuf;
 2027|    158|    std::string_view lnumber;
 2028|    158|    std::string_view lensname;
 2029|       |
 2030|    158|    bool operator==(unsigned char l) const {
 2031|    158|      return lid == l;
 2032|    158|    }
 2033|    158|  } fmountlens[] = {
 2034|    158|      {0x01, 0x58, 0x50, 0x50, 0x14, 0x14, 0x02, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA00901", "AF Nikkor 50mm f/1.8"},
 2035|    158|      {0x01, 0x58, 0x50, 0x50, 0x14, 0x14, 0x05, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA00901", "AF Nikkor 50mm f/1.8"},
 2036|    158|      {0x02, 0x42, 0x44, 0x5C, 0x2A, 0x34, 0x02, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA72701",
 2037|    158|       "AF Zoom-Nikkor 35-70mm f/3.3-4.5"},
 2038|    158|      {0x02, 0x42, 0x44, 0x5C, 0x2A, 0x34, 0x08, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA72701",
 2039|    158|       "AF Zoom-Nikkor 35-70mm f/3.3-4.5"},
 2040|    158|      {0x03, 0x48, 0x5C, 0x81, 0x30, 0x30, 0x02, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA72801",
 2041|    158|       "AF Zoom-Nikkor 70-210mm f/4"},
 2042|    158|      {0x04, 0x48, 0x3C, 0x3C, 0x24, 0x24, 0x03, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA12001", "AF Nikkor 28mm f/2.8"},
 2043|    158|      {0x05, 0x54, 0x50, 0x50, 0x0C, 0x0C, 0x04, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA01001", "AF Nikkor 50mm f/1.4"},
 2044|    158|      {0x06, 0x54, 0x53, 0x53, 0x24, 0x24, 0x06, 0x00, 0x40, 0x00, 0x00, "Nikon", "JAA62101",
 2045|    158|       "AF Micro-Nikkor 55mm f/2.8"},
 2046|    158|      {0x07, 0x40, 0x3C, 0x62, 0x2C, 0x34, 0x03, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA72901",
 2047|    158|       "AF Zoom-Nikkor 28-85mm f/3.5-4.5"},
 2048|    158|      {0x08, 0x40, 0x44, 0x6A, 0x2C, 0x34, 0x04, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA73001",
 2049|    158|       "AF Zoom-Nikkor 35-105mm f/3.5-4.5"},
 2050|    158|      {0x09, 0x48, 0x37, 0x37, 0x24, 0x24, 0x04, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA12101", "AF Nikkor 24mm f/2.8"},
 2051|    158|      {0x0A, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0x03, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA322AA",
 2052|    158|       "AF Nikkor 300mm f/2.8 IF-ED"},
 2053|    158|      {0x0A, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0x05, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA322AB",
 2054|    158|       "AF Nikkor 300mm f/2.8 IF-ED"},
 2055|    158|      {0x0B, 0x48, 0x7C, 0x7C, 0x24, 0x24, 0x05, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA32101",
 2056|    158|       "AF Nikkor 180mm f/2.8 IF-ED"},
 2057|       |      // 0C
 2058|    158|      {0x0D, 0x40, 0x44, 0x72, 0x2C, 0x34, 0x07, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA73101",
 2059|    158|       "AF Zoom-Nikkor 35-135mm f/3.5-4.5"},
 2060|    158|      {0x0E, 0x48, 0x5C, 0x81, 0x30, 0x30, 0x05, 0x00, 0x00, 0x00, 0x00, "Nikon", "", "AF Zoom-Nikkor 70-210mm f/4"},
 2061|    158|      {0x0F, 0x58, 0x50, 0x50, 0x14, 0x14, 0x05, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA009AD", "AF Nikkor 50mm f/1.8 N"},
 2062|    158|      {0x10, 0x48, 0x8E, 0x8E, 0x30, 0x30, 0x08, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA32301",
 2063|    158|       "AF Nikkor 300mm f/4 IF-ED"},
 2064|    158|      {0x11, 0x48, 0x44, 0x5C, 0x24, 0x24, 0x08, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA73301",
 2065|    158|       "AF Zoom-Nikkor 35-70mm f/2.8"},
 2066|    158|      {0x11, 0x48, 0x44, 0x5C, 0x24, 0x24, 0x15, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA73301",
 2067|    158|       "AF Zoom-Nikkor 35-70mm f/2.8"},
 2068|    158|      {0x12, 0x48, 0x5C, 0x81, 0x30, 0x3C, 0x09, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA73201",
 2069|    158|       "AF Nikkor 70-210mm f/4-5.6"},
 2070|    158|      {0x13, 0x42, 0x37, 0x50, 0x2A, 0x34, 0x0B, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA73401",
 2071|    158|       "AF Zoom-Nikkor 24-50mm f/3.3-4.5"},
 2072|    158|      {0x14, 0x48, 0x60, 0x80, 0x24, 0x24, 0x0B, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA73501",
 2073|    158|       "AF Zoom-Nikkor 80-200mm f/2.8 ED"},
 2074|    158|      {0x15, 0x4C, 0x62, 0x62, 0x14, 0x14, 0x0C, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA32401", "AF Nikkor 85mm f/1.8"},
 2075|       |      // 16
 2076|    158|      {0x17, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0x0F, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA518AA",
 2077|    158|       "Nikkor 500mm f/4 P ED IF"},
 2078|    158|      {0x17, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0x11, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA518AA",
 2079|    158|       "Nikkor 500mm f/4 P ED IF"},
 2080|    158|      {0x18, 0x40, 0x44, 0x72, 0x2C, 0x34, 0x0E, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA736AA",
 2081|    158|       "AF Zoom-Nikkor 35-135mm f/3.5-4.5 N"},
 2082|       |      // 19
 2083|    158|      {0x1A, 0x54, 0x44, 0x44, 0x18, 0x18, 0x11, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA12201", "AF Nikkor 35mm f/2"},
 2084|    158|      {0x1B, 0x44, 0x5E, 0x8E, 0x34, 0x3C, 0x10, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA738AA",
 2085|    158|       "AF Zoom-Nikkor 75-300mm f/4.5-5.6"},
 2086|    158|      {0x1C, 0x48, 0x30, 0x30, 0x24, 0x24, 0x12, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA12301", "AF Nikkor 20mm f/2.8"},
 2087|    158|      {0x1D, 0x42, 0x44, 0x5C, 0x2A, 0x34, 0x12, 0x00, 0x00, 0x00, 0x00, "Nikon", "",
 2088|    158|       "AF Zoom-Nikkor 35-70mm f/3.3-4.5 N"},
 2089|    158|      {0x1E, 0x54, 0x56, 0x56, 0x24, 0x24, 0x13, 0x00, 0x40, 0x00, 0x00, "Nikon", "JAA62201",
 2090|    158|       "AF Micro-Nikkor 60mm f/2.8"},
 2091|    158|      {0x1F, 0x54, 0x6A, 0x6A, 0x24, 0x24, 0x14, 0x00, 0x40, 0x00, 0x00, "Nikon", "JAA62301",
 2092|    158|       "AF Micro-Nikkor 105mm f/2.8"},
 2093|    158|      {0x20, 0x48, 0x60, 0x80, 0x24, 0x24, 0x15, 0x00, 0x00, 0x00, 0x00, "Nikon", "",
 2094|    158|       "AF Zoom-Nikkor 80-200mm f/2.8 ED"},
 2095|    158|      {0x21, 0x40, 0x3C, 0x5C, 0x2C, 0x34, 0x16, 0x00, 0x00, 0x00, 0x00, "Nikon", "",
 2096|    158|       "AF Zoom-Nikkor 28-70mm f/3.5-4.5"},
 2097|    158|      {0x22, 0x48, 0x72, 0x72, 0x18, 0x18, 0x16, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA32501", "AF DC-Nikkor 135mm f/2"},
 2098|    158|      {0x23, 0x30, 0xBE, 0xCA, 0x3C, 0x48, 0x17, 0x00, 0x00, 0x00, 0x00, "Nikon", "",
 2099|    158|       "Zoom-Nikkor 1200-1700mm f/5.6-8 P ED IF"},
 2100|       |      // - D - lenses from here
 2101|    158|      {0x24, 0x48, 0x60, 0x80, 0x24, 0x24, 0x1A, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA742DA",
 2102|    158|       "AF Zoom-Nikkor 80-200mm f/2.8D ED"},
 2103|    158|      {0x25, 0x48, 0x44, 0x5c, 0x24, 0x24, 0x1B, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA743DA",
 2104|    158|       "AF Zoom-Nikkor 35-70mm f/2.8D"},
 2105|    158|      {0x25, 0x48, 0x44, 0x5C, 0x24, 0x24, 0x3A, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA743DA",
 2106|    158|       "AF Zoom-Nikkor 35-70mm f/2.8D"},
 2107|    158|      {0x25, 0x48, 0x44, 0x5c, 0x24, 0x24, 0x52, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA743DA",
 2108|    158|       "AF Zoom-Nikkor 35-70mm f/2.8D"},
 2109|    158|      {0x26, 0x40, 0x3C, 0x5C, 0x2C, 0x34, 0x1C, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA744DA",
 2110|    158|       "AF Zoom-Nikkor 28-70mm f/3.5-4.5D"},
 2111|       |      // ^- not yet verified
 2112|    158|      {0x27, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0x1D, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA326DA",
 2113|    158|       "AF-I Nikkor 300mm f/2.8D IF-ED"},
 2114|    158|      {0x27, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA326DA",
 2115|    158|       "AF-I Nikkor 300mm f/2.8D IF-ED + TC-14E"},
 2116|    158|      {0x27, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA326DA",
 2117|    158|       "AF-I Nikkor 300mm f/2.8D IF-ED + TC-17E"},
 2118|    158|      {0x27, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA326DA",
 2119|    158|       "AF-I Nikkor 300mm f/2.8D IF-ED + TC-20E"},
 2120|    158|      {0x28, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0x1D, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA519DA",
 2121|    158|       "AF-I Nikkor 600mm f/4D IF-ED"},
 2122|    158|      {0x28, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA519DA",
 2123|    158|       "AF-I Nikkor 600mm f/4D IF-ED + TC-14E"},
 2124|    158|      {0x28, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA519DA",
 2125|    158|       "AF-I Nikkor 600mm f/4D IF-ED + TC-17E"},
 2126|    158|      {0x28, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA519DA",
 2127|    158|       "AF-I Nikkor 600mm f/4D IF-ED + TC-20E"},
 2128|       |      // 29
 2129|    158|      {0x2A, 0x54, 0x3C, 0x3C, 0x0C, 0x0C, 0x26, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA124DA", "AF Nikkor 28mm f/1.4D"},
 2130|    158|      {0x2B, 0x3C, 0x44, 0x60, 0x30, 0x3C, 0x1F, 0x02, 0x00, 0x00, 0x00, "Nikon", "",
 2131|    158|       "AF Zoom-Nikkor 35-80mm f/4-5.6D"},
 2132|    158|      {0x2C, 0x48, 0x6A, 0x6A, 0x18, 0x18, 0x27, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA327DA",
 2133|    158|       "AF DC-Nikkor 105mm f/2D"},
 2134|    158|      {0x2D, 0x48, 0x80, 0x80, 0x30, 0x30, 0x21, 0x02, 0x40, 0x00, 0x00, "Nikon", "JAA624DA",
 2135|    158|       "AF Micro-Nikkor 200mm f/4D IF-ED"},
 2136|    158|      {0x2E, 0x48, 0x5C, 0x82, 0x30, 0x3C, 0x22, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA747DA",
 2137|    158|       "AF Nikkor 70-210mm f/4-5.6D"},
 2138|    158|      {0x2E, 0x48, 0x5C, 0x82, 0x30, 0x3C, 0x28, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA747DA",
 2139|    158|       "AF Nikkor 70-210mm f/4-5.6D"},
 2140|    158|      {0x2F, 0x48, 0x30, 0x44, 0x24, 0x24, 0x29, 0x02, 0x00, 0x01, 0x00, "Nikon", "JAA746DA",
 2141|    158|       "AF Zoom-Nikkor 20-35mm f/2.8D IF"},
 2142|    158|      {0x30, 0x48, 0x98, 0x98, 0x24, 0x24, 0x24, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA520DA",
 2143|    158|       "AF-I Nikkor 400mm f/2.8D IF-ED"},
 2144|    158|      {0x30, 0x48, 0x98, 0x98, 0x24, 0x24, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA520DA",
 2145|    158|       "AF-I Nikkor 400mm f/2.8D IF-ED + TC-14E"},
 2146|    158|      {0x30, 0x48, 0x98, 0x98, 0x24, 0x24, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA520DA",
 2147|    158|       "AF-I Nikkor 400mm f/2.8D IF-ED + TC-17E"},
 2148|    158|      {0x30, 0x48, 0x98, 0x98, 0x24, 0x24, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA520DA",
 2149|    158|       "AF-I Nikkor 400mm f/2.8D IF-ED + TC-20E"},
 2150|    158|      {0x31, 0x54, 0x56, 0x56, 0x24, 0x24, 0x25, 0x02, 0x40, 0x00, 0x00, "Nikon", "JAA625DA",
 2151|    158|       "AF Micro-Nikkor 60mm f/2.8D"},
 2152|    158|      {0x32, 0x54, 0x6A, 0x6A, 0x24, 0x24, 0x35, 0x02, 0x40, 0x01, 0x00, "Nikon", "JAA627DA",
 2153|    158|       "AF Micro-Nikkor 105mm f/2.8D"},
 2154|    158|      {0x33, 0x48, 0x2D, 0x2D, 0x24, 0x24, 0x31, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA126DA", "AF Nikkor 18mm f/2.8D"},
 2155|    158|      {0x34, 0x48, 0x29, 0x29, 0x24, 0x24, 0x32, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA626DA",
 2156|    158|       "AF Fisheye Nikkor 16mm f/2.8D"},
 2157|    158|      {0x35, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0x33, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA521DA",
 2158|    158|       "AF-I Nikkor 500mm f/4D IF-ED"},
 2159|    158|      {0x35, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA521DA",
 2160|    158|       "AF-I Nikkor 500mm f/4D IF-ED + TC-14E"},
 2161|    158|      {0x35, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA521DA",
 2162|    158|       "AF-I Nikkor 500mm f/4D IF-ED + TC-17E"},
 2163|    158|      {0x35, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA521DA",
 2164|    158|       "AF-I Nikkor 500mm f/4D IF-ED + TC-20E"},
 2165|    158|      {0x36, 0x48, 0x37, 0x37, 0x24, 0x24, 0x34, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA125DA", "AF Nikkor 24mm f/2.8D"},
 2166|    158|      {0x37, 0x48, 0x30, 0x30, 0x24, 0x24, 0x36, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA127DA", "AF Nikkor 20mm f/2.8D"},
 2167|    158|      {0x38, 0x4C, 0x62, 0x62, 0x14, 0x14, 0x37, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA328DA", "AF Nikkor 85mm f/1.8D"},
 2168|       |      // 39                38
 2169|    158|      {0x3A, 0x40, 0x3C, 0x5C, 0x2C, 0x34, 0x39, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA744DA",
 2170|    158|       "AF Zoom-Nikkor 28-70mm f/3.5-4.5D"},
 2171|    158|      {0x3B, 0x48, 0x44, 0x5C, 0x24, 0x24, 0x3A, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA743DA",
 2172|    158|       "AF Zoom-Nikkor 35-70mm f/2.8D N"},
 2173|    158|      {0x3C, 0x48, 0x60, 0x80, 0x24, 0x24, 0x3B, 0x02, 0x00, 0x00, 0x00, "Nikon", "",
 2174|    158|       "AF Zoom-Nikkor 80-200mm f/2.8D ED"},
 2175|    158|      {0x3D, 0x3C, 0x44, 0x60, 0x30, 0x3C, 0x3E, 0x02, 0x00, 0x00, 0x00, "Nikon", "",
 2176|    158|       "AF Zoom-Nikkor 35-80mm f/4-5.6D"},
 2177|    158|      {0x3E, 0x48, 0x3C, 0x3C, 0x24, 0x24, 0x3D, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA128DA", "AF Nikkor 28mm f/2.8D"},
 2178|    158|      {0x3F, 0x40, 0x44, 0x6A, 0x2C, 0x34, 0x45, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA748DA",
 2179|    158|       "AF Zoom-Nikkor 35-105mm f/3.5-4.5D"},
 2180|       |      // 40
 2181|    158|      {0x41, 0x48, 0x7c, 0x7c, 0x24, 0x24, 0x43, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA330DA",
 2182|    158|       "AF Nikkor 180mm f/2.8D IF-ED"},
 2183|    158|      {0x42, 0x54, 0x44, 0x44, 0x18, 0x18, 0x44, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA129DA", "AF Nikkor 35mm f/2D"},
 2184|    158|      {0x43, 0x54, 0x50, 0x50, 0x0C, 0x0C, 0x46, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA011DB", "AF Nikkor 50mm f/1.4D"},
 2185|    158|      {0x44, 0x44, 0x60, 0x80, 0x34, 0x3C, 0x47, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA753DB",
 2186|    158|       "AF Zoom-Nikkor 80-200mm f/4.5-5.6D"},
 2187|    158|      {0x45, 0x40, 0x3C, 0x60, 0x2C, 0x3C, 0x48, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA752DA",
 2188|    158|       "AF Zoom-Nikkor 28-80mm f/3.5-5.6D"},
 2189|    158|      {0x46, 0x3C, 0x44, 0x60, 0x30, 0x3C, 0x49, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA754DA",
 2190|    158|       "AF Zoom-Nikkor 35-80mm f/4-5.6D N"},
 2191|    158|      {0x47, 0x42, 0x37, 0x50, 0x2A, 0x34, 0x4A, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA756DA",
 2192|    158|       "AF Zoom-Nikkor 24-50mm f/3.3-4.5D"},
 2193|    158|      {0x48, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0x4B, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA333DA",
 2194|    158|       "AF-S Nikkor 300mm f/2.8D IF-ED"},
 2195|    158|      {0x48, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA333DA",
 2196|    158|       "AF-S Nikkor 300mm f/2.8D IF-ED + TC-14E"},
 2197|    158|      {0x48, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA333DA",
 2198|    158|       "AF-S Nikkor 300mm f/2.8D IF-ED + TC-17E"},
 2199|    158|      {0x48, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA333DA",
 2200|    158|       "AF-S Nikkor 300mm f/2.8D IF-ED + TC-20E"},
 2201|    158|      {0x49, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0x4C, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA522DA",
 2202|    158|       "AF-S Nikkor 600mm f/4D IF-ED"},
 2203|    158|      {0x49, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA522DA",
 2204|    158|       "AF-S Nikkor 600mm f/4D IF-ED + TC-14E"},
 2205|    158|      {0x49, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA522DA",
 2206|    158|       "AF-S Nikkor 600mm f/4D IF-ED + TC-17E"},
 2207|    158|      {0x49, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA522DA",
 2208|    158|       "AF-S Nikkor 600mm f/4D IF-ED + TC-20E"},
 2209|    158|      {0x4A, 0x54, 0x62, 0x62, 0x0C, 0x0C, 0x4D, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA332DA",
 2210|    158|       "AF Nikkor 85mm f/1.4D IF"},
 2211|    158|      {0x4B, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0x4E, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA523DA",
 2212|    158|       "AF-S Nikkor 500mm f/4D IF-ED"},
 2213|    158|      {0x4B, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA523DA",
 2214|    158|       "AF-S Nikkor 500mm f/4D IF-ED + TC-14E"},
 2215|    158|      {0x4B, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA523DA",
 2216|    158|       "AF-S Nikkor 500mm f/4D IF-ED + TC-17E"},
 2217|    158|      {0x4B, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA523DA",
 2218|    158|       "AF-S Nikkor 500mm f/4D IF-ED + TC-20E"},
 2219|    158|      {0x4C, 0x40, 0x37, 0x6E, 0x2C, 0x3C, 0x4F, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA757DA",
 2220|    158|       "AF Zoom-Nikkor 24-120mm f/3.5-5.6D IF"},
 2221|    158|      {0x4D, 0x40, 0x3C, 0x80, 0x2C, 0x3C, 0x62, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA758DA",
 2222|    158|       "AF Zoom-Nikkor 28-200mm f/3.5-5.6D IF"},
 2223|    158|      {0x4E, 0x48, 0x72, 0x72, 0x18, 0x18, 0x51, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA329DA",
 2224|    158|       "AF DC-Nikkor 135mm f/2D"},
 2225|    158|      {0x4F, 0x40, 0x37, 0x5C, 0x2C, 0x3C, 0x53, 0x06, 0x00, 0x00, 0x00, "Nikon", "JBA701AA",
 2226|    158|       "IX-Nikkor 24-70mm f/3.5-5.6"},
 2227|    158|      {0x50, 0x48, 0x56, 0x7C, 0x30, 0x3C, 0x54, 0x06, 0x00, 0x00, 0x00, "Nikon", "JBA702AA",
 2228|    158|       "IX-Nikkor 60-180mm f/4-5.6"},
 2229|       |      //                                                  "JBA703AC" "IX-Nikkor 20-60 mm f/3.5-5.6";
 2230|       |      // 51
 2231|       |      // 52
 2232|    158|      {0x53, 0x48, 0x60, 0x80, 0x24, 0x24, 0x57, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA762DA",
 2233|    158|       "AF Zoom-Nikkor 80-200mm f/2.8D ED"},
 2234|    158|      {0x53, 0x48, 0x60, 0x80, 0x24, 0x24, 0x60, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA762DA",
 2235|    158|       "AF Zoom-Nikkor 80-200mm f/2.8D ED"},
 2236|    158|      {0x54, 0x44, 0x5C, 0x7C, 0x34, 0x3C, 0x58, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA763DA",
 2237|    158|       "AF Zoom-Micro Nikkor 70-180mm f/4.5-5.6D ED"},
 2238|    158|      {0x54, 0x44, 0x5C, 0x7C, 0x34, 0x3C, 0x61, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA763DA",
 2239|    158|       "AF Zoom-Micro Nikkor 70-180mm f/4.5-5.6D ED"},
 2240|       |      // 55
 2241|    158|      {0x56, 0x48, 0x5C, 0x8E, 0x30, 0x3C, 0x5A, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA764DA",
 2242|    158|       "AF Zoom-Nikkor 70-300mm f/4-5.6D ED"},
 2243|       |      // 57
 2244|       |      // 58
 2245|    158|      {0x59, 0x48, 0x98, 0x98, 0x24, 0x24, 0x5D, 0x02, 0x07, 0x00, 0x00, "Nikon", "JAA524DA",
 2246|    158|       "AF-S Nikkor 400mm f/2.8D IF-ED"},
 2247|    158|      {0x59, 0x48, 0x98, 0x98, 0x24, 0x24, 0xF1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA524DA",
 2248|    158|       "AF-S Nikkor 400mm f/2.8D IF-ED + TC-14E"},
 2249|    158|      {0x59, 0x48, 0x98, 0x98, 0x24, 0x24, 0xE1, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA524DA",
 2250|    158|       "AF-S Nikkor 400mm f/2.8D IF-ED + TC-17E"},
 2251|    158|      {0x59, 0x48, 0x98, 0x98, 0x24, 0x24, 0xF2, 0x02, 0x0F, 0x00, 0x00, "Nikon", "JAA524DA",
 2252|    158|       "AF-S Nikkor 400mm f/2.8D IF-ED + TC-20E"},
 2253|    158|      {0x5A, 0x3C, 0x3E, 0x56, 0x30, 0x3C, 0x5E, 0x06, 0x00, 0x00, 0x00, "Nikon", "JBA704AA",
 2254|    158|       "IX-Nikkor 30-60mm f/4-5.6"},
 2255|    158|      {0x5B, 0x44, 0x56, 0x7C, 0x34, 0x3C, 0x5F, 0x06, 0x00, 0x00, 0x00, "Nikon", "JBA705AA",
 2256|    158|       "IX-Nikkor 60-180mm f/4.5-5.6"},
 2257|       |      //                                                  "JBA706AC" "IX-Nikkor 20-60 mm f/3.5-5.6N";
 2258|       |      // 5C
 2259|    158|      {0x5D, 0x48, 0x3C, 0x5C, 0x24, 0x24, 0x63, 0x02, 0x01, 0x00, 0x00, "Nikon", "JAA767DA",
 2260|    158|       "AF-S Zoom-Nikkor 28-70mm f/2.8D IF-ED"},
 2261|    158|      {0x5E, 0x48, 0x60, 0x80, 0x24, 0x24, 0x64, 0x02, 0x03, 0x00, 0x00, "Nikon", "JAA765DA",
 2262|    158|       "AF-S Zoom-Nikkor 80-200mm f/2.8D IF-ED"},
 2263|    158|      {0x5F, 0x40, 0x3C, 0x6A, 0x2C, 0x34, 0x65, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA766DA",
 2264|    158|       "AF Zoom-Nikkor 28-105mm f/3.5-4.5D IF"},
 2265|    158|      {0x60, 0x40, 0x3C, 0x60, 0x2C, 0x3C, 0x66, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA769DA",
 2266|    158|       "AF Zoom-Nikkor 28-80mm f/3.5-5.6D"},
 2267|    158|      {0x61, 0x44, 0x5E, 0x86, 0x34, 0x3C, 0x67, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA768DA",
 2268|    158|       "AF Zoom-Nikkor 75-240mm f/4.5-5.6D"},
 2269|       |      // 62                69
 2270|    158|      {0x63, 0x48, 0x2B, 0x44, 0x24, 0x24, 0x68, 0x02, 0x01, 0x00, 0x00, "Nikon", "JAA770DA",
 2271|    158|       "AF-S Nikkor 17-35mm f/2.8D IF-ED"},
 2272|    158|      {0x64, 0x00, 0x62, 0x62, 0x24, 0x24, 0x6A, 0x02, 0x40, 0x00, 0x00, "Nikon", "JAA628DA",
 2273|    158|       "PC Micro-Nikkor 85mm f/2.8D"},
 2274|    158|      {0x65, 0x44, 0x60, 0x98, 0x34, 0x3C, 0x6B, 0x0A, 0x00, 0x00, 0x00, "Nikon", "JAA771DA",
 2275|    158|       "AF VR Zoom-Nikkor 80-400mm f/4.5-5.6D ED"},
 2276|    158|      {0x66, 0x40, 0x2D, 0x44, 0x2C, 0x34, 0x6C, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA772DA",
 2277|    158|       "AF Zoom-Nikkor 18-35mm f/3.5-4.5D IF-ED"},
 2278|    158|      {0x67, 0x48, 0x37, 0x62, 0x24, 0x30, 0x6D, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA774DA",
 2279|    158|       "AF Zoom-Nikkor 24-85mm f/2.8-4D IF"},
 2280|    158|      {0x68, 0x42, 0x3C, 0x60, 0x2A, 0x3C, 0x6E, 0x06, 0x00, 0x00, 0x00, "Nikon", "JAA777DA",
 2281|    158|       "AF Zoom-Nikkor 28-80mm f/3.3-5.6G"},
 2282|    158|      {0x69, 0x48, 0x5C, 0x8E, 0x30, 0x3C, 0x6F, 0x06, 0x00, 0x00, 0x00, "Nikon", "JAA776DA",
 2283|    158|       "AF Zoom-Nikkor 70-300mm f/4-5.6G"},
 2284|    158|      {0x6A, 0x48, 0x8E, 0x8E, 0x30, 0x30, 0x70, 0x02, 0x03, 0x00, 0x00, "Nikon", "JAA334DA",
 2285|    158|       "AF-S Nikkor 300mm f/4D IF-ED"},
 2286|    158|      {0x6B, 0x48, 0x24, 0x24, 0x24, 0x24, 0x71, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA130DA",
 2287|    158|       "AF Nikkor ED 14mm f/2.8D"},
 2288|       |      // 6C                72
 2289|    158|      {0x6D, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0x73, 0x02, 0x03, 0x00, 0x00, "Nikon", "JAA335DA",
 2290|    158|       "AF-S Nikkor 300mm f/2.8D IF-ED II"},
 2291|    158|      {0x6E, 0x48, 0x98, 0x98, 0x24, 0x24, 0x74, 0x02, 0x03, 0x00, 0x00, "Nikon", "JAA525DA",
 2292|    158|       "AF-S Nikkor 400mm f/2.8D IF-ED II"},
 2293|    158|      {0x6F, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0x75, 0x02, 0x03, 0x00, 0x00, "Nikon", "JAA526DA",
 2294|    158|       "AF-S Nikkor 500mm f/4D IF-ED II"},
 2295|    158|      {0x70, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0x76, 0x02, 0x03, 0x00, 0x00, "Nikon", "JAA527DA",
 2296|    158|       "AF-S Nikkor 600mm f/4D IF-ED II"},
 2297|       |      // 71
 2298|    158|      {0x72, 0x48, 0x4C, 0x4C, 0x24, 0x24, 0x77, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA012AA", "Nikkor 45mm f/2.8 P"},
 2299|       |      // 73
 2300|    158|      {0x74, 0x40, 0x37, 0x62, 0x2C, 0x34, 0x78, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA780DA",
 2301|    158|       "AF-S Zoom-Nikkor 24-85mm f/3.5-4.5G IF-ED"},
 2302|    158|      {0x75, 0x40, 0x3C, 0x68, 0x2C, 0x3C, 0x79, 0x06, 0x00, 0x00, 0x00, "Nikon", "JAA778DA",
 2303|    158|       "AF Zoom-Nikkor 28-100mm f/3.5-5.6G"},
 2304|    158|      {0x76, 0x58, 0x50, 0x50, 0x14, 0x14, 0x7A, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA013DA", "AF Nikkor 50mm f/1.8D"},
 2305|    158|      {0x77, 0x48, 0x5C, 0x80, 0x24, 0x24, 0x7B, 0x0E, 0x03, 0x00, 0x00, "Nikon", "JAA781DA",
 2306|    158|       "AF-S VR Zoom-Nikkor 70-200mm f/2.8G IF-ED"},
 2307|    158|      {0x78, 0x40, 0x37, 0x6E, 0x2C, 0x3C, 0x7C, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA782DA",
 2308|    158|       "AF-S VR Zoom-Nikkor 24-120mm f/3.5-5.6G IF-ED"},
 2309|    158|      {0x79, 0x40, 0x3C, 0x80, 0x2C, 0x3C, 0x7F, 0x06, 0x00, 0x00, 0x00, "Nikon", "JAA783DA",
 2310|    158|       "AF Zoom-Nikkor 28-200mm f/3.5-5.6G IF-ED"},
 2311|    158|      {0x7A, 0x3C, 0x1F, 0x37, 0x30, 0x30, 0x7E, 0x06, 0x01, 0x01, 0x00, "Nikon", "JAA784DA",
 2312|    158|       "AF-S DX Zoom-Nikkor 12-24mm f/4G IF-ED"},
 2313|    158|      {0x7B, 0x48, 0x80, 0x98, 0x30, 0x30, 0x80, 0x0E, 0x03, 0x00, 0x00, "Nikon", "JAA787DA",
 2314|    158|       "AF-S VR Zoom-Nikkor 200-400mm f/4G IF-ED"},
 2315|       |      // 7C                81
 2316|    158|      {0x7D, 0x48, 0x2B, 0x53, 0x24, 0x24, 0x82, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA788DA",
 2317|    158|       "AF-S DX Zoom-Nikkor 17-55mm f/2.8G IF-ED"},
 2318|       |      // 7E                83
 2319|    158|      {0x7F, 0x40, 0x2D, 0x5C, 0x2C, 0x34, 0x84, 0x06, 0x11, 0x00, 0x00, "Nikon", "JAA790DA",
 2320|    158|       "AF-S DX Zoom-Nikkor 18-70mm f/3.5-4.5G IF-ED"},
 2321|    158|      {0x80, 0x48, 0x1A, 0x1A, 0x24, 0x24, 0x85, 0x06, 0x00, 0x00, 0x00, "Nikon", "JAA629DA",
 2322|    158|       "AF DX Fisheye-Nikkor 10.5mm f/2.8G ED"},
 2323|    158|      {0x81, 0x54, 0x80, 0x80, 0x18, 0x18, 0x86, 0x0E, 0x03, 0x00, 0x00, "Nikon", "JAA336DA",
 2324|    158|       "AF-S VR Nikkor 200mm f/2G IF-ED"},
 2325|    158|      {0x82, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0x87, 0x0E, 0x13, 0x00, 0x00, "Nikon", "JAA337DA",
 2326|    158|       "AF-S VR Nikkor 300mm f/2.8G IF-ED"},
 2327|    158|      {0x83, 0x00, 0xB0, 0xB0, 0x5A, 0x5A, 0x88, 0x04, 0x00, 0x00, 0x00, "Nikon", "", "FSA-L2, EDG 65, 800mm F13 G"},
 2328|       |      // 84
 2329|       |      // 85
 2330|       |      // 86
 2331|       |      // 87
 2332|       |      // 88
 2333|    158|      {0x89, 0x3C, 0x53, 0x80, 0x30, 0x3C, 0x8B, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA793DA",
 2334|    158|       "AF-S DX Zoom-Nikkor 55-200mm f/4-5.6G ED"},
 2335|    158|      {0x8A, 0x54, 0x6A, 0x6A, 0x24, 0x24, 0x8C, 0x0E, 0x53, 0x00, 0x00, "Nikon", "JAA630DA",
 2336|    158|       "AF-S VR Micro-Nikkor 105mm f/2.8G IF-ED"},
 2337|    158|      {0x8B, 0x40, 0x2D, 0x80, 0x2C, 0x3C, 0x8D, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA794DA",
 2338|    158|       "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED"},
 2339|       |      //{0x8B,0x40,0x2D,0x80,0x2C,0x3C,0xFD,0x0E,0x01,0x01,0x00, "Nikon", "JAA794DA", "AF-S DX VR Zoom-Nikkor
 2340|       |      // 18-200mm f/3.5-5.6G IF-ED"}, // Fix bug #1026.
 2341|    158|      {0x8B, 0x40, 0x2D, 0x80, 0x2C, 0x3C, 0xFD, 0x0E, 0x01, 0x02, 0x00, "Nikon", "JAA813DA",
 2342|    158|       "AF-S DX VR Zoom-Nikkor 18-200mm f/3.5-5.6G IF-ED II"},
 2343|    158|      {0x8C, 0x40, 0x2D, 0x53, 0x2C, 0x3C, 0x8E, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA792DA",
 2344|    158|       "AF-S DX Zoom-Nikkor 18-55mm f/3.5-5.6G ED"},
 2345|    158|      {0x8D, 0x44, 0x5C, 0x8E, 0x34, 0x3C, 0x8F, 0x0E, 0x31, 0x00, 0x00, "Nikon", "JAA795DA",
 2346|    158|       "AF-S VR Zoom-Nikkor 70-300mm f/4.5-5.6G IF-ED"},
 2347|       |      // 8E                90
 2348|    158|      {0x8F, 0x40, 0x2D, 0x72, 0x2C, 0x3C, 0x91, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA796DA",
 2349|    158|       "AF-S DX Zoom-Nikkor 18-135mm f/3.5-5.6G IF-ED"},
 2350|    158|      {0x90, 0x3B, 0x53, 0x80, 0x30, 0x3C, 0x92, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA798DA",
 2351|    158|       "AF-S DX VR Zoom-Nikkor 55-200mm f/4-5.6G IF-ED"},
 2352|       |      // 91                93
 2353|    158|      {0x92, 0x48, 0x24, 0x37, 0x24, 0x24, 0x94, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA801DA",
 2354|    158|       "AF-S Zoom-Nikkor 14-24mm f/2.8G ED"},
 2355|    158|      {0x93, 0x48, 0x37, 0x5C, 0x24, 0x24, 0x95, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA802DA",
 2356|    158|       "AF-S Zoom-Nikkor 24-70mm f/2.8G ED"},
 2357|    158|      {0x94, 0x40, 0x2D, 0x53, 0x2C, 0x3C, 0x96, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA797DA",
 2358|    158|       "AF-S DX Zoom-Nikkor 18-55mm f/3.5-5.6G ED II"},
 2359|    158|      {0x95, 0x4C, 0x37, 0x37, 0x2C, 0x2C, 0x97, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA631DA",
 2360|    158|       "PC-E Nikkor 24mm f/3.5D ED"},
 2361|    158|      {0x95, 0x00, 0x37, 0x37, 0x2C, 0x2C, 0x97, 0x06, 0x00, 0x00, 0x00, "Nikon", "JAA631DA",
 2362|    158|       "PC-E Nikkor 24mm f/3.5D ED"},
 2363|    158|      {0x96, 0x48, 0x98, 0x98, 0x24, 0x24, 0x98, 0x0E, 0x13, 0x00, 0x00, "Nikon", "JAA528DA",
 2364|    158|       "AF-S VR Nikkor 400mm f/2.8G ED"},
 2365|    158|      {0x97, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0x99, 0x0E, 0x13, 0x00, 0x00, "Nikon", "JAA529DA",
 2366|    158|       "AF-S VR Nikkor 500mm f/4G ED"},
 2367|    158|      {0x98, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0x9A, 0x0E, 0x13, 0x00, 0x00, "Nikon", "JAA530DA",
 2368|    158|       "AF-S VR Nikkor 600mm f/4G ED"},
 2369|    158|      {0x99, 0x40, 0x29, 0x62, 0x2C, 0x3C, 0x9B, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA800DA",
 2370|    158|       "AF-S DX VR Zoom-Nikkor 16-85mm f/3.5-5.6G ED"},
 2371|    158|      {0x9A, 0x40, 0x2D, 0x53, 0x2C, 0x3C, 0x9C, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA803DA",
 2372|    158|       "AF-S DX VR Zoom-Nikkor 18-55mm f/3.5-5.6G"},
 2373|    158|      {0x9B, 0x54, 0x4C, 0x4C, 0x24, 0x24, 0x9D, 0x02, 0x00, 0x00, 0x00, "Nikon", "JAA633DA",
 2374|    158|       "PC-E Micro Nikkor 45mm f/2.8D ED"},
 2375|    158|      {0x9B, 0x00, 0x4C, 0x4C, 0x24, 0x24, 0x9D, 0x06, 0x00, 0x00, 0x00, "Nikon", "JAA633DA",
 2376|    158|       "PC-E Micro Nikkor 45mm f/2.8D ED"},
 2377|    158|      {0x9C, 0x54, 0x56, 0x56, 0x24, 0x24, 0x9E, 0x06, 0x41, 0x00, 0x00, "Nikon", "JAA632DA",
 2378|    158|       "AF-S Micro Nikkor 60mm f/2.8G ED"},
 2379|    158|      {0x9D, 0x54, 0x62, 0x62, 0x24, 0x24, 0x9F, 0x02, 0x40, 0x00, 0x00, "Nikon", "JAA634DA",
 2380|    158|       "PC-E Micro Nikkor 85mm f/2.8D"},
 2381|    158|      {0x9D, 0x00, 0x62, 0x62, 0x24, 0x24, 0x9F, 0x06, 0x40, 0x00, 0x00, "Nikon", "JAA634DA",
 2382|    158|       "PC-E Micro Nikkor 85mm f/2.8D"},
 2383|    158|      {0x9E, 0x40, 0x2D, 0x6A, 0x2C, 0x3C, 0xA0, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA805DA",
 2384|    158|       "AF-S DX VR Zoom-Nikkor 18-105mm f/3.5-5.6G ED"},
 2385|    158|      {0x9F, 0x58, 0x44, 0x44, 0x14, 0x14, 0xA1, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA132DA",
 2386|    158|       "AF-S DX Nikkor 35mm f/1.8G"},
 2387|    158|      {0xA0, 0x54, 0x50, 0x50, 0x0C, 0x0C, 0xA2, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA014DA",
 2388|    158|       "AF-S Nikkor 50mm f/1.4G"},
 2389|    158|      {0xA1, 0x40, 0x18, 0x37, 0x2C, 0x34, 0xA3, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA804DA",
 2390|    158|       "AF-S DX Nikkor 10-24mm f/3.5-4.5G ED"},
 2391|    158|      {0xA2, 0x38, 0x5C, 0x8E, 0x34, 0x40, 0xCD, 0x86, 0x00, 0x00, 0x00, "Nikon", "JAA829DA",
 2392|    158|       "AF-P DX Nikkor 70-300mm f/4.5-6.3G ED VR"},
 2393|    158|      {0xA2, 0x48, 0x5C, 0x80, 0x24, 0x24, 0xA4, 0x0E, 0x13, 0x00, 0x00, "Nikon", "JAA807DA",
 2394|    158|       "AF-S Nikkor 70-200mm f/2.8G ED VR II"},
 2395|    158|      {0xA3, 0x3C, 0x29, 0x44, 0x30, 0x30, 0xA5, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA806DA",
 2396|    158|       "AF-S Nikkor 16-35mm f/4G ED VR"},
 2397|    158|      {0xA4, 0x54, 0x37, 0x37, 0x0C, 0x0C, 0xA6, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA131DA",
 2398|    158|       "AF-S Nikkor 24mm f/1.4G ED"},
 2399|    158|      {0xA5, 0x40, 0x3C, 0x8E, 0x2C, 0x3C, 0xA7, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA808DA",
 2400|    158|       "AF-S Nikkor 28-300mm f/3.5-5.6G ED VR"},
 2401|    158|      {0xA6, 0x48, 0x8E, 0x8E, 0x24, 0x24, 0xA8, 0x0E, 0x13, 0x00, 0x00, "Nikon", "JAA339DA",
 2402|    158|       "AF-S Nikkor 300mm f/2.8G IF-ED VR II"},
 2403|    158|      {0xA7, 0x4B, 0x62, 0x62, 0x2C, 0x2C, 0xA9, 0x0E, 0x41, 0x00, 0x00, "Nikon", "JAA637DA",
 2404|    158|       "AF-S DX Micro Nikkor 85mm f/3.5G ED VR"},
 2405|    158|      {0xA8, 0x48, 0x80, 0x98, 0x30, 0x30, 0xAA, 0x0E, 0x03, 0x00, 0x00, "Nikon", "JAA809DA",
 2406|    158|       "AF-S Zoom-Nikkor 200-400mm f/4G IF-ED VR II"},
 2407|    158|      {0xA9, 0x54, 0x80, 0x80, 0x18, 0x18, 0xAB, 0x0E, 0x13, 0x00, 0x00, "Nikon", "JAA340DA",
 2408|    158|       "AF-S Nikkor 200mm f/2G ED VR II"},
 2409|    158|      {0xAA, 0x3C, 0x37, 0x6E, 0x30, 0x30, 0xAC, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA811DA",
 2410|    158|       "AF-S Nikkor 24-120mm f/4G ED VR"},
 2411|       |      // AB                AD                                          -- no lens --
 2412|    158|      {0xAC, 0x38, 0x53, 0x8E, 0x34, 0x3C, 0xAE, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA814DA",
 2413|    158|       "AF-S DX Nikkor 55-300mm f/4.5-5.6G ED VR"},
 2414|    158|      {0xAD, 0x3C, 0x2D, 0x8E, 0x2C, 0x3C, 0xAF, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA812DA",
 2415|    158|       "AF-S DX Nikkor 18-300mm f/3.5-5.6G ED VR"},
 2416|    158|      {0xAD, 0x3C, 0xA0, 0xA0, 0x3C, 0x3C, 0xD8, 0x4E, 0x00, 0x00, 0x00, "Nikon", "JAA535DA",
 2417|    158|       "AF-S Nikkor 500mm f/5.6E PF ED VR"},
 2418|    158|      {0xAE, 0x54, 0x62, 0x62, 0x0C, 0x0C, 0xB0, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA338DA",
 2419|    158|       "AF-S Nikkor 85mm f/1.4G"},
 2420|    158|      {0xAF, 0x54, 0x44, 0x44, 0x0C, 0x0C, 0xB1, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA134DA",
 2421|    158|       "AF-S Nikkor 35mm f/1.4G"},
 2422|    158|      {0xB0, 0x4C, 0x50, 0x50, 0x14, 0x14, 0xB2, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA015DA",
 2423|    158|       "AF-S Nikkor 50mm f/1.8G"},
 2424|    158|      {0xB1, 0x48, 0x48, 0x48, 0x24, 0x24, 0xB3, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA638DA",
 2425|    158|       "AF-S DX Micro Nikkor 40mm f/2.8G"},
 2426|    158|      {0xB2, 0x48, 0x5C, 0x80, 0x30, 0x30, 0xB4, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA815DA",
 2427|    158|       "AF-S Nikkor 70-200mm f/4G ED VR"},
 2428|    158|      {0xB3, 0x4C, 0x62, 0x62, 0x14, 0x14, 0xB5, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA341DA",
 2429|    158|       "AF-S Nikkor 85mm f/1.8G"},
 2430|    158|      {0xB4, 0x40, 0x37, 0x62, 0x2C, 0x34, 0xB6, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA816DA",
 2431|    158|       "AF-S Nikkor 24-85mm f/3.5-4.5G ED VR"},
 2432|    158|      {0xB5, 0x4C, 0x3C, 0x3C, 0x14, 0x14, 0xB7, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA135DA",
 2433|    158|       "AF-S Nikkor 28mm f/1.8G"},
 2434|    158|      {0xB6, 0x3C, 0xB0, 0xB0, 0x3C, 0x3C, 0xB8, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA531DA",
 2435|    158|       "AF-S VR Nikkor 800mm f/5.6E FL ED"},
 2436|    158|      {0xB6, 0x3C, 0xB0, 0xB0, 0x3C, 0x3C, 0xB8, 0x4E, 0x01, 0x00, 0x00, "Nikon", "JAA531DA",
 2437|    158|       "AF-S VR Nikkor 800mm f/5.6E FL ED"},
 2438|    158|      {0xB7, 0x44, 0x60, 0x98, 0x34, 0x3C, 0xB9, 0x0E, 0x01, 0x00, 0x00, "Nikon", "JAA817DA",
 2439|    158|       "AF-S Nikkor 80-400mm f/4.5-5.6G ED VR"},
 2440|    158|      {0xB8, 0x40, 0x2D, 0x44, 0x2C, 0x34, 0xBA, 0x06, 0x01, 0x00, 0x00, "Nikon", "JAA818DA",
 2441|    158|       "AF-S Nikkor 18-35mm f/3.5-4.5G ED"},
 2442|    158|      {0xA0, 0x40, 0x2D, 0x74, 0x2C, 0x3C, 0xBB, 0x0E, 0x01, 0x00, 0x01, "Nikon", "JAA819DA",
 2443|    158|       "AF-S DX Nikkor 18-140mm f/3.5-5.6G ED VR"},
 2444|    158|      {0xA1, 0x54, 0x55, 0x55, 0x0C, 0x0C, 0xBC, 0x06, 0x01, 0x00, 0x01, "Nikon", "JAA136DA",
 2445|    158|       "AF-S Nikkor 58mm f/1.4G"},
 2446|    158|      {0xA2, 0x40, 0x2D, 0x53, 0x2C, 0x3C, 0xBD, 0x0E, 0x01, 0x00, 0x01, "Nikon", "JAA820DA",
 2447|    158|       "AF-S DX Nikkor 18-55mm f/3.5-5.6G VR II"},
 2448|    158|      {0xA4, 0x40, 0x2D, 0x8E, 0x2C, 0x40, 0xBF, 0x0E, 0x01, 0x00, 0x01, "Nikon", "JAA821DA",
 2449|    158|       "AF-S DX Nikkor 18-300mm f/3.5-6.3G ED VR"},
 2450|    158|      {0xA5, 0x4C, 0x44, 0x44, 0x14, 0x14, 0xC0, 0x06, 0x01, 0x00, 0x01, "Nikon", "JAA137DA",
 2451|    158|       "AF-S Nikkor 35mm f/1.8G ED"},
 2452|    158|      {0xA6, 0x48, 0x98, 0x98, 0x24, 0x24, 0xC1, 0x0E, 0x01, 0x00, 0x01, "Nikon", "JAA532DA",
 2453|    158|       "AF-S Nikkor 400mm f/2.8E FL ED VR"},
 2454|    158|      {0xA7, 0x3C, 0x53, 0x80, 0x30, 0x3C, 0xC2, 0x0E, 0x01, 0x00, 0x01, "Nikon", "JAA823DA",
 2455|    158|       "AF-S DX Nikkor 55-200mm f/4-5.6G ED VR II"},
 2456|    158|      {0xA8, 0x48, 0x8E, 0x8E, 0x30, 0x30, 0xC3, 0x4E, 0x01, 0x00, 0x01, "Nikon", "JAA342DA",
 2457|    158|       "AF-S Nikkor 300mm f/4E PF ED VR"},
 2458|    158|      {0xA8, 0x48, 0x8E, 0x8E, 0x30, 0x30, 0xC3, 0x0E, 0x01, 0x00, 0x01, "Nikon", "JAA342DA",
 2459|    158|       "AF-S Nikkor 300mm f/4E PF ED VR"},
 2460|    158|      {0xA9, 0x4C, 0x31, 0x31, 0x14, 0x14, 0xC4, 0x06, 0x01, 0x00, 0x01, "Nikon", "JAA138DA",
 2461|    158|       "AF-S Nikkor 20mm f/1.8G ED"},
 2462|    158|      {0xAA, 0x48, 0x37, 0x5C, 0x24, 0x24, 0xC5, 0x4E, 0x01, 0x00, 0x02, "Nikon", "JAA824DA",
 2463|    158|       "AF-S Nikkor 24-70mm f/2.8E ED VR"},
 2464|    158|      {0xAA, 0x48, 0x37, 0x5C, 0x24, 0x24, 0xC5, 0x0E, 0x01, 0x00, 0x02, "Nikon", "JAA824DA",
 2465|    158|       "AF-S Nikkor 24-70mm f/2.8E ED VR"},
 2466|    158|      {0xAB, 0x3C, 0xA0, 0xA0, 0x30, 0x30, 0xC6, 0x4E, 0x01, 0x00, 0x02, "Nikon", "JAA533DA",
 2467|    158|       "AF-S Nikkor 500mm f/4E FL ED VR"},
 2468|    158|      {0xAC, 0x3C, 0xA6, 0xA6, 0x30, 0x30, 0xC7, 0x4E, 0x01, 0x00, 0x02, "Nikon", "JAA534DA",
 2469|    158|       "AF-S Nikkor 600mm f/4E FL ED VR"},
 2470|    158|      {0xAD, 0x48, 0x28, 0x60, 0x24, 0x30, 0xC8, 0x4E, 0x01, 0x00, 0x02, "Nikon", "JAA825DA",
 2471|    158|       "AF-S DX Nikkor 16-80mm f/2.8-4E ED VR"},
 2472|    158|      {0xAD, 0x48, 0x28, 0x60, 0x24, 0x30, 0xC8, 0x0E, 0x01, 0x00, 0x02, "Nikon", "JAA825DA",
 2473|    158|       "AF-S DX Nikkor 16-80mm f/2.8-4E ED VR"},
 2474|    158|      {0xAE, 0x3C, 0x80, 0xA0, 0x3C, 0x3C, 0xC9, 0x4E, 0x01, 0x00, 0x02, "Nikon", "JAA822DA",
 2475|    158|       "AF-S Nikkor 200-500mm f/5.6E ED VR"},
 2476|    158|      {0xAE, 0x3C, 0x80, 0xA0, 0x3C, 0x3C, 0xC9, 0x0E, 0x01, 0x00, 0x02, "Nikon", "JAA822DA",
 2477|    158|       "AF-S Nikkor 200-500mm f/5.6E ED VR"},
 2478|    158|      {0xA0, 0x40, 0x2D, 0x53, 0x2C, 0x3C, 0xCA, 0x8E, 0x01, 0x00, 0x03, "Nikon", "JAA826DA",
 2479|    158|       "AF-P DX Nikkor 18-55mm f/3.5-5.6G VR"},
 2480|    158|      {0xA0, 0x40, 0x2D, 0x53, 0x2C, 0x3C, 0xCA, 0x0E, 0x01, 0x00, 0x03, "Nikon", "JAA827DA",
 2481|    158|       "AF-P DX Nikkor 18-55mm f/3.5-5.6G"},
 2482|       |      //                  CB
 2483|    158|      {0xAF, 0x4C, 0x37, 0x37, 0x14, 0x14, 0xCC, 0x06, 0x01, 0x00, 0x03, "Nikon", "JAA139DA",
 2484|    158|       "AF-S Nikkor 24mm f/1.8G ED"},
 2485|    158|      {0xA3, 0x38, 0x5C, 0x8E, 0x34, 0x40, 0xCE, 0x8E, 0x01, 0x00, 0x03, "Nikon", "JAA829DA",
 2486|    158|       "AF-P DX Nikkor 70-300mm f/4.5-6.3G ED VR"},
 2487|    158|      {0xA3, 0x38, 0x5C, 0x8E, 0x34, 0x40, 0xCE, 0x0E, 0x01, 0x00, 0x03, "Nikon", "JAA828DA",
 2488|    158|       "AF-P DX Nikkor 70-300mm f/4.5-6.3G ED"},
 2489|    158|      {0xA4, 0x48, 0x5C, 0x80, 0x24, 0x24, 0xCF, 0x4E, 0x01, 0x00, 0x03, "Nikon", "JAA830DA",
 2490|    158|       "AF-S Nikkor 70-200mm f/2.8E FL ED VR"},
 2491|    158|      {0xA4, 0x48, 0x5C, 0x80, 0x24, 0x24, 0xCF, 0x0E, 0x01, 0x00, 0x03, "Nikon", "JAA830DA",
 2492|    158|       "AF-S Nikkor 70-200mm f/2.8E FL ED VR"},
 2493|    158|      {0xA5, 0x54, 0x6A, 0x6A, 0x0C, 0x0C, 0xD0, 0x46, 0x01, 0x00, 0x03, "Nikon", "JAA343DA",
 2494|    158|       "AF-S Nikkor 105mm f/1.4E ED"},
 2495|    158|      {0xA5, 0x54, 0x6A, 0x6A, 0x0C, 0x0C, 0xD0, 0x06, 0x01, 0x00, 0x03, "Nikon", "JAA343DA",
 2496|    158|       "AF-S Nikkor 105mm f/1.4E ED"},
 2497|    158|      {0xA6, 0x48, 0x2F, 0x2F, 0x30, 0x30, 0xD1, 0x46, 0x01, 0x00, 0x03, "Nikon", "JAA639DA", "PC Nikkor 19mm f/4E ED"},
 2498|    158|      {0xA6, 0x48, 0x2F, 0x2F, 0x30, 0x30, 0xD1, 0x06, 0x01, 0x00, 0x03, "Nikon", "JAA639DA", "PC Nikkor 19mm f/4E ED"},
 2499|    158|      {0xA7, 0x40, 0x11, 0x26, 0x2C, 0x34, 0xD2, 0x46, 0x01, 0x00, 0x03, "Nikon", "JAA831DA",
 2500|    158|       "AF-S Fisheye Nikkor 8-15mm f/3.5-4.5E ED"},
 2501|    158|      {0xA7, 0x40, 0x11, 0x26, 0x2C, 0x34, 0xD2, 0x06, 0x01, 0x00, 0x03, "Nikon", "JAA831DA",
 2502|    158|       "AF-S Fisheye Nikkor 8-15mm f/3.5-4.5E ED"},
 2503|    158|      {0xA8, 0x38, 0x18, 0x30, 0x34, 0x3C, 0xD3, 0x8E, 0x01, 0x00, 0x03, "Nikon", "JAA832DA",
 2504|    158|       "AF-P DX Nikkor 10-20mm f/4.5-5.6G VR"},
 2505|    158|      {0xA8, 0x38, 0x18, 0x30, 0x34, 0x3C, 0xD3, 0x0E, 0x01, 0x00, 0x03, "Nikon", "JAA832DA",
 2506|    158|       "AF-P DX Nikkor 10-20mm f/4.5-5.6G VR"},
 2507|       |      // A9                D4
 2508|       |      // AA                D5
 2509|    158|      {0xAB, 0x44, 0x5C, 0x8E, 0x34, 0x3C, 0xD6, 0xCE, 0x01, 0x00, 0x03, "Nikon", "JAA833DA",
 2510|    158|       "AF-P Nikkor 70-300mm f/4.5-5.6E ED VR"},
 2511|    158|      {0xAB, 0x44, 0x5C, 0x8E, 0x34, 0x3C, 0xD6, 0x0E, 0x01, 0x00, 0x03, "Nikon", "JAA833DA",
 2512|    158|       "AF-P Nikkor 70-300mm f/4.5-5.6E ED VR"},
 2513|    158|      {0xAC, 0x54, 0x3C, 0x3C, 0x0C, 0x0C, 0xD7, 0x46, 0x01, 0x00, 0x03, "Nikon", "JAA140DA",
 2514|    158|       "AF-S Nikkor 28mm f/1.4E ED"},
 2515|    158|      {0xAC, 0x54, 0x3C, 0x3C, 0x0C, 0x0C, 0xD7, 0x06, 0x01, 0x00, 0x03, "Nikon", "JAA140DA",
 2516|    158|       "AF-S Nikkor 28mm f/1.4E ED"},
 2517|       |      //
 2518|       |      //
 2519|       |      //
 2520|       |      //
 2521|       |      //   "AF-S DX Nikkor 18-200mm f/3.5-5.6G ED VR II"
 2522|       |      //
 2523|    158|      {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA90701", "TC-16A"},
 2524|    158|      {0x01, 0x00, 0x00, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA90701", "TC-16A"},
 2525|       |      //
 2526|       |      //------------------------------------------------------------------------------
 2527|       |      // Sigma lenses by focal length, first fixed then zoom lenses
 2528|       |      //------------------------------------------------------------------------------
 2529|       |      //
 2530|    158|      {0xFE, 0x47, 0x00, 0x00, 0x24, 0x24, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "486556",
 2531|    158|       "4.5mm F2.8 EX DC HSM Circular Fisheye"},
 2532|    158|      {0x26, 0x48, 0x11, 0x11, 0x30, 0x30, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "483", "8mm F4 EX Circular Fisheye"},
 2533|    158|      {0x79, 0x40, 0x11, 0x11, 0x2C, 0x2C, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "485597",
 2534|    158|       "8mm F3.5 EX Circular Fisheye"},
 2535|    158|      {0xDC, 0x48, 0x19, 0x19, 0x24, 0x24, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "477554",
 2536|    158|       "10mm F2.8 EX DC HSM Fisheye"},
 2537|    158|      {0x02, 0x3F, 0x24, 0x24, 0x2C, 0x2C, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "468", "14mm F3.5"},
 2538|    158|      {0x48, 0x48, 0x24, 0x24, 0x24, 0x24, 0x4B, 0x02, 0x01, 0x00, 0x00, "Sigma", "", "14mm F2.8 EX Aspherical HSM"},
 2539|    158|      {0x26, 0x48, 0x27, 0x27, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "476441",
 2540|    158|       "15mm F2.8 EX Diagonal Fisheye"},
 2541|    158|      {0xEA, 0x48, 0x27, 0x27, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "15mm F2.8 EX Diagonal Fisheye"},
 2542|       |      // M                                         "Sigma" "410"    "18mm F3.5";
 2543|    158|      {0x26, 0x58, 0x31, 0x31, 0x14, 0x14, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "411442",
 2544|    158|       "20mm F1.8 EX DG Aspherical RF"},
 2545|    158|      {0x79, 0x54, 0x31, 0x31, 0x0C, 0x0C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "412555", "20mm F1.4 DG HSM | A"},
 2546|    158|      {0x7E, 0x54, 0x37, 0x37, 0x0C, 0x0C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "401559", "24mm F1.4 DG HSM | A"},
 2547|    158|      {0x26, 0x58, 0x37, 0x37, 0x14, 0x14, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "432447",
 2548|    158|       "24mm F1.8 EX DG Aspherical Macro"},
 2549|    158|      {0xE1, 0x58, 0x37, 0x37, 0x14, 0x14, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "432447",
 2550|    158|       "24mm F1.8 EX DG Aspherical Macro"},
 2551|    158|      {0x02, 0x46, 0x37, 0x37, 0x25, 0x25, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "438",
 2552|    158|       "24mm F2.8 Super Wide II Macro"},
 2553|    158|      {0xBC, 0x54, 0x3C, 0x3C, 0x0C, 0x0C, 0x4B, 0x46, 0x00, 0x00, 0x00, "Sigma", "441555", "28mm F1.4 DG HSM | A"},
 2554|    158|      {0x26, 0x58, 0x3C, 0x3C, 0x14, 0x14, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "440442",
 2555|    158|       "28mm F1.8 EX DG Aspherical Macro"},
 2556|    158|      {0x48, 0x54, 0x3E, 0x3E, 0x0C, 0x0C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "477554", "30mm F1.4 EX DC HSM"},
 2557|    158|      {0xF8, 0x54, 0x3E, 0x3E, 0x0C, 0x0C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "477554", "30mm F1.4 EX DC HSM"},
 2558|    158|      {0x91, 0x54, 0x44, 0x44, 0x0C, 0x0C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "", "35mm F1.4 DG HSM"},
 2559|    158|      {0xDE, 0x54, 0x50, 0x50, 0x0C, 0x0C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "310554", "50mm F1.4 EX DG HSM"},
 2560|    158|      {0x88, 0x54, 0x50, 0x50, 0x0C, 0x0C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "311551", "50mm F1.4 DG HSM | A"},
 2561|    158|      {0x02, 0x48, 0x50, 0x50, 0x24, 0x24, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "Macro 50mm F2.8"},
 2562|    158|      {0x32, 0x54, 0x50, 0x50, 0x24, 0x24, 0x35, 0x02, 0x00, 0x00, 0x00, "Sigma", "346447", "Macro 50mm F2.8 EX DG"},
 2563|    158|      {0xE3, 0x54, 0x50, 0x50, 0x24, 0x24, 0x35, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "Macro 50mm F2.8 EX DG"},
 2564|    158|      {0x79, 0x48, 0x5C, 0x5C, 0x24, 0x24, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "270599", "Macro 70mm F2.8 EX DG"},
 2565|    158|      {0x9B, 0x54, 0x62, 0x62, 0x0C, 0x0C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "85mm F1.4 EX DG HSM"},
 2566|    158|      {0x02, 0x48, 0x65, 0x65, 0x24, 0x24, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "Macro 90mm F2.8"},
 2567|    158|      {0x32, 0x54, 0x6A, 0x6A, 0x24, 0x24, 0x35, 0x02, 0x00, 0x02, 0x00, "Sigma", "256", "Macro 105mm F2.8 EX DG"},
 2568|    158|      {0xE5, 0x54, 0x6A, 0x6A, 0x24, 0x24, 0x35, 0x02, 0x40, 0x00, 0x00, "Sigma", "257446", "Macro 105mm F2.8 EX DG"},
 2569|    158|      {0x97, 0x48, 0x6A, 0x6A, 0x24, 0x24, 0x4B, 0x0E, 0x00, 0x00, 0x00, "Sigma", "", "Macro 105mm F2.8 EX DG OS HSM"},
 2570|    158|      {0x48, 0x48, 0x76, 0x76, 0x24, 0x24, 0x4B, 0x06, 0x43, 0x00, 0x00, "Sigma", "104559",
 2571|    158|       "APO Macro 150mm F2.8 EX DG HSM"},
 2572|    158|      {0xF5, 0x48, 0x76, 0x76, 0x24, 0x24, 0x4B, 0x06, 0x43, 0x00, 0x00, "Sigma", "104559",
 2573|    158|       "APO Macro 150mm F2.8 EX DG HSM"},
 2574|    158|      {0x99, 0x48, 0x76, 0x76, 0x24, 0x24, 0x4B, 0x0E, 0x43, 0x00, 0x00, "Sigma", "",
 2575|    158|       "APO Macro 150mm F2.8 EX DG OS HSM"},
 2576|    158|      {0x48, 0x4C, 0x7C, 0x7C, 0x2C, 0x2C, 0x4B, 0x02, 0x43, 0x00, 0x00, "Sigma", "", "APO Macro 180mm F3.5 EX DG HSM"},
 2577|    158|      {0x48, 0x4C, 0x7D, 0x7D, 0x2C, 0x2C, 0x4B, 0x02, 0x43, 0x00, 0x00, "Sigma", "105556",
 2578|    158|       "APO Macro 180mm F3.5 EX DG HSM"},
 2579|    158|      {0x94, 0x48, 0x7C, 0x7C, 0x24, 0x24, 0x4B, 0x0E, 0x43, 0x00, 0x00, "Sigma", "",
 2580|    158|       "APO Macro 180mm F2.8 EX DG OS HSM"},
 2581|       |      // M                                         "Sigma" ""       "APO 300mm F2.8";
 2582|    158|      {0x48, 0x54, 0x8E, 0x8E, 0x24, 0x24, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "", "APO 300mm F2.8 EX DG HSM"},
 2583|    158|      {0xFB, 0x54, 0x8E, 0x8E, 0x24, 0x24, 0x4B, 0x02, 0x13, 0x00, 0x00, "Sigma", "195557", "APO 300mm F2.8 EX DG HSM"},
 2584|    158|      {0x26, 0x48, 0x8E, 0x8E, 0x30, 0x30, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "APO Tele Macro 300mm F4"},
 2585|    158|      {0x02, 0x2F, 0x98, 0x98, 0x3D, 0x3D, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "APO 400mm F5.6"},
 2586|    158|      {0x26, 0x3C, 0x98, 0x98, 0x3C, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "APO Tele Macro 400mm F5.6"},
 2587|    158|      {0x02, 0x37, 0xA0, 0xA0, 0x34, 0x34, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "APO 500mm F4.5"},
 2588|    158|      {0x48, 0x44, 0xA0, 0xA0, 0x34, 0x34, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "", "APO 500mm F4.5 EX HSM"},
 2589|    158|      {0xF1, 0x44, 0xA0, 0xA0, 0x34, 0x34, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "184551", "APO 500mm F4.5 EX DG HSM"},
 2590|    158|      {0x02, 0x34, 0xA0, 0xA0, 0x44, 0x44, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "APO 500mm F7.2"},
 2591|    158|      {0x02, 0x3C, 0xB0, 0xB0, 0x3C, 0x3C, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "APO 800mm F5.6"},
 2592|    158|      {0x48, 0x3C, 0xB0, 0xB0, 0x3C, 0x3C, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "", "APO 800mm F5.6 EX HSM"},
 2593|       |      // M                                         "Sigma" "152550" "APO 800mm F5.6 EX DG HSM";
 2594|       |      // M2    B8 B8 49 49 02" "00" "00" "00" "00" "Sigma" ""       "APO 1000mm F8.0";
 2595|       |      //
 2596|    158|      {0x9E, 0x38, 0x11, 0x29, 0x34, 0x3C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "", "8-16mm F4.5-5.6 DC HSM"},
 2597|    158|      {0xA1, 0x41, 0x19, 0x31, 0x2C, 0x2C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "", "10-20mm F3.5 EX DC HSM"},
 2598|    158|      {0x48, 0x3C, 0x19, 0x31, 0x30, 0x3C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "201555", "10-20mm F4-5.6 EX DC HSM"},
 2599|    158|      {0xF9, 0x3C, 0x19, 0x31, 0x30, 0x3C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "201555", "10-20mm F4-5.6 EX DC HSM"},
 2600|    158|      {0xCA, 0x3C, 0x1F, 0x37, 0x30, 0x30, 0x4B, 0x46, 0x01, 0x00, 0x00, "Sigma", "205955", "12-24mm F4 DG HSM | A"},
 2601|    158|      {0x48, 0x38, 0x1F, 0x37, 0x34, 0x3C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "200558",
 2602|    158|       "12-24mm F4.5-5.6 EX DG Aspherical HSM"},
 2603|    158|      {0xF0, 0x38, 0x1F, 0x37, 0x34, 0x3C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "200558",
 2604|    158|       "12-24mm F4.5-5.6 EX DG Aspherical HSM"},
 2605|    158|      {0x96, 0x38, 0x1F, 0x37, 0x34, 0x3C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "12-24mm F4.5-5.6 II DG HSM"},
 2606|    158|      {0xC1, 0x48, 0x24, 0x37, 0x24, 0x24, 0x4B, 0x46, 0x00, 0x00, 0x00, "Sigma", "", "14-24mm F2.8 DG HSM | A"},
 2607|    158|      {0x26, 0x40, 0x27, 0x3F, 0x2C, 0x34, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2608|    158|       "15-30mm F3.5-4.5 EX DG Aspherical DF"},
 2609|    158|      {0x48, 0x48, 0x2B, 0x44, 0x24, 0x30, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "",
 2610|    158|       "17-35mm F2.8-4 EX DG Aspherical HSM"},
 2611|    158|      {0x26, 0x54, 0x2B, 0x44, 0x24, 0x30, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "17-35mm F2.8-4 EX Aspherical"},
 2612|    158|      {0x9D, 0x48, 0x2B, 0x50, 0x24, 0x24, 0x4B, 0x0E, 0x00, 0x00, 0x00, "Sigma", "", "17-50mm F2.8 EX DC OS HSM"},
 2613|    158|      {0x8F, 0x48, 0x2B, 0x50, 0x24, 0x24, 0x4B, 0x0E, 0x00, 0x00, 0x00, "Sigma", "", "17-50mm F2.8 EX DC OS HSM"},
 2614|    158|      {0x7A, 0x47, 0x2B, 0x5C, 0x24, 0x34, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "689599",
 2615|    158|       "17-70mm F2.8-4.5 DC Macro Asp. IF HSM"},
 2616|    158|      {0x7A, 0x48, 0x2B, 0x5C, 0x24, 0x34, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "689599",
 2617|    158|       "17-70mm F2.8-4.5 DC Macro Asp. IF HSM"},
 2618|    158|      {0x7F, 0x48, 0x2B, 0x5C, 0x24, 0x34, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "",
 2619|    158|       "17-70mm F2.8-4.5 DC Macro Asp. IF"},
 2620|    158|      {0x8E, 0x3C, 0x2B, 0x5C, 0x24, 0x30, 0x4B, 0x0E, 0x00, 0x00, 0x00, "Sigma", "",
 2621|    158|       "17-70mm F2.8-4 DC Macro OS HSM | C"},
 2622|    158|      {0xA0, 0x48, 0x2A, 0x5C, 0x24, 0x30, 0x4B, 0x0E, 0x00, 0x00, 0xFE, "Sigma", "", "17-70mm F2.8-4 DC Macro OS HSM"},
 2623|    158|      {0x8B, 0x4C, 0x2D, 0x44, 0x14, 0x14, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "18-35mm F1.8 DC HSM"},
 2624|    158|      {0x26, 0x40, 0x2D, 0x44, 0x2B, 0x34, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "18-35mm F3.5-4.5 Aspherical"},
 2625|    158|      {0x26, 0x48, 0x2D, 0x50, 0x24, 0x24, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "18-50mm F2.8 EX DC"},
 2626|    158|      {0x7F, 0x48, 0x2D, 0x50, 0x24, 0x24, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "18-50mm F2.8 EX DC Macro"},
 2627|    158|      {0x7A, 0x48, 0x2D, 0x50, 0x24, 0x24, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "582593", "18-50mm F2.8 EX DC Macro"},
 2628|    158|      {0xF6, 0x48, 0x2D, 0x50, 0x24, 0x24, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "582593", "18-50mm F2.8 EX DC Macro"},
 2629|    158|      {0xA4, 0x47, 0x2D, 0x50, 0x24, 0x34, 0x4B, 0x0E, 0x01, 0x00, 0x00, "Sigma", "", "18-50mm F2.8-4.5 DC OS HSM"},
 2630|    158|      {0x26, 0x40, 0x2D, 0x50, 0x2C, 0x3C, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "18-50mm F3.5-5.6 DC"},
 2631|    158|      {0x7A, 0x40, 0x2D, 0x50, 0x2C, 0x3C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "551551", "18-50mm F3.5-5.6 DC HSM"},
 2632|    158|      {0x26, 0x40, 0x2D, 0x70, 0x2B, 0x3C, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "18-125mm F3.5-5.6 DC"},
 2633|    158|      {0xCD, 0x3D, 0x2D, 0x70, 0x2E, 0x3C, 0x4B, 0x0E, 0x01, 0x00, 0x00, "Sigma", "853556",
 2634|    158|       "18-125mm F3.8-5.6 DC OS HSM"},
 2635|    158|      {0x26, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "777555", "18-200mm F3.5-6.3 DC"},
 2636|    158|      {0xFF, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "18-200mm F3.5-6.3 DC"},
 2637|    158|      {0x7A, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0x4B, 0x0E, 0x01, 0x00, 0x00, "Sigma", "888558",
 2638|    158|       "18-200mm F3.5-6.3 DC OS HSM"},
 2639|    158|      {0xED, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0x4B, 0x0E, 0x01, 0x00, 0x00, "Sigma", "888558",
 2640|    158|       "18-200mm F3.5-6.3 DC OS HSM"},
 2641|    158|      {0x90, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0x4B, 0x0E, 0x01, 0x00, 0x00, "Sigma", "", "18-200mm F3.5-6.3 II DC OS HSM"},
 2642|    158|      {0xA5, 0x40, 0x2D, 0x88, 0x2C, 0x40, 0x4B, 0x0E, 0x01, 0x00, 0x00, "Sigma", "", "18-250mm F3.5-6.3 DC OS HSM"},
 2643|    158|      {0x92, 0x39, 0x2D, 0x88, 0x2C, 0x40, 0x4B, 0x0E, 0x01, 0x00, 0x00, "Sigma", "",
 2644|    158|       "18-250mm F3.5-6.3 DC OS Macro HSM"},
 2645|    158|      {0x26, 0x48, 0x31, 0x49, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "20-40mm F2.8"},
 2646|    158|      {0x02, 0x3A, 0x37, 0x50, 0x31, 0x3D, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "24-50mm F4-5.6 UC"},
 2647|    158|      {0x26, 0x48, 0x37, 0x56, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "547448", "24-60mm F2.8 EX DG"},
 2648|    158|      {0xB6, 0x48, 0x37, 0x56, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "547448", "24-60mm F2.8 EX DG"},
 2649|    158|      {0xA6, 0x48, 0x37, 0x5C, 0x24, 0x24, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "571559",
 2650|    158|       "24-70mm F2.8 IF EX DG HSM"},
 2651|    158|      {0x26, 0x54, 0x37, 0x5C, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "24-70mm F2.8 EX DG Macro"},
 2652|    158|      {0x67, 0x54, 0x37, 0x5C, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "548445", "24-70mm F2.8 EX DG Macro"},
 2653|    158|      {0xE9, 0x54, 0x37, 0x5C, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "548445", "24-70mm F2.8 EX DG Macro"},
 2654|    158|      {0x26, 0x40, 0x37, 0x5C, 0x2C, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "24-70mm F3.5-5.6 Aspherical HF"},
 2655|    158|      {0x8A, 0x3C, 0x37, 0x6A, 0x30, 0x30, 0x4B, 0x0E, 0x00, 0x00, 0x00, "Sigma", "", "24-105mm F4 DG OS HSM"},
 2656|    158|      {0x26, 0x54, 0x37, 0x73, 0x24, 0x34, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "24-135mm F2.8-4.5"},
 2657|    158|      {0x02, 0x46, 0x3C, 0x5C, 0x25, 0x25, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "28-70mm F2.8"},
 2658|    158|      {0x26, 0x54, 0x3C, 0x5C, 0x24, 0x24, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "28-70mm F2.8 EX"},
 2659|    158|      {0x26, 0x48, 0x3C, 0x5C, 0x24, 0x24, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "549442", "28-70mm F2.8 EX DG"},
 2660|    158|      {0x79, 0x48, 0x3C, 0x5C, 0x24, 0x24, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "28-70mm F2.8 EX DG"},
 2661|    158|      {0x26, 0x48, 0x3C, 0x5C, 0x24, 0x30, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "634445", "28-70mm F2.8-4 DG"},
 2662|    158|      {0x02, 0x3F, 0x3C, 0x5C, 0x2D, 0x35, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "28-70mm F3.5-4.5 UC"},
 2663|    158|      {0x26, 0x40, 0x3C, 0x60, 0x2C, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2664|    158|       "28-80mm F3.5-5.6 Mini Zoom Macro II Aspherical"},
 2665|    158|      {0x26, 0x40, 0x3C, 0x65, 0x2C, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "28-90mm F3.5-5.6 Macro"},
 2666|    158|      {0x26, 0x48, 0x3C, 0x6A, 0x24, 0x30, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "28-105mm F2.8-4 Aspherical"},
 2667|    158|      {0x26, 0x3E, 0x3C, 0x6A, 0x2E, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2668|    158|       "28-105mm F3.8-5.6 UC-III Aspherical IF"},
 2669|    158|      {0x26, 0x40, 0x3C, 0x80, 0x2C, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2670|    158|       "28-200mm F3.5-5.6 Compact Aspherical Hyperzoom Macro"},
 2671|    158|      {0x26, 0x40, 0x3C, 0x80, 0x2B, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2672|    158|       "28-200mm F3.5-5.6 Compact Aspherical Hyperzoom Macro"},
 2673|    158|      {0x26, 0x3D, 0x3C, 0x80, 0x2F, 0x3D, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "28-300mm F3.8-5.6 Aspherical"},
 2674|    158|      {0x26, 0x41, 0x3C, 0x8E, 0x2C, 0x40, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "795443",
 2675|    158|       "28-300mm F3.5-6.3 DG Macro"},
 2676|    158|      {0xE6, 0x41, 0x3C, 0x8E, 0x2C, 0x40, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "28-300mm F3.5-6.3 DG Macro"},
 2677|    158|      {0x26, 0x40, 0x3C, 0x8E, 0x2C, 0x40, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "28-300mm F3.5-6.3 Macro"},
 2678|    158|      {0x02, 0x3B, 0x44, 0x61, 0x30, 0x3D, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "35-80mm F4-5.6"},
 2679|    158|      {0x02, 0x40, 0x44, 0x73, 0x2B, 0x36, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "35-135mm F3.5-4.5 a"},
 2680|    158|      {0xCC, 0x4C, 0x50, 0x68, 0x14, 0x14, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "50-100mm F1.8 DC HSM | A"},
 2681|    158|      {0x7A, 0x47, 0x50, 0x76, 0x24, 0x24, 0x4B, 0x06, 0x03, 0x00, 0x00, "Sigma", "", "50-150mm F2.8 EX APO DC HSM"},
 2682|    158|      {0xFD, 0x47, 0x50, 0x76, 0x24, 0x24, 0x4B, 0x06, 0x03, 0x00, 0x00, "Sigma", "691554",
 2683|    158|       "50-150mm F2.8 EX APO DC HSM II"},
 2684|    158|      {0x98, 0x48, 0x50, 0x76, 0x24, 0x24, 0x4B, 0x0E, 0x00, 0x00, 0x00, "Sigma", "", "50-150mm F2.8 EX DC APO OS HSM"},
 2685|    158|      {0x48, 0x3C, 0x50, 0xA0, 0x30, 0x40, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "736552",
 2686|    158|       "APO 50-500mm F4-6.3 EX HSM"},
 2687|    158|      {0x9F, 0x37, 0x50, 0xA0, 0x34, 0x40, 0x4B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "",
 2688|    158|       "50-500mm F4.5-6.3 APO DG OS HSM"},
 2689|       |      // M                                         "Sigma" "686550" "50-200mm F4-5.6 DC OS HSM";
 2690|    158|      {0x26, 0x3C, 0x54, 0x80, 0x30, 0x3C, 0x1C, 0x06, 0x00, 0x00, 0x00, "Sigma", "", "55-200mm F4-5.6 DC"},
 2691|    158|      {0x7A, 0x3B, 0x53, 0x80, 0x30, 0x3C, 0x4B, 0x06, 0x01, 0x00, 0x00, "Sigma", "", "55-200mm F4-5.6 DC HSM"},
 2692|    158|      {0xBF, 0x38, 0x56, 0xA6, 0x34, 0x40, 0x4B, 0x4E, 0x00, 0x00, 0x00, "Sigma", "",
 2693|    158|       "60-600mm F4.5-6.3 DG OS HSM | S"},
 2694|    158|      {0x48, 0x54, 0x5C, 0x80, 0x24, 0x24, 0x4B, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "70-200mm F2.8 EX APO IF HSM"},
 2695|    158|      {0x7A, 0x48, 0x5C, 0x80, 0x24, 0x24, 0x4B, 0x06, 0x03, 0x00, 0x00, "Sigma", "",
 2696|    158|       "70-200mm F2.8 EX APO DG Macro HSM II"},
 2697|    158|      {0xEE, 0x48, 0x5C, 0x80, 0x24, 0x24, 0x4B, 0x06, 0x03, 0x00, 0x00, "Sigma", "579555",
 2698|    158|       "70-200mm F2.8 EX APO DG Macro HSM II"},
 2699|    158|      {0x9C, 0x48, 0x5C, 0x80, 0x24, 0x24, 0x4B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "", "70-200mm F2.8 EX DG OS HSM"},
 2700|    158|      {0x02, 0x46, 0x5C, 0x82, 0x25, 0x25, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "70-210mm F2.8 APO"},
 2701|    158|      {0x02, 0x40, 0x5C, 0x82, 0x2C, 0x35, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "APO 70-210mm F3.5-4.5"},
 2702|    158|      {0x26, 0x3C, 0x5C, 0x82, 0x30, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "70-210mm F4-5.6 UC-II"},
 2703|    158|      {0x26, 0x3C, 0x5C, 0x8E, 0x30, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "70-300mm F4-5.6 DG Macro"},
 2704|    158|      {0x56, 0x3C, 0x5C, 0x8E, 0x30, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2705|    158|       "70-300mm F4-5.6 APO Macro Super II"},
 2706|    158|      {0xE0, 0x3C, 0x5C, 0x8E, 0x30, 0x3C, 0x4B, 0x06, 0x00, 0x00, 0x00, "Sigma", "508555",
 2707|    158|       "APO 70-300mm F4-5.6 DG Macro"},
 2708|    158|      {0xA3, 0x3C, 0x5C, 0x8E, 0x30, 0x3C, 0x4B, 0x0E, 0x00, 0x00, 0x00, "Sigma", "572556", "70-300mm F4-5.6 DG OS"},
 2709|    158|      {0x02, 0x37, 0x5E, 0x8E, 0x35, 0x3D, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "75-300mm F4.5-5.6 APO"},
 2710|    158|      {0x02, 0x3A, 0x5E, 0x8E, 0x32, 0x3D, 0x02, 0x00, 0x00, 0x00, 0x00, "Sigma", "", "75-300mm F4.0-5.6"},
 2711|    158|      {0x77, 0x44, 0x61, 0x98, 0x34, 0x3C, 0x7B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "", "80-400mm f4.5-5.6 EX OS"},
 2712|    158|      {0x77, 0x44, 0x60, 0x98, 0x34, 0x3C, 0x7B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "", "80-400mm f4.5-5.6 APO DG D OS"},
 2713|    158|      {0x48, 0x48, 0x68, 0x8E, 0x30, 0x30, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "134556",
 2714|    158|       "APO 100-300mm F4 EX IF HSM"},
 2715|    158|      {0xF3, 0x48, 0x68, 0x8E, 0x30, 0x30, 0x4B, 0x02, 0x13, 0x00, 0x00, "Sigma", "134556",
 2716|    158|       "APO 100-300mm F4 EX IF HSM"},
 2717|    158|      {0x48, 0x54, 0x6F, 0x8E, 0x24, 0x24, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "", "APO 120-300mm F2.8 EX DG HSM"},
 2718|    158|      {0x7A, 0x54, 0x6E, 0x8E, 0x24, 0x24, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "135553",
 2719|    158|       "APO 120-300mm F2.8 EX DG HSM"},
 2720|    158|      {0xFA, 0x54, 0x6E, 0x8E, 0x24, 0x24, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "135553",
 2721|    158|       "APO 120-300mm F2.8 EX DG HSM"},
 2722|    158|      {0xCF, 0x38, 0x6E, 0x98, 0x34, 0x3C, 0x4B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "728557",
 2723|    158|       "APO 120-400mm F4.5-5.6 DG OS HSM"},
 2724|    158|      {0xC3, 0x34, 0x68, 0x98, 0x38, 0x40, 0x4B, 0x4E, 0x03, 0x00, 0x00, "Sigma", "", "100-400mm F5-6.3 DG OS HSM | C"},
 2725|    158|      {0x8D, 0x48, 0x6E, 0x8E, 0x24, 0x24, 0x4B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "", "120-300mm F2.8 DG OS HSM | S"},
 2726|    158|      {0x26, 0x44, 0x73, 0x98, 0x34, 0x3C, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2727|    158|       "135-400mm F4.5-5.6 APO Aspherical"},
 2728|    158|      {0xCE, 0x34, 0x76, 0xA0, 0x38, 0x40, 0x4B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "737559",
 2729|    158|       "APO 150-500mm F5-6.3 DG OS HSM"},
 2730|    158|      {0x81, 0x34, 0x76, 0xA6, 0x38, 0x40, 0x4B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "", "150-600mm F5-6.3 DG OS HSM | S"},
 2731|    158|      {0x82, 0x34, 0x76, 0xA6, 0x38, 0x40, 0x4B, 0x0E, 0x03, 0x00, 0x00, "Sigma", "", "150-600mm F5-6.3 DG OS HSM | C"},
 2732|    158|      {0x26, 0x40, 0x7B, 0xA0, 0x34, 0x40, 0x1C, 0x02, 0x00, 0x00, 0x00, "Sigma", "",
 2733|    158|       "APO 170-500mm F5-6.3 Aspherical RF"},
 2734|    158|      {0xA7, 0x49, 0x80, 0xA0, 0x24, 0x24, 0x4B, 0x06, 0x03, 0x00, 0x00, "Sigma", "", "APO 200-500mm F2.8 EX DG"},
 2735|    158|      {0x48, 0x3C, 0x8E, 0xB0, 0x3C, 0x3C, 0x4B, 0x02, 0x03, 0x00, 0x00, "Sigma", "595555",
 2736|    158|       "APO 300-800mm F5.6 EX DG HSM"},
 2737|       |      //
 2738|       |      //------------------------------------------------------------------------------
 2739|       |      // Tamron lenses by focal length, first fixed then zoom lenses
 2740|       |      //------------------------------------------------------------------------------
 2741|       |      //
 2742|    158|      {0x00, 0x47, 0x25, 0x25, 0x24, 0x24, 0x00, 0x02, 0x00, 0x00, 0x00, "Tamron", "69E",
 2743|    158|       "SP AF 14mm F/2.8 Aspherical (IF)"},
 2744|    158|      {0xE8, 0x4C, 0x44, 0x44, 0x14, 0x14, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "F012", "SP 35mm F/1.8 Di VC USD"},
 2745|    158|      {0xE7, 0x4C, 0x4C, 0x4C, 0x14, 0x14, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "F013", "SP 45mm F/1.8 Di VC USD"},
 2746|    158|      {0xF4, 0x54, 0x56, 0x56, 0x18, 0x18, 0x84, 0x06, 0x01, 0x00, 0x00, "Tamron", "G005",
 2747|    158|       "SP AF 60mm F/2 Di II LD (IF) Macro 1:1"},
 2748|    158|      {0x1E, 0x5D, 0x64, 0x64, 0x20, 0x20, 0x13, 0x00, 0x40, 0x00, 0x00, "Tamron", "52E", "SP AF 90mm F/2.5"},
 2749|    158|      {0x20, 0x5A, 0x64, 0x64, 0x20, 0x20, 0x14, 0x00, 0x40, 0x00, 0x00, "Tamron", "152E", "SP AF 90mm F/2.5 Macro"},
 2750|    158|      {0x22, 0x53, 0x64, 0x64, 0x24, 0x24, 0xE0, 0x02, 0x40, 0x00, 0x00, "Tamron", "72E", "SP AF 90mm F/2.8 Macro 1:1"},
 2751|    158|      {0x32, 0x53, 0x64, 0x64, 0x24, 0x24, 0x35, 0x02, 0x40, 0x01, 0x00, "Tamron", "172E",
 2752|    158|       "SP AF 90mm F/2.8 Macro 1:1"},
 2753|    158|      {0x32, 0x53, 0x64, 0x64, 0x24, 0x24, 0x35, 0x02, 0x40, 0x02, 0x00, "Tamron", "272E",
 2754|    158|       "SP AF 90mm F/2.8 Di Macro 1:1"},
 2755|    158|      {0xF8, 0x55, 0x64, 0x64, 0x24, 0x24, 0x84, 0x06, 0x41, 0x00, 0x00, "Tamron", "272NII",
 2756|    158|       "SP AF 90mm F/2.8 Di Macro 1:1"},
 2757|    158|      {0xF8, 0x54, 0x64, 0x64, 0x24, 0x24, 0xDF, 0x06, 0x41, 0x00, 0x00, "Tamron", "272NII",
 2758|    158|       "SP AF 90mm F/2.8 Di Macro 1:1"},
 2759|    158|      {0xFE, 0x54, 0x64, 0x64, 0x24, 0x24, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "F004",
 2760|    158|       "SP 90mm F/2.8 Di VC USD Macro 1:1"},
 2761|    158|      {0xE4, 0x54, 0x64, 0x64, 0x24, 0x24, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "F017",
 2762|    158|       "SP 90mm F/2.8 Di VC USD Macro 1:1"},
 2763|    158|      {0x00, 0x4C, 0x7C, 0x7C, 0x2C, 0x2C, 0x00, 0x02, 0x00, 0x00, 0x00, "Tamron", "B01", "SP AF 180mm F/3.5 Di Model"},
 2764|    158|      {0x21, 0x56, 0x8E, 0x8E, 0x24, 0x24, 0x14, 0x00, 0x00, 0x00, 0x00, "Tamron", "60E", "SP AF 300mm F/2.8 LD-IF"},
 2765|    158|      {0x27, 0x54, 0x8E, 0x8E, 0x24, 0x24, 0x1D, 0x02, 0x00, 0x00, 0x00, "Tamron", "360E", "SP AF 300mm F/2.8 LD-IF"},
 2766|       |      //
 2767|    158|      {0xF6, 0x3F, 0x18, 0x37, 0x2C, 0x34, 0x84, 0x06, 0x01, 0x00, 0x00, "Tamron", "B001",
 2768|    158|       "SP AF 10-24mm F/3.5-4.5 Di II LD Aspherical (IF)"},
 2769|    158|      {0xF6, 0x3F, 0x18, 0x37, 0x2C, 0x34, 0xDF, 0x06, 0x01, 0x00, 0x00, "Tamron", "B001",
 2770|    158|       "SP AF 10-24mm F/3.5-4.5 Di II LD Aspherical (IF)"},
 2771|    158|      {0x00, 0x36, 0x1C, 0x2D, 0x34, 0x3C, 0x00, 0x06, 0x00, 0x00, 0x00, "Tamron", "A13",
 2772|    158|       "SP AF 11-18mm F/4.5-5.6 Di II LD Aspherical (IF)"},
 2773|    158|      {0xCA, 0x48, 0x27, 0x3E, 0x24, 0x24, 0xDF, 0x4E, 0x00, 0x00, 0x00, "Tamron", "A041",
 2774|    158|       "SP 15-30mm F/2.8 Di VC USD G2"},
 2775|    158|      {0xE9, 0x48, 0x27, 0x3E, 0x24, 0x24, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "A012",
 2776|    158|       "SP 15-30mm F/2.8 Di VC USD"},
 2777|    158|      {0xEA, 0x40, 0x29, 0x8E, 0x2C, 0x40, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "B016",
 2778|    158|       "16-300mm F/3.5-6.3 Di II VC PZD Macro"},
 2779|    158|      {0x07, 0x46, 0x2B, 0x44, 0x24, 0x30, 0x03, 0x02, 0x00, 0x00, 0x00, "Tamron", "A05",
 2780|    158|       "SP AF 17-35mm F/2.8-4 Di LD Aspherical (IF)"},
 2781|    158|      {0x00, 0x53, 0x2B, 0x50, 0x24, 0x24, 0x00, 0x06, 0x00, 0x00, 0x00, "Tamron", "A16",
 2782|    158|       "SP AF 17-50mm F/2.8 XR Di II LD Aspherical (IF)"},
 2783|    158|      {0x00, 0x54, 0x2B, 0x50, 0x24, 0x24, 0x00, 0x06, 0x01, 0x00, 0x00, "Tamron", "A16NII",
 2784|    158|       "SP AF 17-50mm F/2.8 XR Di II LD Aspherical (IF)"},
 2785|    158|      {0xFB, 0x54, 0x2B, 0x50, 0x24, 0x24, 0x84, 0x06, 0x01, 0x00, 0x00, "Tamron", "A16NII",
 2786|    158|       "SP AF 17-50mm F/2.8 XR Di II LD Aspherical (IF)"},
 2787|    158|      {0xF3, 0x54, 0x2B, 0x50, 0x24, 0x24, 0x84, 0x0E, 0x01, 0x00, 0x00, "Tamron", "B005",
 2788|    158|       "SP AF 17-50mm F/2.8 XR Di II VC LD Aspherical (IF)"},
 2789|    158|      {0x00, 0x3F, 0x2D, 0x80, 0x2B, 0x40, 0x00, 0x06, 0x00, 0x00, 0x00, "Tamron", "A14",
 2790|    158|       "AF 18-200mm F/3.5-6.3 XR Di II LD Aspherical (IF)"},
 2791|    158|      {0x00, 0x3F, 0x2D, 0x80, 0x2C, 0x40, 0x00, 0x06, 0x00, 0x00, 0x00, "Tamron", "A14",
 2792|    158|       "AF 18-200mm F/3.5-6.3 XR Di II LD Aspherical (IF) Macro"},
 2793|    158|      {0x00, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0x00, 0x06, 0x01, 0x00, 0x00, "Tamron", "A14NII",
 2794|    158|       "AF 18-200mm F/3.5-6.3 XR Di II LD Aspherical (IF) Macro"},
 2795|    158|      {0xFC, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0xDF, 0x06, 0x01, 0x00, 0x00, "Tamron", "A14NII",
 2796|    158|       "AF 18-200mm F/3.5-6.3 XR Di II LD Aspherical (IF) Macro"},
 2797|    158|      {0xE6, 0x40, 0x2D, 0x80, 0x2C, 0x40, 0xDF, 0x0E, 0x01, 0x00, 0x00, "Tamron", "B018",
 2798|    158|       "18-200mm F/3.5-6.3 Di II VC"},
 2799|    158|      {0x00, 0x40, 0x2D, 0x88, 0x2C, 0x40, 0x62, 0x06, 0x00, 0x00, 0x00, "Tamron", "A18",
 2800|    158|       "AF 18-250mm F/3.5-6.3 Di II LD Aspherical (IF) Macro"},
 2801|    158|      {0x00, 0x40, 0x2D, 0x88, 0x2C, 0x40, 0x00, 0x06, 0x01, 0x00, 0x00, "Tamron", "A18NII",
 2802|    158|       "AF 18-250mm F/3.5-6.3 Di II LD Aspherical (IF) Macro "},
 2803|    158|      {0xF5, 0x40, 0x2C, 0x8A, 0x2C, 0x40, 0x40, 0x0E, 0x01, 0x00, 0x00, "Tamron", "B003",
 2804|    158|       "AF 18-270mm F/3.5-6.3 Di II VC LD Aspherical (IF) Macro"},
 2805|    158|      {0xF0, 0x3F, 0x2D, 0x8A, 0x2C, 0x40, 0xDF, 0x0E, 0x01, 0x00, 0x00, "Tamron", "B008",
 2806|    158|       "AF 18-270mm F/3.5-6.3 Di II VC PZD"},
 2807|    158|      {0xE0, 0x40, 0x2D, 0x98, 0x2C, 0x41, 0xDF, 0x4E, 0x01, 0x00, 0x00, "Tamron", "B028",
 2808|    158|       "18-400mm F/3.5-6.3 Di II VC HLD"},
 2809|    158|      {0xE0, 0x40, 0x2D, 0x98, 0x2C, 0x41, 0xDF, 0x0E, 0x01, 0x00, 0x00, "Tamron", "B028",
 2810|    158|       "18-400mm F/3.5-6.3 Di II VC HLD"},
 2811|    158|      {0x07, 0x40, 0x2F, 0x44, 0x2C, 0x34, 0x03, 0x02, 0x00, 0x00, 0x00, "Tamron", "A10", "AF 19-35mm F/3.5-4.5"},
 2812|    158|      {0x07, 0x40, 0x30, 0x45, 0x2D, 0x35, 0x03, 0x02, 0x00, 0x00, 0x00, "Tamron", "A10", "AF 19-35mm F/3.5-4.5"},
 2813|    158|      {0x00, 0x49, 0x30, 0x48, 0x22, 0x2B, 0x00, 0x02, 0x00, 0x00, 0x00, "Tamron", "166D", "SP AF 20-40mm F/2.7-3.5"},
 2814|    158|      {0x0E, 0x4A, 0x31, 0x48, 0x23, 0x2D, 0x0E, 0x02, 0x00, 0x00, 0x00, "Tamron", "166D", "SP AF 20-40mm F/2.7-3.5"},
 2815|       |      // M                                         "Tamron" "266D"   "SP AF 20-40mm F/2.7-3.5 Aspherical-IF";
 2816|    158|      {0xFE, 0x48, 0x37, 0x5C, 0x24, 0x24, 0xDF, 0x0E, 0x01, 0x00, 0x00, "Tamron", "A007",
 2817|    158|       "SP 24-70mm F/2.8 Di VC USD"},
 2818|       |      // M                                         "Tamron" "73D"    "AF 24-70mm F/3.3-5.6 Aspherical";
 2819|    158|      {0xCE, 0x47, 0x37, 0x5C, 0x25, 0x25, 0xDF, 0x4E, 0x00, 0x00, 0x00, "Tamron", "A032",
 2820|    158|       "SP 24-70mm F/2.8 Di VC USD G2"},
 2821|    158|      {0xCE, 0x47, 0x37, 0x5C, 0x25, 0x25, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "A032",
 2822|    158|       "SP 24-70mm F/2.8 Di VC USD G2"},
 2823|    158|      {0x45, 0x41, 0x37, 0x72, 0x2C, 0x3C, 0x48, 0x02, 0x00, 0x00, 0x00, "Tamron", "190D",
 2824|    158|       "SP AF 24-135mm F/3.5-5.6 AD Aspherical (IF) Macro"},
 2825|       |      // M                                         "Tamron" "159D"   "AF 28-70mm F/3.5-4.5";
 2826|       |      // M                                         "Tamron" "259D"   "AF 28-70mm F/3.5-4.5";
 2827|    158|      {0x33, 0x54, 0x3C, 0x5E, 0x24, 0x24, 0x62, 0x02, 0x00, 0x00, 0x00, "Tamron", "A09",
 2828|    158|       "SP AF 28-75mm F/2.8 XR Di LD Aspherical (IF) Macro"},
 2829|    158|      {0xFA, 0x54, 0x3C, 0x5E, 0x24, 0x24, 0x84, 0x06, 0x01, 0x00, 0x00, "Tamron", "A09NII",
 2830|    158|       "SP AF 28-75mm F/2.8 XR Di LD Aspherical (IF) Macro"},
 2831|    158|      {0xFA, 0x54, 0x3C, 0x5E, 0x24, 0x24, 0xDF, 0x06, 0x01, 0x00, 0x00, "Tamron", "A09NII",
 2832|    158|       "SP AF 28-75mm F/2.8 XR Di LD Aspherical (IF) Macro"},
 2833|    158|      {0x10, 0x3D, 0x3C, 0x60, 0x2C, 0x3C, 0xD2, 0x02, 0x00, 0x00, 0x00, "Tamron", "177D",
 2834|    158|       "AF 28-80mm F/3.5-5.6 Aspherical"},
 2835|    158|      {0x45, 0x3D, 0x3C, 0x60, 0x2C, 0x3C, 0x48, 0x02, 0x00, 0x00, 0x00, "Tamron", "177D",
 2836|    158|       "AF 28-80mm F/3.5-5.6 Aspherical"},
 2837|    158|      {0x00, 0x48, 0x3C, 0x6A, 0x24, 0x24, 0x00, 0x02, 0x00, 0x00, 0x00, "Tamron", "176D",
 2838|    158|       "SP AF 28-105mm F/2.8 LD Aspherical IF"},
 2839|       |      // M                                         "Tamron" "276D"   "SP AF 28-105mm F/2.8 LD Aspherical IF";
 2840|       |      // M                                         "Tamron" "179D"   "AF 28-105mm F4.0-5.6 IF";
 2841|    158|      {0x4D, 0x3E, 0x3C, 0x80, 0x2E, 0x3C, 0x62, 0x02, 0x00, 0x00, 0x00, "Tamron", "A03N",
 2842|    158|       "AF 28-200mm F/3.8-5.6 XR Aspherical (IF) Macro"},
 2843|       |      // M                                         "Tamron" "471D"   "AF 28-200mm F/3.8-5.6 Aspherical IF Super2
 2844|       |      // Silver";
 2845|    158|      {0x0B, 0x3E, 0x3D, 0x7F, 0x2F, 0x3D, 0x0E, 0x00, 0x00, 0x00, 0x00, "Tamron", "71D", "AF 28-200mm F/3.8-5.6"},
 2846|    158|      {0x0B, 0x3E, 0x3D, 0x7F, 0x2F, 0x3D, 0x0E, 0x02, 0x00, 0x00, 0x00, "Tamron", "171D", "AF 28-200mm F/3.8-5.6D"},
 2847|    158|      {0x12, 0x3D, 0x3C, 0x80, 0x2E, 0x3C, 0xDF, 0x02, 0x00, 0x00, 0x00, "Tamron", "271D",
 2848|    158|       "AF 28-200mm F/3.8-5.6 LD Aspherical (IF)"},
 2849|    158|      {0x4D, 0x41, 0x3C, 0x8E, 0x2B, 0x40, 0x62, 0x02, 0x00, 0x00, 0x00, "Tamron", "A061",
 2850|    158|       "AF 28-300mm F/3.5-6.3 XR Di LD Aspherical (IF)"},
 2851|    158|      {0x4D, 0x41, 0x3C, 0x8E, 0x2C, 0x40, 0x62, 0x02, 0x00, 0x00, 0x00, "Tamron", "185D",
 2852|    158|       "AF 28-300mm F/3.5-6.3 XR LD Aspherical (IF)"},
 2853|       |      // M                                         "Tamron" "285D"   "AF 28-300mm F/3.8-6.3 LD Aspherical IF
 2854|       |      // Silver";
 2855|    158|      {0xF9, 0x40, 0x3C, 0x8E, 0x2C, 0x40, 0x40, 0x0E, 0x01, 0x00, 0x00, "Tamron", "A20",
 2856|    158|       "AF 28-300mm F/3.5-6.3 XR Di VC LD Aspherical (IF) Macro"},
 2857|       |      // M                                         "Tamron" "63D"    "AF 35-90mm F/4-5.6";
 2858|       |      // M                                         "Tamron" "65D"    "SP AF 35-105mm F/2.8 Aspherical";
 2859|       |      // M                                         "Tamron" ""       "AF 35-135mm F/3.5-4.5";
 2860|    158|      {0xC9, 0x3C, 0x44, 0x76, 0x25, 0x31, 0xDF, 0x4E, 0x00, 0x00, 0x00, "Tamron", "A043",
 2861|    158|       "35-150mm F/2.8-4 Di VC OSD"},
 2862|    158|      {0x00, 0x47, 0x53, 0x80, 0x30, 0x3C, 0x00, 0x06, 0x00, 0x00, 0x00, "Tamron", "A15",
 2863|    158|       "AF 55-200mm F/4-5.6 Di II LD"},
 2864|    158|      {0xF7, 0x53, 0x5C, 0x80, 0x24, 0x24, 0x84, 0x06, 0x01, 0x00, 0x00, "Tamron", "A001",
 2865|    158|       "SP AF 70-200mm F/2.8 Di LD (IF) Macro"},
 2866|    158|      {0xFE, 0x53, 0x5C, 0x80, 0x24, 0x24, 0x84, 0x06, 0x01, 0x00, 0x00, "Tamron", "A001",
 2867|    158|       "SP AF 70-200mm F/2.8 Di LD (IF) Macro"},
 2868|    158|      {0xF7, 0x53, 0x5C, 0x80, 0x24, 0x24, 0x40, 0x06, 0x01, 0x00, 0x00, "Tamron", "A001",
 2869|    158|       "SP AF 70-200mm F/2.8 Di LD (IF) Macro"},
 2870|    158|      {0xFE, 0x54, 0x5C, 0x80, 0x24, 0x24, 0xDF, 0x0E, 0x01, 0x00, 0x00, "Tamron", "A009",
 2871|    158|       "SP 70-200mm F/2.8 Di VC USD"},
 2872|    158|      {0xE2, 0x47, 0x5C, 0x80, 0x24, 0x24, 0xDF, 0x4E, 0x00, 0x00, 0x00, "Tamron", "A025",
 2873|    158|       "SP 70-200mm F/2.8 Di VC USD G2"},
 2874|    158|      {0xCD, 0x47, 0x5C, 0x82, 0x31, 0x31, 0xDF, 0x4E, 0x00, 0x00, 0x00, "Tamron", "A034", "70-210mm F/4 Di VC USD"},
 2875|       |      // M                                         "Tamron" "67D"    "SP AF 70-210mm f/2.8 LD";
 2876|       |      // M                                         "Tamron" ""       "AF 70-210mm F/3.5-4.5";
 2877|       |      // M                                         "Tamron" "158D"   "AF 70-210mm F/4-5.6";
 2878|       |      // M                                         "Tamron" "258D"   "AF 70-210mm F/4-5.6";
 2879|       |      // M                                         "Tamron" "172D"   "AF 70-300mm F/4-5.6";
 2880|       |      // M                                         "Tamron" "472D"   "AF 70-300mm F/4-5.6 LD";
 2881|    158|      {0x69, 0x48, 0x5C, 0x8E, 0x30, 0x3C, 0x6F, 0x02, 0x00, 0x00, 0x00, "Tamron", "572D/772D",
 2882|    158|       "AF 70-300mm F/4-5.6 LD Macro 1:2"},
 2883|    158|      {0x69, 0x47, 0x5C, 0x8E, 0x30, 0x3C, 0x00, 0x02, 0x00, 0x00, 0x00, "Tamron", "A17N",
 2884|    158|       "AF 70-300mm F/4-5.6 Di LD Macro 1:2"},
 2885|    158|      {0x00, 0x48, 0x5C, 0x8E, 0x30, 0x3C, 0x00, 0x06, 0x01, 0x00, 0x00, "Tamron", "A17NII",
 2886|    158|       "AF 70-300mm F/4-5.6 Di LD Macro 1:2"},
 2887|    158|      {0xF1, 0x47, 0x5C, 0x8E, 0x30, 0x3C, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "A005",
 2888|    158|       "SP 70-300mm F4-5.6 Di VC USD"},
 2889|       |      // M                                         "Tamron" "872D"   "AF 75-300mm F/4-5.6 LD";
 2890|       |      // M                                         "Tamron" "278D"   "AF 80-210mm F/4.5-5.6";
 2891|       |      // M                                         "Tamron" "62D"    "AF 90-300mm F/4.5-5.6";
 2892|       |      // M                                         "Tamron" "186D"   "AF 100-300mm F/5-6.3";
 2893|    158|      {0xEB, 0x40, 0x76, 0xA6, 0x38, 0x40, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "A011",
 2894|    158|       "SP AF 150-600mm F/5-6.3 VC USD"},
 2895|    158|      {0xE3, 0x40, 0x76, 0xA6, 0x38, 0x40, 0xDF, 0x4E, 0x00, 0x00, 0x00, "Tamron", "A022",
 2896|    158|       "SP AF 150-600mm F/5-6.3 Di VC USD G2"},
 2897|    158|      {0x20, 0x3C, 0x80, 0x98, 0x3D, 0x3D, 0x1E, 0x02, 0x00, 0x00, 0x00, "Tamron", "75D", "AF 200-400mm F/5.6 LD IF"},
 2898|    158|      {0x00, 0x3E, 0x80, 0xA0, 0x38, 0x3F, 0x00, 0x02, 0x00, 0x00, 0x00, "Tamron", "A08",
 2899|    158|       "SP AF 200-500mm F/5-6.3 Di LD (IF)"},
 2900|    158|      {0x00, 0x3F, 0x80, 0xA0, 0x38, 0x3F, 0x00, 0x02, 0x00, 0x00, 0x00, "Tamron", "A08", "SP AF 200-500mm F/5-6.3 Di"},
 2901|       |      //
 2902|       |      //------------------------------------------------------------------------------
 2903|       |      // Tokina Lenses by focal length, first fixed then zoom lenses
 2904|       |      //------------------------------------------------------------------------------
 2905|       |      //
 2906|    158|      {0x00, 0x40, 0x2B, 0x2B, 0x2C, 0x2C, 0x00, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2907|    158|       "AT-X 17 AF PRO (AF 17mm f/3.5)"},
 2908|    158|      {0x00, 0x47, 0x44, 0x44, 0x24, 0x24, 0x00, 0x06, 0x40, 0x00, 0x00, "Tokina", "T303503",
 2909|    158|       "AT-X M35 PRO DX (AF 35mm f/2.8 Macro)"},
 2910|    158|      {0x00, 0x54, 0x68, 0x68, 0x24, 0x24, 0x00, 0x02, 0x40, 0x00, 0x00, "Tokina", "T310003N",
 2911|    158|       "AT-X M100 AF PRO D (AF 100mm f/2.8 Macro)"},
 2912|    158|      {0x27, 0x48, 0x8E, 0x8E, 0x30, 0x30, 0x1D, 0x02, 0x00, 0x00, 0x00, "Tokina", "", "AT-X 304 AF (AF 300mm f/4)"},
 2913|    158|      {0x00, 0x54, 0x8E, 0x8E, 0x24, 0x24, 0x00, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2914|    158|       "AT-X 300 AF PRO (AF 300mm f/2.8)"},
 2915|    158|      {0x12, 0x3B, 0x98, 0x98, 0x3D, 0x3D, 0x09, 0x00, 0x00, 0x00, 0x00, "Tokina", "",
 2916|    158|       "AT-X 400 AF SD (AF 400mm f/5.6)"},
 2917|       |      //
 2918|    158|      {0x00, 0x40, 0x18, 0x2B, 0x2C, 0x34, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "T4101703",
 2919|    158|       "AT-X 107 AF DX Fisheye (AF 10-17mm f/3.5-4.5)"},
 2920|    158|      {0x00, 0x48, 0x1C, 0x29, 0x24, 0x24, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "T4111603",
 2921|    158|       "AT-X 116 PRO DX (AF 11-16mm f/2.8)"},
 2922|    158|      {0x7A, 0x48, 0x1C, 0x29, 0x24, 0x24, 0x7E, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2923|    158|       "AT-X 116 PRO DX II (AF 11-16mm f/2.8)"},
 2924|    158|      {0x7A, 0x48, 0x1C, 0x30, 0x24, 0x24, 0x7E, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2925|    158|       "AT-X 11-20 F2.8 PRO DX (AF 11-20mm f/2.8)"},
 2926|    158|      {0x8B, 0x48, 0x1C, 0x30, 0x24, 0x24, 0x85, 0x06, 0x00, 0x00, 0x00, "Tokina", "", "ATX-i 11-20mm F2.8 CF"},
 2927|    158|      {0x00, 0x3C, 0x1F, 0x37, 0x30, 0x30, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "T4122403",
 2928|    158|       "AT-X 124 AF PRO DX (AF 12-24mm f/4)"},
 2929|    158|      {0x7A, 0x3C, 0x1F, 0x37, 0x30, 0x30, 0x7E, 0x06, 0x01, 0x02, 0x00, "Tokina", "T4122423",
 2930|    158|       "AT-X 124 AF PRO DX II (AF 12-24mm f/4)"},
 2931|    158|      {0x7A, 0x3C, 0x1F, 0x3C, 0x30, 0x30, 0x7E, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2932|    158|       "AT-X 12-28 PRO DX (AF 12-28mm f/4)"},
 2933|    158|      {0x94, 0x54, 0x24, 0x30, 0x18, 0x18, 0x4a, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2934|    158|       "AT-X 14-20 F2 PRO DX (AF 14-20mm f/2)"},
 2935|    158|      {0x00, 0x48, 0x29, 0x3C, 0x24, 0x24, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2936|    158|       "AT-X 16-28 AF PRO FX (AF 16-28mm f/2.8)"},
 2937|    158|      {0x00, 0x48, 0x29, 0x50, 0x24, 0x24, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2938|    158|       "AT-X 165 PRO DX (AF 16-50mm f/2.8)"},
 2939|    158|      {0x00, 0x40, 0x2A, 0x72, 0x2C, 0x3C, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2940|    158|       "AT-X 16.5-135 DX (AF 16.5-135mm f/3.5-5.6)"},
 2941|    158|      {0x00, 0x3C, 0x2B, 0x44, 0x30, 0x30, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2942|    158|       "AT-X 17-35 F4 PRO FX (AF 17-35mm f/4)"},
 2943|    158|      {0x2F, 0x40, 0x30, 0x44, 0x2C, 0x34, 0x29, 0x02, 0x00, 0x02, 0x00, "Tokina", "", "AF 193 (AF 19-35mm f/3.5-4.5)"},
 2944|    158|      {0x2F, 0x48, 0x30, 0x44, 0x24, 0x24, 0x29, 0x02, 0x00, 0x02, 0x00, "Tokina", "",
 2945|    158|       "AT-X 235 AF PRO (AF 20-35mm f/2.8)"},
 2946|       |      // M                                         "Tokina" ""          "AF 235 (AF 20-35mm f/3.5-4.5)"
 2947|    158|      {0x2F, 0x40, 0x30, 0x44, 0x2C, 0x34, 0x29, 0x02, 0x00, 0x01, 0x00, "Tokina", "",
 2948|    158|       "AF 235 II (AF 20-35mm f/3.5-4.5)"},
 2949|       |      // M                                         "Tokina" ""          "AT-X 240 AF (AF 24-40mm f/2.8)"
 2950|    158|      {0x00, 0x48, 0x37, 0x5C, 0x24, 0x24, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2951|    158|       "AT-X 24-70MM F2.8 PRO FX (AF 24-70mm f/2.8)"},
 2952|    158|      {0x00, 0x40, 0x37, 0x80, 0x2C, 0x3C, 0x00, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2953|    158|       "AT-X 242 AF (AF 24-200mm f/3.5-5.6)"},
 2954|    158|      {0x25, 0x48, 0x3C, 0x5C, 0x24, 0x24, 0x1B, 0x02, 0x00, 0x02, 0x00, "Tokina", "",
 2955|    158|       "AT-X 270 AF PRO II (AF 28-70mm f/2.6-2.8)"},
 2956|    158|      {0x25, 0x48, 0x3C, 0x5C, 0x24, 0x24, 0x1B, 0x02, 0x00, 0x01, 0x00, "Tokina", "",
 2957|    158|       "AT-X 287 AF PRO SV (AF 28-70mm f/2.8)"},
 2958|    158|      {0x07, 0x48, 0x3C, 0x5C, 0x24, 0x24, 0x03, 0x00, 0x00, 0x00, 0x00, "Tokina", "",
 2959|    158|       "AT-X 287 AF (AF 28-70mm f/2.8)"},
 2960|    158|      {0x07, 0x47, 0x3C, 0x5C, 0x25, 0x35, 0x03, 0x00, 0x00, 0x00, 0x00, "Tokina", "",
 2961|    158|       "AF 287 SD (AF 28-70mm f/2.8-4.5)"},
 2962|    158|      {0x07, 0x40, 0x3C, 0x5C, 0x2C, 0x35, 0x03, 0x00, 0x00, 0x00, 0x00, "Tokina", "",
 2963|    158|       "AF 270 II (AF 28-70mm f/3.5-4.5)"},
 2964|    158|      {0x00, 0x48, 0x3C, 0x60, 0x24, 0x24, 0x00, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2965|    158|       "AT-X 280 AF PRO (AF 28-80mm f/2.8)"},
 2966|       |      // M                                         "Tokina" ""          "AF 280 II EMZ (AF 28-80mm f/3.5-5.6)"
 2967|       |      // M                                         "Tokina" ""          "AF 205 (AF 28-105mm f/3.5-4.5)"
 2968|       |      // M                                         "Tokina" ""          "AF 282 (AF 28-200mm 3.5-5.6)"
 2969|       |      // M                                         "Tokina" ""          "AF 282 EMZ II (AF 28-210mm f/4.2-6.5)"
 2970|       |      // M                                         "Tokina" ""          "AF 370 (AF 35-70mm f/3.5-4.6)"
 2971|       |      // M                                         "Tokina" ""          "AF 370 II (AF 35-70mm f/3.5-4.6)"
 2972|    158|      {0x25, 0x44, 0x44, 0x8E, 0x34, 0x42, 0x1B, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2973|    158|       "AF 353 (AF 35-300mm f/4.5-6.7)"},
 2974|    158|      {0x00, 0x48, 0x50, 0x72, 0x24, 0x24, 0x00, 0x06, 0x00, 0x00, 0x00, "Tokina", "",
 2975|    158|       "AT-X 535 PRO DX (AF 50-135mm f/2.8)"},
 2976|    158|      {0x00, 0x3C, 0x5C, 0x80, 0x30, 0x30, 0x00, 0x0E, 0x00, 0x00, 0x00, "Tokina", "",
 2977|    158|       "AT-X 70-200 F4 FX VCM-S (AF 70-200mm f/4)"},
 2978|    158|      {0x00, 0x48, 0x5C, 0x80, 0x30, 0x30, 0x00, 0x0E, 0x00, 0x00, 0x00, "Tokina", "",
 2979|    158|       "AT-X 70-200 F4 FX VCM-S (AF 70-200mm f/4)"},
 2980|       |      // M                                         "Tokina" ""          "AF 745 (AF 70-210mm f/4.5)"
 2981|       |      // M                                         "Tokina" ""          "AF 210 (AF 70-210mm f/4.0-5.6)"
 2982|       |      // M                                         "Tokina" ""          "AF 210 II SD (AF 70-210mm f/4.0-5.6)"
 2983|    158|      {0x12, 0x44, 0x5E, 0x8E, 0x34, 0x3C, 0x09, 0x00, 0x00, 0x00, 0x00, "Tokina", "",
 2984|    158|       "AF 730 (AF 75-300mm f/4.5-5.6)"},
 2985|       |      // M                                         "Tokina" ""          "AF 730 II (AF 75-300mm f/4.5-5.6)"
 2986|    158|      {0x14, 0x54, 0x60, 0x80, 0x24, 0x24, 0x0B, 0x00, 0x00, 0x00, 0x00, "Tokina", "",
 2987|    158|       "AT-X 828 AF (AF 80-200mm f/2.8)"},
 2988|    158|      {0x24, 0x54, 0x60, 0x80, 0x24, 0x24, 0x1A, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2989|    158|       "AT-X 828 AF PRO (AF 80-200mm f/2.8)"},
 2990|       |      // M                                         "Tokina" ""          "AT-X 840 AF (AF 80-400mm f/4.5-5.6)"
 2991|    158|      {0x24, 0x44, 0x60, 0x98, 0x34, 0x3C, 0x1A, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2992|    158|       "AT-X 840 AF-II (AF 80-400mm f/4.5-5.6)"},
 2993|    158|      {0x00, 0x44, 0x60, 0x98, 0x34, 0x3C, 0x00, 0x02, 0x00, 0x00, 0x00, "Tokina", "",
 2994|    158|       "AT-X 840 D (AF 80-400mm f/4.5-5.6)"},
 2995|    158|      {0x14, 0x48, 0x68, 0x8E, 0x30, 0x30, 0x0B, 0x00, 0x00, 0x00, 0x00, "Tokina", "",
 2996|    158|       "AT-X 340 AF (AF 100-300mm f/4)"},
 2997|       |      // M                                         "Tokina" ""          "AT-X 340 AF-II (AF 100-300mm f/4)"
 2998|       |      // M                                         "Tokina" ""          "AF 130 EMZ II (AF 100-300mm f/5.6-6.7)"
 2999|       |      // M                                         "Tokina" ""          "AF 140 EMZ (AF 100-400mm f/4.5-6.3)"
 3000|       |      //
 3001|       |      //------------------------------------------------------------------------------
 3002|       |      // Lenses from various other brands
 3003|       |      //------------------------------------------------------------------------------
 3004|       |      //
 3005|    158|      {0x06, 0x3F, 0x68, 0x68, 0x2C, 0x2C, 0x06, 0x00, 0x00, 0x00, 0x00, "Cosina", "", "AF 100mm F3.5 Macro"},
 3006|    158|      {0x07, 0x36, 0x3D, 0x5F, 0x2C, 0x3C, 0x03, 0x00, 0x00, 0x00, 0x00, "Cosina", "",
 3007|    158|       "AF Zoom 28-80mm F3.5-5.6 MC Macro"},
 3008|    158|      {0x07, 0x46, 0x3D, 0x6A, 0x25, 0x2F, 0x03, 0x00, 0x00, 0x00, 0x00, "Cosina", "", "AF Zoom 28-105mm F2.8-3.8 MC"},
 3009|       |      // M                                         "Cosina" "" "AF Zoom 28-210mm F3.5-5.6";
 3010|       |      // M                                         "Cosina" "" "AF Zoom 28-210mm F4.2-6.5 Aspherical IF";
 3011|       |      // M                                         "Cosina" "" "AF Zoom 28-300mm F4.0-6.3";
 3012|       |      // M                                         "Cosina" "" "AF Zoom 70-210mm F2.8-4.0";
 3013|    158|      {0x12, 0x36, 0x5C, 0x81, 0x35, 0x3D, 0x09, 0x00, 0x00, 0x00, 0x00, "Cosina", "",
 3014|    158|       "AF Zoom 70-210mm F4.5-5.6 MC Macro"},
 3015|    158|      {0x12, 0x39, 0x5C, 0x8E, 0x34, 0x3D, 0x08, 0x02, 0x00, 0x00, 0x00, "Cosina", "",
 3016|    158|       "AF Zoom 70-300mm F4.5-5.6 MC Macro"},
 3017|    158|      {0x12, 0x3B, 0x68, 0x8D, 0x3D, 0x43, 0x09, 0x02, 0x00, 0x00, 0x00, "Cosina", "",
 3018|    158|       "AF Zoom 100-300mm F5.6-6.7 MC Macro"},
 3019|       |      // M                                         "Cosina" "" "AF Zoom 100-400mm F5.6-6.7 MC";
 3020|       |      //
 3021|    158|      {0x12, 0x38, 0x69, 0x97, 0x35, 0x42, 0x09, 0x02, 0x00, 0x00, 0x00, "Promaster", "",
 3022|    158|       "Spectrum 7 100-400mm 1:4.5-6.7"},
 3023|       |      //
 3024|    158|      {0x00, 0x40, 0x31, 0x31, 0x2C, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, "Voigtlander", "BA295AN",
 3025|    158|       "Color Skopar 20mm F3.5 SLII Aspherical"},
 3026|    158|      {0x00, 0x48, 0x3C, 0x3C, 0x24, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, "Voigtlander", "",
 3027|    158|       "Color Skopar 28mm F2.8 SL II"},
 3028|    158|      {0x00, 0x54, 0x48, 0x48, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Voigtlander", "BA229DN",
 3029|    158|       "Ultron 40mm F2 SLII Aspherical"},
 3030|    158|      {0x00, 0x54, 0x55, 0x55, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Voigtlander", "BA239BN",
 3031|    158|       "Nokton 58mm F1.4 SLII"},
 3032|    158|      {0x00, 0x40, 0x64, 0x64, 0x2C, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, "Voigtlander", "",
 3033|    158|       "APO-Lanthar 90mm F3.5 SLII Close Focus"},
 3034|       |      //
 3035|    158|      {0x00, 0x40, 0x2D, 0x2D, 0x2C, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Distagon T* 3,5/18 ZF.2"},
 3036|    158|      {0x00, 0x48, 0x32, 0x32, 0x24, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Distagon T* 2,8/21 ZF.2"},
 3037|    158|      {0x00, 0x54, 0x38, 0x38, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Distagon T* 2/25 ZF.2"},
 3038|    158|      {0x00, 0x54, 0x3C, 0x3C, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Distagon T* 2/28 ZF.2"},
 3039|    158|      {0x00, 0x54, 0x44, 0x44, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Distagon T* 1.4/35 ZF.2"},
 3040|    158|      {0x00, 0x54, 0x44, 0x44, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Distagon T* 2/35 ZF.2"},
 3041|    158|      {0x00, 0x54, 0x50, 0x50, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Planar T* 1,4/50 ZF.2"},
 3042|    158|      {0x00, 0x54, 0x50, 0x50, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Makro-Planar T* 2/50 ZF.2"},
 3043|    158|      {0x00, 0x54, 0x62, 0x62, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Planar T* 1,4/85 ZF.2"},
 3044|    158|      {0x00, 0x54, 0x68, 0x68, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "",
 3045|    158|       "Makro-Planar T* 2/100 ZF.2"},
 3046|    158|      {0x00, 0x54, 0x72, 0x72, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Carl Zeiss", "", "Apo Sonnar T* 2/135 ZF.2"},
 3047|    158|      {0x02, 0x54, 0x3C, 0x3C, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Otus 1.4/28"},
 3048|    158|      {0x00, 0x54, 0x53, 0x53, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Otus 1.4/55"},
 3049|    158|      {0x01, 0x54, 0x62, 0x62, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Otus 1.4/85"},
 3050|    158|      {0x03, 0x54, 0x68, 0x68, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Otus 1.4/100"},
 3051|       |      //                    " "00" "00" "00" "00" "Zeiss" "" "Milvus 2.8/15"
 3052|       |      //                    " "00" "00" "00" "00" "Zeiss" "" "Milvus 2.8/18"
 3053|       |      //                    " "00" "00" "00" "00" "Zeiss" "" "Milvus 2.8/21"
 3054|       |      //                    " "00" "00" "00" "00" "Zeiss" "" "Milvus 1.4/25"
 3055|    158|      {0x52, 0x54, 0x44, 0x44, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Milvus 2/35"},
 3056|    158|      {0x53, 0x54, 0x50, 0x50, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Milvus 1.4/50"},
 3057|    158|      {0x54, 0x54, 0x50, 0x50, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Milvus 2/50M"},
 3058|    158|      {0x55, 0x54, 0x62, 0x62, 0x0C, 0x0C, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Milvus 1.4/85"},
 3059|    158|      {0x56, 0x54, 0x68, 0x68, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Zeiss", "", "Milvus 2/100M"},
 3060|       |      //                    " "00" "00" "00" "00" "Zeiss" "" "Milvus 2/135"
 3061|       |      //
 3062|    158|      {0x00, 0x54, 0x56, 0x56, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, "Coastal Optical Systems", "",
 3063|    158|       "60mm 1:4 UV-VIS-IR Macro Apo"},
 3064|       |      //
 3065|    158|      {0xBF, 0x4E, 0x26, 0x26, 0x1E, 0x1E, 0x01, 0x04, 0x00, 0x00, 0x00, "Irix", "", "15mm f/2.4 Firefly"},
 3066|    158|      {0xBF, 0x3C, 0x1B, 0x1B, 0x30, 0x30, 0x01, 0x04, 0x00, 0x00, 0x00, "Irix", "", "11mm f/4.0 Blackstone/Firefly"},
 3067|       |      //
 3068|    158|      {0x4A, 0x40, 0x11, 0x11, 0x2C, 0x0C, 0x4D, 0x02, 0x00, 0x00, 0x00, "Samyang", "", "8mm f/3.5 Fish-Eye CS"},
 3069|    158|      {0x4A, 0x48, 0x24, 0x24, 0x24, 0x0C, 0x4D, 0x02, 0x00, 0x02, 0x00, "Samyang", "", "10mm f/2.8 ED AS NCS CS"},
 3070|    158|      {0x4A, 0x48, 0x1E, 0x1E, 0x24, 0x0C, 0x4D, 0x02, 0x00, 0x00, 0x00, "Samyang", "",
 3071|    158|       "12mm f/2.8 ED AS NCS Fish-eye"},
 3072|    158|      {0x4A, 0x4C, 0x24, 0x24, 0x1E, 0x6C, 0x4D, 0x06, 0x00, 0x00, 0x00, "Samyang", "", "14mm f/2.4 Premium"},
 3073|    158|      {0x4A, 0x48, 0x24, 0x24, 0x24, 0x0C, 0x4D, 0x02, 0x00, 0x01, 0x00, "Samyang", "", "AE 14mm f/2.8 ED AS IF UMC"},
 3074|    158|      {0x4A, 0x54, 0x29, 0x29, 0x18, 0x0C, 0x4D, 0x02, 0x00, 0x00, 0x00, "Samyang", "", "16mm F2.0 ED AS UMC CS"},
 3075|    158|      {0x4A, 0x60, 0x36, 0x36, 0x0C, 0x0C, 0x4D, 0x02, 0x00, 0x00, 0x00, "Samyang", "", "24mm f/1.4 ED AS UMC"},
 3076|    158|      {0x4A, 0x60, 0x44, 0x44, 0x0C, 0x0C, 0x4D, 0x02, 0x00, 0x00, 0x00, "Samyang", "", "35mm f/1.4 AS UMC"},
 3077|    158|      {0x4A, 0x60, 0x62, 0x62, 0x0C, 0x0C, 0x4D, 0x02, 0x00, 0x00, 0x00, "Samyang", "", "AE 85mm f/1.4 AS IF UMC"},
 3078|       |      //
 3079|    158|      {0x9F, 0x48, 0x23, 0x23, 0x24, 0x24, 0xA1, 0x06, 0x00, 0x00, 0x00, "Yongnuo", "", "YN14mm F2.8N"},
 3080|    158|      {0x9F, 0x4C, 0x44, 0x44, 0x18, 0x18, 0xA1, 0x06, 0x00, 0x00, 0x00, "Yongnuo", "", "YN35mm F2N"},
 3081|    158|      {0x9F, 0x48, 0x48, 0x48, 0x24, 0x24, 0xA1, 0x06, 0x00, 0x00, 0x00, "Yongnuo", "", "YN40mm F2.8N"},
 3082|    158|      {0x9A, 0x4C, 0x50, 0x50, 0x14, 0x14, 0x9C, 0x06, 0x00, 0x00, 0x00, "Yongnuo", "", "YN50mm F1.8N"},
 3083|    158|      {0x9F, 0x4D, 0x50, 0x50, 0x14, 0x14, 0xA0, 0x06, 0x00, 0x00, 0x00, "Yongnuo", "", "YN50mm F1.8N"},
 3084|    158|      {0x9F, 0x54, 0x68, 0x68, 0x18, 0x18, 0xA2, 0x06, 0x00, 0x00, 0x00, "Yongnuo", "", "YN100mm F2N"},
 3085|       |      //
 3086|    158|      {0x02, 0x40, 0x44, 0x5C, 0x2C, 0x34, 0x02, 0x00, 0x00, 0x00, 0x00, "Exakta", "", "AF 35-70mm 1:3.5-4.5 MC"},
 3087|    158|      {0x07, 0x3E, 0x30, 0x43, 0x2D, 0x35, 0x03, 0x00, 0x00, 0x00, 0x00, "Soligor", "", "AF Zoom 19-35mm 1:3.5-4.5 MC"},
 3088|    158|      {0x03, 0x43, 0x5C, 0x81, 0x35, 0x35, 0x02, 0x00, 0x00, 0x00, 0x00, "Soligor", "",
 3089|    158|       "AF C/D Zoom UMCS 70-210mm 1:4.5"},
 3090|    158|      {0x12, 0x4A, 0x5C, 0x81, 0x31, 0x3D, 0x09, 0x00, 0x00, 0x00, 0x00, "Soligor", "",
 3091|    158|       "AF C/D Auto Zoom+Macro 70-210mm 1:4-5.6 UMCS"},
 3092|    158|      {0x12, 0x36, 0x69, 0x97, 0x35, 0x42, 0x09, 0x00, 0x00, 0x00, 0x00, "Soligor", "",
 3093|    158|       "AF Zoom 100-400mm 1:4.5-6.7 MC"},
 3094|       |      //
 3095|    158|      {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, "Manual Lens", "", "No CPU"},
 3096|    158|      {0x00, 0x00, 0x48, 0x48, 0x53, 0x53, 0x00, 0x01, 0x00, 0x00, 0x00, "Loreo", "",
 3097|    158|       "40mm F11-22 3D Lens in a Cap 9005"},
 3098|       |      //
 3099|       |      //------------------------------------------------------------------------------
 3100|       |      //
 3101|       |      // Lenses, that were upgraded with custom CPU
 3102|       |      //
 3103|    158|      {0x00, 0x47, 0x10, 0x10, 0x24, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA604AC",
 3104|    158|       "Fisheye Nikkor 8mm f/2.8 AiS"},
 3105|    158|      {0x00, 0x47, 0x3C, 0x3C, 0x24, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, "Nikon", "", "Nikkor 28mm f/2.8 AiS"},
 3106|       |      //"00 54 44 44 0C 0C 00" "00" "00" "00" "00" "Nikon"   "JAA115AD" "Nikkor 35mm f/1.4 AiS" double ID with
 3107|       |      // Zeiss
 3108|    158|      {0x00, 0x57, 0x50, 0x50, 0x14, 0x14, 0x00, 0x00, 0x00, 0x00, 0x00, "Nikon", "", "Nikkor 50mm f/1.8 AI"},
 3109|    158|      {0x00, 0x48, 0x50, 0x50, 0x18, 0x18, 0x00, 0x00, 0x00, 0x00, 0x00, "Nikon", "", "Nikkor H 50mm f/2"},
 3110|    158|      {0x00, 0x48, 0x68, 0x68, 0x24, 0x24, 0x00, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA304AA", "Series E 100mm f/2.8"},
 3111|    158|      {0x00, 0x4C, 0x6A, 0x6A, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA305AA", "Nikkor 105mm f/2.5 AiS"},
 3112|    158|      {0x00, 0x48, 0x80, 0x80, 0x30, 0x30, 0x00, 0x00, 0x00, 0x00, 0x00, "Nikon", "JAA313AA", "Nikkor 200mm f/4 AiS"},
 3113|    158|      {0x00, 0x40, 0x11, 0x11, 0x2C, 0x2C, 0x00, 0x00, 0x00, 0x00, 0x00, "Samyang", "", "8mm f/3.5 Fish-Eye"},
 3114|    158|      {0x00, 0x58, 0x64, 0x64, 0x20, 0x20, 0x00, 0x00, 0x00, 0x00, 0x00, "Soligor", "", "C/D Macro MC 90mm f/2.5"},
 3115|       |      // https://github.com/Exiv2/exiv2/issues/743
 3116|    158|      {0xc9, 0x48, 0x37, 0x5c, 0x24, 0x24, 0x4b, 0x4e, 0x01, 0x00, 0x00, "Sigma", "", "24-70mm F2.8 DG OS HSM Art"},
 3117|       |      //  https://github.com/Exiv2/exiv2/issues/598 , https://github.com/Exiv2/exiv2/pull/891
 3118|    158|      {0xCF, 0x47, 0x5C, 0x8E, 0x31, 0x3D, 0xDF, 0x0E, 0x00, 0x00, 0x00, "Tamron", "A030",
 3119|    158|       "SP 70-300mm F/4-5.6 Di VC USD"},
 3120|       |      //
 3121|    158|      {0xf4, 0x4c, 0x7c, 0x7c, 0x2c, 0x2c, 0x4b, 0x02, 0x00, 0x00, 0x00, "Sigma", "", "APO Macro 180mm F3.5 EX DG HSM"},
 3122|       |      // https://github.com/Exiv2/exiv2/issues/1078
 3123|    158|      {0x80, 0x48, 0x1C, 0x29, 0x24, 0x24, 0x7A, 0x06, 0x00, 0x00, 0x00, "Tokina", "", "atx-i 11-16mm F2.8 CF"},
 3124|       |      // https://github.com/Exiv2/exiv2/issues/1069
 3125|    158|      {0xc8, 0x54, 0x44, 0x44, 0x0d, 0x0d, 0xdf, 0x46, 0x00, 0x00, 0x00, "Tamron", "F045", "SP 35mm f/1.4 Di USD"},
 3126|       |      // https://github.com/Exiv2/exiv2/pull/1105
 3127|    158|      {0xCB, 0x3C, 0x2B, 0x44, 0x24, 0x31, 0xDF, 0x46, 0x00, 0x00, 0x00, "Tamron", "A037", "17-35mm F/2.8-4 Di OSD"},
 3128|       |      // https://github.com/Exiv2/exiv2/issues/1208
 3129|    158|      {0xC8, 0x54, 0x62, 0x62, 0x0C, 0x0C, 0x4B, 0x46, 0x00, 0x00, 0x00, "Sigma", "321550", "85mm F1.4 DG HSM | A"},
 3130|    158|  };
 3131|       |//------------------------------------------------------------------------------
 3132|    158|#endif
 3133|       |  // 8< - - - 8< do not remove this line >8 - - - >8
 3134|       |
 3135|       |  /* if no meta obj is provided, try to use the value param that *may*
 3136|       |   * be the pre-parsed lensid
 3137|       |   */
 3138|    158|  if (!metadata) {
  ------------------
  |  Branch (3138:7): [True: 79, False: 79]
  ------------------
 3139|     79|    const auto vid = static_cast<unsigned char>(value.toInt64(0));
 3140|       |
 3141|       |    /* the 'FMntLens' name is added to the anonymous struct for
 3142|       |     * fmountlens[]
 3143|       |     *
 3144|       |     * remember to name the struct when importing/updating the lens info
 3145|       |     * from:
 3146|       |     *
 3147|       |     * www.rottmerhusen.com/objektives/lensid/files/c-header/fmountlens4.h
 3148|       |     */
 3149|     79|    if (auto pf = Exiv2::find(fmountlens, vid))
  ------------------
  |  Branch (3149:14): [True: 76, False: 3]
  ------------------
 3150|     76|      return os << pf->manuf << " " << pf->lensname;
 3151|      3|    return os << "(" << value << ")";
 3152|     79|  }
 3153|       |
 3154|     79|  byte raw[] = {0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0};
 3155|       |
 3156|     79|  static constexpr auto tags = std::array{
 3157|     79|      "LensIDNumber",          "LensFStops", "MinFocalLength", "MaxFocalLength", "MaxApertureAtMinFocal",
 3158|     79|      "MaxApertureAtMaxFocal", "MCUVersion",
 3159|     79|  };
 3160|       |
 3161|     79|  const std::string pre = std::string("Exif.") + group + std::string(".");
 3162|    617|  for (unsigned int i = 0; i < 7; ++i) {
  ------------------
  |  Branch (3162:28): [True: 541, False: 76]
  ------------------
 3163|    541|    ExifKey key(pre + std::string(tags[i]));
 3164|    541|    auto md = metadata->findKey(key);
 3165|    541|    if (md == metadata->end() || md->typeId() != unsignedByte || md->count() == 0) {
  ------------------
  |  Branch (3165:9): [True: 3, False: 538]
  |  Branch (3165:9): [True: 3, False: 538]
  |  Branch (3165:34): [True: 0, False: 538]
  |  Branch (3165:66): [True: 0, False: 538]
  ------------------
 3166|      3|      return os << "(" << value << ")";
 3167|      3|    }
 3168|    538|    raw[i] = static_cast<byte>(md->toInt64());
 3169|    538|  }
 3170|       |
 3171|     76|  auto md = metadata->findKey(ExifKey("Exif.Nikon3.LensType"));
 3172|     76|  if (md == metadata->end() || md->typeId() != unsignedByte || md->count() == 0) {
  ------------------
  |  Branch (3172:7): [True: 34, False: 42]
  |  Branch (3172:7): [True: 40, False: 36]
  |  Branch (3172:32): [True: 1, False: 41]
  |  Branch (3172:64): [True: 5, False: 36]
  ------------------
 3173|     40|    return os << "(" << value << ")";
 3174|     40|  }
 3175|     36|  raw[7] = static_cast<byte>(md->toInt64());
 3176|       |
 3177|  20.5k|  for (const auto& f : fmountlens) {
  ------------------
  |  Branch (3177:22): [True: 20.5k, False: 35]
  ------------------
 3178|  20.5k|    if (raw[0] == f.lid) {
  ------------------
  |  Branch (3178:9): [True: 894, False: 19.6k]
  ------------------
 3179|       |      // #1034
 3180|    894|      const std::string undefined("undefined");
 3181|    894|      const std::string section("nikon");
 3182|    894|      auto lensIDStream = std::to_string(raw[7]);
 3183|    894|      if (Internal::readExiv2Config(section, lensIDStream, undefined) != undefined) {
  ------------------
  |  Branch (3183:11): [True: 0, False: 894]
  ------------------
 3184|      0|        return os << Internal::readExiv2Config(section, lensIDStream, undefined);
 3185|      0|      }
 3186|    894|    }
 3187|       |
 3188|  20.5k|    if (raw[0] == f.lid
  ------------------
  |  Branch (3188:9): [True: 894, False: 19.6k]
  ------------------
 3189|       |        // stps varies with focal length for some Sigma zoom lenses.
 3190|    894|        && (raw[1] == f.stps || f.manuf == "Sigma") && raw[2] == f.focs && raw[3] == f.focl && raw[4] == f.aps &&
  ------------------
  |  Branch (3190:13): [True: 60, False: 834]
  |  Branch (3190:33): [True: 62, False: 772]
  |  Branch (3190:56): [True: 17, False: 105]
  |  Branch (3190:76): [True: 14, False: 3]
  |  Branch (3190:96): [True: 9, False: 5]
  ------------------
 3191|      9|        raw[5] == f.apl && raw[6] == f.lfw && raw[7] == f.ltype) {
  ------------------
  |  Branch (3191:9): [True: 6, False: 3]
  |  Branch (3191:28): [True: 1, False: 5]
  |  Branch (3191:47): [True: 1, False: 0]
  ------------------
 3192|       |      // Lens found in database
 3193|      1|      return os << f.manuf << " " << f.lensname;
 3194|      1|    }
 3195|  20.5k|  }
 3196|       |  // Lens not found in database
 3197|     35|  return os << "(" << value << ")";
 3198|       |#else
 3199|       |  return os << "(" << value << ")";
 3200|       |#endif  // EXV_HAVE_LENSDATA
 3201|     36|}
_ZN5Exiv28Internal15Nikon3MakerNote18printFocusDistanceERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3203|    156|std::ostream& Nikon3MakerNote::printFocusDistance(std::ostream& os, const Value& value, const ExifData*) {
 3204|    156|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3204:7): [True: 0, False: 156]
  |  Branch (3204:29): [True: 0, False: 156]
  ------------------
 3205|      0|    return os << "(" << value << ")";
 3206|    156|  auto val = value.toInt64();
 3207|    156|  if (val == 0)
  ------------------
  |  Branch (3207:7): [True: 50, False: 106]
  ------------------
 3208|     50|    return os << _("n/a");
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
 3209|       |
 3210|    106|  return os << stringFormat("{:.2f} m", std::pow(10.0, (val / 40.0) - 2.0));
  ------------------
  |  |   18|    106|#define stringFormat std::format
  ------------------
 3211|    156|}
_ZN5Exiv28Internal15Nikon3MakerNote13printApertureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3213|    612|std::ostream& Nikon3MakerNote::printAperture(std::ostream& os, const Value& value, const ExifData*) {
 3214|    612|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3214:7): [True: 0, False: 612]
  |  Branch (3214:29): [True: 0, False: 612]
  ------------------
 3215|      0|    return os << "(" << value << ")";
 3216|       |
 3217|    612|  auto val = value.toInt64();
 3218|    612|  if (val == 0)
  ------------------
  |  Branch (3218:7): [True: 158, False: 454]
  ------------------
 3219|    158|    return os << _("n/a");
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
 3220|       |
 3221|    454|  return os << stringFormat("F{:.1f}", std::exp2(val / 24.0));
  ------------------
  |  |   18|    454|#define stringFormat std::format
  ------------------
 3222|    612|}
_ZN5Exiv28Internal15Nikon3MakerNote10printFocalERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3224|    460|std::ostream& Nikon3MakerNote::printFocal(std::ostream& os, const Value& value, const ExifData*) {
 3225|    460|  if (value.count() != 1 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (3225:7): [True: 0, False: 460]
  |  Branch (3225:29): [True: 0, False: 460]
  ------------------
 3226|      0|    return os << "(" << value << ")";
 3227|      0|  }
 3228|    460|  auto val = value.toInt64();
 3229|    460|  if (val == 0)
  ------------------
  |  Branch (3229:7): [True: 192, False: 268]
  ------------------
 3230|    192|    return os << _("n/a");
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
 3231|       |
 3232|    268|  return os << stringFormat("{:.1f} mm", 5.0 * std::exp2(val / 24.0));
  ------------------
  |  |   18|    268|#define stringFormat std::format
  ------------------
 3233|    460|}
_ZN5Exiv28Internal15Nikon3MakerNote11printFStopsERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3235|    156|std::ostream& Nikon3MakerNote::printFStops(std::ostream& os, const Value& value, const ExifData*) {
 3236|    156|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3236:7): [True: 0, False: 156]
  |  Branch (3236:29): [True: 0, False: 156]
  ------------------
 3237|      0|    return os << "(" << value << ")";
 3238|    156|  return os << stringFormat("F{:.1f}", value.toInt64() / 12.0);
  ------------------
  |  |   18|    156|#define stringFormat std::format
  ------------------
 3239|    156|}
_ZN5Exiv28Internal15Nikon3MakerNote22printExitPupilPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3241|    166|std::ostream& Nikon3MakerNote::printExitPupilPosition(std::ostream& os, const Value& value, const ExifData*) {
 3242|    166|  if (value.count() != 1 || value.typeId() != unsignedByte || value.toInt64() == 0)
  ------------------
  |  Branch (3242:7): [True: 0, False: 166]
  |  Branch (3242:29): [True: 0, False: 166]
  |  Branch (3242:63): [True: 8, False: 158]
  ------------------
 3243|      8|    return os << "(" << value << ")";
 3244|    158|  return os << stringFormat("{:.1f} mm", 2048.0 / value.toInt64());
  ------------------
  |  |   18|    158|#define stringFormat std::format
  ------------------
 3245|    166|}
_ZN5Exiv28Internal15Nikon3MakerNote21printFlashFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3247|    124|std::ostream& Nikon3MakerNote::printFlashFocalLength(std::ostream& os, const Value& value, const ExifData*) {
 3248|    124|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3248:7): [True: 0, False: 124]
  |  Branch (3248:29): [True: 0, False: 124]
  ------------------
 3249|      0|    return os << "(" << value << ")";
 3250|       |
 3251|    124|  auto temp = value.toInt64();
 3252|    124|  if (temp == 0 || temp == 255)
  ------------------
  |  Branch (3252:7): [True: 20, False: 104]
  |  Branch (3252:20): [True: 4, False: 100]
  ------------------
 3253|     24|    return os << _("n/a");
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
 3254|    100|  return os << stringFormat("{:1} mm", temp);
  ------------------
  |  |   18|    100|#define stringFormat std::format
  ------------------
 3255|    124|}
_ZN5Exiv28Internal15Nikon3MakerNote23printRepeatingFlashRateERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3257|    124|std::ostream& Nikon3MakerNote::printRepeatingFlashRate(std::ostream& os, const Value& value, const ExifData*) {
 3258|    124|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3258:7): [True: 0, False: 124]
  |  Branch (3258:29): [True: 0, False: 124]
  ------------------
 3259|      0|    return os << "(" << value << ")";
 3260|       |
 3261|    124|  auto temp = value.toInt64();
 3262|    124|  if (temp == 0 || temp == 255)
  ------------------
  |  Branch (3262:7): [True: 12, False: 112]
  |  Branch (3262:20): [True: 2, False: 110]
  ------------------
 3263|     14|    return os << _("n/a");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 3264|    110|  return os << stringFormat("{:2} Hz", temp);
  ------------------
  |  |   18|    110|#define stringFormat std::format
  ------------------
 3265|    124|}
_ZN5Exiv28Internal15Nikon3MakerNote24printRepeatingFlashCountERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3267|    122|std::ostream& Nikon3MakerNote::printRepeatingFlashCount(std::ostream& os, const Value& value, const ExifData*) {
 3268|    122|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3268:7): [True: 0, False: 122]
  |  Branch (3268:29): [True: 0, False: 122]
  ------------------
 3269|      0|    return os << "(" << value << ")";
 3270|       |
 3271|    122|  auto temp = value.toInt64();
 3272|    122|  if (temp == 0 || temp == 255)
  ------------------
  |  Branch (3272:7): [True: 8, False: 114]
  |  Branch (3272:20): [True: 4, False: 110]
  ------------------
 3273|     12|    return os << _("n/a");
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
 3274|       |
 3275|    110|  return os << stringFormat("{:1}", temp);
  ------------------
  |  |   18|    110|#define stringFormat std::format
  ------------------
 3276|    122|}
_ZN5Exiv28Internal15Nikon3MakerNote26printExternalFlashData1Fl6ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3279|     48|                                                          const ExifData* metadata) {
 3280|     48|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3280:7): [True: 0, False: 48]
  |  Branch (3280:29): [True: 0, False: 48]
  ------------------
 3281|      0|    return os << "(" << value << ")";
 3282|       |
 3283|     48|  const auto v0 = value.toUint32(0);
 3284|     48|  if (!(v0 & 0x01))
  ------------------
  |  Branch (3284:7): [True: 22, False: 26]
  ------------------
 3285|     22|    return os << _("Did not fire");
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
 3286|       |
 3287|     26|  os << _("Fired");
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
 3288|       |
 3289|     26|  std::ostringstream ossTemp;
 3290|     26|  EXV_PRINT_TAG_BITMASK(nikonFlashAdaptors)(ossTemp, value, metadata);
  ------------------
  |  |  229|     26|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 3291|     26|  std::string tempStr = ossTemp.str();
 3292|     26|  if (!tempStr.empty())
  ------------------
  |  Branch (3292:7): [True: 18, False: 8]
  ------------------
 3293|     18|    return os << ", " << tempStr;
 3294|      8|  return os;
 3295|     26|}
_ZN5Exiv28Internal15Nikon3MakerNote26printExternalFlashData2Fl6ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3298|     48|                                                          const ExifData* metadata) {
 3299|     48|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3299:7): [True: 0, False: 48]
  |  Branch (3299:29): [True: 0, False: 48]
  ------------------
 3300|      0|    return os << "(" << value << ")";
 3301|       |
 3302|     48|  const auto v0 = value.toUint32(0);
 3303|     48|  if (!(v0 & 0x80))
  ------------------
  |  Branch (3303:7): [True: 22, False: 26]
  ------------------
 3304|     22|    return os << _("External flash off");
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
 3305|       |
 3306|     26|  os << _("External flash on") << ", ";
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
 3307|     26|  return EXV_PRINT_TAG(nikonFlashControlMode)(os, (v0 & 0x0F), metadata);
  ------------------
  |  |  199|     26|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3308|     48|}
_ZN5Exiv28Internal15Nikon3MakerNote26printExternalFlashData1Fl7ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3311|     42|                                                          const ExifData* metadata) {
 3312|     42|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3312:7): [True: 0, False: 42]
  |  Branch (3312:29): [True: 0, False: 42]
  ------------------
 3313|      0|    return os << "(" << value << ")";
 3314|       |
 3315|     42|  const auto v0 = value.toUint32();
 3316|     42|  if (!(v0 & 0x01))
  ------------------
  |  Branch (3316:7): [True: 20, False: 22]
  ------------------
 3317|     20|    return os << _("External flash off");
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
 3318|       |
 3319|     22|  os << _("External flash on") << ", ";
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
 3320|     22|  if (v0 & 0x80)
  ------------------
  |  Branch (3320:7): [True: 2, False: 20]
  ------------------
 3321|      2|    os << _("External flash zoom override");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 3322|     20|  else
 3323|     20|    os << _("No external flash zoom override");
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
 3324|       |
 3325|     22|  std::ostringstream ossTemp;
 3326|     22|  EXV_PRINT_TAG_BITMASK(nikonFlashAdaptors)(ossTemp, value, metadata);
  ------------------
  |  |  229|     22|#define EXV_PRINT_TAG_BITMASK(array) printTagBitmask<std::size(array), array>
  ------------------
 3327|     22|  std::string tempStr = ossTemp.str();
 3328|     22|  if (!tempStr.empty())
  ------------------
  |  Branch (3328:7): [True: 20, False: 2]
  ------------------
 3329|     20|    return os << ", " << tempStr;
 3330|      2|  return os;
 3331|     22|}
_ZN5Exiv28Internal15Nikon3MakerNote23printExternalFlashData2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3333|     42|std::ostream& Nikon3MakerNote::printExternalFlashData2(std::ostream& os, const Value& value, const ExifData* metadata) {
 3334|     42|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3334:7): [True: 0, False: 42]
  |  Branch (3334:29): [True: 0, False: 42]
  ------------------
 3335|      0|    return os << "(" << value << ")";
 3336|     42|  return EXV_PRINT_TAG(nikonFlashControlMode)(os, (value.toUint32() & 0x0F), metadata);
  ------------------
  |  |  199|     42|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3337|     42|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashMasterDataFl6ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3339|     72|std::ostream& Nikon3MakerNote::printFlashMasterDataFl6(std::ostream& os, const Value& value, const ExifData* metadata) {
 3340|     72|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3340:7): [True: 0, False: 72]
  |  Branch (3340:29): [True: 0, False: 72]
  |  Branch (3340:63): [True: 36, False: 36]
  ------------------
 3341|     36|    return os << "(" << value << ")";
 3342|       |
 3343|       |  // Check if using an automated or manual mode
 3344|     36|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl6.ExternalFlashData1"));
 3345|     36|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3345:7): [True: 0, False: 36]
  |  Branch (3345:7): [True: 0, False: 36]
  |  Branch (3345:33): [True: 0, False: 36]
  |  Branch (3345:54): [True: 0, False: 36]
  ------------------
 3346|      0|    return os << "(" << value << ")";
 3347|       |
 3348|     36|  if (auto mode = pos->toUint32(0) & 0x0F)
  ------------------
  |  Branch (3348:12): [True: 32, False: 4]
  ------------------
 3349|     32|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3350|     32|                                       flashModeUsesManualScale(mode));
 3351|      4|  return os << _("n/a");
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
 3352|     36|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashMasterDataFl7ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3354|     72|std::ostream& Nikon3MakerNote::printFlashMasterDataFl7(std::ostream& os, const Value& value, const ExifData* metadata) {
 3355|     72|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3355:7): [True: 0, False: 72]
  |  Branch (3355:29): [True: 0, False: 72]
  |  Branch (3355:63): [True: 36, False: 36]
  ------------------
 3356|     36|    return os << "(" << value << ")";
 3357|       |
 3358|       |  // Check if using an automated or manual mode
 3359|     36|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl7.ExternalFlashData2"));
 3360|     36|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3360:7): [True: 0, False: 36]
  |  Branch (3360:7): [True: 0, False: 36]
  |  Branch (3360:33): [True: 0, False: 36]
  |  Branch (3360:54): [True: 0, False: 36]
  ------------------
 3361|      0|    return os << "(" << value << ")";
 3362|       |
 3363|     36|  if (auto mode = pos->toUint32(0) & 0x0F)
  ------------------
  |  Branch (3363:12): [True: 32, False: 4]
  ------------------
 3364|     32|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3365|     32|                                       flashModeUsesManualScale(mode));
 3366|      4|  return os << _("n/a");
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
 3367|     36|}
_ZN5Exiv28Internal15Nikon3MakerNote27printFlashGroupAControlDataERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3369|     88|std::ostream& Nikon3MakerNote::printFlashGroupAControlData(std::ostream& os, const Value& value, const ExifData* data) {
 3370|     88|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3370:7): [True: 0, False: 88]
  |  Branch (3370:29): [True: 0, False: 88]
  ------------------
 3371|      0|    return os << "(" << value << ")";
 3372|     88|  return EXV_PRINT_TAG(nikonFlashControlMode)(os, (value.toUint32() & 0x0F), data);
  ------------------
  |  |  199|     88|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3373|     88|}
_ZN5Exiv28Internal15Nikon3MakerNote28printFlashGroupBCControlDataERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3376|     88|                                                            const ExifData* data) {
 3377|     88|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3377:7): [True: 0, False: 88]
  |  Branch (3377:29): [True: 0, False: 88]
  ------------------
 3378|      0|    return os << "(" << value << ")";
 3379|       |
 3380|     88|  const auto temp = value.toUint32();
 3381|     88|  EXV_PRINT_TAG(nikonFlashControlMode)(os, (temp >> 4), data);
  ------------------
  |  |  199|     88|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3382|     88|  os << ", ";
 3383|     88|  return EXV_PRINT_TAG(nikonFlashControlMode)(os, (temp & 0x0f), data);
  ------------------
  |  |  199|     88|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3384|     88|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashGroupADataFl6ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3386|     70|std::ostream& Nikon3MakerNote::printFlashGroupADataFl6(std::ostream& os, const Value& value, const ExifData* metadata) {
 3387|     70|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3387:7): [True: 0, False: 70]
  |  Branch (3387:29): [True: 0, False: 70]
  |  Branch (3387:63): [True: 35, False: 35]
  ------------------
 3388|     35|    return os << "(" << value << ")";
 3389|       |
 3390|       |  // Check if using an automated or manual mode
 3391|     35|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl6.FlashGroupAControlData"));
 3392|     35|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3392:7): [True: 0, False: 35]
  |  Branch (3392:7): [True: 0, False: 35]
  |  Branch (3392:33): [True: 0, False: 35]
  |  Branch (3392:54): [True: 0, False: 35]
  ------------------
 3393|      0|    return os << "(" << value << ")";
 3394|       |
 3395|     35|  if (auto mode = pos->toUint32(0) & 0x0F)
  ------------------
  |  Branch (3395:12): [True: 31, False: 4]
  ------------------
 3396|     31|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3397|     31|                                       flashModeUsesManualScale(mode));
 3398|      4|  return os << _("n/a");
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
 3399|     35|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashGroupADataFl7ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3401|     72|std::ostream& Nikon3MakerNote::printFlashGroupADataFl7(std::ostream& os, const Value& value, const ExifData* metadata) {
 3402|     72|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3402:7): [True: 0, False: 72]
  |  Branch (3402:29): [True: 0, False: 72]
  |  Branch (3402:63): [True: 36, False: 36]
  ------------------
 3403|     36|    return os << "(" << value << ")";
 3404|       |
 3405|       |  // Check if using an automated or manual mode
 3406|     36|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl7.FlashGroupAControlData"));
 3407|     36|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3407:7): [True: 0, False: 36]
  |  Branch (3407:7): [True: 0, False: 36]
  |  Branch (3407:33): [True: 0, False: 36]
  |  Branch (3407:54): [True: 0, False: 36]
  ------------------
 3408|      0|    return os << "(" << value << ")";
 3409|       |
 3410|     36|  if (auto mode = pos->toUint32(0) & 0x0F)
  ------------------
  |  Branch (3410:12): [True: 31, False: 5]
  ------------------
 3411|     31|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3412|     31|                                       flashModeUsesManualScale(mode));
 3413|      5|  return os << _("n/a");
  ------------------
  |  |   40|      5|#define _(String) (String)
  ------------------
 3414|     36|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashGroupBDataFl6ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3416|     70|std::ostream& Nikon3MakerNote::printFlashGroupBDataFl6(std::ostream& os, const Value& value, const ExifData* metadata) {
 3417|     70|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3417:7): [True: 0, False: 70]
  |  Branch (3417:29): [True: 0, False: 70]
  |  Branch (3417:63): [True: 35, False: 35]
  ------------------
 3418|     35|    return os << "(" << value << ")";
 3419|       |
 3420|       |  // Check if using an automated or manual mode
 3421|     35|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl6.FlashGroupBCControlData"));
 3422|     35|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3422:7): [True: 0, False: 35]
  |  Branch (3422:7): [True: 0, False: 35]
  |  Branch (3422:33): [True: 0, False: 35]
  |  Branch (3422:54): [True: 0, False: 35]
  ------------------
 3423|      0|    return os << "(" << value << ")";
 3424|       |
 3425|     35|  if (auto mode = pos->toUint32(0) >> 4)
  ------------------
  |  Branch (3425:12): [True: 29, False: 6]
  ------------------
 3426|     29|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3427|     29|                                       flashModeUsesManualScale(mode));
 3428|      6|  return os << _("n/a");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 3429|     35|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashGroupBDataFl7ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3431|     72|std::ostream& Nikon3MakerNote::printFlashGroupBDataFl7(std::ostream& os, const Value& value, const ExifData* metadata) {
 3432|     72|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3432:7): [True: 0, False: 72]
  |  Branch (3432:29): [True: 0, False: 72]
  |  Branch (3432:63): [True: 36, False: 36]
  ------------------
 3433|     36|    return os << "(" << value << ")";
 3434|       |
 3435|       |  // Check if using an automated or manual mode
 3436|     36|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl7.FlashGroupBCControlData"));
 3437|     36|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3437:7): [True: 0, False: 36]
  |  Branch (3437:7): [True: 0, False: 36]
  |  Branch (3437:33): [True: 0, False: 36]
  |  Branch (3437:54): [True: 0, False: 36]
  ------------------
 3438|      0|    return os << "(" << value << ")";
 3439|       |
 3440|     36|  if (auto mode = pos->toUint32(0) >> 4)
  ------------------
  |  Branch (3440:12): [True: 31, False: 5]
  ------------------
 3441|     31|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3442|     31|                                       flashModeUsesManualScale(mode));
 3443|      5|  return os << _("n/a");
  ------------------
  |  |   40|      5|#define _(String) (String)
  ------------------
 3444|     36|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashGroupCDataFl6ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3446|     70|std::ostream& Nikon3MakerNote::printFlashGroupCDataFl6(std::ostream& os, const Value& value, const ExifData* metadata) {
 3447|     70|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3447:7): [True: 0, False: 70]
  |  Branch (3447:29): [True: 0, False: 70]
  |  Branch (3447:63): [True: 35, False: 35]
  ------------------
 3448|     35|    return os << "(" << value << ")";
 3449|       |
 3450|       |  // Check if using an automated or manual mode
 3451|     35|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl6.FlashGroupBCControlData"));
 3452|     35|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3452:7): [True: 0, False: 35]
  |  Branch (3452:7): [True: 0, False: 35]
  |  Branch (3452:33): [True: 0, False: 35]
  |  Branch (3452:54): [True: 0, False: 35]
  ------------------
 3453|      0|    return os << "(" << value << ")";
 3454|       |
 3455|     35|  if (auto mode = pos->toUint32(0) & 0x000F)
  ------------------
  |  Branch (3455:12): [True: 30, False: 5]
  ------------------
 3456|     30|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3457|     30|                                       flashModeUsesManualScale(mode));
 3458|      5|  return os << _("n/a");
  ------------------
  |  |   40|      5|#define _(String) (String)
  ------------------
 3459|     35|}
_ZN5Exiv28Internal15Nikon3MakerNote23printFlashGroupCDataFl7ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3461|     66|std::ostream& Nikon3MakerNote::printFlashGroupCDataFl7(std::ostream& os, const Value& value, const ExifData* metadata) {
 3462|     66|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (3462:7): [True: 0, False: 66]
  |  Branch (3462:29): [True: 0, False: 66]
  |  Branch (3462:63): [True: 33, False: 33]
  ------------------
 3463|     33|    return os << "(" << value << ")";
 3464|       |
 3465|       |  // Check if using an automated or manual mode
 3466|     33|  auto pos = metadata->findKey(ExifKey("Exif.NikonFl7.FlashGroupBCControlData"));
 3467|     33|  if (pos == metadata->end() || pos->count() != 1 || pos->typeId() != unsignedByte)
  ------------------
  |  Branch (3467:7): [True: 0, False: 33]
  |  Branch (3467:7): [True: 0, False: 33]
  |  Branch (3467:33): [True: 0, False: 33]
  |  Branch (3467:54): [True: 0, False: 33]
  ------------------
 3468|      0|    return os << "(" << value << ")";
 3469|       |
 3470|     33|  if (auto mode = pos->toUint32(0) & 0x000F)
  ------------------
  |  Branch (3470:12): [True: 28, False: 5]
  ------------------
 3471|     28|    return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)),
 3472|     28|                                       flashModeUsesManualScale(mode));
 3473|      5|  return os << _("n/a");
  ------------------
  |  |   40|      5|#define _(String) (String)
  ------------------
 3474|     33|}
_ZN5Exiv28Internal15Nikon3MakerNote23printExternalFlashData3ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3476|     36|std::ostream& Nikon3MakerNote::printExternalFlashData3(std::ostream& os, const Value& value, const ExifData* data) {
 3477|     36|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3477:7): [True: 0, False: 36]
  |  Branch (3477:29): [True: 0, False: 36]
  ------------------
 3478|      0|    return os << "(" << value << ")";
 3479|     36|  return EXV_PRINT_TAG(nikonFlashExposureComp)(os, (value.toUint32(0) & 0x04), data);
  ------------------
  |  |  199|     36|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3480|     36|}
_ZN5Exiv28Internal15Nikon3MakerNote31printCameraExposureCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3482|    150|std::ostream& Nikon3MakerNote::printCameraExposureCompensation(std::ostream& os, const Value& value, const ExifData*) {
 3483|    150|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3483:7): [True: 0, False: 150]
  |  Branch (3483:29): [True: 0, False: 150]
  ------------------
 3484|      0|    return os << "(" << value << ")";
 3485|    150|  return printFlashCompensationValue(os, static_cast<unsigned char>(value.toUint32(0)), false);
 3486|    150|}
_ZN5Exiv28Internal15Nikon3MakerNote23printExternalFlashData4ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3488|     32|std::ostream& Nikon3MakerNote::printExternalFlashData4(std::ostream& os, const Value& value, const ExifData* metadata) {
 3489|     32|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3489:7): [True: 0, False: 32]
  |  Branch (3489:29): [True: 0, False: 32]
  ------------------
 3490|      0|    return os << "(" << value << ")";
 3491|     32|  return EXV_PRINT_TAG(nikonFlashIlluminationPat)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     32|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3492|     32|}
_ZN5Exiv28Internal15Nikon3MakerNote26printFlashZoomHeadPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3494|     32|std::ostream& Nikon3MakerNote::printFlashZoomHeadPosition(std::ostream& os, const Value& value, const ExifData*) {
 3495|     32|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3495:7): [True: 0, False: 32]
  |  Branch (3495:29): [True: 0, False: 32]
  ------------------
 3496|      0|    return os << "(" << value << ")";
 3497|     32|  if (auto v0 = value.toUint32(0))
  ------------------
  |  Branch (3497:12): [True: 18, False: 14]
  ------------------
 3498|     18|    return os << stringFormat("{} mm", v0);
  ------------------
  |  |   18|     18|#define stringFormat std::format
  ------------------
 3499|     14|  return os << _("n/a");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 3500|     32|}
_ZN5Exiv28Internal15Nikon3MakerNote13printTimeZoneERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3502|     70|std::ostream& Nikon3MakerNote::printTimeZone(std::ostream& os, const Value& value, const ExifData*) {
 3503|     70|  if (value.count() != 1 || value.typeId() != signedShort)
  ------------------
  |  Branch (3503:7): [True: 0, False: 70]
  |  Branch (3503:29): [True: 0, False: 70]
  ------------------
 3504|      0|    return os << "(" << value << ")";
 3505|     70|  char sign = value.toInt64() < 0 ? '-' : '+';
  ------------------
  |  Branch (3505:15): [True: 30, False: 40]
  ------------------
 3506|     70|  long h = static_cast<long>(std::fabs(value.toFloat() / 60.0F)) % 24;
 3507|     70|  long min = static_cast<long>(std::fabs(value.toFloat() - (h * 60))) % 60;
 3508|     70|  return os << stringFormat("UTC {}{:02}:{:02}", sign, h, min);
  ------------------
  |  |   18|     70|#define stringFormat std::format
  ------------------
 3509|     70|}
_ZN5Exiv28Internal15Nikon3MakerNote19printPictureControlERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3511|    428|std::ostream& Nikon3MakerNote::printPictureControl(std::ostream& os, const Value& value, const ExifData*) {
 3512|    428|  if (value.count() != 1 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (3512:7): [True: 0, False: 428]
  |  Branch (3512:29): [True: 0, False: 428]
  ------------------
 3513|      0|    return os << "(" << value << ")";
 3514|    428|  const auto pcval = value.toInt64() - 0x80;
 3515|    428|  if (pcval == 0)
  ------------------
  |  Branch (3515:7): [True: 34, False: 394]
  ------------------
 3516|     34|    return os << _("Normal");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
 3517|    394|  if (pcval == 127)
  ------------------
  |  Branch (3517:7): [True: 40, False: 354]
  ------------------
 3518|     40|    return os << _("n/a");
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
 3519|    354|  if (pcval == -127)
  ------------------
  |  Branch (3519:7): [True: 22, False: 332]
  ------------------
 3520|     22|    return os << _("User");
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
 3521|    332|  if (pcval == -128)
  ------------------
  |  Branch (3521:7): [True: 116, False: 216]
  ------------------
 3522|    116|    return os << _("Auto");
  ------------------
  |  |   40|    116|#define _(String) (String)
  ------------------
 3523|    216|  return os << pcval;
 3524|    332|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x009aERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3526|     40|std::ostream& Nikon3MakerNote::print0x009a(std::ostream& os, const Value& value, const ExifData*) {
 3527|     40|  if (value.count() != 2 || value.typeId() != unsignedRational)
  ------------------
  |  Branch (3527:7): [True: 6, False: 34]
  |  Branch (3527:29): [True: 2, False: 32]
  ------------------
 3528|      8|    return os << value;
 3529|     32|  float f1 = value.toFloat(0);
 3530|     32|  float f2 = value.toFloat(1);
 3531|     32|  return os << f1 << " x " << f2 << " um";
 3532|     40|}
_ZN5Exiv28Internal15Nikon3MakerNote11print0x009eERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3534|    784|std::ostream& Nikon3MakerNote::print0x009e(std::ostream& os, const Value& value, const ExifData*) {
 3535|    784|  if (value.count() != 10 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (3535:7): [True: 50, False: 734]
  |  Branch (3535:30): [True: 18, False: 716]
  ------------------
 3536|     68|    return os << value;
 3537|       |
 3538|    716|  std::vector<std::string> sv;
 3539|    716|  bool trim = true;
 3540|       |
 3541|  7.87k|  for (int i = 9; i >= 0; --i) {
  ------------------
  |  Branch (3541:19): [True: 7.16k, False: 716]
  ------------------
 3542|  7.16k|    const auto l = value.toInt64(i);
 3543|  7.16k|    if (i > 0 && l == 0 && trim)
  ------------------
  |  Branch (3543:9): [True: 6.44k, False: 716]
  |  Branch (3543:18): [True: 1.49k, False: 4.95k]
  |  Branch (3543:28): [True: 574, False: 920]
  ------------------
 3544|    574|      continue;
 3545|  6.58k|    if (l != 0)
  ------------------
  |  Branch (3545:9): [True: 5.44k, False: 1.14k]
  ------------------
 3546|  5.44k|      trim = false;
 3547|       |
 3548|  6.58k|    if (auto td = Exiv2::find(nikonRetouchHistory, l))
  ------------------
  |  Branch (3548:14): [True: 1.96k, False: 4.61k]
  ------------------
 3549|  1.96k|      sv.emplace_back(_(td->label_));
  ------------------
  |  |   40|  1.96k|#define _(String) (String)
  ------------------
 3550|  4.61k|    else
 3551|  4.61k|      sv.emplace_back(stringFormat("{} ({})", _("Unknown"), l));
  ------------------
  |  |   18|  4.61k|#define stringFormat std::format
  ------------------
                    sv.emplace_back(stringFormat("{} ({})", _("Unknown"), l));
  ------------------
  |  |   40|  4.61k|#define _(String) (String)
  ------------------
 3552|  6.58k|  }
 3553|       |
 3554|    716|  if (!sv.empty()) {
  ------------------
  |  Branch (3554:7): [True: 716, False: 0]
  ------------------
 3555|    716|    std::copy(sv.begin(), sv.end() - 1, std::ostream_iterator<std::string>(os, "; "));
 3556|    716|    os << sv.back();
 3557|    716|  }
 3558|       |
 3559|    716|  return os;
 3560|    784|}
_ZN5Exiv28Internal15Nikon3MakerNote16printApertureLd4ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3562|    184|std::ostream& Nikon3MakerNote::printApertureLd4(std::ostream& os, const Value& value, const ExifData*) {
 3563|    184|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (3563:7): [True: 0, False: 184]
  |  Branch (3563:29): [True: 0, False: 184]
  ------------------
 3564|      0|    return os << "(" << value << ")";
 3565|    184|  auto temp = value.toInt64();
 3566|    184|  if (temp == 0)
  ------------------
  |  Branch (3566:7): [True: 28, False: 156]
  ------------------
 3567|     28|    return os << _("n/a");
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
 3568|    156|  return os << stringFormat("F{:.1f}", std::exp2((temp / 384.0) - 1.0));
  ------------------
  |  |   18|    156|#define stringFormat std::format
  ------------------
 3569|    184|}
_ZN5Exiv28Internal15Nikon3MakerNote13printFocalLd4ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3570|     40|std::ostream& Nikon3MakerNote::printFocalLd4(std::ostream& os, const Value& value, const ExifData*) {
 3571|     40|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (3571:7): [True: 0, False: 40]
  |  Branch (3571:29): [True: 0, False: 40]
  ------------------
 3572|      0|    return os << "(" << value << ")";
 3573|     40|  auto temp = value.toInt64();
 3574|     40|  if (temp == 0)
  ------------------
  |  Branch (3574:7): [True: 4, False: 36]
  ------------------
 3575|      4|    return os << _("n/a");
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
 3576|     36|  return os << stringFormat("{} mm", temp);
  ------------------
  |  |   18|     36|#define stringFormat std::format
  ------------------
 3577|     40|}
_ZN5Exiv28Internal15Nikon3MakerNote21printFocusDistanceLd4ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3579|     36|std::ostream& Nikon3MakerNote::printFocusDistanceLd4(std::ostream& os, const Value& value, const ExifData*) {
 3580|     36|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (3580:7): [True: 0, False: 36]
  |  Branch (3580:29): [True: 0, False: 36]
  ------------------
 3581|      0|    return os << "(" << value << ")";
 3582|     36|  auto temp = value.toInt64();
 3583|     36|  if (temp == 0)
  ------------------
  |  Branch (3583:7): [True: 2, False: 34]
  ------------------
 3584|      2|    return os << _("n/a");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 3585|     34|  return os << stringFormat("{:.2f} m", std::pow(10.0, (temp / (256.0 * 40.0)) - 2.0));
  ------------------
  |  |   18|     34|#define stringFormat std::format
  ------------------
 3586|     36|}
nikonmn_int.cpp:_ZN5Exiv28InternalL12getKeyStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
  179|     16|static std::string getKeyString(const std::string& key, const ExifData* metadata) {
  180|     16|  std::string result;
  181|     16|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (181:7): [True: 16, False: 0]
  ------------------
  182|     16|    result = metadata->findKey(ExifKey(key))->toString();
  183|     16|  }
  184|     16|  return result;
  185|     16|}
nikonmn_int.cpp:_ZN5Exiv28InternalL14testConfigFileERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueE:
 1909|    158|static bool testConfigFile(std::ostream& os, const Value& value) {
 1910|    158|  bool result = false;
 1911|    158|  const std::string undefined("undefined");
 1912|    158|  const std::string section("nikon");
 1913|    158|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1913:7): [True: 0, False: 158]
  ------------------
 1914|      0|    os << Internal::readExiv2Config(section, value.toString(), undefined);
 1915|      0|    result = true;
 1916|      0|  }
 1917|    158|  return result;
 1918|    158|}
nikonmn_int.cpp:_ZN5Exiv28InternalL27printFlashCompensationValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEhb:
  963|    394|static std::ostream& printFlashCompensationValue(std::ostream& os, const unsigned char value, const bool manualScale) {
  964|    394|  std::ios::fmtflags f(os.flags());
  965|    394|  std::ostringstream oss;
  966|    394|  oss.copyfmt(os);
  967|       |
  968|    394|  if (manualScale) {
  ------------------
  |  Branch (968:7): [True: 96, False: 298]
  ------------------
  969|       |    /*
  970|       |       // Format:
  971|       |       0 = "1/1"
  972|       |       1 = "1/1 (-1/6EV)"
  973|       |       2 = "1/1 (-1/3EV)"
  974|       |       3 = "1/1 (-1/2EV)"
  975|       |       4 = "1/1 (-2/3EV)"
  976|       |       5 = "1/1 (-5/6EV)"
  977|       |       6 = "1/2"
  978|       |       7 = "1/2 (-1/6EV)"
  979|       |       ...
  980|       |       48 = "1/256"
  981|       |    */
  982|     96|    if (value > 48) {
  ------------------
  |  Branch (982:9): [True: 37, False: 59]
  ------------------
  983|     37|      os << "(" << value << ")";
  984|     37|      os.flags(f);
  985|     37|      return os;
  986|     37|    }
  987|     59|    const auto mod = value % 6;
  988|     59|    auto temp = (value < 6) ? 0 : (value - mod) / 6;
  ------------------
  |  Branch (988:17): [True: 32, False: 27]
  ------------------
  989|     59|    os << "1/" << std::exp2(temp);
  990|     59|    if (mod != 0) {
  ------------------
  |  Branch (990:9): [True: 35, False: 24]
  ------------------
  991|     35|      os << " (-";
  992|     35|      switch (mod) {
  ------------------
  |  Branch (992:15): [True: 35, False: 0]
  ------------------
  993|     11|        case 1:
  ------------------
  |  Branch (993:9): [True: 11, False: 24]
  ------------------
  994|     11|          os << "1/6 EV)";
  995|     11|          break;
  996|      5|        case 2:
  ------------------
  |  Branch (996:9): [True: 5, False: 30]
  ------------------
  997|      5|          os << "1/3 EV)";
  998|      5|          break;
  999|      7|        case 3:
  ------------------
  |  Branch (999:9): [True: 7, False: 28]
  ------------------
 1000|      7|          os << "1/2 EV)";
 1001|      7|          break;
 1002|      7|        case 4:
  ------------------
  |  Branch (1002:9): [True: 7, False: 28]
  ------------------
 1003|      7|          os << "2/3 EV)";
 1004|      7|          break;
 1005|      5|        case 5:
  ------------------
  |  Branch (1005:9): [True: 5, False: 30]
  ------------------
 1006|      5|          os << "5/6 EV)";
 1007|      5|          break;
 1008|     35|      }
 1009|     35|    }
 1010|    298|  } else {
 1011|       |    /*
 1012|       |    // Format uses 127 as boundary between +/- then values descend:
 1013|       |    0   = "0.0EV"
 1014|       |    1   = "-0.2EV"
 1015|       |    2   = "-0.3EV"
 1016|       |    3   = "-0.5EV"
 1017|       |    4   = "-0.7EV"
 1018|       |    5   = "-0.8EV"
 1019|       |    6   = "-1.0EV"
 1020|       |    7   = "-1.2EV"
 1021|       |    ...
 1022|       |    127 = "-21.2EV"
 1023|       |    128 = "+21.3EV"
 1024|       |    129 = "+21.2EV"
 1025|       |    130 = "+21.0EV"
 1026|       |    ...
 1027|       |    255 = "+0.2"
 1028|       |     */
 1029|    298|    auto output = 0.0f;
 1030|    298|    if (value < 128) {
  ------------------
  |  Branch (1030:9): [True: 213, False: 85]
  ------------------
 1031|    213|      if (value != 0)
  ------------------
  |  Branch (1031:11): [True: 158, False: 55]
  ------------------
 1032|    158|        output = static_cast<float>(value) * -1.0f;
 1033|    213|    } else {
 1034|     85|      output = 256.0f - static_cast<float>(value);
 1035|     85|    }
 1036|    298|    os.precision(1);
 1037|    298|    if (value != 0)
  ------------------
  |  Branch (1037:9): [True: 243, False: 55]
  ------------------
 1038|    243|      os << std::showpos;
 1039|    298|    os << std::fixed << (output / 6) << " EV";
 1040|    298|  }
 1041|    357|  os.copyfmt(os);
 1042|    357|  os.flags(f);
 1043|    357|  return os;
 1044|    394|}
nikonmn_int.cpp:_ZN5Exiv28InternalL24flashModeUsesManualScaleEl:
  910|    244|static constexpr bool flashModeUsesManualScale(const int64_t mode) {
  911|    244|  return (mode == 6 || mode == 7);
  ------------------
  |  Branch (911:11): [True: 61, False: 183]
  |  Branch (911:24): [True: 35, False: 148]
  ------------------
  912|    244|}
nikonmn_int.cpp:_ZZN5Exiv28Internal15Nikon3MakerNote11printLensIdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataERKNS2_12basic_stringIcS5_NS2_9allocatorIcEEEEENK8FMntLenseqEh:
 2030|  18.5k|    bool operator==(unsigned char l) const {
 2031|  18.5k|      return lid == l;
 2032|  18.5k|    }

_ZN5Exiv28Internal15Nikon1MakerNote7tagListEv:
   38|  14.6k|  static constexpr auto tagList() {
   39|  14.6k|    return tagInfo_;
   40|  14.6k|  }
_ZN5Exiv28Internal15Nikon2MakerNote7tagListEv:
   71|  6.92k|  static constexpr auto tagList() {
   72|  6.92k|    return tagInfo_;
   73|  6.92k|  }
_ZN5Exiv28Internal15Nikon3MakerNote7tagListEv:
   91|  53.9k|  static constexpr auto tagList() {
   92|  53.9k|    return tagInfo_;
   93|  53.9k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListVrEv:
   95|    987|  static constexpr auto tagListVr() {
   96|    987|    return tagInfoVr_;
   97|    987|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListPcEv:
   99|  1.66k|  static constexpr auto tagListPc() {
  100|  1.66k|    return tagInfoPc_;
  101|  1.66k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListWtEv:
  103|    779|  static constexpr auto tagListWt() {
  104|    779|    return tagInfoWt_;
  105|    779|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListIiEv:
  107|  1.17k|  static constexpr auto tagListIi() {
  108|  1.17k|    return tagInfoIi_;
  109|  1.17k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListAfEv:
  111|  1.31k|  static constexpr auto tagListAf() {
  112|  1.31k|    return tagInfoAf_;
  113|  1.31k|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListAf21Ev:
  115|  3.22k|  static constexpr auto tagListAf21() {
  116|  3.22k|    return tagInfoAf21_;
  117|  3.22k|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListAf22Ev:
  119|    911|  static constexpr auto tagListAf22() {
  120|    911|    return tagInfoAf22_;
  121|    911|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListAFTEv:
  123|  1.84k|  static constexpr auto tagListAFT() {
  124|  1.84k|    return tagInfoAFT_;
  125|  1.84k|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListFiEv:
  127|    121|  static constexpr auto tagListFi() {
  128|    121|    return tagInfoFi_;
  129|    121|  }
_ZN5Exiv28Internal15Nikon3MakerNote9tagListMeEv:
  131|     80|  static constexpr auto tagListMe() {
  132|     80|    return tagInfoMe_;
  133|     80|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl1Ev:
  135|    375|  static constexpr auto tagListFl1() {
  136|    375|    return tagInfoFl1_;
  137|    375|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl2Ev:
  139|     49|  static constexpr auto tagListFl2() {
  140|     49|    return tagInfoFl2_;
  141|     49|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl3Ev:
  143|    175|  static constexpr auto tagListFl3() {
  144|    175|    return tagInfoFl3_;
  145|    175|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl6Ev:
  147|  1.74k|  static constexpr auto tagListFl6() {
  148|  1.74k|    return tagInfoFl6_;
  149|  1.74k|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListFl7Ev:
  151|  1.94k|  static constexpr auto tagListFl7() {
  152|  1.94k|    return tagInfoFl7_;
  153|  1.94k|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListSi1Ev:
  155|     16|  static constexpr auto tagListSi1() {
  156|     16|    return tagInfoSi1_;
  157|     16|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListSi2Ev:
  159|     16|  static constexpr auto tagListSi2() {
  160|     16|    return tagInfoSi2_;
  161|     16|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListSi5Ev:
  171|    669|  static constexpr auto tagListSi5() {
  172|    669|    return tagInfoSi5_;
  173|    669|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb1Ev:
  175|     22|  static constexpr auto tagListCb1() {
  176|     22|    return tagInfoCb1_;
  177|     22|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb2Ev:
  179|     18|  static constexpr auto tagListCb2() {
  180|     18|    return tagInfoCb2_;
  181|     18|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListCb2aEv:
  183|     46|  static constexpr auto tagListCb2a() {
  184|     46|    return tagInfoCb2a_;
  185|     46|  }
_ZN5Exiv28Internal15Nikon3MakerNote11tagListCb2bEv:
  187|    166|  static constexpr auto tagListCb2b() {
  188|    166|    return tagInfoCb2b_;
  189|    166|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb3Ev:
  191|     33|  static constexpr auto tagListCb3() {
  192|     33|    return tagInfoCb3_;
  193|     33|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListCb4Ev:
  195|     34|  static constexpr auto tagListCb4() {
  196|     34|    return tagInfoCb4_;
  197|     34|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd1Ev:
  199|    239|  static constexpr auto tagListLd1() {
  200|    239|    return tagInfoLd1_;
  201|    239|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd2Ev:
  203|    248|  static constexpr auto tagListLd2() {
  204|    248|    return tagInfoLd2_;
  205|    248|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd3Ev:
  207|     80|  static constexpr auto tagListLd3() {
  208|     80|    return tagInfoLd3_;
  209|     80|  }
_ZN5Exiv28Internal15Nikon3MakerNote10tagListLd4Ev:
  211|  8.62k|  static constexpr auto tagListLd4() {
  212|  8.62k|    return tagInfoLd4_;
  213|  8.62k|  }

_ZN5Exiv28Internal16OlympusMakerNote11print0x050fERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1136|    562|std::ostream& OlympusMakerNote::print0x050f(std::ostream& os, const Value& value, const ExifData*) {
 1137|    562|  if ((value.count() != 3 && value.count() != 4) || value.typeId() != signedShort) {
  ------------------
  |  Branch (1137:8): [True: 554, False: 8]
  |  Branch (1137:30): [True: 62, False: 492]
  |  Branch (1137:53): [True: 12, False: 488]
  ------------------
 1138|     74|    return os << value;
 1139|     74|  }
 1140|       |
 1141|    488|  if (value.toInt64(0) == -1 && value.toInt64(1) == -1 && value.toInt64(2) == 1)
  ------------------
  |  Branch (1141:7): [True: 110, False: 378]
  |  Branch (1141:33): [True: 62, False: 48]
  |  Branch (1141:59): [True: 16, False: 46]
  ------------------
 1142|     16|    os << _("Low Key");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1143|    472|  else if (value.toInt64(0) == 0 && value.toInt64(1) == -1 && value.toInt64(2) == 1)
  ------------------
  |  Branch (1143:12): [True: 130, False: 342]
  |  Branch (1143:37): [True: 26, False: 104]
  |  Branch (1143:63): [True: 6, False: 20]
  ------------------
 1144|      6|    os << _("Normal");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1145|    466|  else if (value.toInt64(0) == 1 && value.toInt64(1) == -1 && value.toInt64(2) == 1)
  ------------------
  |  Branch (1145:12): [True: 48, False: 418]
  |  Branch (1145:37): [True: 32, False: 16]
  |  Branch (1145:63): [True: 18, False: 14]
  ------------------
 1146|     18|    os << _("High Key");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1147|    448|  else
 1148|    448|    os << value.toInt64(0) << " " << value.toInt64(1) << " " << value.toInt64(2);
 1149|       |
 1150|    488|  if (value.count() == 4) {
  ------------------
  |  Branch (1150:7): [True: 480, False: 8]
  ------------------
 1151|    480|    switch (value.toInt64(3)) {
 1152|    208|      case 0:
  ------------------
  |  Branch (1152:7): [True: 208, False: 272]
  ------------------
 1153|    208|        os << ", " << _("User-Selected");
  ------------------
  |  |   40|    208|#define _(String) (String)
  ------------------
 1154|    208|        break;
 1155|     46|      case 1:
  ------------------
  |  Branch (1155:7): [True: 46, False: 434]
  ------------------
 1156|     46|        os << ", " << _("Auto-Override");
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
 1157|     46|        break;
 1158|    226|      default:
  ------------------
  |  Branch (1158:7): [True: 226, False: 254]
  ------------------
 1159|    226|        os << value.toInt64(3);
 1160|    226|        break;
 1161|    480|    }
 1162|    480|  }
 1163|    488|  return os;
 1164|    488|}
_ZN5Exiv28Internal16OlympusMakerNote11print0x0527ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1167|     94|std::ostream& OlympusMakerNote::print0x0527(std::ostream& os, const Value& value, const ExifData*) {
 1168|     94|  if (value.count() != 3 || value.typeId() != signedShort || value.toInt64(1) != -2 || value.toInt64(2) != 1) {
  ------------------
  |  Branch (1168:7): [True: 42, False: 52]
  |  Branch (1168:29): [True: 22, False: 30]
  |  Branch (1168:62): [True: 14, False: 16]
  |  Branch (1168:88): [True: 2, False: 14]
  ------------------
 1169|     80|    return os << value;
 1170|     80|  }
 1171|       |
 1172|     14|  switch (value.toInt64(0)) {
 1173|      0|    case -2:
  ------------------
  |  Branch (1173:5): [True: 0, False: 14]
  ------------------
 1174|      0|      os << _("Off");
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
 1175|      0|      break;
 1176|      2|    case -1:
  ------------------
  |  Branch (1176:5): [True: 2, False: 12]
  ------------------
 1177|      2|      os << _("Low");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 1178|      2|      break;
 1179|      2|    case 0:
  ------------------
  |  Branch (1179:5): [True: 2, False: 12]
  ------------------
 1180|      2|      os << _("Standard");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 1181|      2|      break;
 1182|      4|    case 1:
  ------------------
  |  Branch (1182:5): [True: 4, False: 10]
  ------------------
 1183|      4|      os << _("High");
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
 1184|      4|      break;
 1185|      6|    default:
  ------------------
  |  Branch (1185:5): [True: 6, False: 8]
  ------------------
 1186|      6|      os << value.toInt64(0);
 1187|      6|      break;
 1188|     14|  }
 1189|       |
 1190|     14|  return os;
 1191|     14|}
_ZN5Exiv28Internal16OlympusMakerNote11print0x0200ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1193|    760|std::ostream& OlympusMakerNote::print0x0200(std::ostream& os, const Value& value, const ExifData*) {
 1194|    760|  if (value.count() != 3 || value.typeId() != unsignedLong) {
  ------------------
  |  Branch (1194:7): [True: 628, False: 132]
  |  Branch (1194:29): [True: 14, False: 118]
  ------------------
 1195|    642|    return os << value;
 1196|    642|  }
 1197|    118|  const auto l0 = value.toInt64(0);
 1198|    118|  switch (l0) {
 1199|     26|    case 0:
  ------------------
  |  Branch (1199:5): [True: 26, False: 92]
  ------------------
 1200|     26|      os << _("Normal");
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
 1201|     26|      break;
 1202|      6|    case 2:
  ------------------
  |  Branch (1202:5): [True: 6, False: 112]
  ------------------
 1203|      6|      os << _("Fast");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1204|      6|      break;
 1205|     16|    case 3:
  ------------------
  |  Branch (1205:5): [True: 16, False: 102]
  ------------------
 1206|     16|      os << _("Panorama");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1207|     16|      break;
 1208|     70|    default:
  ------------------
  |  Branch (1208:5): [True: 70, False: 48]
  ------------------
 1209|     70|      os << "(" << l0 << ")";
 1210|     70|      break;
 1211|    118|  }
 1212|    118|  if (l0 != 0) {
  ------------------
  |  Branch (1212:7): [True: 92, False: 26]
  ------------------
 1213|     92|    os << ", ";
 1214|     92|    const auto l1 = value.toInt64(1);
 1215|     92|    os << _("Sequence number") << " " << l1;
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
 1216|     92|  }
 1217|    118|  if (l0 != 0 && l0 != 2) {
  ------------------
  |  Branch (1217:7): [True: 92, False: 26]
  |  Branch (1217:18): [True: 86, False: 6]
  ------------------
 1218|     86|    os << ", ";
 1219|     86|    const auto l2 = value.toInt64(2);
 1220|     86|    switch (l2) {
 1221|      6|      case 1:
  ------------------
  |  Branch (1221:7): [True: 6, False: 80]
  ------------------
 1222|      6|        os << _("Left to right");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1223|      6|        break;
 1224|     18|      case 2:
  ------------------
  |  Branch (1224:7): [True: 18, False: 68]
  ------------------
 1225|     18|        os << _("Right to left");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1226|     18|        break;
 1227|     14|      case 3:
  ------------------
  |  Branch (1227:7): [True: 14, False: 72]
  ------------------
 1228|     14|        os << _("Bottom to top");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1229|     14|        break;
 1230|      6|      case 4:
  ------------------
  |  Branch (1230:7): [True: 6, False: 80]
  ------------------
 1231|      6|        os << _("Top to bottom");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1232|      6|        break;
 1233|     42|      default:
  ------------------
  |  Branch (1233:7): [True: 42, False: 44]
  ------------------
 1234|     42|        os << "(" << l2 << ")";
 1235|     42|        break;
 1236|     86|    }
 1237|     86|  }
 1238|    118|  return os;
 1239|    118|}  // OlympusMakerNote::print0x0200
_ZN5Exiv28Internal16OlympusMakerNote11print0x0204ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1241|    212|std::ostream& OlympusMakerNote::print0x0204(std::ostream& os, const Value& value, const ExifData*) {
 1242|    212|  if (value.count() == 0 || value.toRational().second == 0) {
  ------------------
  |  Branch (1242:7): [True: 0, False: 212]
  |  Branch (1242:7): [True: 16, False: 196]
  |  Branch (1242:29): [True: 16, False: 196]
  ------------------
 1243|     16|    return os << "(" << value << ")";
 1244|     16|  }
 1245|    196|  float f = value.toFloat();
 1246|    196|  if (f == 0.0F || f == 1.0F)
  ------------------
  |  Branch (1246:7): [True: 64, False: 132]
  |  Branch (1246:20): [True: 30, False: 102]
  ------------------
 1247|     94|    return os << _("None");
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
 1248|    102|  return os << stringFormat("{:.1f}x", f);
  ------------------
  |  |   18|    102|#define stringFormat std::format
  ------------------
 1249|    196|}  // OlympusMakerNote::print0x0204
_ZN5Exiv28Internal16OlympusMakerNote11print0x1015ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1251|    344|std::ostream& OlympusMakerNote::print0x1015(std::ostream& os, const Value& value, const ExifData*) {
 1252|    344|  if (value.typeId() != unsignedShort) {
  ------------------
  |  Branch (1252:7): [True: 84, False: 260]
  ------------------
 1253|     84|    return os << value;
 1254|     84|  }
 1255|    260|  if (value.count() == 1) {
  ------------------
  |  Branch (1255:7): [True: 26, False: 234]
  ------------------
 1256|     26|    auto l0 = value.toInt64(0);
 1257|     26|    if (l0 == 1) {
  ------------------
  |  Branch (1257:9): [True: 6, False: 20]
  ------------------
 1258|      6|      os << _("Auto");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1259|     20|    } else {
 1260|     20|      return os << value;
 1261|     20|    }
 1262|    234|  } else if (value.count() == 2) {
  ------------------
  |  Branch (1262:14): [True: 204, False: 30]
  ------------------
 1263|    204|    auto l0 = value.toInt64(0);
 1264|    204|    auto l1 = value.toInt64(1);
 1265|    204|    if (l0 == 1) {
  ------------------
  |  Branch (1265:9): [True: 36, False: 168]
  ------------------
 1266|     36|      if (l1 == 0)
  ------------------
  |  Branch (1266:11): [True: 18, False: 18]
  ------------------
 1267|     18|        os << _("Auto");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1268|     18|      else
 1269|     18|        os << _("Auto") << " (" << l1 << ")";
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1270|    168|    } else if (l0 == 2) {
  ------------------
  |  Branch (1270:16): [True: 130, False: 38]
  ------------------
 1271|    130|      switch (l1) {
 1272|     30|        case 2:
  ------------------
  |  Branch (1272:9): [True: 30, False: 100]
  ------------------
 1273|     30|          os << _("3000 Kelvin");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1274|     30|          break;
 1275|      6|        case 3:
  ------------------
  |  Branch (1275:9): [True: 6, False: 124]
  ------------------
 1276|      6|          os << _("3700 Kelvin");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1277|      6|          break;
 1278|     14|        case 4:
  ------------------
  |  Branch (1278:9): [True: 14, False: 116]
  ------------------
 1279|     14|          os << _("4000 Kelvin");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1280|     14|          break;
 1281|     46|        case 5:
  ------------------
  |  Branch (1281:9): [True: 46, False: 84]
  ------------------
 1282|     46|          os << _("4500 Kelvin");
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
 1283|     46|          break;
 1284|      6|        case 6:
  ------------------
  |  Branch (1284:9): [True: 6, False: 124]
  ------------------
 1285|      6|          os << _("5500 Kelvin");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1286|      6|          break;
 1287|      2|        case 7:
  ------------------
  |  Branch (1287:9): [True: 2, False: 128]
  ------------------
 1288|      2|          os << _("6500 Kelvin");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 1289|      2|          break;
 1290|      6|        case 8:
  ------------------
  |  Branch (1290:9): [True: 6, False: 124]
  ------------------
 1291|      6|          os << _("7500 Kelvin");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1292|      6|          break;
 1293|     20|        default:
  ------------------
  |  Branch (1293:9): [True: 20, False: 110]
  ------------------
 1294|     20|          os << value;
 1295|     20|          break;
 1296|    130|      }
 1297|    130|    } else if (l0 == 3) {
  ------------------
  |  Branch (1297:16): [True: 22, False: 16]
  ------------------
 1298|     22|      if (l1 == 0)
  ------------------
  |  Branch (1298:11): [True: 6, False: 16]
  ------------------
 1299|      6|        os << _("One-touch");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1300|     16|      else
 1301|     16|        os << value;
 1302|     22|    } else
 1303|     16|      return os << value;
 1304|    204|  } else {
 1305|     30|    return os << value;
 1306|     30|  }
 1307|    194|  return os;
 1308|    260|}  // OlympusMakerNote::print0x1015
_ZN5Exiv28Internal16OlympusMakerNote11print0x0201ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1311|    252|std::ostream& OlympusMakerNote::print0x0201(std::ostream& os, const Value& value, const ExifData*) {
 1312|       |  // #1034
 1313|    252|  const std::string undefined("undefined");
 1314|    252|  const std::string section("olympus");
 1315|    252|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1315:7): [True: 0, False: 252]
  ------------------
 1316|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 1317|      0|  }
 1318|       |
 1319|       |  // 6 numbers: 0. Make, 1. Unknown, 2. Model, 3. Sub-model, 4-5. Unknown.
 1320|       |  // Only the Make, Model and Sub-model are used to determine the lens model
 1321|    252|  static constexpr struct {
 1322|    252|    byte val[3];
 1323|    252|    const char* label;
 1324|    252|  } lensTypes[] = {
 1325|    252|      {{0, 0, 0}, N_("None")},
  ------------------
  |  |   41|    252|#define N_(String) String
  ------------------
 1326|    252|      {{0, 1, 0}, "Olympus Zuiko Digital ED 50mm F2.0 Macro"},
 1327|    252|      {{0, 1, 1}, "Olympus Zuiko Digital 40-150mm F3.5-4.5"},
 1328|    252|      {{0, 1, 16}, "Olympus M.Zuiko Digital ED 14-42mm F3.5-5.6"},
 1329|    252|      {{0, 2, 0}, "Olympus Zuiko Digital ED 150mm F2.0"},
 1330|    252|      {{0, 2, 16}, "Olympus M.Zuiko Digital 17mm F2.8 Pancake"},
 1331|    252|      {{0, 3, 0}, "Olympus Zuiko Digital ED 300mm F2.8"},
 1332|    252|      {{0, 3, 16}, "Olympus M.Zuiko Digital ED 14-150mm F4.0-5.6"},
 1333|    252|      {{0, 4, 16}, "Olympus M.Zuiko Digital ED 9-18mm F4.0-5.6"},
 1334|    252|      {{0, 5, 0}, "Olympus Zuiko Digital 14-54mm F2.8-3.5"},
 1335|    252|      {{0, 5, 1}, "Olympus Zuiko Digital Pro ED 90-250mm F2.8"},
 1336|    252|      {{0, 5, 16}, "Olympus M.Zuiko Digital ED 14-42mm F3.5-5.6 L"},
 1337|    252|      {{0, 6, 0}, "Olympus Zuiko Digital ED 50-200mm F2.8-3.5"},
 1338|    252|      {{0, 6, 1}, "Olympus Zuiko Digital ED 8mm F3.5 Fisheye"},
 1339|    252|      {{0, 6, 16}, "Olympus M.Zuiko Digital ED 40-150mm F4.0-5.6"},
 1340|    252|      {{0, 7, 0}, "Olympus Zuiko Digital 11-22mm F2.8-3.5"},
 1341|    252|      {{0, 7, 1}, "Olympus Zuiko Digital 18-180mm F3.5-6.3"},
 1342|    252|      {{0, 7, 16}, "Olympus M.Zuiko Digital ED 12mm F2.0"},
 1343|    252|      {{0, 8, 1}, "Olympus Zuiko Digital 70-300mm F4.0-5.6"},
 1344|    252|      {{0, 8, 16}, "Olympus M.Zuiko Digital ED 75-300mm F4.8-6.7"},
 1345|    252|      {{0, 9, 16}, "Olympus M.Zuiko Digital 14-42mm F3.5-5.6 II"},
 1346|    252|      {{0, 16, 1}, "Kenko Tokina Reflex 300mm F6.3 MF Macro"},
 1347|    252|      {{0, 16, 16}, "Olympus M.Zuiko Digital ED 12-50mm F3.5-6.3 EZ"},
 1348|    252|      {{0, 17, 16}, "Olympus M.Zuiko Digital 45mm F1.8"},
 1349|    252|      {{0, 18, 16}, "Olympus M.Zuiko Digital ED 60mm F2.8 Macro"},
 1350|    252|      {{0, 19, 16}, "Olympus M.Zuiko Digital 14-42mm F3.5-5.6 II R"},
 1351|    252|      {{0, 20, 16}, "Olympus M.Zuiko Digital ED 40-150mm F4.0-5.6 R"},
 1352|    252|      {{0, 21, 0}, "Olympus Zuiko Digital ED 7-14mm F4.0"},
 1353|    252|      {{0, 21, 16}, "Olympus M.Zuiko Digital ED 75mm F1.8"},
 1354|    252|      {{0, 22, 16}, "Olympus M.Zuiko Digital 17mm F1.8"},
 1355|    252|      {{0, 23, 0}, "Olympus Zuiko Digital Pro ED 35-100mm F2.0"},
 1356|    252|      {{0, 24, 0}, "Olympus Zuiko Digital 14-45mm F3.5-5.6"},
 1357|    252|      {{0, 24, 16}, "Olympus M.Zuiko Digital ED 75-300mm F4.8-6.7 II"},
 1358|    252|      {{0, 25, 16}, "Olympus M.Zuiko Digital ED 12-40mm F2.8 Pro"},
 1359|    252|      {{0, 32, 0}, "Olympus Zuiko Digital 35mm F3.5 Macro"},
 1360|    252|      {{0, 32, 16}, "Olympus M.Zuiko Digital ED 40-150mm F2.8 Pro"},
 1361|    252|      {{0, 33, 16}, "Olympus M.Zuiko Digital ED 14-42mm F3.5-5.6 EZ"},
 1362|    252|      {{0, 34, 0}, "Olympus Zuiko Digital 17.5-45mm F3.5-5.6"},
 1363|    252|      {{0, 34, 16}, "Olympus M.Zuiko Digital 25mm F1.8"},
 1364|    252|      {{0, 35, 0}, "Olympus Zuiko Digital ED 14-42mm F3.5-5.6"},
 1365|    252|      {{0, 35, 16}, "Olympus M.Zuiko Digital ED 7-14mm F2.8 Pro"},
 1366|    252|      {{0, 36, 0}, "Olympus Zuiko Digital ED 40-150mm F4.0-5.6"},
 1367|    252|      {{0, 36, 16}, "Olympus M.Zuiko Digital ED 300mm F4.0 IS Pro"},
 1368|    252|      {{0, 37, 16}, "Olympus M.Zuiko Digital ED 8mm F1.8 Fisheye Pro"},
 1369|    252|      {{0, 38, 16}, "Olympus M.Zuiko Digital ED 12-100mm F4.0 IS Pro"},
 1370|    252|      {{0, 39, 16}, "Olympus M.Zuiko Digital ED 30mm F3.5 Macro"},
 1371|    252|      {{0, 40, 16}, "Olympus M.Zuiko Digital ED 25mm F1.2 Pro"},
 1372|    252|      {{0, 41, 16}, "Olympus M.Zuiko Digital ED 17mm F1.2 Pro"},
 1373|    252|      {{0, 48, 0}, "Olympus Zuiko Digital ED 50-200mm F2.8-3.5 SWD"},
 1374|    252|      {{0, 49, 0}, "Olympus Zuiko Digital ED 12-60mm F2.8-4.0 SWD"},
 1375|    252|      {{0, 50, 0}, "Olympus Zuiko Digital ED 14-35mm F2.0 SWD"},
 1376|    252|      {{0, 51, 0}, "Olympus Zuiko Digital 25mm F2.8"},
 1377|    252|      {{0, 52, 0}, "Olympus Zuiko Digital ED 9-18mm F4.0-5.6"},
 1378|    252|      {{0, 52, 16}, "Olympus M.Zuiko Digital ED 12-45mm F4.0 Pro"},
 1379|    252|      {{0, 53, 0}, "Olympus Zuiko Digital 14-54mm F2.8-3.5 II"},
 1380|    252|      {{1, 1, 0}, "Sigma 18-50mm F3.5-5.6 DC"},
 1381|    252|      {{1, 1, 16}, "Sigma 30mm F2.8 EX DN"},
 1382|    252|      {{1, 2, 0}, "Sigma 55-200mm F4.0-5.6 DC"},
 1383|    252|      {{1, 2, 16}, "Sigma 19mm F2.8 EX DN"},
 1384|    252|      {{1, 3, 0}, "Sigma 18-125mm F3.5-5.6 DC"},
 1385|    252|      {{1, 3, 16}, "Sigma 30mm F2.8 DN | A"},
 1386|    252|      {{1, 4, 0}, "Sigma 18-125mm F3.5-5.6"},
 1387|    252|      {{1, 4, 16}, "Sigma 19mm F2.8 DN | A"},
 1388|    252|      {{1, 5, 0}, "Sigma 30mm F1.4"},
 1389|    252|      {{1, 5, 16}, "Sigma 60mm F2.8 DN | A"},
 1390|    252|      {{1, 6, 0}, "Sigma 50-500mm F4.0-6.3 EX DG APO HSM RF"},
 1391|    252|      {{1, 6, 16}, "Sigma 30mm F1.4 DC DN | C"},
 1392|    252|      {{1, 7, 0}, "Sigma 105mm F2.8 DG"},
 1393|    252|      {{1, 8, 0}, "Sigma 150mm F2.8 DG HSM"},
 1394|    252|      {{1, 9, 0}, "Sigma 18-50mm F2.8 EX DC Macro"},
 1395|    252|      {{1, 16, 0}, "Sigma 24mm F1.8 EX DG Aspherical Macro"},
 1396|    252|      {{1, 17, 0}, "Sigma 135-400mm F4.5-5.6 DG ASP APO RF"},
 1397|    252|      {{1, 18, 0}, "Sigma 300-800mm F5.6 EX DG APO"},
 1398|    252|      {{1, 19, 0}, "Sigma 30mm F1.4 EX DC HSM"},
 1399|    252|      {{1, 20, 0}, "Sigma 50-500mm F4.0-6.3 EX DG APO HSM RF"},
 1400|    252|      {{1, 21, 0}, "Sigma 10-20mm F4.0-5.6 EX DC HSM"},
 1401|    252|      {{1, 22, 0}, "Sigma 70-200mm F2.8 EX DG Macro HSM II"},
 1402|    252|      {{1, 23, 0}, "Sigma 50mm F1.4 EX DG HSM"},
 1403|    252|      {{2, 1, 0}, "Leica D Vario Elmarit 14-50mm F2.8-3.5 Asph."},
 1404|    252|      {{2, 1, 16}, "Lumix G Vario 14-45mm F3.5-5.6 Asph. Mega OIS"},
 1405|    252|      {{2, 2, 0}, "Leica D Summilux 25mm F1.4 Asph."},
 1406|    252|      {{2, 2, 16}, "Lumix G Vario 45-200mm F4.0-5.6 Mega OIS"},
 1407|    252|      {{2, 3, 0}, "Leica D Vario Elmar 14-50mm F3.8-5.6 Asph. Mega OIS"},
 1408|    252|      {{2, 3, 1}, "Leica D Vario Elmar 14-50mm F3.8-5.6 Asph."},
 1409|    252|      {{2, 3, 16}, "Lumix G Vario HD 14-140mm F4.0-5.8 Asph. Mega OIS"},
 1410|    252|      {{2, 4, 0}, "Leica D Vario Elmar 14-150mm F3.5-5.6"},
 1411|    252|      {{2, 4, 16}, "Lumix G Vario 7-14mm F4.0 Asph."},
 1412|    252|      {{2, 5, 16}, "Lumix G 20mm F1.7 Asph."},
 1413|    252|      {{2, 6, 16}, "Leica DG Macro-Elmarit 45mm F2.8 Asph. Mega OIS"},
 1414|    252|      {{2, 7, 16}, "Lumix G Vario 14-42mm F3.5-5.6 Asph. Mega OIS"},
 1415|    252|      {{2, 8, 16}, "Lumix G Fisheye 8mm F3.5"},
 1416|    252|      {{2, 9, 16}, "Lumix G Vario 100-300mm F4.0-5.6 Mega OIS"},
 1417|    252|      {{2, 16, 16}, "Lumix G 14mm F2.5 Asph."},
 1418|    252|      {{2, 17, 16}, "Lumix G 3D 12.5mm F12"},
 1419|    252|      {{2, 18, 16}, "Leica DG Summilux 25mm F1.4 Asph."},
 1420|    252|      {{2, 19, 16}, "Lumix G X Vario PZ 45-175mm F4.0-5.6 Asph. Power OIS"},
 1421|    252|      {{2, 20, 16}, "Lumix G X Vario PZ 14-42mm F3.5-5.6 Asph. Power OIS"},
 1422|    252|      {{2, 21, 16}, "Lumix G X Vario 12-35mm F2.8 Asph. Power OIS"},
 1423|    252|      {{2, 22, 16}, "Lumix G Vario 45-150mm F4.0-5.6 Asph. Mega OIS"},
 1424|    252|      {{2, 23, 16}, "Lumix G X Vario 35-100mm F2.8 Power OIS"},
 1425|    252|      {{2, 24, 16}, "Lumix G Vario 14-42mm F3.5-5.6 II Asph. Mega OIS"},
 1426|    252|      {{2, 25, 16}, "Lumix G Vario 14-140mm F3.5-5.6 Asph. Power OIS"},
 1427|    252|      {{2, 32, 16}, "Lumix G Vario 12-32mm F3.5-5.6 Asph. Mega OIS"},
 1428|    252|      {{2, 33, 16}, "Leica DG Nocticron 42.5mm F1.2 Asph. Power OIS"},
 1429|    252|      {{2, 34, 16}, "Leica DG Summilux 15mm F1.7 Asph."},
 1430|    252|      {{2, 35, 16}, "Lumix G Vario 35-100mm F4.0-5.6 Asph. Mega OIS"},
 1431|    252|      {{2, 36, 16}, "Lumix G Macro 30mm F2.8 Asph. Mega OIS"},
 1432|    252|      {{2, 37, 16}, "Lumix G 42.5mm F1.7 Asph. Power OIS"},
 1433|    252|      {{2, 38, 16}, "Lumix G 25mm F1.7 Asph."},
 1434|    252|      {{2, 39, 16}, "Leica DG Vario-Elmar 100-400mm F4.0-6.3 Asph. Power OIS"},
 1435|    252|      {{2, 40, 16}, "Lumix G Vario 12-60mm F3.5-5.6 Asph. Power OIS"},
 1436|    252|      {{3, 1, 0}, "Leica D Vario Elmarit 14-50mm F2.8-3.5 Asph."},
 1437|    252|      {{3, 2, 0}, "Leica D Summilux 25mm F1.4 Asph."},
 1438|    252|      {{5, 1, 16}, "Tamron 14-150mm F3.5-5.8 Di III"},
 1439|    252|  };
 1440|       |
 1441|    252|  if (value.count() != 6 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (1441:7): [True: 82, False: 170]
  |  Branch (1441:29): [True: 26, False: 144]
  ------------------
 1442|    108|    return os << value;
 1443|    108|  }
 1444|       |
 1445|    144|  auto v0 = static_cast<byte>(value.toInt64(0));
 1446|    144|  auto v2 = static_cast<byte>(value.toInt64(2));
 1447|    144|  auto v3 = static_cast<byte>(value.toInt64(3));
 1448|       |
 1449|  12.8k|  for (const auto& type : lensTypes) {
  ------------------
  |  Branch (1449:25): [True: 12.8k, False: 110]
  ------------------
 1450|  12.8k|    if (type.val[0] == v0 && type.val[1] == v2 && type.val[2] == v3) {
  ------------------
  |  Branch (1450:9): [True: 2.51k, False: 10.3k]
  |  Branch (1450:30): [True: 110, False: 2.40k]
  |  Branch (1450:51): [True: 34, False: 76]
  ------------------
 1451|     34|      return os << type.label;
 1452|     34|    }
 1453|  12.8k|  }
 1454|    110|  return os << value;
 1455|    144|}  // OlympusMakerNote::print0x0201
_ZN5Exiv28Internal16OlympusMakerNote11print0x0209ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1458|     58|std::ostream& OlympusMakerNote::print0x0209(std::ostream& os, const Value& value, const ExifData*) {
 1459|     58|  if (value.typeId() != asciiString && value.typeId() != undefined) {
  ------------------
  |  Branch (1459:7): [True: 42, False: 16]
  |  Branch (1459:40): [True: 14, False: 28]
  ------------------
 1460|     14|    return os << value;
 1461|     14|  }
 1462|       |
 1463|     44|  char ch;
 1464|     44|  size_t size = value.size();
 1465|    616|  for (size_t i = 0; i < size && ((ch = static_cast<char>(value.toInt64(i))) != '\0'); i++) {
  ------------------
  |  Branch (1465:22): [True: 610, False: 6]
  |  Branch (1465:34): [True: 572, False: 38]
  ------------------
 1466|    572|    os << ch;
 1467|    572|  }
 1468|     44|  return os;
 1469|     58|}  // OlympusMakerNote::print0x0209
_ZN5Exiv28Internal16OlympusMakerNote13printEq0x0301ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1472|    120|std::ostream& OlympusMakerNote::printEq0x0301(std::ostream& os, const Value& value, const ExifData*) {
 1473|       |  // 6 numbers: 0. Make, 1. Unknown, 2. Model, 3. Sub-model, 4-5. Unknown.
 1474|       |  // Only the Make and Model are used to determine the extender model
 1475|    120|  static constexpr struct {
 1476|    120|    byte val[2];
 1477|    120|    const char* label;
 1478|    120|  } extenderModels[] = {
 1479|    120|      {{0, 0}, N_("None")},
  ------------------
  |  |   41|    120|#define N_(String) String
  ------------------
 1480|    120|      {{0, 4}, "Olympus Zuiko Digital EC-14 1.4x Teleconverter"},
 1481|    120|      {{0, 8}, "Olympus EX-25 Extension Tube"},
 1482|    120|      {{0, 16}, "Olympus Zuiko Digital EC-20 2.0x Teleconverter"},
 1483|    120|  };
 1484|       |
 1485|    120|  if (value.count() != 6 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (1485:7): [True: 20, False: 100]
  |  Branch (1485:29): [True: 8, False: 92]
  ------------------
 1486|     28|    return os << value;
 1487|     28|  }
 1488|       |
 1489|     92|  auto v0 = static_cast<byte>(value.toInt64(0));
 1490|     92|  auto v2 = static_cast<byte>(value.toInt64(2));
 1491|       |
 1492|    276|  for (const auto& model : extenderModels) {
  ------------------
  |  Branch (1492:26): [True: 276, False: 44]
  ------------------
 1493|    276|    if (model.val[0] == v0 && model.val[1] == v2) {
  ------------------
  |  Branch (1493:9): [True: 156, False: 120]
  |  Branch (1493:31): [True: 48, False: 108]
  ------------------
 1494|     48|      return os << model.label;
 1495|     48|    }
 1496|    276|  }
 1497|     44|  return os << value;
 1498|     92|}  // OlympusMakerNote::printEq0x0301
_ZN5Exiv28Internal16OlympusMakerNote13printCs0x0301ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1502|    528|std::ostream& OlympusMakerNote::printCs0x0301(std::ostream& os, const Value& value, const ExifData*) {
 1503|    528|  using mode = std::pair<uint16_t, const char*>;
 1504|    528|  static constexpr mode focusModes0[] = {
 1505|    528|      {0, N_("Single AF")},     {1, N_("Sequential shooting AF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
                    {0, N_("Single AF")},     {1, N_("Sequential shooting AF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
 1506|    528|      {2, N_("Continuous AF")}, {3, N_("Multi AF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
                    {2, N_("Continuous AF")}, {3, N_("Multi AF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
 1507|    528|      {4, N_("Face detect")},   {10, N_("MF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
                    {4, N_("Face detect")},   {10, N_("MF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
 1508|    528|  };
 1509|       |
 1510|    528|  static constexpr mode focusModes1[] = {
 1511|    528|      {0x0001, N_("S-AF")},        {0x0004, N_("C-AF")},      {0x0010, N_("MF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
                    {0x0001, N_("S-AF")},        {0x0004, N_("C-AF")},      {0x0010, N_("MF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
                    {0x0001, N_("S-AF")},        {0x0004, N_("C-AF")},      {0x0010, N_("MF")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
 1512|    528|      {0x0020, N_("Face detect")}, {0x0040, N_("Imager AF")}, {0x0100, N_("AF sensor")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
                    {0x0020, N_("Face detect")}, {0x0040, N_("Imager AF")}, {0x0100, N_("AF sensor")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
                    {0x0020, N_("Face detect")}, {0x0040, N_("Imager AF")}, {0x0100, N_("AF sensor")},
  ------------------
  |  |   41|    528|#define N_(String) String
  ------------------
 1513|    528|  };
 1514|       |
 1515|    528|  if (value.count() < 1 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (1515:7): [True: 0, False: 528]
  |  Branch (1515:28): [True: 62, False: 466]
  ------------------
 1516|     62|    return os << "(" << value << ")";
 1517|     62|  }
 1518|    466|  auto v = static_cast<uint16_t>(value.toInt64(0));
 1519|       |
 1520|       |  // If value 2 is present, it is used instead of value 1.
 1521|    466|  if (value.count() > 1) {
  ------------------
  |  Branch (1521:7): [True: 398, False: 68]
  ------------------
 1522|    398|    std::string p;  // Used to enable ',' separation
 1523|       |
 1524|    398|    v = static_cast<uint16_t>(value.toInt64(1));
 1525|  2.38k|    for (auto&& [val, label] : focusModes1) {
  ------------------
  |  Branch (1525:30): [True: 2.38k, False: 398]
  ------------------
 1526|  2.38k|      if ((v & val) != 0) {
  ------------------
  |  Branch (1526:11): [True: 1.18k, False: 1.20k]
  ------------------
 1527|  1.18k|        if (!p.empty()) {
  ------------------
  |  Branch (1527:13): [True: 844, False: 336]
  ------------------
 1528|    844|          os << ", ";
 1529|    844|        }
 1530|  1.18k|        p = label;
 1531|  1.18k|        os << p;
 1532|  1.18k|      }
 1533|  2.38k|    }
 1534|    398|  } else {
 1535|    234|    for (auto&& [val, label] : focusModes0) {
  ------------------
  |  Branch (1535:30): [True: 234, False: 14]
  ------------------
 1536|    234|      if (val == v) {
  ------------------
  |  Branch (1536:11): [True: 54, False: 180]
  ------------------
 1537|     54|        os << label;
 1538|     54|        break;
 1539|     54|      }
 1540|    234|    }
 1541|     68|  }
 1542|    466|  return os << v;
 1543|       |
 1544|    528|}  // OlympusMakerNote::printCs0x0301
_ZN5Exiv28Internal16OlympusMakerNote11print0x0529ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1547|  1.13k|std::ostream& OlympusMakerNote::print0x0529(std::ostream& os, const Value& value, const ExifData* metadata) {
 1548|  1.13k|  if (value.count() != 4 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (1548:7): [True: 306, False: 830]
  |  Branch (1548:29): [True: 6, False: 824]
  ------------------
 1549|    312|    return os << "(" << value << ")";
 1550|       |
 1551|    824|  const auto v0 = value.toInt64(0);
 1552|    824|  EXV_PRINT_TAG(artFilters)(os, v0, metadata);
  ------------------
  |  |  199|    824|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1553|       |
 1554|    824|  if (v0 == 39) {  // The "Partial color" option also has a color choice
  ------------------
  |  Branch (1554:7): [True: 14, False: 810]
  ------------------
 1555|     14|    const auto v3 = value.toInt64(3);
 1556|     14|    return os << " (" << _("position") << " " << (v3 + 1) << ")";
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1557|     14|  }
 1558|       |
 1559|    810|  return os;
 1560|    824|}  // OlympusMakerNote::print0x0529
_ZN5Exiv28Internal16OlympusMakerNote11print0x1209ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1563|    104|std::ostream& OlympusMakerNote::print0x1209(std::ostream& os, const Value& value, const ExifData*) {
 1564|    104|  if (value.count() != 2 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (1564:7): [True: 42, False: 62]
  |  Branch (1564:29): [True: 16, False: 46]
  ------------------
 1565|     58|    return os << value;
 1566|     58|  }
 1567|       |
 1568|     46|  switch (value.toInt64(0)) {
 1569|      8|    case 0:
  ------------------
  |  Branch (1569:5): [True: 8, False: 38]
  ------------------
 1570|      8|      os << _("Off");
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
 1571|      8|      break;
 1572|      6|    case 1:
  ------------------
  |  Branch (1572:5): [True: 6, False: 40]
  ------------------
 1573|      6|      os << _("On");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1574|      6|      break;
 1575|     32|    default:
  ------------------
  |  Branch (1575:5): [True: 32, False: 14]
  ------------------
 1576|     32|      os << value.toInt64(0);
 1577|     32|      break;
 1578|     46|  }
 1579|     46|  os << " ";
 1580|     46|  os << value.toInt64(1);
 1581|       |
 1582|     46|  return os;
 1583|     46|}  // OlympusMakerNote::print0x1209
_ZN5Exiv28Internal16OlympusMakerNote11print0x0305ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1586|     44|std::ostream& OlympusMakerNote::print0x0305(std::ostream& os, const Value& value, const ExifData*) {
 1587|     44|  if (value.count() != 1 || value.typeId() != unsignedRational) {
  ------------------
  |  Branch (1587:7): [True: 10, False: 34]
  |  Branch (1587:29): [True: 24, False: 10]
  ------------------
 1588|     34|    return os << value;
 1589|     34|  }
 1590|       |
 1591|     10|  auto [r, s] = value.toRational();
 1592|     10|  if (static_cast<uint32_t>(r) == 0xffffffff) {
  ------------------
  |  Branch (1592:7): [True: 2, False: 8]
  ------------------
 1593|      2|    return os << _("Infinity");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
 1594|      2|  }
 1595|      8|  return os << stringFormat("{:.2f} m", static_cast<float>(r) / 1000);
  ------------------
  |  |   18|      8|#define stringFormat std::format
  ------------------
 1596|     10|}
_ZN5Exiv28Internal16OlympusMakerNote11print0x0308ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1599|  1.35k|std::ostream& OlympusMakerNote::print0x0308(std::ostream& os, const Value& value, const ExifData* metadata) {
 1600|  1.35k|  static constexpr std::pair<uint16_t, const char*> afPoints[] = {
 1601|  1.35k|      {0, N_("Left (or n/a)")}, {1, N_("Center (horizontal)")}, {2, N_("Right")}, {3, N_("Center (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
                    {0, N_("Left (or n/a)")}, {1, N_("Center (horizontal)")}, {2, N_("Right")}, {3, N_("Center (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
                    {0, N_("Left (or n/a)")}, {1, N_("Center (horizontal)")}, {2, N_("Right")}, {3, N_("Center (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
                    {0, N_("Left (or n/a)")}, {1, N_("Center (horizontal)")}, {2, N_("Right")}, {3, N_("Center (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1602|  1.35k|      {255, N_("None")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1603|  1.35k|  };
 1604|       |
 1605|  1.35k|  static constexpr std::pair<byte, const char*> afPointsE3[] = {
 1606|  1.35k|      {0x00, N_("None")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1607|  1.35k|      {0x01, N_("Top-left (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1608|  1.35k|      {0x02, N_("Top-center (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1609|  1.35k|      {0x03, N_("Top-right (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1610|  1.35k|      {0x04, N_("Left (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1611|  1.35k|      {0x05, N_("Mid-left (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1612|  1.35k|      {0x06, N_("Center (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1613|  1.35k|      {0x07, N_("Mid-right (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1614|  1.35k|      {0x08, N_("Right (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1615|  1.35k|      {0x09, N_("Bottom-left (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1616|  1.35k|      {0x0a, N_("Bottom-center (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1617|  1.35k|      {0x0b, N_("Bottom-right (horizontal)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1618|  1.35k|      {0x0c, N_("Top-left (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1619|  1.35k|      {0x0d, N_("Top-center (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1620|  1.35k|      {0x0e, N_("Top-right (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1621|  1.35k|      {0x0f, N_("Left (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1622|  1.35k|      {0x10, N_("Mid-left (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1623|  1.35k|      {0x11, N_("Center (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1624|  1.35k|      {0x12, N_("Mid-right (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1625|  1.35k|      {0x13, N_("Right (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1626|  1.35k|      {0x14, N_("Bottom-left (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1627|  1.35k|      {0x15, N_("Bottom-center (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1628|  1.35k|      {0x16, N_("Bottom-right (vertical)")},
  ------------------
  |  |   41|  1.35k|#define N_(String) String
  ------------------
 1629|  1.35k|  };
 1630|       |
 1631|  1.35k|  if (value.count() != 1 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (1631:7): [True: 16, False: 1.33k]
  |  Branch (1631:29): [True: 34, False: 1.30k]
  ------------------
 1632|     50|    return os << value;
 1633|     50|  }
 1634|       |
 1635|  1.30k|  bool E3_E30model = false;
 1636|       |
 1637|  1.30k|  if (metadata) {
  ------------------
  |  Branch (1637:7): [True: 650, False: 650]
  ------------------
 1638|    650|    auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
 1639|    650|    if (pos != metadata->end() && pos->count() != 0) {
  ------------------
  |  Branch (1639:9): [True: 613, False: 37]
  |  Branch (1639:9): [True: 575, False: 75]
  |  Branch (1639:35): [True: 575, False: 38]
  ------------------
 1640|    575|      std::string model = pos->toString();
 1641|    575|      if (Internal::contains(model, "E-3 ") || Internal::contains(model, "E-30 ")) {
  ------------------
  |  Branch (1641:11): [True: 58, False: 517]
  |  Branch (1641:48): [True: 425, False: 92]
  ------------------
 1642|    483|        E3_E30model = true;
 1643|    483|      }
 1644|    575|    }
 1645|    650|  }
 1646|       |
 1647|  1.30k|  auto v = static_cast<uint16_t>(value.toInt64(0));
 1648|       |
 1649|  1.30k|  if (!E3_E30model) {
  ------------------
  |  Branch (1649:7): [True: 817, False: 483]
  ------------------
 1650|  3.66k|    for (auto&& [val, label] : afPoints) {
  ------------------
  |  Branch (1650:30): [True: 3.66k, False: 676]
  ------------------
 1651|  3.66k|      if (val == v) {
  ------------------
  |  Branch (1651:11): [True: 141, False: 3.52k]
  ------------------
 1652|    141|        return os << label;
 1653|    141|      }
 1654|  3.66k|    }
 1655|    817|  } else {
 1656|       |    // E-3 and E-30
 1657|  6.33k|    for (auto&& [val, label] : afPointsE3) {
  ------------------
  |  Branch (1657:30): [True: 6.33k, False: 34]
  ------------------
 1658|  6.33k|      if (val == (v & 0x1f)) {
  ------------------
  |  Branch (1658:11): [True: 464, False: 5.86k]
  ------------------
 1659|    464|        os << label;
 1660|    464|        os << ", ";
 1661|    464|        if ((v & 0xe0) == 0)
  ------------------
  |  Branch (1661:13): [True: 183, False: 281]
  ------------------
 1662|    183|          return os << N_("Single Target");
  ------------------
  |  |   41|    183|#define N_(String) String
  ------------------
 1663|    281|        if (v & 0x40)
  ------------------
  |  Branch (1663:13): [True: 251, False: 30]
  ------------------
 1664|    251|          return os << N_("All Target");
  ------------------
  |  |   41|    251|#define N_(String) String
  ------------------
 1665|     30|        if (v & 0x80)
  ------------------
  |  Branch (1665:13): [True: 15, False: 15]
  ------------------
 1666|     15|          return os << N_("Dynamic Single Target");
  ------------------
  |  |   41|     15|#define N_(String) String
  ------------------
 1667|     30|      }
 1668|  6.33k|    }
 1669|    483|  }
 1670|    710|  return os << v;
 1671|  1.30k|}  // OlympusMakerNote::print0x0308

_ZN5Exiv28Internal16OlympusMakerNote7tagListEv:
   33|   237k|  static constexpr auto tagList() {
   34|   237k|    return tagInfo_;
   35|   237k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListCsEv:
   37|   101k|  static constexpr auto tagListCs() {
   38|   101k|    return tagInfoCs_;
   39|   101k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListEqEv:
   41|  8.05k|  static constexpr auto tagListEq() {
   42|  8.05k|    return tagInfoEq_;
   43|  8.05k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRdEv:
   45|  6.96k|  static constexpr auto tagListRd() {
   46|  6.96k|    return tagInfoRd_;
   47|  6.96k|  }
_ZN5Exiv28Internal16OlympusMakerNote10tagListRd2Ev:
   49|  8.36k|  static constexpr auto tagListRd2() {
   50|  8.36k|    return tagInfoRd2_;
   51|  8.36k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListIpEv:
   53|  6.05k|  static constexpr auto tagListIp() {
   54|  6.05k|    return tagInfoIp_;
   55|  6.05k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFiEv:
   57|  7.21k|  static constexpr auto tagListFi() {
   58|  7.21k|    return tagInfoFi_;
   59|  7.21k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListFeEv:
   61|  6.69k|  static constexpr auto tagListFe() {
   62|  6.69k|    return tagInfoFe_;
   63|  6.69k|  }
_ZN5Exiv28Internal16OlympusMakerNote9tagListRiEv:
   65|  12.1k|  static constexpr auto tagListRi() {
   66|  12.1k|    return tagInfoRi_;
   67|  12.1k|  }

_ZN5Exiv28OrfImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   25|     62|    TiffImage(/*ImageType::orf, mdExif | mdIptc | mdXmp,*/ std::move(io), create) {
   26|     62|  setTypeSupported(ImageType::orf, mdExif | mdIptc | mdXmp);
   27|     62|}  // OrfImage::OrfImage
_ZNK5Exiv28OrfImage10pixelWidthEv:
   33|     17|uint32_t OrfImage::pixelWidth() const {
   34|     17|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageWidth"));
   35|     17|  if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
  ------------------
  |  Branch (35:7): [True: 9, False: 8]
  |  Branch (35:7): [True: 3, False: 14]
  |  Branch (35:40): [True: 3, False: 6]
  ------------------
   36|      3|    return imageWidth->toUint32();
   37|      3|  }
   38|     14|  return 0;
   39|     17|}
_ZNK5Exiv28OrfImage11pixelHeightEv:
   41|     17|uint32_t OrfImage::pixelHeight() const {
   42|     17|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.Image.ImageLength"));
   43|     17|  if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
  ------------------
  |  Branch (43:7): [True: 8, False: 9]
  |  Branch (43:7): [True: 7, False: 10]
  |  Branch (43:41): [True: 7, False: 1]
  ------------------
   44|      7|    return imageHeight->toUint32();
   45|      7|  }
   46|     10|  return 0;
   47|     17|}
_ZN5Exiv28OrfImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
   54|     66|void OrfImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
   55|     66|  out << "ORF IMAGE" << '\n';
   56|     66|  if (io_->open() != 0)
  ------------------
  |  Branch (56:7): [True: 0, False: 66]
  ------------------
   57|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   58|       |  // Ensure that this is the correct image type
   59|     66|  if (imageType() == ImageType::none && !isOrfType(*io_, false)) {
  ------------------
  |  Branch (59:7): [True: 0, False: 66]
  |  Branch (59:41): [True: 0, False: 0]
  ------------------
   60|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (60:9): [True: 0, False: 0]
  |  Branch (60:25): [True: 0, False: 0]
  ------------------
   61|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   62|      0|    throw Error(ErrorCode::kerNotAJpeg);
   63|      0|  }
   64|       |
   65|     66|  io_->seek(0, BasicIo::beg);
   66|       |
   67|     66|  printTiffStructure(io(), out, option, depth);
   68|     66|}  // OrfImage::printStructure
_ZN5Exiv28OrfImage12readMetadataEv:
   70|     62|void OrfImage::readMetadata() {
   71|       |#ifdef EXIV2_DEBUG_MESSAGES
   72|       |  std::cerr << "Reading ORF file " << io_->path() << "\n";
   73|       |#endif
   74|     62|  if (io_->open() != 0) {
  ------------------
  |  Branch (74:7): [True: 0, False: 62]
  ------------------
   75|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   76|      0|  }
   77|     62|  IoCloser closer(*io_);
   78|       |  // Ensure that this is the correct image type
   79|     62|  if (!isOrfType(*io_, false)) {
  ------------------
  |  Branch (79:7): [True: 0, False: 62]
  ------------------
   80|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (80:9): [True: 0, False: 0]
  |  Branch (80:25): [True: 0, False: 0]
  ------------------
   81|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   82|      0|    throw Error(ErrorCode::kerNotAnImage, "ORF");
   83|      0|  }
   84|     62|  clearMetadata();
   85|     62|  ByteOrder bo = OrfParser::decode(exifData_, iptcData_, xmpData_, io_->mmap(), io_->size());
   86|     62|  setByteOrder(bo);
   87|     62|}
_ZN5Exiv29OrfParser6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhm:
  113|     62|ByteOrder OrfParser::decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size) {
  114|     62|  OrfHeader orfHeader;
  115|     62|  return TiffParserWorker::decode(exifData, iptcData, xmpData, pData, size, Tag::root, TiffMapping::findDecoder,
  116|     62|                                  &orfHeader);
  117|     62|}
_ZN5Exiv214newOrfInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  139|     62|Image::UniquePtr newOrfInstance(BasicIo::UniquePtr io, bool create) {
  140|     62|  auto image = std::make_unique<OrfImage>(std::move(io), create);
  141|     62|  if (!image->good()) {
  ------------------
  |  Branch (141:7): [True: 0, False: 62]
  ------------------
  142|      0|    return nullptr;
  143|      0|  }
  144|     62|  return image;
  145|     62|}
_ZN5Exiv29isOrfTypeERNS_7BasicIoEb:
  147|  13.6k|bool isOrfType(BasicIo& iIo, bool advance) {
  148|  13.6k|  const int32_t len = 8;
  149|  13.6k|  byte buf[len];
  150|  13.6k|  iIo.read(buf, len);
  151|  13.6k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (151:7): [True: 0, False: 13.6k]
  |  Branch (151:22): [True: 124, False: 13.5k]
  ------------------
  152|    124|    return false;
  153|    124|  }
  154|  13.5k|  OrfHeader orfHeader;
  155|  13.5k|  bool rc = orfHeader.read(buf, len);
  156|  13.5k|  if (!advance || !rc) {
  ------------------
  |  Branch (156:7): [True: 13.5k, False: 0]
  |  Branch (156:19): [True: 0, False: 0]
  ------------------
  157|  13.5k|    iIo.seek(-len, BasicIo::cur);
  158|  13.5k|  }
  159|  13.5k|  return rc;
  160|  13.6k|}

_ZN5Exiv28Internal9OrfHeaderC2ENS_9ByteOrderE:
    6|  13.6k|OrfHeader::OrfHeader(ByteOrder byteOrder) : TiffHeaderBase(0x4f52, 8, byteOrder, 0x00000008) {
    7|  13.6k|}
_ZN5Exiv28Internal9OrfHeader4readEPKhm:
    9|  13.6k|bool OrfHeader::read(const byte* pData, size_t size) {
   10|  13.6k|  if (size < 8)
  ------------------
  |  Branch (10:7): [True: 0, False: 13.6k]
  ------------------
   11|      0|    return false;
   12|       |
   13|  13.6k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (13:7): [True: 249, False: 13.3k]
  |  Branch (13:26): [True: 236, False: 13]
  ------------------
   14|    236|    setByteOrder(littleEndian);
   15|  13.3k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (15:14): [True: 63, False: 13.3k]
  |  Branch (15:33): [True: 48, False: 15]
  ------------------
   16|     48|    setByteOrder(bigEndian);
   17|  13.3k|  } else {
   18|  13.3k|    return false;
   19|  13.3k|  }
   20|       |
   21|    284|  uint16_t sig = getUShort(pData + 2, byteOrder());
   22|    284|  if (tag() != sig && 0x5352 != sig)
  ------------------
  |  Branch (22:7): [True: 248, False: 36]
  |  Branch (22:23): [True: 36, False: 212]
  ------------------
   23|     36|    return false;  // #658: Added 0x5352 "SR" for SP-560UZ
   24|    248|  sig_ = sig;
   25|    248|  setOffset(getULong(pData + 4, byteOrder()));
   26|    248|  return true;
   27|    284|}

_ZN5Exiv28Internal18PanasonicMakerNote11print0x000fERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  559|  1.16k|std::ostream& PanasonicMakerNote::print0x000f(std::ostream& os, const Value& value, const ExifData*) {
  560|  1.16k|  if (value.count() < 2 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (560:7): [True: 282, False: 880]
  |  Branch (560:28): [True: 88, False: 792]
  ------------------
  561|    370|    return os << value;
  562|    370|  }
  563|    792|  const auto l0 = value.toInt64(0);
  564|    792|  const auto l1 = value.toInt64(1);
  565|    792|  if (l0 == 0 && l1 == 1)
  ------------------
  |  Branch (565:7): [True: 222, False: 570]
  |  Branch (565:18): [True: 64, False: 158]
  ------------------
  566|     64|    os << _("Spot mode on or 9 area");
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  567|    728|  else if (l0 == 0 && l1 == 16)
  ------------------
  |  Branch (567:12): [True: 158, False: 570]
  |  Branch (567:23): [True: 30, False: 128]
  ------------------
  568|     30|    os << _("Spot mode off or 3-area (high speed)");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  569|    698|  else if (l0 == 0 && l1 == 23)
  ------------------
  |  Branch (569:12): [True: 128, False: 570]
  |  Branch (569:23): [True: 36, False: 92]
  ------------------
  570|     36|    os << _("23-area");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  571|    662|  else if (l0 == 0 && l1 == 49)
  ------------------
  |  Branch (571:12): [True: 92, False: 570]
  |  Branch (571:23): [True: 32, False: 60]
  ------------------
  572|     32|    os << _("49-area");
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  573|    630|  else if (l0 == 0 && l1 == 225)
  ------------------
  |  Branch (573:12): [True: 60, False: 570]
  |  Branch (573:23): [True: 18, False: 42]
  ------------------
  574|     18|    os << _("225-area");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  575|    612|  else if (l0 == 1 && l1 == 0)
  ------------------
  |  Branch (575:12): [True: 130, False: 482]
  |  Branch (575:23): [True: 36, False: 94]
  ------------------
  576|     36|    os << _("Spot focusing");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  577|    576|  else if (l0 == 1 && l1 == 1)
  ------------------
  |  Branch (577:12): [True: 94, False: 482]
  |  Branch (577:23): [True: 16, False: 78]
  ------------------
  578|     16|    os << _("5-area");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  579|    560|  else if (l0 == 16 && l1 == 0)
  ------------------
  |  Branch (579:12): [True: 82, False: 478]
  |  Branch (579:24): [True: 50, False: 32]
  ------------------
  580|     50|    os << _("1-area");
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  581|    510|  else if (l0 == 16 && l1 == 16)
  ------------------
  |  Branch (581:12): [True: 32, False: 478]
  |  Branch (581:24): [True: 30, False: 2]
  ------------------
  582|     30|    os << _("1-area (high speed)");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  583|    480|  else if (l0 == 32 && l1 == 0)
  ------------------
  |  Branch (583:12): [True: 138, False: 342]
  |  Branch (583:24): [True: 50, False: 88]
  ------------------
  584|     50|    os << _("3-area (auto)");
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  585|    430|  else if (l0 == 32 && l1 == 1)
  ------------------
  |  Branch (585:12): [True: 88, False: 342]
  |  Branch (585:24): [True: 18, False: 70]
  ------------------
  586|     18|    os << _("3-area (left)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  587|    412|  else if (l0 == 32 && l1 == 2)
  ------------------
  |  Branch (587:12): [True: 70, False: 342]
  |  Branch (587:24): [True: 22, False: 48]
  ------------------
  588|     22|    os << _("3-area (center)");
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  589|    390|  else if (l0 == 32 && l1 == 3)
  ------------------
  |  Branch (589:12): [True: 48, False: 342]
  |  Branch (589:24): [True: 18, False: 30]
  ------------------
  590|     18|    os << _("3-area (right)");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  591|    372|  else if (l0 == 64 && l1 == 0)
  ------------------
  |  Branch (591:12): [True: 46, False: 326]
  |  Branch (591:24): [True: 14, False: 32]
  ------------------
  592|     14|    os << _("Face Detect");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  593|    358|  else if (l0 == 128 && l1 == 0)
  ------------------
  |  Branch (593:12): [True: 92, False: 266]
  |  Branch (593:25): [True: 62, False: 30]
  ------------------
  594|     62|    os << _("Spot Focusing 2");
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  595|    296|  else if (l0 == 240 && l1 == 0)
  ------------------
  |  Branch (595:12): [True: 22, False: 274]
  |  Branch (595:25): [True: 6, False: 16]
  ------------------
  596|      6|    os << _("Tracking");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  597|    290|  else
  598|    290|    os << value;
  599|    792|  return os;
  600|  1.16k|}  // PanasonicMakerNote::print0x000f
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0023ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  603|     46|std::ostream& PanasonicMakerNote::print0x0023(std::ostream& os, const Value& value, const ExifData*) {
  604|     46|  return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   18|     46|#define stringFormat std::format
  ------------------
                return os << stringFormat("{:1}{}", value.toInt64() / 3, _(" EV"));
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  605|     46|}  // PanasonicMakerNote::print0x0023
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0029ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  608|     84|std::ostream& PanasonicMakerNote::print0x0029(std::ostream& os, const Value& value, const ExifData*) {
  609|     84|  auto time = value.toInt64();
  610|     84|  return os << stringFormat("{:02}:{:02}:{:02}.{:02}", time / 360000, (time % 360000) / 6000, (time % 6000) / 100,
  ------------------
  |  |   18|     84|#define stringFormat std::format
  ------------------
  611|     84|                            time % 100);
  612|       |
  613|     84|}  // PanasonicMakerNote::print0x0029
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0033ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  616|    270|std::ostream& PanasonicMakerNote::print0x0033(std::ostream& os, const Value& value, const ExifData*) {
  617|    270|  if (value.toString() == "9999:99:99 00:00:00") {
  ------------------
  |  Branch (617:7): [True: 0, False: 270]
  ------------------
  618|      0|    os << N_("not set");
  ------------------
  |  |   41|      0|#define N_(String) String
  ------------------
  619|    270|  } else {
  620|    270|    os << value;
  621|    270|  }
  622|    270|  return os;
  623|    270|}  // PanasonicMakerNote::print0x0033
_ZN5Exiv28Internal18PanasonicMakerNote11print0x0036ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  626|     36|std::ostream& PanasonicMakerNote::print0x0036(std::ostream& os, const Value& value, const ExifData*) {
  627|     36|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (627:7): [True: 6, False: 30]
  ------------------
  628|      6|    os << N_("not set");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
  629|     30|  else
  630|     30|    os << value;
  631|     36|  return os;
  632|     36|}  // PanasonicMakerNote::print0x0036
_ZN5Exiv28Internal18PanasonicMakerNote11print0x003cERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  635|    184|std::ostream& PanasonicMakerNote::print0x003c(std::ostream& os, const Value& value, const ExifData*) {
  636|    184|  switch (value.toInt64()) {
  637|     32|    case 65534:
  ------------------
  |  Branch (637:5): [True: 32, False: 152]
  ------------------
  638|     32|      os << N_("Intelligent ISO");
  ------------------
  |  |   41|     32|#define N_(String) String
  ------------------
  639|     32|      break;
  640|     68|    case 65535:
  ------------------
  |  Branch (640:5): [True: 68, False: 116]
  ------------------
  641|     68|      os << N_("n/a");
  ------------------
  |  |   41|     68|#define N_(String) String
  ------------------
  642|     68|      break;
  643|     84|    default:
  ------------------
  |  Branch (643:5): [True: 84, False: 100]
  ------------------
  644|     84|      os << value;
  645|     84|      break;
  646|    184|  }
  647|    184|  return os;
  648|    184|}  // PanasonicMakerNote::print0x003c
_ZN5Exiv28Internal18PanasonicMakerNote18printPanasonicTextERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  650|    252|std::ostream& PanasonicMakerNote::printPanasonicText(std::ostream& os, const Value& value, const ExifData*) {
  651|    252|  if (value.size() > 0 && value.typeId() == undefined) {
  ------------------
  |  Branch (651:7): [True: 252, False: 0]
  |  Branch (651:27): [True: 20, False: 232]
  ------------------
  652|    354|    for (size_t i = 0; i < value.size(); i++) {
  ------------------
  |  Branch (652:24): [True: 348, False: 6]
  ------------------
  653|    348|      if (value.toInt64(i) == 0) {
  ------------------
  |  Branch (653:11): [True: 14, False: 334]
  ------------------
  654|     14|        break;
  655|     14|      }
  656|    334|      os << static_cast<char>(value.toInt64(i));
  657|    334|    }
  658|     20|    return os;
  659|     20|  }
  660|       |
  661|    232|  return os << value;
  662|    252|}  // PanasonicMakerNote::printPanasonicText
_ZN5Exiv28Internal18PanasonicMakerNote13printPressureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  665|     84|std::ostream& PanasonicMakerNote::printPressure(std::ostream& os, const Value& value, const ExifData*) {
  666|     84|  if (value.toInt64() == 65535)
  ------------------
  |  Branch (666:7): [True: 14, False: 70]
  ------------------
  667|     14|    os << N_("infinite");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
  668|     70|  else
  669|     70|    os << value << N_(" hPa");
  ------------------
  |  |   41|     70|#define N_(String) String
  ------------------
  670|     84|  return os;
  671|     84|}  // PanasonicMakerNote::printPressure
_ZN5Exiv28Internal18PanasonicMakerNote18printAccelerometerERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  673|     56|std::ostream& PanasonicMakerNote::printAccelerometer(std::ostream& os, const Value& value, const ExifData*) {
  674|       |  // value is stored as unsigned int, but should be read as int16_t.
  675|     56|  const auto i = static_cast<int16_t>(value.toInt64());
  676|     56|  return os << i;
  677|     56|}  // PanasonicMakerNote::printAccelerometer
_ZN5Exiv28Internal18PanasonicMakerNote14printRollAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  679|     44|std::ostream& PanasonicMakerNote::printRollAngle(std::ostream& os, const Value& value, const ExifData*) {
  680|       |  // value is stored as unsigned int, but should be read as int16_t.
  681|     44|  const auto i = static_cast<int16_t>(value.toInt64());
  682|     44|  return os << stringFormat("{:.1f}", i / 10.0);
  ------------------
  |  |   18|     44|#define stringFormat std::format
  ------------------
  683|     44|}  // PanasonicMakerNote::printRollAngle
_ZN5Exiv28Internal18PanasonicMakerNote15printPitchAngleERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  685|     18|std::ostream& PanasonicMakerNote::printPitchAngle(std::ostream& os, const Value& value, const ExifData*) {
  686|       |  // value is stored as unsigned int, but should be read as int16_t.
  687|     18|  const auto i = static_cast<int16_t>(value.toInt64());
  688|     18|  return os << stringFormat("{:.1f}", -i / 10.0);
  ------------------
  |  |   18|     18|#define stringFormat std::format
  ------------------
  689|     18|}  // PanasonicMakerNote::printPitchAngle

_ZN5Exiv28Internal18PanasonicMakerNote10tagListRawEv:
   29|  71.2k|  static constexpr auto tagListRaw() {
   30|  71.2k|    return tagInfoRaw_;
   31|  71.2k|  }
_ZN5Exiv28Internal18PanasonicMakerNote7tagListEv:
   25|  96.6k|  static constexpr auto tagList() {
   26|  96.6k|    return tagInfo_;
   27|  96.6k|  }

_ZN5Exiv28Internal15PentaxMakerNote12printVersionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  953|  5.47k|std::ostream& PentaxMakerNote::printVersion(std::ostream& os, const Value& value, const ExifData*) {
  954|  5.47k|  std::string val = value.toString();
  955|  5.47k|  std::replace(val.begin(), val.end(), ' ', '.');
  956|  5.47k|  os << val;
  957|  5.47k|  return os;
  958|  5.47k|}
_ZN5Exiv28Internal15PentaxMakerNote15printResolutionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  960|  1.17k|std::ostream& PentaxMakerNote::printResolution(std::ostream& os, const Value& value, const ExifData*) {
  961|  1.17k|  std::string val = value.toString();
  962|  1.17k|  std::replace(val.begin(), val.end(), ' ', 'x');
  963|  1.17k|  os << val;
  964|  1.17k|  return os;
  965|  1.17k|}
_ZN5Exiv28Internal15PentaxMakerNote9printDateERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  967|    374|std::ostream& PentaxMakerNote::printDate(std::ostream& os, const Value& value, const ExifData*) {
  968|       |  /* I choose same format as is used inside EXIF itself */
  969|    374|  return os << stringFormat("{}:{:02}:{:02}", ((static_cast<uint16_t>(value.toInt64(0)) << 8) + value.toInt64(1)),
  ------------------
  |  |   18|    374|#define stringFormat std::format
  ------------------
  970|    374|                            value.toInt64(2), value.toInt64(3));
  971|    374|}
_ZN5Exiv28Internal15PentaxMakerNote9printTimeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  973|    360|std::ostream& PentaxMakerNote::printTime(std::ostream& os, const Value& value, const ExifData*) {
  974|    360|  return os << stringFormat("{:02}:{:02}:{:02}", value.toInt64(0), value.toInt64(1), value.toInt64(2));
  ------------------
  |  |   18|    360|#define stringFormat std::format
  ------------------
  975|    360|}
_ZN5Exiv28Internal15PentaxMakerNote13printExposureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  977|     62|std::ostream& PentaxMakerNote::printExposure(std::ostream& os, const Value& value, const ExifData*) {
  978|     62|  return os << stringFormat("{:g} ms", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     62|#define stringFormat std::format
  ------------------
  979|     62|}
_ZN5Exiv28Internal15PentaxMakerNote11printFValueERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  981|     30|std::ostream& PentaxMakerNote::printFValue(std::ostream& os, const Value& value, const ExifData*) {
  982|     30|  return os << stringFormat("F{:.2g}", static_cast<float>(value.toInt64()) / 10);
  ------------------
  |  |   18|     30|#define stringFormat std::format
  ------------------
  983|     30|}
_ZN5Exiv28Internal15PentaxMakerNote16printFocalLengthERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  985|     78|std::ostream& PentaxMakerNote::printFocalLength(std::ostream& os, const Value& value, const ExifData*) {
  986|     78|  return os << stringFormat("{:.1f} mm", static_cast<float>(value.toInt64()) / 100);
  ------------------
  |  |   18|     78|#define stringFormat std::format
  ------------------
  987|     78|}
_ZN5Exiv28Internal15PentaxMakerNote17printCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  989|    150|std::ostream& PentaxMakerNote::printCompensation(std::ostream& os, const Value& value, const ExifData*) {
  990|    150|  return os << stringFormat("{:.2g} EV", (static_cast<float>(value.toInt64()) - 50) / 10);
  ------------------
  |  |   18|    150|#define stringFormat std::format
  ------------------
  991|    150|}
_ZN5Exiv28Internal15PentaxMakerNote16printTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|     20|std::ostream& PentaxMakerNote::printTemperature(std::ostream& os, const Value& value, const ExifData*) {
  994|     20|  return os << stringFormat("{} C", value.toInt64());
  ------------------
  |  |   18|     20|#define stringFormat std::format
  ------------------
  995|     20|}
_ZN5Exiv28Internal15PentaxMakerNote22printFlashCompensationERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  997|     48|std::ostream& PentaxMakerNote::printFlashCompensation(std::ostream& os, const Value& value, const ExifData*) {
  998|     48|  return os << stringFormat("{:.2g} EV", static_cast<float>(value.toInt64()) / 256);
  ------------------
  |  |   18|     48|#define stringFormat std::format
  ------------------
  999|     48|}
_ZN5Exiv28Internal15PentaxMakerNote15printBracketingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1001|    312|std::ostream& PentaxMakerNote::printBracketing(std::ostream& os, const Value& value, const ExifData*) {
 1002|    312|  std::ios::fmtflags f(os.flags());
 1003|    312|  if (auto l0 = value.toUint32(0); l0 < 10) {
  ------------------
  |  Branch (1003:36): [True: 212, False: 100]
  ------------------
 1004|    212|    os << std::setprecision(2) << static_cast<float>(l0) / 3 << " EV";
 1005|    212|  } else {
 1006|    100|    os << std::setprecision(2) << static_cast<float>(l0) - 9.5F << " EV";
 1007|    100|  }
 1008|       |
 1009|    312|  if (value.count() == 2) {
  ------------------
  |  Branch (1009:7): [True: 250, False: 62]
  ------------------
 1010|    250|    const auto l1 = value.toUint32(1);
 1011|    250|    os << " (";
 1012|    250|    if (l1 == 0) {
  ------------------
  |  Branch (1012:9): [True: 68, False: 182]
  ------------------
 1013|     68|      os << _("No extended bracketing");
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
 1014|    182|    } else {
 1015|    182|      auto type = l1 >> 8;
 1016|    182|      auto range = static_cast<byte>(l1);
 1017|    182|      switch (type) {
 1018|     14|        case 1:
  ------------------
  |  Branch (1018:9): [True: 14, False: 168]
  ------------------
 1019|     14|          os << _("WB-BA");
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
 1020|     14|          break;
 1021|     16|        case 2:
  ------------------
  |  Branch (1021:9): [True: 16, False: 166]
  ------------------
 1022|     16|          os << _("WB-GM");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1023|     16|          break;
 1024|     54|        case 3:
  ------------------
  |  Branch (1024:9): [True: 54, False: 128]
  ------------------
 1025|     54|          os << _("Saturation");
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
 1026|     54|          break;
 1027|     16|        case 4:
  ------------------
  |  Branch (1027:9): [True: 16, False: 166]
  ------------------
 1028|     16|          os << _("Sharpness");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 1029|     16|          break;
 1030|     60|        case 5:
  ------------------
  |  Branch (1030:9): [True: 60, False: 122]
  ------------------
 1031|     60|          os << _("Contrast");
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
 1032|     60|          break;
 1033|     22|        default:
  ------------------
  |  Branch (1033:9): [True: 22, False: 160]
  ------------------
 1034|     22|          os << _("Unknown ") << type;
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
 1035|     22|          break;
 1036|    182|      }
 1037|    182|      os << " " << +range;
 1038|    182|    }
 1039|    250|    os << ")";
 1040|    250|  }
 1041|    312|  os.flags(f);
 1042|    312|  return os;
 1043|    312|}
_ZN5Exiv28Internal15PentaxMakerNote17printShutterCountERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1045|    444|std::ostream& PentaxMakerNote::printShutterCount(std::ostream& os, const Value& value, const ExifData* metadata) {
 1046|    444|  if (!metadata)
  ------------------
  |  Branch (1046:7): [True: 222, False: 222]
  ------------------
 1047|    222|    return os << "undefined";
 1048|       |
 1049|    222|  auto dateIt = metadata->findKey(ExifKey("Exif.PentaxDng.Date"));
 1050|    222|  if (dateIt == metadata->end()) {
  ------------------
  |  Branch (1050:7): [True: 60, False: 162]
  ------------------
 1051|     60|    dateIt = metadata->findKey(ExifKey("Exif.Pentax.Date"));
 1052|     60|  }
 1053|       |
 1054|    222|  auto timeIt = metadata->findKey(ExifKey("Exif.PentaxDng.Time"));
 1055|    222|  if (timeIt == metadata->end()) {
  ------------------
  |  Branch (1055:7): [True: 84, False: 138]
  ------------------
 1056|     84|    timeIt = metadata->findKey(ExifKey("Exif.Pentax.Time"));
 1057|     84|  }
 1058|       |
 1059|    222|  if (dateIt == metadata->end() || dateIt->size() != 4 || timeIt == metadata->end() || timeIt->size() != 3 ||
  ------------------
  |  Branch (1059:7): [True: 57, False: 165]
  |  Branch (1059:7): [True: 197, False: 25]
  |  Branch (1059:36): [True: 16, False: 149]
  |  Branch (1059:59): [True: 37, False: 112]
  |  Branch (1059:88): [True: 35, False: 77]
  ------------------
 1060|    197|      value.size() != 4) {
  ------------------
  |  Branch (1060:7): [True: 52, False: 25]
  ------------------
 1061|    197|    os << "undefined";
 1062|    197|    return os;
 1063|    197|  }
 1064|     25|  const uint32_t date = (dateIt->toUint32(0) << 24) + (dateIt->toUint32(1) << 16) + (dateIt->toUint32(2) << 8) +
 1065|     25|                        (dateIt->toUint32(3) << 0);
 1066|     25|  const uint32_t time = (timeIt->toUint32(0) << 24) + (timeIt->toUint32(1) << 16) + (timeIt->toUint32(2) << 8);
 1067|     25|  const uint32_t countEnc =
 1068|     25|      (value.toUint32(0) << 24) + (value.toUint32(1) << 16) + (value.toUint32(2) << 8) + (value.toUint32(3) << 0);
 1069|       |  // The shutter count is encoded using date and time values stored
 1070|       |  // in Pentax-specific tags.  The prototype for the encoding/decoding
 1071|       |  // function is taken from Phil Harvey's ExifTool: Pentax.pm file,
 1072|       |  // CryptShutterCount() routine.
 1073|     25|  const uint32_t count = countEnc ^ date ^ (~time);
 1074|     25|  os << count;
 1075|     25|  return os;
 1076|    222|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1259|  2.03k|static std::ostream& printLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 1260|       |  //! List of lens ids which require special treatment using resolveLensType
 1261|  2.03k|  static constexpr struct LensIdFct {
 1262|  2.03k|    uint32_t id_;   //!< Lens id
 1263|  2.03k|    PrintFct fct_;  //!< Pretty-print function
 1264|       |    //! Comparison operator for find template
 1265|  2.03k|    bool operator==(uint32_t id) const {
 1266|  2.03k|      return id_ == id;
 1267|  2.03k|    }
 1268|  2.03k|  } lensIdFct[] = {
 1269|  2.03k|      {0x0317, resolveLensType}, {0x0319, resolveLens0x319}, {0x031b, resolveLensType},  {0x031c, resolveLensType},
 1270|  2.03k|      {0x031d, resolveLensType}, {0x031f, resolveLensType},  {0x0329, resolveLensType},  {0x032c, resolveLens0x32c},
 1271|  2.03k|      {0x032e, resolveLensType}, {0x0334, resolveLensType},  {0x03ff, resolveLens0x3ff}, {0x041a, resolveLensType},
 1272|  2.03k|      {0x042d, resolveLensType}, {0x08ff, resolveLens0x8ff},
 1273|  2.03k|  };
 1274|       |  // #1034
 1275|  2.03k|  const std::string undefined("undefined");
 1276|  2.03k|  const std::string section("pentax");
 1277|  2.03k|  if (Internal::readExiv2Config(section, value.toString(), undefined) != undefined) {
  ------------------
  |  Branch (1277:7): [True: 0, False: 2.03k]
  ------------------
 1278|      0|    return os << Internal::readExiv2Config(section, value.toString(), undefined);
 1279|      0|  }
 1280|       |
 1281|  2.03k|  const auto index = (value.toUint32(0) * 256) + value.toUint32(1);
 1282|       |
 1283|       |  // std::cout << '\n' << "printLensType value =" << value.toLong() << " index = " << index << '\n';
 1284|  2.03k|  auto lif = Exiv2::find(lensIdFct, index);
 1285|  2.03k|  if (!lif)
  ------------------
  |  Branch (1285:7): [True: 560, False: 1.47k]
  ------------------
 1286|    560|    return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    560|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1287|  1.47k|  if (metadata && lif->fct_)
  ------------------
  |  Branch (1287:7): [True: 674, False: 804]
  |  Branch (1287:19): [True: 674, False: 0]
  ------------------
 1288|    674|    return lif->fct_(os, value, metadata);
 1289|    804|  if (value.typeId() != unsignedShort || value.count() == 0)
  ------------------
  |  Branch (1289:7): [True: 728, False: 76]
  |  Branch (1289:42): [True: 0, False: 76]
  ------------------
 1290|    598|    return os << "(" << value << ")";
 1291|    206|  return os << value;
 1292|    804|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL15resolveLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1254|    127|static std::ostream& resolveLensType(std::ostream& os, const Value& value, const ExifData* metadata) {
 1255|    127|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    127|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1256|    127|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x319ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1224|     77|{
 1225|     77|  try {
 1226|     77|    unsigned long index = 0;
 1227|       |
 1228|     77|    const auto lensInfo = findLensInfo(metadata);
 1229|     77|    if (value.count() == 4) {
  ------------------
  |  Branch (1229:9): [True: 12, False: 65]
  ------------------
 1230|     12|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1231|     12|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 &&
  ------------------
  |  Branch (1231:11): [True: 0, False: 12]
  |  Branch (1231:46): [True: 0, False: 0]
  |  Branch (1231:74): [True: 0, False: 0]
  ------------------
 1232|      0|          lensInfo->toUint32(2) == 128)
  ------------------
  |  Branch (1232:11): [True: 0, False: 0]
  ------------------
 1233|      0|        index = 6;
 1234|     12|    }
 1235|     77|    if (value.count() == 2) {
  ------------------
  |  Branch (1235:9): [True: 45, False: 32]
  ------------------
 1236|     45|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1237|     45|      if (model.starts_with("PENTAX K100D") && lensInfo->count() == 44)
  ------------------
  |  Branch (1237:11): [True: 10, False: 35]
  |  Branch (1237:48): [True: 0, False: 10]
  ------------------
 1238|      0|        index = 6;
 1239|     45|      if (model.starts_with("PENTAX *ist DL") && lensInfo->count() == 36)
  ------------------
  |  Branch (1239:11): [True: 6, False: 39]
  |  Branch (1239:50): [True: 0, False: 6]
  ------------------
 1240|      0|        index = 6;
 1241|     45|    }
 1242|       |
 1243|     77|    if (index > 0) {
  ------------------
  |  Branch (1243:9): [True: 0, False: 77]
  ------------------
 1244|      0|      const unsigned long lensID = 0x319;
 1245|      0|      auto td = Exiv2::find(pentaxLensType, lensID);
 1246|      0|      return os << _(td[index].label_);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
 1247|      0|    }
 1248|     77|  } catch (...) {
 1249|     20|  }
 1250|     77|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     77|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1251|     77|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12findLensInfoEPKNS_8ExifDataE:
 1096|    528|static ExifData::const_iterator findLensInfo(const ExifData* metadata) {
 1097|    528|  const auto dngLensInfo = metadata->findKey(ExifKey("Exif.PentaxDng.LensInfo"));
 1098|    528|  if (dngLensInfo != metadata->end()) {
  ------------------
  |  Branch (1098:7): [True: 429, False: 99]
  ------------------
 1099|    429|    return dngLensInfo;
 1100|    429|  }
 1101|     99|  const auto lensInfo = metadata->findKey(ExifKey("Exif.Pentax.LensInfo"));
 1102|     99|  if (lensInfo != metadata->end()) {
  ------------------
  |  Branch (1102:7): [True: 12, False: 87]
  ------------------
 1103|     12|    return lensInfo;
 1104|     12|  }
 1105|     87|  throw LensInfoNotFound();
 1106|     99|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL12getKeyStringERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1079|    172|static std::string getKeyString(const std::string& key, const ExifData* metadata) {
 1080|    172|  std::string result;
 1081|    172|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1081:7): [True: 126, False: 46]
  ------------------
 1082|    126|    result = metadata->findKey(ExifKey(key))->toString();
 1083|    126|  }
 1084|    172|  return result;
 1085|    172|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x32cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1109|     19|static std::ostream& resolveLens0x32c(std::ostream& os, const Value& value, const ExifData* metadata) {
 1110|     19|  try {
 1111|     19|    unsigned long index = 0;
 1112|       |
 1113|     19|    long focalLength = getKeyLong("Exif.Photo.FocalLength", metadata);
 1114|     19|    bool bFL10_20 = 10 <= focalLength && focalLength <= 20;
  ------------------
  |  Branch (1114:21): [True: 0, False: 19]
  |  Branch (1114:42): [True: 0, False: 0]
  ------------------
 1115|       |
 1116|       |    // std::cout << "model,focalLength = " << model << "," << focalLength << '\n';
 1117|     19|    if (bFL10_20) {
  ------------------
  |  Branch (1117:9): [True: 0, False: 19]
  ------------------
 1118|      0|      index = 1;
 1119|      0|    }
 1120|       |
 1121|     19|    if (index > 0) {
  ------------------
  |  Branch (1121:9): [True: 0, False: 19]
  ------------------
 1122|      0|      const unsigned long lensID = 0x32c;
 1123|      0|      auto td = Exiv2::find(pentaxLensType, lensID);
 1124|      0|      return os << _(td[index].label_);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
 1125|      0|    }
 1126|     19|  } catch (...) {
 1127|      0|  }
 1128|     19|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     19|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1129|     19|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL10getKeyLongERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEPKNS_8ExifDataE:
 1087|     19|static long getKeyLong(const std::string& key, const ExifData* metadata) {
 1088|     19|  long result = -1;
 1089|     19|  if (metadata->findKey(ExifKey(key)) != metadata->end()) {
  ------------------
  |  Branch (1089:7): [True: 0, False: 19]
  ------------------
 1090|      0|    result = static_cast<long>(metadata->findKey(ExifKey(key))->toFloat(0));
 1091|      0|  }
 1092|     19|  return result;
 1093|     19|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x3ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1136|    279|{
 1137|    279|  try {
 1138|    279|    unsigned long index = 0;
 1139|       |
 1140|       |    // http://www.sno.phy.queensu.ca/~phil/exiftool/TagNames/Pentax.html#LensData
 1141|    279|    const auto lensInfo = findLensInfo(metadata);
 1142|    279|    if (lensInfo->count() < 5)
  ------------------
  |  Branch (1142:9): [True: 41, False: 238]
  ------------------
 1143|     41|      return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|     41|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1144|       |
 1145|    238|    if (value.count() == 2) {
  ------------------
  |  Branch (1145:9): [True: 80, False: 158]
  ------------------
 1146|       |      // http://dev.exiv2.org/attachments/download/326/IMGP4432.PEF
 1147|       |      // exiv2 -pv --grep Lens ~/Downloads/IMGP4432.PEF
 1148|       |      // 0x003f Pentax       LensType  Byte        2 3 255
 1149|       |      // 0x0207 Pentax       LensInfo  Undefined  36 3 255 0 0 40 148 71 152 80 6 241 65 237 153 88 36 1 76
 1150|       |      // 107 251 255 255 255 0 0 80 6 241 0 0 0 0 0 0 0 0
 1151|     80|      unsigned long base = 1;
 1152|       |
 1153|     80|      unsigned int autoAperture = lensInfo->toUint32(base + 1) & 0x01;
 1154|     80|      unsigned int minAperture = lensInfo->toUint32(base + 2) & 0x06;
 1155|     80|      unsigned int minFocusDistance = lensInfo->toUint32(base + 3) & 0xf8;
 1156|       |
 1157|     80|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 148)
  ------------------
  |  Branch (1157:11): [True: 63, False: 17]
  |  Branch (1157:34): [True: 50, False: 13]
  |  Branch (1157:56): [True: 35, False: 15]
  |  Branch (1157:84): [True: 10, False: 25]
  ------------------
 1158|     10|        index = 8;
 1159|     80|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 5) == 110)
  ------------------
  |  Branch (1159:11): [True: 63, False: 17]
  |  Branch (1159:34): [True: 50, False: 13]
  |  Branch (1159:56): [True: 35, False: 15]
  |  Branch (1159:84): [True: 10, False: 25]
  ------------------
 1160|     10|        index = 7;
 1161|     80|      if (autoAperture == 0x0 && minAperture == 0x0 && minFocusDistance == 0x28 && lensInfo->toUint32(base + 4) == 110)
  ------------------
  |  Branch (1161:11): [True: 63, False: 17]
  |  Branch (1161:34): [True: 50, False: 13]
  |  Branch (1161:56): [True: 35, False: 15]
  |  Branch (1161:84): [True: 10, False: 25]
  ------------------
 1162|     10|        index = 7;
 1163|       |
 1164|    158|    } else if (value.count() == 3) {
  ------------------
  |  Branch (1164:16): [True: 56, False: 102]
  ------------------
 1165|       |      // http://dev.exiv2.org/attachments/download/858/_IGP9032.DNG
 1166|       |      // $ exiv2 -pv --grep Lens ~/Downloads/_IGP9032.DNG
 1167|       |      // 0x003f PentaxDng    LensType  Byte        3    3 255   0
 1168|       |      // 0x0207 PentaxDng    LensInfo  Undefined  69  131   0   0 255 0  40 148  68 244 ...
 1169|       |      //                                                0   1   2   3 4   5   6
 1170|     56|      if (lensInfo->toUint32(4) == 0 && lensInfo->toUint32(5) == 40 && lensInfo->toUint32(6) == 148)
  ------------------
  |  Branch (1170:11): [True: 38, False: 18]
  |  Branch (1170:41): [True: 20, False: 18]
  |  Branch (1170:72): [True: 10, False: 10]
  ------------------
 1171|     10|        index = 8;
 1172|       |
 1173|    102|    } else if (value.count() == 4) {
  ------------------
  |  Branch (1173:16): [True: 66, False: 36]
  ------------------
 1174|       |      // http://dev.exiv2.org/attachments/download/868/IMGP2221.JPG
 1175|       |      // 0x0207 PentaxDng    LensInfo  Undefined 128    0 131 128   0 0 255   1 184   0 0 0 0 0
 1176|       |      //                                                0   1   2   3 4   5   6
 1177|     66|      if (lensInfo->count() == 128 && lensInfo->toUint32(1) == 131 && lensInfo->toUint32(2) == 128)
  ------------------
  |  Branch (1177:11): [True: 25, False: 41]
  |  Branch (1177:39): [True: 16, False: 9]
  |  Branch (1177:71): [True: 6, False: 10]
  ------------------
 1178|      6|        index = 8;
 1179|       |      // #1155
 1180|     66|      if (lensInfo->toUint32(6) == 5)
  ------------------
  |  Branch (1180:11): [True: 11, False: 55]
  ------------------
 1181|     11|        index = 7;
 1182|     66|    }
 1183|       |
 1184|    238|    if (index > 0) {
  ------------------
  |  Branch (1184:9): [True: 47, False: 191]
  ------------------
 1185|     47|      const unsigned long lensID = 0x3ff;
 1186|     47|      auto td = Exiv2::find(pentaxLensType, lensID);
 1187|     47|      return os << _(td[index].label_);
  ------------------
  |  |   40|     47|#define _(String) (String)
  ------------------
 1188|     47|    }
 1189|    238|  } catch (...) {
 1190|     37|  }
 1191|    191|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    191|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1192|    279|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL16resolveLens0x8ffERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1198|    172|{
 1199|    172|  try {
 1200|    172|    unsigned long index = 0;
 1201|       |
 1202|    172|    const auto lensInfo = findLensInfo(metadata);
 1203|    172|    if (value.count() == 4) {
  ------------------
  |  Branch (1203:9): [True: 115, False: 57]
  ------------------
 1204|    115|      std::string model = getKeyString("Exif.Image.Model", metadata);
 1205|    115|      if (model.starts_with("PENTAX K-3") && lensInfo->count() == 128 && lensInfo->toUint32(1) == 168 &&
  ------------------
  |  Branch (1205:11): [True: 35, False: 80]
  |  Branch (1205:46): [True: 17, False: 18]
  |  Branch (1205:74): [True: 11, False: 6]
  ------------------
 1206|     11|          lensInfo->toUint32(2) == 144)
  ------------------
  |  Branch (1206:11): [True: 6, False: 5]
  ------------------
 1207|      6|        index = 7;
 1208|    115|    }
 1209|       |
 1210|    172|    if (index > 0) {
  ------------------
  |  Branch (1210:9): [True: 6, False: 166]
  ------------------
 1211|      6|      const unsigned long lensID = 0x8ff;
 1212|      6|      auto td = Exiv2::find(pentaxLensType, lensID);
 1213|      6|      return os << _(td[index].label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1214|      6|    }
 1215|    172|  } catch (...) {
 1216|     35|  }
 1217|    166|  return EXV_PRINT_COMBITAG_MULTI(pentaxLensType, 2, 1, 2)(os, value, metadata);
  ------------------
  |  |   63|    166|  printCombiTag<std::size(array), array, count, ignoredcount, ignoredcountmax>
  ------------------
 1218|    172|}
pentaxmn_int.cpp:_ZZN5Exiv28InternalL13printLensTypeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK9LensIdFcteqEj:
 1265|  21.2k|    bool operator==(uint32_t id) const {
 1266|  21.2k|      return id_ == id;
 1267|  21.2k|    }
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm298ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLensTypeEELi2ELi1ELi2EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.18k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.18k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.18k|  std::ios::fmtflags f(os.flags());
   35|  1.18k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 959, False: 222]
  ------------------
   36|    959|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 0, False: 959]
  |  Branch (36:51): [True: 86, False: 873]
  ------------------
   37|     86|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|     86|    return printValue(os, value, metadata);
   39|     86|  }
   40|  1.09k|  uint32_t l = 0;
   41|  2.22k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 1.72k, False: 508]
  ------------------
   42|  1.72k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 116, False: 1.60k]
  |  Branch (42:33): [True: 471, False: 1.13k]
  ------------------
   43|    587|      return printValue(os, value, metadata);
   44|    587|    }
   45|  1.13k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.13k|  }
   47|       |
   48|    508|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 424, False: 84]
  ------------------
   49|    424|    os << _(td->label_);
  ------------------
  |  |   40|    424|#define _(String) (String)
  ------------------
   50|    424|  } else {
   51|     84|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
   52|     84|  }
   53|       |
   54|    508|  os.flags(f);
   55|    508|  return os;
   56|  1.09k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21pentaxImageProcessingEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.86k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.86k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.86k|  std::ios::fmtflags f(os.flags());
   35|  1.86k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 228, False: 1.63k]
  ------------------
   36|    228|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 98, False: 130]
  |  Branch (36:51): [True: 130, False: 0]
  ------------------
   37|    228|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    228|    return printValue(os, value, metadata);
   39|    228|  }
   40|  1.63k|  uint32_t l = 0;
   41|  6.35k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 5.46k, False: 890]
  ------------------
   42|  5.46k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 342, False: 5.12k]
  |  Branch (42:33): [True: 402, False: 4.72k]
  ------------------
   43|    744|      return printValue(os, value, metadata);
   44|    744|    }
   45|  4.72k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  4.72k|  }
   47|       |
   48|    890|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 612, False: 278]
  ------------------
   49|    612|    os << _(td->label_);
  ------------------
  |  |   40|    612|#define _(String) (String)
  ------------------
   50|    612|  } else {
   51|    278|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    278|#define _(String) (String)
  ------------------
   52|    278|  }
   53|       |
   54|    890|  os.flags(f);
   55|    890|  return os;
   56|  1.63k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17pentaxPictureModeEELi3ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  4.82k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  4.82k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  4.82k|  std::ios::fmtflags f(os.flags());
   35|  4.82k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 200, False: 4.62k]
  ------------------
   36|    200|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 84, False: 116]
  |  Branch (36:51): [True: 116, False: 0]
  ------------------
   37|    200|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    200|    return printValue(os, value, metadata);
   39|    200|  }
   40|  4.62k|  uint32_t l = 0;
   41|  16.9k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 13.0k, False: 3.90k]
  ------------------
   42|  13.0k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 348, False: 12.7k]
  |  Branch (42:33): [True: 368, False: 12.3k]
  ------------------
   43|    716|      return printValue(os, value, metadata);
   44|    716|    }
   45|  12.3k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  12.3k|  }
   47|       |
   48|  3.90k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 3.58k, False: 322]
  ------------------
   49|  3.58k|    os << _(td->label_);
  ------------------
  |  |   40|  3.58k|#define _(String) (String)
  ------------------
   50|  3.58k|  } else {
   51|    322|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    322|#define _(String) (String)
  ------------------
   52|    322|  }
   53|       |
   54|  3.90k|  os.flags(f);
   55|  3.90k|  return os;
   56|  4.62k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxDriveModeEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  3.94k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  3.94k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  3.94k|  std::ios::fmtflags f(os.flags());
   35|  3.94k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 184, False: 3.75k]
  ------------------
   36|    184|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 100, False: 84]
  |  Branch (36:51): [True: 84, False: 0]
  ------------------
   37|    184|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    184|    return printValue(os, value, metadata);
   39|    184|  }
   40|  3.75k|  uint32_t l = 0;
   41|  14.7k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 12.4k, False: 2.20k]
  ------------------
   42|  12.4k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 700, False: 11.7k]
  |  Branch (42:33): [True: 848, False: 10.9k]
  ------------------
   43|  1.54k|      return printValue(os, value, metadata);
   44|  1.54k|    }
   45|  10.9k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  10.9k|  }
   47|       |
   48|  2.20k|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 1.64k, False: 568]
  ------------------
   49|  1.64k|    os << _(td->label_);
  ------------------
  |  |   40|  1.64k|#define _(String) (String)
  ------------------
   50|  1.64k|  } else {
   51|    568|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    568|#define _(String) (String)
  ------------------
   52|    568|  }
   53|       |
   54|  2.20k|  os.flags(f);
   55|  2.20k|  return os;
   56|  3.75k|}
pentaxmn_int.cpp:_ZN5Exiv28InternalL13printCombiTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxDynamicRangeExpansionEELi4ELi0ELi0EEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
   32|  1.09k|static std::ostream& printCombiTag(std::ostream& os, const Value& value, const ExifData* metadata) {
   33|  1.09k|  static_assert(N > 0, "Passed zero length printCombiTag");
   34|  1.09k|  std::ios::fmtflags f(os.flags());
   35|  1.09k|  if ((value.count() != count &&
  ------------------
  |  Branch (35:8): [True: 160, False: 938]
  ------------------
   36|    160|       (value.count() < (count + ignoredcount) || value.count() > (count + ignoredcountmax))) ||
  ------------------
  |  Branch (36:9): [True: 46, False: 114]
  |  Branch (36:51): [True: 114, False: 0]
  ------------------
   37|    160|      count > 4) {
  ------------------
  |  Branch (37:7): [Folded, False: 0]
  ------------------
   38|    160|    return printValue(os, value, metadata);
   39|    160|  }
   40|    938|  uint32_t l = 0;
   41|  2.75k|  for (int c = 0; c < count; ++c) {
  ------------------
  |  Branch (41:19): [True: 2.52k, False: 230]
  ------------------
   42|  2.52k|    if (value.toInt64(c) < 0 || value.toInt64(c) > 255) {
  ------------------
  |  Branch (42:9): [True: 262, False: 2.26k]
  |  Branch (42:33): [True: 446, False: 1.82k]
  ------------------
   43|    708|      return printValue(os, value, metadata);
   44|    708|    }
   45|  1.82k|    l += (value.toUint32(c) << ((count - c - 1) * 8));
   46|  1.82k|  }
   47|       |
   48|    230|  if (auto td = Exiv2::find(array, l)) {
  ------------------
  |  Branch (48:12): [True: 80, False: 150]
  ------------------
   49|     80|    os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
   50|    150|  } else {
   51|    150|    os << _("Unknown") << " (0x" << std::setw(2 * count) << std::setfill('0') << std::hex << l << std::dec << ")";
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
   52|    150|  }
   53|       |
   54|    230|  os.flags(f);
   55|    230|  return os;
   56|    938|}

_ZN5Exiv28Internal15PentaxMakerNote7tagListEv:
   23|   195k|  static constexpr auto tagList() {
   24|   195k|    return tagInfo_;
   25|   195k|  }

_ZN5Exiv28PgfImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   53|    140|    Image(ImageType::pgf, mdExif | mdIptc | mdXmp | mdComment, std::move(io)), bSwap_(isBigEndianPlatform()) {
   54|    140|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (54:7): [True: 0, False: 140]
  |  Branch (54:17): [True: 0, False: 0]
  ------------------
   55|       |#ifdef EXIV2_DEBUG_MESSAGES
   56|       |    std::cerr << "Exiv2::PgfImage:: Creating PGF image to memory\n";
   57|       |#endif
   58|      0|    IoCloser closer(*io_);
   59|      0|    if (io_->write(pgfBlank, sizeof(pgfBlank)) != sizeof(pgfBlank)) {
  ------------------
  |  Branch (59:9): [True: 0, False: 0]
  ------------------
   60|       |#ifdef EXIV2_DEBUG_MESSAGES
   61|       |      std::cerr << "Exiv2::PgfImage:: Failed to create PGF image on memory\n";
   62|       |#endif
   63|      0|    }
   64|      0|  }
   65|    140|}  // PgfImage::PgfImage
_ZN5Exiv28PgfImage12readMetadataEv:
   67|    140|void PgfImage::readMetadata() {
   68|       |#ifdef EXIV2_DEBUG_MESSAGES
   69|       |  std::cerr << "Exiv2::PgfImage::readMetadata: Reading PGF file " << io_->path() << "\n";
   70|       |#endif
   71|    140|  if (io_->open() != 0) {
  ------------------
  |  Branch (71:7): [True: 0, False: 140]
  ------------------
   72|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   73|      0|  }
   74|    140|  IoCloser closer(*io_);
   75|       |  // Ensure that this is the correct image type
   76|    140|  if (!isPgfType(*io_, true)) {
  ------------------
  |  Branch (76:7): [True: 0, False: 140]
  ------------------
   77|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (77:9): [True: 0, False: 0]
  |  Branch (77:25): [True: 0, False: 0]
  ------------------
   78|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   79|      0|    throw Error(ErrorCode::kerNotAnImage, "PGF");
   80|      0|  }
   81|    140|  clearMetadata();
   82|       |
   83|    140|  readPgfMagicNumber(*io_);
   84|       |
   85|    140|  size_t headerSize = readPgfHeaderSize(*io_);
   86|    140|  readPgfHeaderStructure(*io_, pixelWidth_, pixelHeight_);
   87|       |
   88|       |  // And now, the most interesting, the user data byte array where metadata are stored as small image.
   89|       |
   90|    140|  Internal::enforce(headerSize <= std::numeric_limits<size_t>::max() - 8, ErrorCode::kerCorruptedMetadata);
   91|    140|  size_t size = headerSize + 8 - io_->tell();
   92|       |
   93|       |#ifdef EXIV2_DEBUG_MESSAGES
   94|       |  std::cout << "Exiv2::PgfImage::readMetadata: Found Image data (" << size << " bytes)\n";
   95|       |#endif
   96|       |
   97|    140|  if (size > io_->size())
  ------------------
  |  Branch (97:7): [True: 50, False: 90]
  ------------------
   98|     50|    throw Error(ErrorCode::kerInputDataReadFailed);
   99|     90|  if (size == 0)
  ------------------
  |  Branch (99:7): [True: 11, False: 79]
  ------------------
  100|     11|    return;
  101|       |
  102|     79|  DataBuf imgData(size);
  103|     79|  const size_t bufRead = io_->read(imgData.data(), imgData.size());
  104|     79|  if (io_->error())
  ------------------
  |  Branch (104:7): [True: 0, False: 79]
  ------------------
  105|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  106|     79|  if (bufRead != imgData.size())
  ------------------
  |  Branch (106:7): [True: 8, False: 71]
  ------------------
  107|      8|    throw Error(ErrorCode::kerInputDataReadFailed);
  108|       |
  109|     71|  auto image = Exiv2::ImageFactory::open(imgData.c_data(), imgData.size());
  110|     71|  image->readMetadata();
  111|     71|  exifData() = image->exifData();
  112|     71|  iptcData() = image->iptcData();
  113|     71|  xmpData() = image->xmpData();
  114|     71|}
_ZN5Exiv28PgfImage18readPgfMagicNumberERNS_7BasicIoE:
  218|    140|byte PgfImage::readPgfMagicNumber(BasicIo& iIo) {
  219|    140|  auto b = static_cast<byte>(iIo.getb());
  220|    140|  if (iIo.error())
  ------------------
  |  Branch (220:7): [True: 0, False: 140]
  ------------------
  221|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  222|       |
  223|    140|  if (b < 0x36)  // 0x36 = '6'.
  ------------------
  |  Branch (223:7): [True: 35, False: 105]
  ------------------
  224|     35|  {
  225|       |    // Not right Magick version.
  226|       |#ifdef EXIV2_DEBUG_MESSAGES
  227|       |    std::cout << "Exiv2::PgfImage::readMetadata: wrong Magick number\n";
  228|       |#endif
  229|     35|  }
  230|       |
  231|    140|  return b;
  232|    140|}  // PgfImage::readPgfMagicNumber
_ZNK5Exiv28PgfImage17readPgfHeaderSizeERNS_7BasicIoE:
  234|    140|size_t PgfImage::readPgfHeaderSize(BasicIo& iIo) const {
  235|    140|  DataBuf buffer(4);
  236|    140|  const size_t bufRead = iIo.read(buffer.data(), buffer.size());
  237|    140|  if (iIo.error())
  ------------------
  |  Branch (237:7): [True: 0, False: 140]
  ------------------
  238|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  239|    140|  if (bufRead != buffer.size())
  ------------------
  |  Branch (239:7): [True: 0, False: 140]
  ------------------
  240|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  241|       |
  242|    140|  auto headerSize = static_cast<size_t>(byteSwap_(buffer, 0, bSwap_));
  243|    140|  if (headerSize == 0)
  ------------------
  |  Branch (243:7): [True: 3, False: 137]
  ------------------
  244|      3|    throw Error(ErrorCode::kerNoImageInInputData);
  245|       |
  246|       |#ifdef EXIV2_DEBUG_MESSAGES
  247|       |  std::cout << "Exiv2::PgfImage: PGF header size : " << headerSize << " bytes\n";
  248|       |#endif
  249|       |
  250|    137|  return headerSize;
  251|    140|}
_ZNK5Exiv28PgfImage22readPgfHeaderStructureERNS_7BasicIoERjS3_:
  253|    137|DataBuf PgfImage::readPgfHeaderStructure(BasicIo& iIo, uint32_t& width, uint32_t& height) const {
  254|    137|  DataBuf header(16);
  255|    137|  size_t bufRead = iIo.read(header.data(), header.size());
  256|    137|  if (iIo.error())
  ------------------
  |  Branch (256:7): [True: 0, False: 137]
  ------------------
  257|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  258|    137|  if (bufRead != header.size())
  ------------------
  |  Branch (258:7): [True: 0, False: 137]
  ------------------
  259|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  260|       |
  261|    137|  DataBuf work(header.data(), 8);  // don't disturb the binary data - doWriteMetadata reuses it
  262|    137|  width = byteSwap_(work, 0, bSwap_);
  263|    137|  height = byteSwap_(work, 4, bSwap_);
  264|       |
  265|       |  /* NOTE: properties not yet used
  266|       |  byte nLevels  = buffer.pData_[8];
  267|       |  byte quality  = buffer.pData_[9];
  268|       |  byte bpp      = buffer.pData_[10];
  269|       |  byte channels = buffer.pData_[11];
  270|       |  */
  271|       |
  272|    137|  if (header.read_uint8(12) == 2)  // Indexed color image. We pass color table (256 * 3 bytes).
  ------------------
  |  Branch (272:7): [True: 9, False: 128]
  ------------------
  273|      9|  {
  274|      9|    header.alloc(16 + (256 * 3));
  275|       |
  276|      9|    bufRead = iIo.read(header.data(16), 256 * 3);
  277|      9|    if (iIo.error())
  ------------------
  |  Branch (277:9): [True: 0, False: 9]
  ------------------
  278|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  279|      9|    if (bufRead != 256 * 3)
  ------------------
  |  Branch (279:9): [True: 8, False: 1]
  ------------------
  280|      8|      throw Error(ErrorCode::kerInputDataReadFailed);
  281|      9|  }
  282|       |
  283|    129|  return header;
  284|    137|}  // PgfImage::readPgfHeaderStructure
_ZN5Exiv214newPgfInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  288|    140|Image::UniquePtr newPgfInstance(BasicIo::UniquePtr io, bool create) {
  289|    140|  auto image = std::make_unique<PgfImage>(std::move(io), create);
  290|    140|  if (!image->good()) {
  ------------------
  |  Branch (290:7): [True: 0, False: 140]
  ------------------
  291|      0|    return nullptr;
  292|      0|  }
  293|    140|  return image;
  294|    140|}
_ZN5Exiv29isPgfTypeERNS_7BasicIoEb:
  296|  12.7k|bool isPgfType(BasicIo& iIo, bool advance) {
  297|  12.7k|  const int32_t len = 3;
  298|  12.7k|  std::array<byte, len> buf;
  299|  12.7k|  iIo.read(buf.data(), len);
  300|  12.7k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (300:7): [True: 0, False: 12.7k]
  |  Branch (300:22): [True: 0, False: 12.7k]
  ------------------
  301|      0|    return false;
  302|      0|  }
  303|  12.7k|  bool rc = buf == pgfSignature;
  304|  12.7k|  if (!advance || !rc) {
  ------------------
  |  Branch (304:7): [True: 12.6k, False: 140]
  |  Branch (304:19): [True: 0, False: 140]
  ------------------
  305|  12.6k|    iIo.seek(-len, BasicIo::cur);
  306|  12.6k|  }
  307|       |
  308|  12.7k|  return rc;
  309|  12.7k|}
pgfimage.cpp:_ZN5Exiv2L9byteSwap_ERNS_7DataBufEmb:
   39|    414|static uint32_t byteSwap_(Exiv2::DataBuf& buf, size_t offset, bool bSwap) {
   40|    414|  uint32_t v = 0;
   41|    414|  auto p = reinterpret_cast<byte*>(&v);
   42|    414|  int i;
   43|  2.07k|  for (i = 0; i < 4; i++)
  ------------------
  |  Branch (43:15): [True: 1.65k, False: 414]
  ------------------
   44|  1.65k|    p[i] = buf.read_uint8(offset + i);
   45|    414|  uint32_t result = Image::byteSwap(v, bSwap);
   46|    414|  p = reinterpret_cast<byte*>(&result);
   47|  2.07k|  for (i = 0; i < 4; i++)
  ------------------
  |  Branch (47:15): [True: 1.65k, False: 414]
  ------------------
   48|  1.65k|    buf.write_uint8(offset + i, p[i]);
   49|    414|  return result;
   50|    414|}

_ZN5Exiv29Photoshop5isIrbEPKh:
   17|  35.5M|bool Photoshop::isIrb(const byte* pPsData) {
   18|  35.5M|  if (pPsData == nullptr) {
  ------------------
  |  Branch (18:7): [True: 0, False: 35.5M]
  ------------------
   19|      0|    return false;
   20|      0|  }
   21|  35.5M|  return std::any_of(irbId_.begin(), irbId_.end(), [pPsData](auto id) { return memcmp(pPsData, id, 4) == 0; });
   22|  35.5M|}
_ZN5Exiv29Photoshop5validEPKhm:
   24|  45.8k|bool Photoshop::valid(const byte* pPsData, size_t sizePsData) {
   25|  45.8k|  const byte* record = nullptr;
   26|  45.8k|  uint32_t sizeIptc = 0;
   27|  45.8k|  uint32_t sizeHdr = 0;
   28|  45.8k|  const byte* pCur = pPsData;
   29|  45.8k|  const byte* pEnd = pPsData + sizePsData;
   30|  45.8k|  int ret = 0;
   31|  34.4M|  while (pCur < pEnd && 0 == (ret = Photoshop::locateIptcIrb(pCur, (pEnd - pCur), &record, sizeHdr, sizeIptc))) {
  ------------------
  |  Branch (31:10): [True: 34.4M, False: 11]
  |  Branch (31:25): [True: 34.4M, False: 45.8k]
  ------------------
   32|  34.4M|    pCur = record + sizeHdr + sizeIptc + (sizeIptc & 1);
   33|  34.4M|  }
   34|  45.8k|  return ret >= 0;
   35|  45.8k|}
_ZN5Exiv29Photoshop9locateIrbEPKhmtPS2_RjS4_:
   41|  34.5M|                         uint32_t& sizeData) {
   42|  34.5M|  if (sizePsData < 12) {
  ------------------
  |  Branch (42:7): [True: 531, False: 34.5M]
  ------------------
   43|    531|    return 3;
   44|    531|  }
   45|       |
   46|       |  // Used for error checking
   47|  34.5M|  size_t position = 0;
   48|       |#ifdef EXIV2_DEBUG_MESSAGES
   49|       |  std::cerr << "Photoshop::locateIrb: ";
   50|       |#endif
   51|       |  // Data should follow Photoshop format, if not exit
   52|  35.5M|  while (position <= (sizePsData - 12) && isIrb(pPsData + position)) {
  ------------------
  |  Branch (52:10): [True: 35.5M, False: 249]
  |  Branch (52:43): [True: 35.5M, False: 2.66k]
  ------------------
   53|  35.5M|    const byte* hrd = pPsData + position;
   54|  35.5M|    position += 4;
   55|  35.5M|    uint16_t type = getUShort(pPsData + position, bigEndian);
   56|  35.5M|    position += 2;
   57|       |#ifdef EXIV2_DEBUG_MESSAGES
   58|       |    std::cerr << "0x" << std::hex << type << std::dec << " ";
   59|       |#endif
   60|       |    // Pascal string is padded to have an even size (including size byte)
   61|  35.5M|    byte psSize = pPsData[position] + 1;
   62|  35.5M|    psSize += (psSize & 1);
   63|  35.5M|    position += psSize;
   64|  35.5M|    if (position + 4 > sizePsData) {
  ------------------
  |  Branch (64:9): [True: 316, False: 35.5M]
  ------------------
   65|       |#ifdef EXIV2_DEBUG_MESSAGES
   66|       |      std::cerr << "Warning: "
   67|       |                << "Invalid or extended Photoshop IRB\n";
   68|       |#endif
   69|    316|      return -2;
   70|    316|    }
   71|  35.5M|    uint32_t dataSize = getULong(pPsData + position, bigEndian);
   72|  35.5M|    position += 4;
   73|  35.5M|    if (dataSize > (sizePsData - position)) {
  ------------------
  |  Branch (73:9): [True: 43.1k, False: 35.4M]
  ------------------
   74|       |#ifdef EXIV2_DEBUG_MESSAGES
   75|       |      std::cerr << "Warning: "
   76|       |                << "Invalid Photoshop IRB data size " << dataSize << " or extended Photoshop IRB\n";
   77|       |#endif
   78|  43.1k|      return -2;
   79|  43.1k|    }
   80|       |#ifdef EXIV2_DEBUG_MESSAGES
   81|       |    if ((dataSize & 1) && position + dataSize == sizePsData) {
   82|       |      std::cerr << "Warning: "
   83|       |                << "Photoshop IRB data is not padded to even size\n";
   84|       |    }
   85|       |#endif
   86|  35.4M|    if (type == psTag) {
  ------------------
  |  Branch (86:9): [True: 34.4M, False: 1.00M]
  ------------------
   87|       |#ifdef EXIV2_DEBUG_MESSAGES
   88|       |      std::cerr << "ok\n";
   89|       |#endif
   90|  34.4M|      sizeData = dataSize;
   91|  34.4M|      sizeHdr = psSize + 10;
   92|  34.4M|      *record = hrd;
   93|  34.4M|      return 0;
   94|  34.4M|    }
   95|       |    // Data size is also padded to be even
   96|  1.00M|    position += dataSize + (dataSize & 1);
   97|  1.00M|  }
   98|       |#ifdef EXIV2_DEBUG_MESSAGES
   99|       |  std::cerr << "pPsData doesn't start with '8BIM'\n";
  100|       |#endif
  101|  2.91k|  if (position < sizePsData) {
  ------------------
  |  Branch (101:7): [True: 2.72k, False: 184]
  ------------------
  102|       |#ifdef EXIV2_DEBUG_MESSAGES
  103|       |    std::cerr << "Warning: "
  104|       |              << "Invalid or extended Photoshop IRB\n";
  105|       |#endif
  106|  2.72k|    return -2;
  107|  2.72k|  }
  108|    184|  return 3;
  109|  2.91k|}
_ZN5Exiv29Photoshop13locateIptcIrbEPKhmPS2_RjS4_:
  112|  34.5M|                             uint32_t& sizeData) {
  113|  34.5M|  return locateIrb(pPsData, sizePsData, iptc_, record, sizeHdr, sizeData);
  114|  34.5M|}
_ZN5Exiv29Photoshop10setIptcIrbEPKhmRKNS_8IptcDataE:
  121|    348|DataBuf Photoshop::setIptcIrb(const byte* pPsData, size_t sizePsData, const IptcData& iptcData) {
  122|       |#ifdef EXIV2_DEBUG_MESSAGES
  123|       |  std::cerr << "IRB block at the beginning of Photoshop::setIptcIrb\n";
  124|       |  if (sizePsData == 0)
  125|       |    std::cerr << "  None.\n";
  126|       |  else
  127|       |    hexdump(std::cerr, pPsData, sizePsData);
  128|       |#endif
  129|    348|  const byte* record = pPsData;
  130|    348|  uint32_t sizeIptc = 0;
  131|    348|  uint32_t sizeHdr = 0;
  132|    348|  DataBuf rc;
  133|    348|  if (0 > Photoshop::locateIptcIrb(pPsData, sizePsData, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (133:7): [True: 83, False: 265]
  ------------------
  134|     83|    return rc;
  135|     83|  }
  136|       |
  137|    265|  Blob psBlob;
  138|    265|  const auto sizeFront = static_cast<size_t>(record - pPsData);
  139|       |  // Write data before old record.
  140|    265|  if (sizePsData > 0 && sizeFront > 0) {
  ------------------
  |  Branch (140:7): [True: 147, False: 118]
  |  Branch (140:25): [True: 50, False: 97]
  ------------------
  141|     50|    append(psBlob, pPsData, sizeFront);
  142|     50|  }
  143|       |
  144|       |  // Write new iptc record if we have it
  145|    265|  if (DataBuf rawIptc = IptcParser::encode(iptcData); !rawIptc.empty()) {
  ------------------
  |  Branch (145:55): [True: 42, False: 223]
  ------------------
  146|     42|    std::array<byte, 12> tmpBuf;
  147|     42|    std::copy_n(Photoshop::irbId_.front(), 4, tmpBuf.begin());
  148|     42|    us2Data(tmpBuf.data() + 4, iptc_, bigEndian);
  149|     42|    tmpBuf[6] = 0;
  150|     42|    tmpBuf[7] = 0;
  151|     42|    ul2Data(tmpBuf.data() + 8, static_cast<uint32_t>(rawIptc.size()), bigEndian);
  152|     42|    append(psBlob, tmpBuf.data(), 12);
  153|     42|    append(psBlob, rawIptc.c_data(), rawIptc.size());
  154|       |    // Data is padded to be even (but not included in size)
  155|     42|    if (rawIptc.size() & 1)
  ------------------
  |  Branch (155:9): [True: 27, False: 15]
  ------------------
  156|     27|      psBlob.push_back(0x00);
  157|     42|  }
  158|       |
  159|       |  // Write existing stuff after record, skip the current and all remaining IPTC blocks
  160|    265|  size_t pos = sizeFront;
  161|    265|  auto nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
  162|    265|  Internal::enforce(nextSizeData >= 0, ErrorCode::kerCorruptedMetadata);
  163|  19.6k|  while (0 == Photoshop::locateIptcIrb(pPsData + pos, nextSizeData, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (163:10): [True: 19.4k, False: 265]
  ------------------
  164|  19.4k|    const auto newPos = static_cast<size_t>(record - pPsData);
  165|  19.4k|    if (newPos > pos) {  // Copy data up to the IPTC IRB
  ------------------
  |  Branch (165:9): [True: 603, False: 18.8k]
  ------------------
  166|    603|      append(psBlob, pPsData + pos, newPos - pos);
  167|    603|    }
  168|  19.4k|    pos = newPos + sizeHdr + sizeIptc + (sizeIptc & 1);  // Skip the IPTC IRB
  169|  19.4k|    nextSizeData = Safe::add<long>(static_cast<long>(sizePsData), -static_cast<long>(pos));
  170|  19.4k|    Internal::enforce(nextSizeData >= 0, ErrorCode::kerCorruptedMetadata);
  171|  19.4k|  }
  172|    265|  if (pos < sizePsData) {
  ------------------
  |  Branch (172:7): [True: 144, False: 121]
  ------------------
  173|    144|    append(psBlob, pPsData + pos, sizePsData - pos);
  174|    144|  }
  175|       |
  176|       |  // Data is rounded to be even
  177|    265|  if (!psBlob.empty())
  ------------------
  |  Branch (177:7): [True: 145, False: 120]
  ------------------
  178|    145|    rc = DataBuf(psBlob.data(), psBlob.size());
  179|       |#ifdef EXIV2_DEBUG_MESSAGES
  180|       |  std::cerr << "IRB block at the end of Photoshop::setIptcIrb\n";
  181|       |  if (rc.empty())
  182|       |    std::cerr << "  None.\n";
  183|       |  else
  184|       |    hexdump(std::cerr, rc.c_data(), rc.size());
  185|       |#endif
  186|    265|  return rc;
  187|    348|}
photoshop.cpp:_ZZN5Exiv29Photoshop5isIrbEPKhENK3$_0clIPKcEEDaT_:
   21|  35.5M|  return std::any_of(irbId_.begin(), irbId_.end(), [pPsData](auto id) { return memcmp(pPsData, id, 4) == 0; });

_ZN5Exiv28Internal8PngChunk15decodeIHDRChunkERKNS_7DataBufEPjS5_:
   45|     50|void PngChunk::decodeIHDRChunk(const DataBuf& data, uint32_t* outWidth, uint32_t* outHeight) {
   46|       |  // Extract image width and height from IHDR chunk.
   47|     50|  *outWidth = data.read_uint32(0, bigEndian);
   48|     50|  *outHeight = data.read_uint32(4, bigEndian);
   49|     50|}
_ZN5Exiv28Internal8PngChunk14decodeTXTChunkEPNS_5ImageERKNS_7DataBufENS1_12TxtChunkTypeE:
   51|    949|void PngChunk::decodeTXTChunk(Image* pImage, const DataBuf& data, TxtChunkType type) {
   52|    949|  DataBuf key = keyTXTChunk(data);
   53|    949|  DataBuf arr = parseTXTChunk(data, key.size(), type);
   54|       |
   55|       |#ifdef EXIV2_DEBUG_MESSAGES
   56|       |  std::cout << "Exiv2::PngChunk::decodeTXTChunk: TXT chunk data: " << std::string(arr.c_str(), arr.size()) << '\n';
   57|       |#endif
   58|    949|  if (!key.empty())
  ------------------
  |  Branch (58:7): [True: 784, False: 165]
  ------------------
   59|    784|    parseChunkContent(pImage, key.c_data(), key.size(), arr);
   60|    949|}
_ZN5Exiv28Internal8PngChunk14decodeTXTChunkERKNS_7DataBufENS1_12TxtChunkTypeE:
   62|     10|DataBuf PngChunk::decodeTXTChunk(const DataBuf& data, TxtChunkType type) {
   63|     10|  DataBuf key = keyTXTChunk(data);
   64|       |
   65|       |#ifdef EXIV2_DEBUG_MESSAGES
   66|       |  std::cout << "Exiv2::PngChunk::decodeTXTChunk: TXT chunk key: " << std::string(key.c_str(), key.size()) << '\n';
   67|       |#endif
   68|     10|  return parseTXTChunk(data, key.size(), type);
   69|     10|}
_ZN5Exiv28Internal8PngChunk11keyTXTChunkERKNS_7DataBufEb:
   71|  1.19k|DataBuf PngChunk::keyTXTChunk(const DataBuf& data, bool stripHeader) {
   72|       |  // From a tEXt, zTXt, or iTXt chunk, we get the keyword which is null terminated.
   73|  1.19k|  const size_t offset = stripHeader ? 8ul : 0ul;
  ------------------
  |  Branch (73:25): [True: 240, False: 959]
  ------------------
   74|  1.19k|  if (data.size() <= offset)
  ------------------
  |  Branch (74:7): [True: 10, False: 1.18k]
  ------------------
   75|     10|    throw Error(ErrorCode::kerFailedToReadImageData);
   76|       |
   77|  1.18k|  auto it = std::find(data.begin() + offset, data.end(), 0);
   78|  1.18k|  if (it == data.end())
  ------------------
  |  Branch (78:7): [True: 11, False: 1.17k]
  ------------------
   79|     11|    throw Error(ErrorCode::kerFailedToReadImageData);
   80|       |
   81|  1.17k|  return {data.c_data() + offset, std::distance(data.begin(), it) - offset};
   82|  1.18k|}
_ZN5Exiv28Internal8PngChunk13parseTXTChunkERKNS_7DataBufEmNS1_12TxtChunkTypeE:
   84|    938|DataBuf PngChunk::parseTXTChunk(const DataBuf& data, size_t keysize, TxtChunkType type) {
   85|    938|  DataBuf arr;
   86|       |
   87|    938|  if (type == zTXt_Chunk) {
  ------------------
  |  Branch (87:7): [True: 87, False: 851]
  ------------------
   88|     87|    enforce(data.size() >= Safe::add(keysize, nullSeparators), ErrorCode::kerCorruptedMetadata);
   89|       |
   90|       |    // Extract a deflate compressed Latin-1 text chunk
   91|       |
   92|       |    // we get the compression method after the key
   93|     87|    if (*data.c_data(keysize + 1) != 0x00) {
  ------------------
  |  Branch (93:9): [True: 7, False: 80]
  ------------------
   94|       |      // then it isn't zlib compressed and we are sunk
   95|       |#ifdef EXIV2_DEBUG_MESSAGES
   96|       |      std::cerr << "Exiv2::PngChunk::parseTXTChunk: Non-standard zTXt compression method.\n";
   97|       |#endif
   98|      7|      throw Error(ErrorCode::kerFailedToReadImageData);
   99|      7|    }
  100|       |
  101|       |    // compressed string after the compression technique spec
  102|     80|    size_t compressedTextSize = data.size() - keysize - nullSeparators;
  103|     80|    if (compressedTextSize) {
  ------------------
  |  Branch (103:9): [True: 15, False: 65]
  ------------------
  104|     15|      const byte* compressedText = data.c_data(keysize + nullSeparators);
  105|     15|      enforce(compressedTextSize < data.size(), ErrorCode::kerCorruptedMetadata);
  106|       |
  107|     15|      zlibUncompress(compressedText, static_cast<uint32_t>(compressedTextSize), arr);
  108|     15|    }
  109|    851|  } else if (type == tEXt_Chunk) {
  ------------------
  |  Branch (109:14): [True: 511, False: 340]
  ------------------
  110|    511|    enforce(data.size() >= Safe::add(keysize, std::size_t{1}), ErrorCode::kerCorruptedMetadata);
  111|       |    // Extract a non-compressed Latin-1 text chunk
  112|       |
  113|       |    // the text comes after the key, but isn't null terminated
  114|    511|    size_t textsize = data.size() - keysize - 1;
  115|    511|    if (textsize) {
  ------------------
  |  Branch (115:9): [True: 498, False: 13]
  ------------------
  116|    498|      const byte* text = data.c_data(keysize + 1);
  117|       |
  118|    498|      arr = DataBuf(text, textsize);
  119|    498|    }
  120|    511|  } else if (type == iTXt_Chunk) {
  ------------------
  |  Branch (120:14): [True: 340, False: 0]
  ------------------
  121|    340|    enforce(data.size() > Safe::add(keysize, std::size_t{3}), ErrorCode::kerCorruptedMetadata);
  122|    340|    const size_t nullCount = std::count(data.c_data(keysize + 3), data.c_data(data.size() - 1), '\0');
  123|    340|    enforce(nullCount >= nullSeparators, ErrorCode::kerCorruptedMetadata);
  124|       |
  125|       |    // Extract a deflate compressed or uncompressed UTF-8 text chunk
  126|       |
  127|       |    // we get the compression flag after the key
  128|    340|    const byte compressionFlag = data.read_uint8(keysize + 1);
  129|       |    // we get the compression method after the compression flag
  130|    340|    const byte compressionMethod = data.read_uint8(keysize + 2);
  131|       |
  132|    340|    enforce(compressionFlag == 0x00 || compressionFlag == 0x01, ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (132:13): [True: 297, False: 43]
  |  Branch (132:40): [True: 25, False: 18]
  ------------------
  133|    340|    if (compressionFlag == 0x01)
  ------------------
  |  Branch (133:9): [True: 25, False: 315]
  ------------------
  134|     25|      enforce(compressionMethod == 0x00, ErrorCode::kerFailedToReadImageData);
  135|       |
  136|       |    // language description string after the compression technique spec
  137|    340|    const size_t languageTextMaxSize = data.size() - keysize - 3;
  138|    340|    std::string languageText = string_from_unterminated(data.c_str(keysize + 3), languageTextMaxSize);
  139|    340|    const size_t languageTextSize = languageText.size();
  140|       |
  141|    340|    enforce(data.size() >= Safe::add(Safe::add(keysize, std::size_t{4}), languageTextSize),
  142|    340|            ErrorCode::kerCorruptedMetadata);
  143|       |    // translated keyword string after the language description
  144|    340|    std::string translatedKeyText = string_from_unterminated(data.c_str(keysize + 3 + languageTextSize + 1),
  145|    340|                                                             data.size() - (keysize + 3 + languageTextSize + 1));
  146|    340|    const size_t translatedKeyTextSize = translatedKeyText.size();
  147|       |
  148|    340|    enforce(Safe::add(keysize + 3 + languageTextSize + 1, Safe::add(translatedKeyTextSize, size_t{1})) <= data.size(),
  149|    340|            ErrorCode::kerCorruptedMetadata);
  150|       |
  151|    340|    const auto textsize =
  152|    340|        static_cast<long>(data.size() - (keysize + 3 + languageTextSize + 1 + translatedKeyTextSize + 1));
  153|    340|    if (textsize) {
  ------------------
  |  Branch (153:9): [True: 286, False: 54]
  ------------------
  154|    286|      const byte* text = data.c_data(keysize + 3 + languageTextSize + 1 + translatedKeyTextSize + 1);
  155|       |
  156|    286|      if (compressionFlag == 0x00) {
  ------------------
  |  Branch (156:11): [True: 267, False: 19]
  ------------------
  157|       |        // then it's an uncompressed iTXt chunk
  158|       |#ifdef EXIV2_DEBUG_MESSAGES
  159|       |        std::cout << "Exiv2::PngChunk::parseTXTChunk: We found an uncompressed iTXt field\n";
  160|       |#endif
  161|    267|        arr = DataBuf(text, textsize);
  162|    267|      } else {
  163|       |        // then it's a zlib compressed iTXt chunk
  164|       |#ifdef EXIV2_DEBUG_MESSAGES
  165|       |        std::cout << "Exiv2::PngChunk::parseTXTChunk: We found a zlib compressed iTXt field\n";
  166|       |#endif
  167|       |
  168|       |        // the compressed text comes after the translated keyword, but isn't null terminated
  169|     19|        zlibUncompress(text, textsize, arr);
  170|     19|      }
  171|    286|    }
  172|    340|  } else {
  173|       |#ifdef DEBUG
  174|       |    std::cerr << "Exiv2::PngChunk::parseTXTChunk: We found a field, not expected though\n";
  175|       |#endif
  176|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  177|      0|  }
  178|       |
  179|    931|  return arr;
  180|    938|}
_ZN5Exiv28Internal8PngChunk17parseChunkContentEPNS_5ImageEPKhmRKNS_7DataBufE:
  182|    784|void PngChunk::parseChunkContent(Image* pImage, const byte* key, size_t keySize, const DataBuf& arr) {
  183|       |  // We look if an ImageMagick EXIF raw profile exist.
  184|       |
  185|    784|  if (keySize >= 21 &&
  ------------------
  |  Branch (185:7): [True: 418, False: 366]
  ------------------
  186|    418|      (memcmp("Raw profile type exif", key, 21) == 0 || memcmp("Raw profile type APP1", key, 21) == 0) &&
  ------------------
  |  Branch (186:8): [True: 103, False: 315]
  |  Branch (186:57): [True: 6, False: 309]
  ------------------
  187|    109|      pImage->exifData().empty()) {
  ------------------
  |  Branch (187:7): [True: 109, False: 0]
  ------------------
  188|    109|    DataBuf exifData = readRawProfile(arr, false);
  189|    109|    size_t length = exifData.size();
  190|       |
  191|    109|    if (length >= 4) {  // length should have at least the size of TIFF header
  ------------------
  |  Branch (191:9): [True: 15, False: 94]
  ------------------
  192|       |      // Find the position of TIFF header in bytes array.
  193|       |      // Forgives the absence of the expected Exif\0 APP1 prefix.
  194|     15|      const std::array<byte, 4> tiffHeaderLE{0x49, 0x49, 0x2A, 0x00};  // "II*\0"
  195|     15|      const std::array<byte, 4> tiffHeaderBE{0x4D, 0x4D, 0x00, 0x2A};  // "MM\0*"
  196|     15|      size_t pos = std::numeric_limits<size_t>::max();
  197|       |
  198|       |      /// \todo Find substring inside an string
  199|    105|      for (size_t i = 0; i < length - tiffHeaderLE.size(); i++) {
  ------------------
  |  Branch (199:26): [True: 90, False: 15]
  ------------------
  200|     90|        if (0 == exifData.cmpBytes(i, tiffHeaderLE.data(), tiffHeaderLE.size()) ||
  ------------------
  |  Branch (200:13): [True: 0, False: 90]
  ------------------
  201|     90|            0 == exifData.cmpBytes(i, tiffHeaderBE.data(), tiffHeaderBE.size())) {
  ------------------
  |  Branch (201:13): [True: 0, False: 90]
  ------------------
  202|      0|          pos = i;
  203|      0|          break;
  204|      0|        }
  205|     90|      }
  206|       |
  207|       |      // If found it, store only these data at from this place.
  208|       |
  209|     15|      if (pos != std::numeric_limits<size_t>::max()) {
  ------------------
  |  Branch (209:11): [True: 0, False: 15]
  ------------------
  210|       |#ifdef EXIV2_DEBUG_MESSAGES
  211|       |        std::cout << "Exiv2::PngChunk::parseChunkContent: TIFF header found at position " << pos << "\n";
  212|       |#endif
  213|      0|        ByteOrder bo = TiffParser::decode(pImage->exifData(), pImage->iptcData(), pImage->xmpData(),
  214|      0|                                          exifData.c_data(pos), length - pos);
  215|      0|        pImage->setByteOrder(bo);
  216|     15|      } else {
  217|     15|#ifndef SUPPRESS_WARNINGS
  218|     15|        EXV_WARNING << "Failed to decode Exif metadata.\n";
  ------------------
  |  |  138|     15|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 15]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     15|  LogMsg(LogMsg::warn).os()
  ------------------
  219|     15|#endif
  220|     15|        pImage->exifData().clear();
  221|     15|      }
  222|     15|    }
  223|    109|  }
  224|       |
  225|       |  // We look if an ImageMagick IPTC raw profile exist.
  226|       |
  227|    784|  if (keySize >= 21 && memcmp("Raw profile type iptc", key, 21) == 0 && pImage->iptcData().empty()) {
  ------------------
  |  Branch (227:7): [True: 388, False: 396]
  |  Branch (227:24): [True: 41, False: 347]
  |  Branch (227:73): [True: 41, False: 0]
  ------------------
  228|     41|    DataBuf psData = readRawProfile(arr, false);
  229|     41|    if (!psData.empty()) {
  ------------------
  |  Branch (229:9): [True: 5, False: 36]
  ------------------
  230|      5|      Blob iptcBlob;
  231|      5|      const byte* record = nullptr;
  232|      5|      uint32_t sizeIptc = 0;
  233|      5|      uint32_t sizeHdr = 0;
  234|       |
  235|      5|      const byte* pEnd = psData.c_data(psData.size() - 1);
  236|      5|      const byte* pCur = psData.c_data();
  237|      5|      while (pCur < pEnd && 0 == Photoshop::locateIptcIrb(pCur, pEnd - pCur, &record, sizeHdr, sizeIptc)) {
  ------------------
  |  Branch (237:14): [True: 4, False: 1]
  |  Branch (237:29): [True: 0, False: 4]
  ------------------
  238|      0|        if (sizeIptc) {
  ------------------
  |  Branch (238:13): [True: 0, False: 0]
  ------------------
  239|       |#ifdef EXIV2_DEBUG_MESSAGES
  240|       |          std::cerr << "Found IPTC IRB, size = " << sizeIptc << "\n";
  241|       |#endif
  242|      0|          append(iptcBlob, record + sizeHdr, sizeIptc);
  243|      0|        }
  244|      0|        pCur = record + sizeHdr + sizeIptc;
  245|      0|        pCur += (sizeIptc & 1);
  246|      0|      }
  247|      5|      if (!iptcBlob.empty() && IptcParser::decode(pImage->iptcData(), iptcBlob.data(), iptcBlob.size())) {
  ------------------
  |  Branch (247:11): [True: 0, False: 5]
  |  Branch (247:32): [True: 0, False: 0]
  ------------------
  248|      0|#ifndef SUPPRESS_WARNINGS
  249|      0|        EXV_WARNING << "Failed to decode IPTC metadata.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  250|      0|#endif
  251|      0|        pImage->clearIptcData();
  252|      0|      }
  253|       |      // If there is no IRB, try to decode the complete chunk data
  254|      5|      if (iptcBlob.empty() && IptcParser::decode(pImage->iptcData(), psData.c_data(), psData.size())) {
  ------------------
  |  Branch (254:11): [True: 5, False: 0]
  |  Branch (254:31): [True: 0, False: 5]
  ------------------
  255|      0|#ifndef SUPPRESS_WARNINGS
  256|      0|        EXV_WARNING << "Failed to decode IPTC metadata.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  257|      0|#endif
  258|      0|        pImage->clearIptcData();
  259|      0|      }
  260|      5|    }  // if (psData.size() > 0)
  261|     41|  }
  262|       |
  263|       |  // We look if an ImageMagick XMP raw profile exist.
  264|       |
  265|    784|  if (keySize >= 20 && memcmp("Raw profile type xmp", key, 20) == 0 && pImage->xmpData().empty()) {
  ------------------
  |  Branch (265:7): [True: 398, False: 386]
  |  Branch (265:24): [True: 46, False: 352]
  |  Branch (265:72): [True: 44, False: 2]
  ------------------
  266|     44|    DataBuf xmpBuf = readRawProfile(arr, false);
  267|     44|    size_t length = xmpBuf.size();
  268|       |
  269|     44|    if (length > 0) {
  ------------------
  |  Branch (269:9): [True: 5, False: 39]
  ------------------
  270|      5|      std::string& xmpPacket = pImage->xmpPacket();
  271|      5|      xmpPacket.assign(xmpBuf.c_str(), length);
  272|      5|      if (auto idx = xmpPacket.find_first_of('<'); idx != std::string::npos && idx > 0) {
  ------------------
  |  Branch (272:52): [True: 4, False: 1]
  |  Branch (272:80): [True: 3, False: 1]
  ------------------
  273|      3|#ifndef SUPPRESS_WARNINGS
  274|      3|        EXV_WARNING << "Removing " << idx << " characters from the beginning of the XMP packet\n";
  ------------------
  |  |  138|      3|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      3|  LogMsg(LogMsg::warn).os()
  ------------------
  275|      3|#endif
  276|      3|        xmpPacket = xmpPacket.substr(idx);
  277|      3|      }
  278|      5|      if (XmpParser::decode(pImage->xmpData(), xmpPacket)) {
  ------------------
  |  Branch (278:11): [True: 5, False: 0]
  ------------------
  279|      5|#ifndef SUPPRESS_WARNINGS
  280|      5|        EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|      5|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 5]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      5|  LogMsg(LogMsg::warn).os()
  ------------------
  281|      5|#endif
  282|      5|      }
  283|      5|    }
  284|     44|  }
  285|       |
  286|       |  // We look if an Adobe XMP string exist.
  287|       |
  288|    784|  if (keySize >= 17 && memcmp("XML:com.adobe.xmp", key, 17) == 0 && pImage->xmpData().empty() && !arr.empty()) {
  ------------------
  |  Branch (288:7): [True: 490, False: 294]
  |  Branch (288:24): [True: 106, False: 384]
  |  Branch (288:69): [True: 97, False: 9]
  |  Branch (288:98): [True: 96, False: 1]
  ------------------
  289|     96|    std::string& xmpPacket = pImage->xmpPacket();
  290|     96|    xmpPacket.assign(arr.c_str(), arr.size());
  291|     96|    if (auto idx = xmpPacket.find_first_of('<'); idx != std::string::npos && idx > 0) {
  ------------------
  |  Branch (291:50): [True: 55, False: 41]
  |  Branch (291:78): [True: 54, False: 1]
  ------------------
  292|     54|#ifndef SUPPRESS_WARNINGS
  293|     54|      EXV_WARNING << "Removing " << idx << " characters "
  ------------------
  |  |  138|     54|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 54]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     54|  LogMsg(LogMsg::warn).os()
  ------------------
  294|      0|                  << "from the beginning of the XMP packet\n";
  295|     54|#endif
  296|     54|      xmpPacket = xmpPacket.substr(idx);
  297|     54|    }
  298|     96|    if (XmpParser::decode(pImage->xmpData(), xmpPacket)) {
  ------------------
  |  Branch (298:9): [True: 67, False: 29]
  ------------------
  299|     67|#ifndef SUPPRESS_WARNINGS
  300|     67|      EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     67|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 67]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     67|  LogMsg(LogMsg::warn).os()
  ------------------
  301|     67|#endif
  302|     67|    }
  303|     96|  }
  304|       |
  305|       |  // We look if a comments string exist. Note than we use only 'Description' keyword which
  306|       |  // is dedicated to store long comments. 'Comment' keyword is ignored.
  307|       |
  308|    784|  if (keySize >= 11 && memcmp("Description", key, 11) == 0 && pImage->comment().empty()) {
  ------------------
  |  Branch (308:7): [True: 612, False: 172]
  |  Branch (308:7): [True: 56, False: 728]
  |  Branch (308:24): [True: 179, False: 433]
  |  Branch (308:63): [True: 56, False: 123]
  ------------------
  309|     56|    pImage->setComment(std::string(arr.c_str(), arr.size()));
  310|     56|  }
  311|       |
  312|    784|}  // PngChunk::parseChunkContent
_ZN5Exiv28Internal8PngChunk17makeMetadataChunkENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEENS_10MetadataIdE:
  314|    104|std::string PngChunk::makeMetadataChunk(std::string_view metadata, MetadataId type) {
  315|    104|  std::string rawProfile;
  316|       |
  317|    104|  switch (type) {
  ------------------
  |  Branch (317:11): [True: 104, False: 0]
  ------------------
  318|     41|    case mdComment:
  ------------------
  |  Branch (318:5): [True: 41, False: 63]
  ------------------
  319|     41|      return makeUtf8TxtChunk("Description", metadata, true);
  320|      0|    case mdIptc:
  ------------------
  |  Branch (320:5): [True: 0, False: 104]
  ------------------
  321|      0|      rawProfile = writeRawProfile(metadata, "iptc");
  322|      0|      return makeAsciiTxtChunk("Raw profile type iptc", rawProfile, true);
  323|     63|    case mdXmp:
  ------------------
  |  Branch (323:5): [True: 63, False: 41]
  ------------------
  324|     63|      return makeUtf8TxtChunk("XML:com.adobe.xmp", metadata, false);
  325|      0|    case mdExif:
  ------------------
  |  Branch (325:5): [True: 0, False: 104]
  ------------------
  326|      0|    case mdIccProfile:
  ------------------
  |  Branch (326:5): [True: 0, False: 104]
  ------------------
  327|      0|    case mdNone:
  ------------------
  |  Branch (327:5): [True: 0, False: 104]
  ------------------
  328|      0|      return {};
  329|    104|  }
  330|       |
  331|      0|  return {};
  332|       |
  333|    104|}  // PngChunk::makeMetadataChunk
_ZN5Exiv28Internal8PngChunk14zlibUncompressEPKhjRNS_7DataBufE:
  335|     34|void PngChunk::zlibUncompress(const byte* compressedText, unsigned int compressedTextSize, DataBuf& arr) {
  336|     34|  uLongf uncompressedLen = compressedTextSize * 2;  // just a starting point
  337|     34|  int zlibResult = Z_BUF_ERROR;
  338|     34|  int dos = 0;
  339|       |
  340|     46|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (340:10): [True: 44, False: 2]
  ------------------
  341|     44|    arr.alloc(uncompressedLen);
  342|     44|    zlibResult = uncompress(arr.data(), &uncompressedLen, compressedText, compressedTextSize);
  343|     44|    if (zlibResult == Z_OK) {
  ------------------
  |  Branch (343:9): [True: 2, False: 42]
  ------------------
  344|      2|      arr.resize(uncompressedLen);
  345|     42|    } else if (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (345:16): [True: 10, False: 32]
  ------------------
  346|       |      // the uncompressedArray needs to be larger
  347|     10|      uncompressedLen *= 2;
  348|       |      // DoS protection. can't be bigger than 64k
  349|     10|      if (uncompressedLen > 131072) {
  ------------------
  |  Branch (349:11): [True: 0, False: 10]
  ------------------
  350|      0|        if (++dos > 1)
  ------------------
  |  Branch (350:13): [True: 0, False: 0]
  ------------------
  351|      0|          break;
  352|      0|        uncompressedLen = 131072;
  353|      0|      }
  354|     32|    } else {
  355|       |      // something bad happened
  356|     32|      throw Error(ErrorCode::kerFailedToReadImageData);
  357|     32|    }
  358|     44|  }
  359|       |
  360|      2|  if (zlibResult != Z_OK) {
  ------------------
  |  Branch (360:7): [True: 0, False: 2]
  ------------------
  361|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  362|      0|  }
  363|      2|}  // PngChunk::zlibUncompress
_ZN5Exiv28Internal8PngChunk12zlibCompressENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
  365|     41|std::string PngChunk::zlibCompress(std::string_view text) {
  366|     41|  auto compressedLen = static_cast<uLongf>(text.size() * 2);  // just a starting point
  367|     41|  int zlibResult = Z_BUF_ERROR;
  368|       |
  369|     41|  DataBuf arr;
  370|    113|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (370:10): [True: 72, False: 41]
  ------------------
  371|     72|    arr.resize(compressedLen);
  372|     72|    zlibResult = compress2(arr.data(), &compressedLen, reinterpret_cast<const Bytef*>(text.data()),
  373|     72|                           static_cast<uLong>(text.size()), Z_BEST_COMPRESSION);
  374|       |
  375|     72|    switch (zlibResult) {
  376|     41|      case Z_OK:
  ------------------
  |  Branch (376:7): [True: 41, False: 31]
  ------------------
  377|     41|        arr.resize(compressedLen);
  378|     41|        break;
  379|     31|      case Z_BUF_ERROR:
  ------------------
  |  Branch (379:7): [True: 31, False: 41]
  ------------------
  380|       |        // The compressed array needs to be larger
  381|       |#ifdef EXIV2_DEBUG_MESSAGES
  382|       |        std::cout << "Exiv2::PngChunk::parsePngChunk: doubling size for compression.\n";
  383|       |#endif
  384|     31|        compressedLen *= 2;
  385|       |        // DoS protection. Cap max compressed size
  386|     31|        if (compressedLen > 131072)
  ------------------
  |  Branch (386:13): [True: 0, False: 31]
  ------------------
  387|      0|          throw Error(ErrorCode::kerFailedToReadImageData);
  388|     31|        break;
  389|     31|      default:
  ------------------
  |  Branch (389:7): [True: 0, False: 72]
  ------------------
  390|       |        // Something bad happened
  391|      0|        throw Error(ErrorCode::kerFailedToReadImageData);
  392|     72|    }
  393|     72|  }
  394|       |
  395|     41|  return {arr.c_str(), arr.size()};
  396|       |
  397|     41|}  // PngChunk::zlibCompress
_ZN5Exiv28Internal8PngChunk16makeUtf8TxtChunkENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEES6_b:
  435|    104|std::string PngChunk::makeUtf8TxtChunk(std::string_view keyword, std::string_view text, bool compress) {
  436|       |  // Chunk structure: length (4 bytes) + chunk type + chunk data + CRC (4 bytes)
  437|       |  // Length is the size of the chunk data
  438|       |  // CRC is calculated on chunk type + chunk data
  439|       |
  440|       |  // Chunk data format : keyword + 0x00 + compression flag (0x00: uncompressed - 0x01: compressed)
  441|       |  //                     + compression method (0x00: zlib format) + language tag (null) + 0x00
  442|       |  //                     + translated keyword (null) + 0x00 + text (compressed or not)
  443|       |
  444|       |  // Build chunk data, determine chunk type
  445|    104|  auto chunkData = std::string(keyword);
  446|    104|  if (compress) {
  ------------------
  |  Branch (446:7): [True: 41, False: 63]
  ------------------
  447|     41|    static const char flags[] = {0x00, 0x01, 0x00, 0x00, 0x00};
  448|     41|    chunkData += std::string(flags, 5) + zlibCompress(text);
  449|     63|  } else {
  450|     63|    static const char flags[] = {0x00, 0x00, 0x00, 0x00, 0x00};
  451|     63|    chunkData += std::string(flags, 5) + text.data();
  452|     63|  }
  453|       |  // Determine length of the chunk data
  454|    104|  byte length[4];
  455|    104|  ul2Data(length, static_cast<uint32_t>(chunkData.size()), bigEndian);
  456|       |  // Calculate CRC on chunk type and chunk data
  457|    104|  std::string chunkType = "iTXt";
  458|    104|  std::string crcData = chunkType + chunkData;
  459|    104|  uLong tmp = crc32(0L, Z_NULL, 0);
  460|    104|  tmp = crc32(tmp, reinterpret_cast<const Bytef*>(crcData.data()), static_cast<uInt>(crcData.size()));
  461|    104|  byte crc[4];
  462|    104|  ul2Data(crc, tmp, bigEndian);
  463|       |  // Assemble the chunk
  464|    104|  return std::string(reinterpret_cast<const char*>(length), 4) + chunkType + chunkData +
  465|    104|         std::string(reinterpret_cast<const char*>(crc), 4);
  466|       |
  467|    104|}  // PngChunk::makeUtf8TxtChunk
_ZN5Exiv28Internal8PngChunk14readRawProfileERKNS_7DataBufEb:
  469|    216|DataBuf PngChunk::readRawProfile(const DataBuf& text, bool iTXt) {
  470|    216|  DataBuf info;
  471|    216|  if (text.size() <= 1) {
  ------------------
  |  Branch (471:7): [True: 8, False: 208]
  ------------------
  472|      8|    return info;
  473|      8|  }
  474|       |
  475|    208|  const unsigned char unhex[103] = {
  476|    208|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,  0,  0,  0,  0,  0,  0, 0,
  477|    208|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 0, 0, 0, 0,  0,  0,  0,  0,  0,  0, 0,
  478|    208|      0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 10, 11, 12, 13, 14, 15,
  479|    208|  };
  480|       |
  481|    208|  if (iTXt) {
  ------------------
  |  Branch (481:7): [True: 17, False: 191]
  ------------------
  482|     17|    info.alloc(text.size());
  483|     17|    std::copy(text.begin(), text.end(), info.begin());
  484|     17|    return info;
  485|     17|  }
  486|       |
  487|    191|  const char* sp = text.c_str(1);                 // current byte (space pointer)
  488|    191|  const char* eot = text.c_str(text.size() - 1);  // end of text
  489|       |
  490|    191|  if (sp >= eot) {
  ------------------
  |  Branch (490:7): [True: 2, False: 189]
  ------------------
  491|      2|    return info;
  492|      2|  }
  493|       |
  494|       |  // Look for newline
  495|  12.6k|  while (*sp != '\n') {
  ------------------
  |  Branch (495:10): [True: 12.4k, False: 174]
  ------------------
  496|  12.4k|    sp++;
  497|  12.4k|    if (sp == eot) {
  ------------------
  |  Branch (497:9): [True: 15, False: 12.4k]
  ------------------
  498|     15|      return info;
  499|     15|    }
  500|  12.4k|  }
  501|    174|  sp++;  // step over '\n'
  502|    174|  if (sp == eot) {
  ------------------
  |  Branch (502:7): [True: 10, False: 164]
  ------------------
  503|     10|    return info;
  504|     10|  }
  505|       |
  506|       |  // Look for length
  507|    694|  while (*sp == '\0' || *sp == ' ' || *sp == '\n') {
  ------------------
  |  Branch (507:10): [True: 415, False: 279]
  |  Branch (507:25): [True: 59, False: 220]
  |  Branch (507:39): [True: 68, False: 152]
  ------------------
  508|    542|    sp++;
  509|    542|    if (sp == eot) {
  ------------------
  |  Branch (509:9): [True: 12, False: 530]
  ------------------
  510|     12|      return info;
  511|     12|    }
  512|    542|  }
  513|       |
  514|       |  // Parse the length.
  515|    152|  size_t length = 0;
  516|    553|  while ('0' <= *sp && *sp <= '9') {
  ------------------
  |  Branch (516:10): [True: 453, False: 100]
  |  Branch (516:24): [True: 410, False: 43]
  ------------------
  517|       |    // Compute the new length using unsigned long, so that we can check for overflow.
  518|    410|    const size_t newlength = (10 * length) + (*sp - '0');
  519|    410|    length = newlength;
  520|    410|    sp++;
  521|    410|    if (sp == eot) {
  ------------------
  |  Branch (521:9): [True: 9, False: 401]
  ------------------
  522|      9|      return info;
  523|      9|    }
  524|    410|  }
  525|    143|  sp++;  // step over '\n'
  526|    143|  if (sp == eot) {
  ------------------
  |  Branch (526:7): [True: 13, False: 130]
  ------------------
  527|     13|    return info;
  528|     13|  }
  529|       |
  530|    130|  enforce(length <= static_cast<size_t>(eot - sp) / 2, Exiv2::ErrorCode::kerCorruptedMetadata);
  531|       |
  532|       |  // Allocate space
  533|    130|  if (length == 0) {
  ------------------
  |  Branch (533:7): [True: 35, False: 95]
  ------------------
  534|       |#ifdef EXIV2_DEBUG_MESSAGES
  535|       |    std::cerr << "Exiv2::PngChunk::readRawProfile: Unable To Copy Raw Profile: invalid profile length\n";
  536|       |#endif
  537|     35|  }
  538|    130|  info.alloc(length);
  539|    130|  if (info.size() != length) {
  ------------------
  |  Branch (539:7): [True: 0, False: 130]
  ------------------
  540|       |#ifdef EXIV2_DEBUG_MESSAGES
  541|       |    std::cerr << "Exiv2::PngChunk::readRawProfile: Unable To Copy Raw Profile: cannot allocate memory\n";
  542|       |#endif
  543|      0|    return info;
  544|      0|  }
  545|       |
  546|    130|  if (info.empty())  // Early return
  ------------------
  |  Branch (546:7): [True: 35, False: 95]
  ------------------
  547|     35|    return info;
  548|       |
  549|       |  // Copy profile, skipping white space and column 1 "=" signs
  550|     95|  unsigned char* dp = info.data();  // decode pointer
  551|     95|  size_t nibbles = length * 2;
  552|       |
  553|  1.02k|  for (size_t i = 0; i < nibbles; i++) {
  ------------------
  |  Branch (553:22): [True: 953, False: 76]
  ------------------
  554|    953|    enforce(sp < eot, Exiv2::ErrorCode::kerCorruptedMetadata);
  555|  3.97k|    while (*sp < '0' || (*sp > '9' && *sp < 'a') || *sp > 'f') {
  ------------------
  |  Branch (555:12): [True: 1.39k, False: 2.57k]
  |  Branch (555:26): [True: 1.99k, False: 584]
  |  Branch (555:39): [True: 865, False: 1.12k]
  |  Branch (555:53): [True: 802, False: 907]
  ------------------
  556|  3.03k|      if (*sp == '\0') {
  ------------------
  |  Branch (556:11): [True: 19, False: 3.01k]
  ------------------
  557|       |#ifdef EXIV2_DEBUG_MESSAGES
  558|       |        std::cerr << "Exiv2::PngChunk::readRawProfile: Unable To Copy Raw Profile: ran out of data\n";
  559|       |#endif
  560|     19|        return {};
  561|     19|      }
  562|       |
  563|  3.01k|      sp++;
  564|  3.01k|      enforce(sp < eot, Exiv2::ErrorCode::kerCorruptedMetadata);
  565|  3.01k|    }
  566|       |
  567|    934|    if (i % 2 == 0)
  ------------------
  |  Branch (567:9): [True: 464, False: 470]
  ------------------
  568|    464|      *dp = static_cast<unsigned char>(16 * unhex[static_cast<size_t>(*sp++)]);
  569|    470|    else
  570|    470|      (*dp++) += unhex[static_cast<size_t>(*sp++)];
  571|    934|  }
  572|       |
  573|     76|  return info;
  574|       |
  575|     95|}  // PngChunk::readRawProfile

_ZN5Exiv28PngImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   56|    841|    Image(ImageType::png, mdExif | mdIptc | mdXmp | mdComment, std::move(io)) {
   57|    841|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (57:7): [True: 0, False: 841]
  |  Branch (57:17): [True: 0, False: 0]
  ------------------
   58|       |#ifdef EXIV2_DEBUG_MESSAGES
   59|       |    std::cerr << "Exiv2::PngImage:: Creating PNG image to memory\n";
   60|       |#endif
   61|      0|    IoCloser closer(*io_);
   62|      0|    if (io_->write(pngBlank, sizeof(pngBlank)) != sizeof(pngBlank)) {
  ------------------
  |  Branch (62:9): [True: 0, False: 0]
  ------------------
   63|       |#ifdef EXIV2_DEBUG_MESSAGES
   64|       |      std::cerr << "Exiv2::PngImage:: Failed to create PNG image on memory\n";
   65|       |#endif
   66|      0|    }
   67|      0|  }
   68|    841|}
_ZN5Exiv28PngImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  180|  1.72k|void PngImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  181|  1.72k|  if (io_->open() != 0) {
  ------------------
  |  Branch (181:7): [True: 0, False: 1.72k]
  ------------------
  182|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  183|      0|  }
  184|  1.72k|  if (!isPngType(*io_, true)) {
  ------------------
  |  Branch (184:7): [True: 0, False: 1.72k]
  ------------------
  185|      0|    throw Error(ErrorCode::kerNotAnImage, "PNG");
  186|      0|  }
  187|       |
  188|  1.72k|  std::string chType(4, 0);
  189|       |
  190|  1.72k|  if (option == kpsBasic || option == kpsXMP || option == kpsIccProfile || option == kpsRecursive) {
  ------------------
  |  Branch (190:7): [True: 362, False: 1.36k]
  |  Branch (190:29): [True: 256, False: 1.10k]
  |  Branch (190:49): [True: 243, False: 861]
  |  Branch (190:76): [True: 256, False: 605]
  ------------------
  191|  1.11k|    const auto xmpKey = upper("XML:com.adobe.xmp");
  192|  1.11k|    const auto exifKey = upper("Raw profile type exif");
  193|  1.11k|    const auto app1Key = upper("Raw profile type APP1");
  194|  1.11k|    const auto iptcKey = upper("Raw profile type iptc");
  195|  1.11k|    const auto softKey = upper("Software");
  196|  1.11k|    const auto commKey = upper("Comment");
  197|  1.11k|    const auto descKey = upper("Description");
  198|       |
  199|  1.11k|    bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (199:19): [True: 362, False: 755]
  |  Branch (199:41): [True: 256, False: 499]
  ------------------
  200|  1.11k|    if (bPrint) {
  ------------------
  |  Branch (200:9): [True: 618, False: 499]
  ------------------
  201|    618|      out << "STRUCTURE OF PNG FILE: " << io_->path() << '\n';
  202|    618|      out << " address | chunk |  length | data                           | checksum" << '\n';
  203|    618|    }
  204|       |
  205|  1.11k|    const size_t imgSize = io_->size();
  206|  1.11k|    DataBuf cheaderBuf(8);
  207|       |
  208|  11.2k|    while (!io_->eof() && chType != "IEND") {
  ------------------
  |  Branch (208:12): [True: 11.0k, False: 119]
  |  Branch (208:27): [True: 10.0k, False: 998]
  ------------------
  209|  10.0k|      const size_t address = io_->tell();
  210|       |
  211|  10.0k|      size_t bufRead = io_->read(cheaderBuf.data(), cheaderBuf.size());
  212|  10.0k|      if (io_->error())
  ------------------
  |  Branch (212:11): [True: 0, False: 10.0k]
  ------------------
  213|      0|        throw Error(ErrorCode::kerFailedToReadImageData);
  214|  10.0k|      if (bufRead != cheaderBuf.size())
  ------------------
  |  Branch (214:11): [True: 0, False: 10.0k]
  ------------------
  215|      0|        throw Error(ErrorCode::kerInputDataReadFailed);
  216|       |
  217|       |      // Decode chunk data length.
  218|  10.0k|      const uint32_t dataOffset = cheaderBuf.read_uint32(0, Exiv2::bigEndian);
  219|  50.4k|      for (int i = 4; i < 8; i++) {
  ------------------
  |  Branch (219:23): [True: 40.3k, False: 10.0k]
  ------------------
  220|  40.3k|        chType[i - 4] = cheaderBuf.read_uint8(i);
  221|  40.3k|      }
  222|       |
  223|       |      // test that we haven't hit EOF, or wanting to read excessive data
  224|  10.0k|      const size_t restore = io_->tell();
  225|  10.0k|      if (dataOffset > imgSize - restore) {
  ------------------
  |  Branch (225:11): [True: 0, False: 10.0k]
  ------------------
  226|      0|        throw Exiv2::Error(ErrorCode::kerFailedToReadImageData);
  227|      0|      }
  228|       |
  229|  10.0k|      DataBuf buff(dataOffset);
  230|  10.0k|      if (dataOffset > 0) {
  ------------------
  |  Branch (230:11): [True: 2.99k, False: 7.09k]
  ------------------
  231|  2.99k|        bufRead = io_->read(buff.data(), dataOffset);
  232|  2.99k|        enforce(bufRead == dataOffset, ErrorCode::kerFailedToReadImageData);
  233|  2.99k|      }
  234|  10.0k|      io_->seek(restore, BasicIo::beg);
  235|       |
  236|       |      // format output
  237|  10.0k|      const int iMax = 30;
  238|  10.0k|      const auto blen = std::min<uint32_t>(iMax, dataOffset);
  239|  10.0k|      std::string dataString;
  240|       |      // if blen == 0 => slice construction fails
  241|  10.0k|      if (blen > 0) {
  ------------------
  |  Branch (241:11): [True: 2.99k, False: 7.09k]
  ------------------
  242|  2.99k|        std::stringstream ss;
  243|  2.99k|        ss << Internal::binaryToString(makeSlice(buff, 0, blen));
  244|  2.99k|        dataString = ss.str();
  245|  2.99k|      }
  246|   258k|      while (dataString.size() < iMax)
  ------------------
  |  Branch (246:14): [True: 248k, False: 10.0k]
  ------------------
  247|   248k|        dataString += ' ';
  248|  10.0k|      dataString.resize(iMax);
  249|       |
  250|  10.0k|      if (bPrint) {
  ------------------
  |  Branch (250:11): [True: 5.50k, False: 4.58k]
  ------------------
  251|  5.50k|        io_->seek(dataOffset, BasicIo::cur);  // jump to checksum
  252|  5.50k|        byte checksum[4];
  253|  5.50k|        bufRead = io_->read(checksum, 4);
  254|  5.50k|        enforce(bufRead == 4, ErrorCode::kerFailedToReadImageData);
  255|  5.50k|        io_->seek(restore, BasicIo::beg);  // restore file pointer
  256|       |
  257|  5.50k|        out << stringFormat("{:8} | {:<5} |{:8} | {}", address, chType, dataOffset, dataString)
  ------------------
  |  |   18|  5.50k|#define stringFormat std::format
  ------------------
  258|  5.50k|            << stringFormat(" | 0x{:02x}{:02x}{:02x}{:02x}\n", checksum[0], checksum[1], checksum[2], checksum[3]);
  ------------------
  |  |   18|  5.50k|#define stringFormat std::format
  ------------------
  259|  5.50k|      }
  260|       |
  261|       |      // chunk type
  262|  10.0k|      bool tEXt = chType == "tEXt";
  263|  10.0k|      bool zTXt = chType == "zTXt";
  264|  10.0k|      bool iCCP = chType == "iCCP";
  265|  10.0k|      bool iTXt = chType == "iTXt";
  266|  10.0k|      bool eXIf = chType == "eXIf";
  267|       |
  268|       |      // for XMP, ICC etc: read and format data
  269|  10.0k|      const auto dataStringU = upper(dataString);
  270|  10.0k|      bool bXMP = option == kpsXMP && findi(dataStringU, xmpKey) == 0;
  ------------------
  |  Branch (270:19): [True: 2.33k, False: 7.75k]
  |  Branch (270:39): [True: 55, False: 2.28k]
  ------------------
  271|  10.0k|      bool bExif = option == kpsRecursive && (findi(dataStringU, exifKey) == 0 || findi(dataStringU, app1Key) == 0);
  ------------------
  |  Branch (271:20): [True: 2.32k, False: 7.77k]
  |  Branch (271:47): [True: 8, False: 2.31k]
  |  Branch (271:83): [True: 4, False: 2.31k]
  ------------------
  272|  10.0k|      bool bIptc = option == kpsRecursive && findi(dataStringU, iptcKey) == 0;
  ------------------
  |  Branch (272:20): [True: 2.32k, False: 7.77k]
  |  Branch (272:46): [True: 11, False: 2.31k]
  ------------------
  273|  10.0k|      bool bSoft = option == kpsRecursive && findi(dataStringU, softKey) == 0;
  ------------------
  |  Branch (273:20): [True: 2.32k, False: 7.77k]
  |  Branch (273:46): [True: 7, False: 2.31k]
  ------------------
  274|  10.0k|      bool bComm = option == kpsRecursive && findi(dataStringU, commKey) == 0;
  ------------------
  |  Branch (274:20): [True: 2.32k, False: 7.77k]
  |  Branch (274:46): [True: 10, False: 2.31k]
  ------------------
  275|  10.0k|      bool bDesc = option == kpsRecursive && findi(dataStringU, descKey) == 0;
  ------------------
  |  Branch (275:20): [True: 2.32k, False: 7.77k]
  |  Branch (275:46): [True: 55, False: 2.26k]
  ------------------
  276|  10.0k|      bool bDump = bXMP || bExif || bIptc || bSoft || bComm || bDesc || iCCP || eXIf;
  ------------------
  |  Branch (276:20): [True: 161, False: 9.93k]
  |  Branch (276:28): [True: 12, False: 9.92k]
  |  Branch (276:37): [True: 11, False: 9.90k]
  |  Branch (276:46): [True: 7, False: 9.90k]
  |  Branch (276:55): [True: 10, False: 9.89k]
  |  Branch (276:64): [True: 55, False: 9.83k]
  |  Branch (276:73): [True: 176, False: 9.66k]
  |  Branch (276:81): [True: 0, False: 9.66k]
  ------------------
  277|       |
  278|  10.0k|      if (bDump) {
  ------------------
  |  Branch (278:11): [True: 326, False: 9.76k]
  ------------------
  279|    326|        DataBuf dataBuf;
  280|    326|        enforce(dataOffset < std::numeric_limits<uint32_t>::max(), ErrorCode::kerFailedToReadImageData);
  281|    326|        DataBuf data(dataOffset + 1ul);
  282|    326|        data.write_uint8(dataOffset, 0);
  283|    326|        bufRead = io_->read(data.data(), dataOffset);
  284|    326|        enforce(bufRead == dataOffset, ErrorCode::kerFailedToReadImageData);
  285|    326|        io_->seek(restore, BasicIo::beg);
  286|    326|        size_t name_l = std::strlen(data.c_str()) + 1;  // leading string length
  287|    326|        enforce(name_l < dataOffset, ErrorCode::kerCorruptedMetadata);
  288|       |
  289|    326|        auto start = static_cast<uint32_t>(name_l);
  290|    326|        bool bLF = false;
  291|       |
  292|       |        // decode the chunk
  293|    326|        bool bGood = false;
  294|    326|        if (tEXt) {
  ------------------
  |  Branch (294:13): [True: 91, False: 235]
  ------------------
  295|     91|          bGood = tEXtToDataBuf(data.c_data(name_l), dataOffset - name_l, dataBuf);
  296|     91|        }
  297|    326|        if (zTXt || iCCP) {
  ------------------
  |  Branch (297:13): [True: 4, False: 322]
  |  Branch (297:21): [True: 178, False: 144]
  ------------------
  298|    179|          enforce(dataOffset - name_l - 1 <= std::numeric_limits<uLongf>::max(), ErrorCode::kerCorruptedMetadata);
  299|    179|          bGood = zlibToDataBuf(data.c_data(name_l + 1), static_cast<uLongf>(dataOffset - name_l - 1),
  300|    179|                                dataBuf);  // +1 = 'compressed' flag
  301|    179|        }
  302|    326|        if (iTXt) {
  ------------------
  |  Branch (302:13): [True: 46, False: 280]
  ------------------
  303|     46|          bGood = (3 <= dataOffset) && (start < dataOffset - 3);  // good if not a nul chunk
  ------------------
  |  Branch (303:19): [True: 46, False: 0]
  |  Branch (303:40): [True: 46, False: 0]
  ------------------
  304|     46|        }
  305|    326|        if (eXIf) {
  ------------------
  |  Branch (305:13): [True: 0, False: 326]
  ------------------
  306|      0|          bGood = true;  // eXIf requires no pre-processing
  307|      0|        }
  308|       |
  309|       |        // format is content dependent
  310|    326|        if (bGood) {
  ------------------
  |  Branch (310:13): [True: 147, False: 179]
  ------------------
  311|    147|          if (bXMP) {
  ------------------
  |  Branch (311:15): [True: 55, False: 92]
  ------------------
  312|    770|            while (start < dataOffset && !data.read_uint8(start))
  ------------------
  |  Branch (312:20): [True: 768, False: 2]
  |  Branch (312:42): [True: 715, False: 53]
  ------------------
  313|    715|              start++;                  // skip leading nul bytes
  314|     55|            out << data.c_data(start);  // output the xmp
  315|     55|          }
  316|       |
  317|    147|          if (bExif || bIptc) {
  ------------------
  |  Branch (317:15): [True: 12, False: 135]
  |  Branch (317:24): [True: 10, False: 125]
  ------------------
  318|     22|            DataBuf parsedBuf = PngChunk::readRawProfile(dataBuf, tEXt);
  319|       |#ifdef EXIV2_DEBUG_MESSAGES
  320|       |            std::cerr << Exiv2::Internal::binaryToString(
  321|       |                             makeSlice(parsedBuf.c_data(), std::min<size_t>(50, parsedBuf.size()), 0))
  322|       |                      << '\n';
  323|       |#endif
  324|     22|            if (!parsedBuf.empty()) {
  ------------------
  |  Branch (324:17): [True: 17, False: 5]
  ------------------
  325|     17|              if (bExif) {
  ------------------
  |  Branch (325:19): [True: 7, False: 10]
  ------------------
  326|       |                // check for expected "Exif\0\0" APP1 identifier, punt otherwise
  327|      7|                size_t offset = 0;
  328|      7|                std::array<byte, 6> exifId{0x45, 0x78, 0x69, 0x66, 0x00, 0x00};  // "Exif\0\0"
  329|      7|                if (0 == parsedBuf.cmpBytes(0, exifId.data(), exifId.size())) {
  ------------------
  |  Branch (329:21): [True: 0, False: 7]
  ------------------
  330|      0|                  offset = 6;
  331|      0|                }
  332|       |                // create memio object with the data, then print the structure
  333|      7|                MemIo p(parsedBuf.c_data(offset), parsedBuf.size() - offset);
  334|      7|                printTiffStructure(p, out, option, depth + 1);
  335|      7|              }
  336|     17|              if (bIptc) {
  ------------------
  |  Branch (336:19): [True: 10, False: 7]
  ------------------
  337|     10|                IptcData::printStructure(out, makeSlice(parsedBuf, 0, parsedBuf.size()), depth);
  338|     10|              }
  339|     17|            }
  340|     22|          }
  341|       |
  342|    147|          if (bSoft && !dataBuf.empty()) {
  ------------------
  |  Branch (342:15): [True: 6, False: 141]
  |  Branch (342:24): [True: 5, False: 1]
  ------------------
  343|      5|            DataBuf s(dataBuf.size() + 1);                         // allocate buffer with an extra byte
  344|      5|            std::copy(dataBuf.begin(), dataBuf.end(), s.begin());  // copy in the dataBuf
  345|      5|            s.write_uint8(dataBuf.size(), 0);                      // nul terminate it
  346|      5|            const auto str = s.c_str();                            // give it name
  347|      5|            out << Internal::indent(depth) << buff.c_str() << ": " << str;
  348|      5|            bLF = true;
  349|      5|          }
  350|       |
  351|    147|          if ((iCCP && option == kpsIccProfile) || bComm) {
  ------------------
  |  Branch (351:16): [True: 10, False: 137]
  |  Branch (351:24): [True: 2, False: 8]
  |  Branch (351:52): [True: 7, False: 128]
  ------------------
  352|      9|            out.write(dataBuf.c_str(), dataBuf.size());
  353|      9|            bLF = bComm;
  354|      9|          }
  355|       |
  356|    147|          if (bDesc && iTXt) {
  ------------------
  |  Branch (356:15): [True: 47, False: 100]
  |  Branch (356:24): [True: 10, False: 37]
  ------------------
  357|     10|            DataBuf decoded = PngChunk::decodeTXTChunk(buff, PngChunk::iTXt_Chunk);
  358|     10|            out.write(decoded.c_str(), decoded.size());
  359|     10|            bLF = true;
  360|     10|          }
  361|       |
  362|    147|          if (eXIf && option == kpsRecursive) {
  ------------------
  |  Branch (362:15): [True: 0, False: 147]
  |  Branch (362:23): [True: 0, False: 0]
  ------------------
  363|       |            // create memio object with the data, then print the structure
  364|      0|            MemIo p(data.c_data(), dataOffset);
  365|      0|            printTiffStructure(p, out, option, depth + 1);
  366|      0|          }
  367|       |
  368|    147|          if (bLF)
  ------------------
  |  Branch (368:15): [True: 22, False: 125]
  ------------------
  369|     22|            out << '\n';
  370|    147|        }
  371|    326|      }
  372|  10.0k|      io_->seek(dataOffset + 4, BasicIo::cur);  // jump past checksum
  373|  10.0k|      if (io_->error())
  ------------------
  |  Branch (373:11): [True: 0, False: 10.0k]
  ------------------
  374|      0|        throw Error(ErrorCode::kerFailedToReadImageData);
  375|  10.0k|    }
  376|  1.11k|  }
  377|  1.72k|}
_ZN5Exiv28PngImage12readMetadataEv:
  392|    841|void PngImage::readMetadata() {
  393|       |#ifdef EXIV2_DEBUG_MESSAGES
  394|       |  std::cerr << "Exiv2::PngImage::readMetadata: Reading PNG file " << io_->path() << '\n';
  395|       |#endif
  396|    841|  if (io_->open() != 0) {
  ------------------
  |  Branch (396:7): [True: 0, False: 841]
  ------------------
  397|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  398|      0|  }
  399|    841|  IoCloser closer(*io_);
  400|    841|  if (!isPngType(*io_, true)) {
  ------------------
  |  Branch (400:7): [True: 0, False: 841]
  ------------------
  401|      0|    throw Error(ErrorCode::kerNotAnImage, "PNG");
  402|      0|  }
  403|    841|  clearMetadata();
  404|       |
  405|    841|  const size_t imgSize = io_->size();
  406|    841|  DataBuf cheaderBuf(8);  // Chunk header: 4 bytes (data size) + 4 bytes (chunk type).
  407|       |
  408|  92.7k|  while (!io_->eof()) {
  ------------------
  |  Branch (408:10): [True: 92.5k, False: 238]
  ------------------
  409|  92.5k|    readChunk(cheaderBuf, *io_);  // Read chunk header.
  410|       |
  411|       |    // Decode chunk data length.
  412|  92.5k|    uint32_t chunkLength = cheaderBuf.read_uint32(0, Exiv2::bigEndian);
  413|  92.5k|    if (chunkLength > imgSize - io_->tell()) {
  ------------------
  |  Branch (413:9): [True: 164, False: 92.3k]
  ------------------
  414|    164|      throw Exiv2::Error(ErrorCode::kerFailedToReadImageData);
  415|    164|    }
  416|       |
  417|  92.3k|    std::string chunkType(cheaderBuf.c_str(4), 4);
  418|       |#ifdef EXIV2_DEBUG_MESSAGES
  419|       |    std::cout << "Exiv2::PngImage::readMetadata: chunk type: " << chunkType << " length: " << chunkLength << '\n';
  420|       |#endif
  421|       |
  422|       |    /// \todo analyse remaining chunks of the standard
  423|       |    // Perform a chunk triage for item that we need.
  424|  92.3k|    if (chunkType == "IEND" || chunkType == "IHDR" || chunkType == "tEXt" || chunkType == "zTXt" ||
  ------------------
  |  Branch (424:9): [True: 414, False: 91.9k]
  |  Branch (424:32): [True: 271, False: 91.7k]
  |  Branch (424:55): [True: 523, False: 91.1k]
  |  Branch (424:78): [True: 87, False: 91.0k]
  ------------------
  425|  91.0k|        chunkType == "eXIf" || chunkType == "iTXt" || chunkType == "iCCP") {
  ------------------
  |  Branch (425:9): [True: 24, False: 91.0k]
  |  Branch (425:32): [True: 339, False: 90.7k]
  |  Branch (425:55): [True: 170, False: 90.5k]
  ------------------
  426|  1.77k|      DataBuf chunkData(chunkLength);
  427|  1.77k|      if (chunkLength > 0) {
  ------------------
  |  Branch (427:11): [True: 1.40k, False: 372]
  ------------------
  428|  1.40k|        readChunk(chunkData, *io_);  // Extract chunk data.
  429|  1.40k|      }
  430|       |
  431|  1.77k|      if (chunkType == "IEND") {
  ------------------
  |  Branch (431:11): [True: 364, False: 1.41k]
  ------------------
  432|    364|        return;  // Last chunk found: we stop parsing.
  433|    364|      }
  434|  1.41k|      if (chunkType == "IHDR" && chunkData.size() >= 8) {
  ------------------
  |  Branch (434:11): [True: 271, False: 1.14k]
  |  Branch (434:34): [True: 50, False: 221]
  ------------------
  435|     50|        PngChunk::decodeIHDRChunk(chunkData, &pixelWidth_, &pixelHeight_);
  436|  1.36k|      } else if (chunkType == "tEXt") {
  ------------------
  |  Branch (436:18): [True: 523, False: 841]
  ------------------
  437|    523|        PngChunk::decodeTXTChunk(this, chunkData, PngChunk::tEXt_Chunk);
  438|    841|      } else if (chunkType == "zTXt") {
  ------------------
  |  Branch (438:18): [True: 87, False: 754]
  ------------------
  439|     87|        PngChunk::decodeTXTChunk(this, chunkData, PngChunk::zTXt_Chunk);
  440|    754|      } else if (chunkType == "iTXt") {
  ------------------
  |  Branch (440:18): [True: 339, False: 415]
  ------------------
  441|    339|        PngChunk::decodeTXTChunk(this, chunkData, PngChunk::iTXt_Chunk);
  442|    415|      } else if (chunkType == "eXIf") {
  ------------------
  |  Branch (442:18): [True: 24, False: 391]
  ------------------
  443|     24|        ByteOrder bo = TiffParser::decode(exifData(), iptcData(), xmpData(), chunkData.c_data(), chunkData.size());
  444|     24|        setByteOrder(bo);
  445|    391|      } else if (chunkType == "iCCP") {
  ------------------
  |  Branch (445:18): [True: 170, False: 221]
  ------------------
  446|       |        // The ICC profile name can vary from 1-79 characters.
  447|    170|        uint32_t iccOffset = 0;
  448|  1.49k|        do {
  449|  1.49k|          enforce(iccOffset < 80 && iccOffset < chunkLength, Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (449:19): [True: 1.49k, False: 0]
  |  Branch (449:37): [True: 1.48k, False: 6]
  ------------------
  450|  1.49k|        } while (chunkData.read_uint8(iccOffset++) != 0x00);
  ------------------
  |  Branch (450:18): [True: 1.32k, False: 170]
  ------------------
  451|       |
  452|    170|        profileName_ = std::string(chunkData.c_str(), iccOffset - 1);
  453|    170|        ++iccOffset;  // +1 = 'compressed' flag
  454|    170|        enforce(iccOffset <= chunkLength, Exiv2::ErrorCode::kerCorruptedMetadata);
  455|       |
  456|    170|        zlibToDataBuf(chunkData.c_data(iccOffset), static_cast<uLongf>(chunkLength - iccOffset), iccProfile_);
  457|       |#ifdef EXIV2_DEBUG_MESSAGES
  458|       |        std::cout << "Exiv2::PngImage::readMetadata: profile name: " << profileName_ << '\n';
  459|       |        std::cout << "Exiv2::PngImage::readMetadata: iccProfile.size_ (uncompressed) : " << iccProfile_.size() << '\n';
  460|       |#endif
  461|    170|      }
  462|       |
  463|       |      // Set chunkLength to 0 in case we have read a supported chunk type. Otherwise, we need to seek the
  464|       |      // file to the next chunk position.
  465|  1.41k|      chunkLength = 0;
  466|  1.41k|    }
  467|       |
  468|       |    // Move to the next chunk: chunk data size + 4 CRC bytes.
  469|       |#ifdef EXIV2_DEBUG_MESSAGES
  470|       |    std::cout << "Exiv2::PngImage::readMetadata: Seek to offset: " << chunkLength + 4 << '\n';
  471|       |#endif
  472|  92.0k|    io_->seek(chunkLength + 4, BasicIo::cur);
  473|  92.0k|    if (io_->error() || io_->eof()) {
  ------------------
  |  Branch (473:9): [True: 238, False: 91.7k]
  |  Branch (473:25): [True: 75, False: 91.7k]
  ------------------
  474|     75|      throw Error(ErrorCode::kerFailedToReadImageData);
  475|     75|    }
  476|  92.0k|  }
  477|    841|}  // PngImage::readMetadata
_ZN5Exiv28PngImage13writeMetadataEv:
  479|    243|void PngImage::writeMetadata() {
  480|    243|  if (io_->open() != 0) {
  ------------------
  |  Branch (480:7): [True: 0, False: 243]
  ------------------
  481|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  482|      0|  }
  483|    243|  IoCloser closer(*io_);
  484|    243|  MemIo tempIo;
  485|       |
  486|    243|  doWriteMetadata(tempIo);  // may throw
  487|    243|  io_->close();
  488|    243|  io_->transfer(tempIo);  // may throw
  489|       |
  490|    243|}  // PngImage::writeMetadata
_ZN5Exiv28PngImage15doWriteMetadataERNS_7BasicIoE:
  492|    243|void PngImage::doWriteMetadata(BasicIo& outIo) {
  493|    243|  if (!io_->isopen())
  ------------------
  |  Branch (493:7): [True: 0, False: 243]
  ------------------
  494|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  495|    243|  if (!outIo.isopen())
  ------------------
  |  Branch (495:7): [True: 0, False: 243]
  ------------------
  496|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  497|       |
  498|       |#ifdef EXIV2_DEBUG_MESSAGES
  499|       |  std::cout << "Exiv2::PngImage::doWriteMetadata: Writing PNG file " << io_->path() << "\n";
  500|       |  std::cout << "Exiv2::PngImage::doWriteMetadata: tmp file created " << outIo.path() << "\n";
  501|       |#endif
  502|       |
  503|    243|  if (!isPngType(*io_, true)) {
  ------------------
  |  Branch (503:7): [True: 0, False: 243]
  ------------------
  504|      0|    throw Error(ErrorCode::kerNoImageInInputData);
  505|      0|  }
  506|       |
  507|       |  // Write PNG Signature.
  508|    243|  if (outIo.write(pngSignature.data(), 8) != 8)
  ------------------
  |  Branch (508:7): [True: 0, False: 243]
  ------------------
  509|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  510|       |
  511|    243|  DataBuf cheaderBuf(8);  // Chunk header : 4 bytes (data size) + 4 bytes (chunk type).
  512|       |
  513|  2.25k|  while (!io_->eof()) {
  ------------------
  |  Branch (513:10): [True: 2.25k, False: 0]
  ------------------
  514|       |    // Read chunk header.
  515|  2.25k|    size_t bufRead = io_->read(cheaderBuf.data(), 8);
  516|  2.25k|    if (io_->error())
  ------------------
  |  Branch (516:9): [True: 0, False: 2.25k]
  ------------------
  517|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  518|  2.25k|    if (bufRead != 8)
  ------------------
  |  Branch (518:9): [True: 0, False: 2.25k]
  ------------------
  519|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  520|       |
  521|       |    // Decode chunk data length.
  522|       |
  523|  2.25k|    uint32_t dataOffset = cheaderBuf.read_uint32(0, Exiv2::bigEndian);
  524|  2.25k|    if (dataOffset > 0x7FFFFFFF)
  ------------------
  |  Branch (524:9): [True: 0, False: 2.25k]
  ------------------
  525|      0|      throw Exiv2::Error(ErrorCode::kerFailedToReadImageData);
  526|       |
  527|       |    // Read whole chunk : Chunk header + Chunk data (not fixed size - can be null) + CRC (4 bytes).
  528|       |
  529|  2.25k|    DataBuf chunkBuf(8 + dataOffset + 4);  // Chunk header (8 bytes) + Chunk data + CRC (4 bytes).
  530|  2.25k|    std::copy(cheaderBuf.begin(), cheaderBuf.end(), chunkBuf.begin());  // Copy header.
  531|  2.25k|    bufRead = io_->read(chunkBuf.data(8), dataOffset + 4);              // Extract chunk data + CRC
  532|  2.25k|    if (io_->error())
  ------------------
  |  Branch (532:9): [True: 0, False: 2.25k]
  ------------------
  533|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  534|  2.25k|    if (bufRead != dataOffset + 4)
  ------------------
  |  Branch (534:9): [True: 0, False: 2.25k]
  ------------------
  535|      0|      throw Error(ErrorCode::kerInputDataReadFailed);
  536|       |
  537|  2.25k|    const std::string szChunk(cheaderBuf.begin() + 4, cheaderBuf.end());
  538|       |
  539|  2.25k|    if (szChunk == "IEND") {
  ------------------
  |  Branch (539:9): [True: 243, False: 2.00k]
  ------------------
  540|       |      // Last chunk found: we write it and done.
  541|       |#ifdef EXIV2_DEBUG_MESSAGES
  542|       |      std::cout << "Exiv2::PngImage::doWriteMetadata: Write IEND chunk (length: " << dataOffset << ")\n";
  543|       |#endif
  544|    243|      if (outIo.write(chunkBuf.data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (544:11): [True: 0, False: 243]
  ------------------
  545|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  546|    243|      return;
  547|    243|    }
  548|  2.00k|    if (szChunk == "eXIf" || szChunk == "iCCP") {
  ------------------
  |  Branch (548:9): [True: 0, False: 2.00k]
  |  Branch (548:30): [True: 43, False: 1.96k]
  ------------------
  549|       |      // do nothing (strip): Exif metadata is written following IHDR
  550|       |      // together with the ICC profile as fresh eXIf and iCCP chunks
  551|       |#ifdef EXIV2_DEBUG_MESSAGES
  552|       |      std::cout << "Exiv2::PngImage::doWriteMetadata: strip " << szChunk << " chunk (length: " << dataOffset << ")"
  553|       |                << '\n';
  554|       |#endif
  555|  1.96k|    } else if (szChunk == "IHDR") {
  ------------------
  |  Branch (555:16): [True: 189, False: 1.77k]
  ------------------
  556|       |#ifdef EXIV2_DEBUG_MESSAGES
  557|       |      std::cout << "Exiv2::PngImage::doWriteMetadata: Write IHDR chunk (length: " << dataOffset << ")\n";
  558|       |#endif
  559|    189|      if (outIo.write(chunkBuf.data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (559:11): [True: 0, False: 189]
  ------------------
  560|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  561|       |
  562|       |      // Write all updated metadata here, just after IHDR.
  563|    189|      if (!comment_.empty()) {
  ------------------
  |  Branch (563:11): [True: 41, False: 148]
  ------------------
  564|       |        // Update Comment data to a new PNG chunk
  565|     41|        std::string chunk = PngChunk::makeMetadataChunk(comment_, mdComment);
  566|     41|        if (outIo.write(reinterpret_cast<const byte*>(chunk.data()), chunk.size()) != chunk.size()) {
  ------------------
  |  Branch (566:13): [True: 0, False: 41]
  ------------------
  567|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  568|      0|        }
  569|     41|      }
  570|       |
  571|    189|      if (!exifData_.empty()) {
  ------------------
  |  Branch (571:11): [True: 0, False: 189]
  ------------------
  572|       |        // Update Exif data to a new PNG chunk
  573|      0|        Blob blob;
  574|      0|        ExifParser::encode(blob, littleEndian, exifData_);
  575|      0|        if (!blob.empty()) {
  ------------------
  |  Branch (575:13): [True: 0, False: 0]
  ------------------
  576|      0|          byte length[4];
  577|      0|          ul2Data(length, static_cast<uint32_t>(blob.size()), bigEndian);
  578|       |
  579|       |          // calculate CRC
  580|      0|          uLong tmp = crc32(0L, Z_NULL, 0);
  581|      0|          tmp = crc32(tmp, typeExif, 4);
  582|      0|          tmp = crc32(tmp, blob.data(), static_cast<uint32_t>(blob.size()));
  583|      0|          byte crc[4];
  584|      0|          ul2Data(crc, tmp, bigEndian);
  585|       |
  586|      0|          if (outIo.write(length, 4) != 4 || outIo.write(typeExif, 4) != 4 ||
  ------------------
  |  Branch (586:15): [True: 0, False: 0]
  |  Branch (586:46): [True: 0, False: 0]
  ------------------
  587|      0|              outIo.write(blob.data(), blob.size()) != blob.size() || outIo.write(crc, 4) != 4) {
  ------------------
  |  Branch (587:15): [True: 0, False: 0]
  |  Branch (587:71): [True: 0, False: 0]
  ------------------
  588|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  589|      0|          }
  590|       |#ifdef EXIV2_DEBUG_MESSAGES
  591|       |          std::cout << "Exiv2::PngImage::doWriteMetadata: build eXIf"
  592|       |                    << " chunk (length: " << blob.size() << ")" << '\n';
  593|       |#endif
  594|      0|        }
  595|      0|      }
  596|       |
  597|    189|      if (!iptcData_.empty()) {
  ------------------
  |  Branch (597:11): [True: 0, False: 189]
  ------------------
  598|       |        // Update IPTC data to a new PNG chunk
  599|      0|        DataBuf newPsData = Photoshop::setIptcIrb(nullptr, 0, iptcData_);
  600|      0|        if (!newPsData.empty()) {
  ------------------
  |  Branch (600:13): [True: 0, False: 0]
  ------------------
  601|      0|          std::string rawIptc(newPsData.c_str(), newPsData.size());
  602|      0|          std::string chunk = PngChunk::makeMetadataChunk(rawIptc, mdIptc);
  603|      0|          if (outIo.write(reinterpret_cast<const byte*>(chunk.data()), chunk.size()) != chunk.size()) {
  ------------------
  |  Branch (603:15): [True: 0, False: 0]
  ------------------
  604|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  605|      0|          }
  606|      0|        }
  607|      0|      }
  608|       |
  609|    189|      if (iccProfileDefined()) {
  ------------------
  |  Branch (609:11): [True: 39, False: 150]
  ------------------
  610|     39|        DataBuf compressed;
  611|     39|        enforce(iccProfile_.size() <= std::numeric_limits<uLongf>::max(), ErrorCode::kerCorruptedMetadata);
  612|     39|        if (zlibToCompressed(iccProfile_.c_data(), static_cast<uLongf>(iccProfile_.size()), compressed)) {
  ------------------
  |  Branch (612:13): [True: 39, False: 0]
  ------------------
  613|     39|          const auto nameLength = static_cast<uint32_t>(profileName_.size());
  614|     39|          const uint32_t chunkLength = nameLength + 2 + static_cast<uint32_t>(compressed.size());
  615|     39|          byte length[4];
  616|     39|          ul2Data(length, chunkLength, bigEndian);
  617|       |
  618|       |          // calculate CRC
  619|     39|          uLong tmp = crc32(0L, Z_NULL, 0);
  620|     39|          tmp = crc32(tmp, typeICCP, 4);
  621|     39|          tmp = crc32(tmp, reinterpret_cast<const Bytef*>(profileName_.data()), nameLength);
  622|     39|          tmp = crc32(tmp, nullComp, 2);
  623|     39|          tmp = crc32(tmp, compressed.c_data(), static_cast<uint32_t>(compressed.size()));
  624|     39|          byte crc[4];
  625|     39|          ul2Data(crc, tmp, bigEndian);
  626|       |
  627|     39|          if (outIo.write(length, 4) != 4 || outIo.write(typeICCP, 4) != 4 ||
  ------------------
  |  Branch (627:15): [True: 0, False: 39]
  |  Branch (627:46): [True: 0, False: 39]
  ------------------
  628|     39|              outIo.write(reinterpret_cast<const byte*>(profileName_.data()), nameLength) != nameLength ||
  ------------------
  |  Branch (628:15): [True: 0, False: 39]
  ------------------
  629|     39|              outIo.write(nullComp, 2) != 2 ||
  ------------------
  |  Branch (629:15): [True: 0, False: 39]
  ------------------
  630|     39|              outIo.write(compressed.c_data(), compressed.size()) != compressed.size() || outIo.write(crc, 4) != 4) {
  ------------------
  |  Branch (630:15): [True: 0, False: 39]
  |  Branch (630:91): [True: 0, False: 39]
  ------------------
  631|      0|            throw Error(ErrorCode::kerImageWriteFailed);
  632|      0|          }
  633|       |#ifdef EXIV2_DEBUG_MESSAGES
  634|       |          std::cout << "Exiv2::PngImage::doWriteMetadata: build iCCP"
  635|       |                    << " chunk (length: " << chunkLength << ")" << '\n';
  636|       |#endif
  637|     39|        }
  638|     39|      }
  639|       |
  640|    189|      if (!writeXmpFromPacket() && XmpParser::encode(xmpPacket_, xmpData_) > 1) {
  ------------------
  |  Branch (640:11): [True: 189, False: 0]
  |  Branch (640:36): [True: 0, False: 189]
  ------------------
  641|      0|#ifndef SUPPRESS_WARNINGS
  642|      0|        EXV_ERROR << "Failed to encode XMP metadata.\n";
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  643|      0|#endif
  644|      0|      }
  645|    189|      if (!xmpPacket_.empty()) {
  ------------------
  |  Branch (645:11): [True: 63, False: 126]
  ------------------
  646|       |        // Update XMP data to a new PNG chunk
  647|     63|        std::string chunk = PngChunk::makeMetadataChunk(xmpPacket_, mdXmp);
  648|     63|        if (outIo.write(reinterpret_cast<const byte*>(chunk.data()), chunk.size()) != chunk.size()) {
  ------------------
  |  Branch (648:13): [True: 0, False: 63]
  ------------------
  649|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  650|      0|        }
  651|     63|      }
  652|  1.77k|    } else if (szChunk == "tEXt" || szChunk == "zTXt" || szChunk == "iTXt") {
  ------------------
  |  Branch (652:16): [True: 145, False: 1.63k]
  |  Branch (652:37): [True: 45, False: 1.58k]
  |  Branch (652:58): [True: 50, False: 1.53k]
  ------------------
  653|    240|      DataBuf key = PngChunk::keyTXTChunk(chunkBuf, true);
  654|    240|      if (!key.empty() && (compare("Raw profile type exif", key) || compare("Raw profile type APP1", key) ||
  ------------------
  |  Branch (654:11): [True: 216, False: 24]
  |  Branch (654:28): [True: 1, False: 215]
  |  Branch (654:69): [True: 4, False: 211]
  ------------------
  655|    211|                           compare("Raw profile type iptc", key) || compare("Raw profile type xmp", key) ||
  ------------------
  |  Branch (655:28): [True: 7, False: 204]
  |  Branch (655:69): [True: 3, False: 201]
  ------------------
  656|    201|                           compare("XML:com.adobe.xmp", key) || compare("Description", key))) {
  ------------------
  |  Branch (656:28): [True: 51, False: 150]
  |  Branch (656:65): [True: 56, False: 94]
  ------------------
  657|       |#ifdef EXIV2_DEBUG_MESSAGES
  658|       |        std::cout << "Exiv2::PngImage::doWriteMetadata: strip " << szChunk << " chunk (length: " << dataOffset << ")"
  659|       |                  << '\n';
  660|       |#endif
  661|    122|      } else {
  662|       |#ifdef EXIV2_DEBUG_MESSAGES
  663|       |        std::cout << "Exiv2::PngImage::doWriteMetadata: write " << szChunk << " chunk (length: " << dataOffset << ")"
  664|       |                  << '\n';
  665|       |#endif
  666|    118|        if (outIo.write(chunkBuf.c_data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (666:13): [True: 0, False: 118]
  ------------------
  667|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  668|    118|      }
  669|  1.53k|    } else {
  670|       |      // Write all others chunk as well.
  671|       |#ifdef EXIV2_DEBUG_MESSAGES
  672|       |      std::cout << "Exiv2::PngImage::doWriteMetadata:  copy " << szChunk << " chunk (length: " << dataOffset << ")"
  673|       |                << '\n';
  674|       |#endif
  675|  1.53k|      if (outIo.write(chunkBuf.c_data(), chunkBuf.size()) != chunkBuf.size())
  ------------------
  |  Branch (675:11): [True: 0, False: 1.53k]
  ------------------
  676|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  677|  1.53k|    }
  678|  2.00k|  }
  679|       |
  680|    243|}  // PngImage::doWriteMetadata
_ZN5Exiv214newPngInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  684|    841|Image::UniquePtr newPngInstance(BasicIo::UniquePtr io, bool create) {
  685|    841|  auto image = std::make_unique<PngImage>(std::move(io), create);
  686|    841|  if (!image->good()) {
  ------------------
  |  Branch (686:7): [True: 0, False: 841]
  ------------------
  687|      0|    return nullptr;
  688|      0|  }
  689|    841|  return image;
  690|    841|}
_ZN5Exiv29isPngTypeERNS_7BasicIoEb:
  692|  17.1k|bool isPngType(BasicIo& iIo, bool advance) {
  693|  17.1k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (693:7): [True: 0, False: 17.1k]
  |  Branch (693:22): [True: 124, False: 17.0k]
  ------------------
  694|    124|    throw Error(ErrorCode::kerInputDataReadFailed);
  695|    124|  }
  696|  17.0k|  const int32_t len = 8;
  697|  17.0k|  std::array<byte, len> buf;
  698|  17.0k|  iIo.read(buf.data(), len);
  699|  17.0k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (699:7): [True: 0, False: 17.0k]
  |  Branch (699:22): [True: 0, False: 17.0k]
  ------------------
  700|      0|    return false;
  701|      0|  }
  702|  17.0k|  bool rc = buf == pngSignature;
  703|  17.0k|  if (!advance || !rc) {
  ------------------
  |  Branch (703:7): [True: 14.2k, False: 2.80k]
  |  Branch (703:19): [True: 0, False: 2.80k]
  ------------------
  704|  14.2k|    iIo.seek(-len, BasicIo::cur);
  705|  14.2k|  }
  706|       |
  707|  17.0k|  return rc;
  708|  17.0k|}
pngimage.cpp:_ZN5Exiv2L5findiERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_:
  176|  16.2k|static std::string::size_type findi(const std::string& str, const std::string& substr) {
  177|  16.2k|  return str.find(substr);
  178|  16.2k|}
pngimage.cpp:_ZN5Exiv2L13tEXtToDataBufEPKhmRNS_7DataBufE:
  124|     91|static bool tEXtToDataBuf(const byte* bytes, size_t length, DataBuf& result) {
  125|     91|  static std::array<int, 256> value;
  126|     91|  static bool bFirst = true;
  127|     91|  if (bFirst) {
  ------------------
  |  Branch (127:7): [True: 1, False: 90]
  ------------------
  128|      1|    value.fill(0);
  129|     11|    for (int i = 0; i < 10; i++) {
  ------------------
  |  Branch (129:21): [True: 10, False: 1]
  ------------------
  130|     10|      value['0' + i] = i + 1;
  131|     10|    }
  132|      7|    for (int i = 0; i < 6; i++) {
  ------------------
  |  Branch (132:21): [True: 6, False: 1]
  ------------------
  133|      6|      value['a' + i] = i + 10 + 1;
  134|      6|      value['A' + i] = i + 10 + 1;
  135|      6|    }
  136|      1|    bFirst = false;
  137|      1|  }
  138|       |
  139|       |  // calculate length and allocate result;
  140|       |  // count: number of \n in the header
  141|     91|  size_t count = 0;
  142|       |  // p points to the current position in the array bytes
  143|     91|  const byte* p = bytes;
  144|       |
  145|       |  // header is '\nsomething\n number\n hex'
  146|       |  // => increment p until it points to the byte after the last \n
  147|       |  //    p must stay within bounds of the bytes array!
  148|  5.72k|  while (count < 3 && 0 < length) {
  ------------------
  |  Branch (148:10): [True: 5.68k, False: 41]
  |  Branch (148:23): [True: 5.63k, False: 50]
  ------------------
  149|       |    // length is later used for range checks of p => decrement it for each increment of p
  150|  5.63k|    --length;
  151|  5.63k|    if (*p++ == '\n') {
  ------------------
  |  Branch (151:9): [True: 137, False: 5.49k]
  ------------------
  152|    137|      count++;
  153|    137|    }
  154|  5.63k|  }
  155|  18.0k|  for (size_t i = 0; i < length; i++)
  ------------------
  |  Branch (155:22): [True: 17.9k, False: 91]
  ------------------
  156|  17.9k|    if (value[p[i]])
  ------------------
  |  Branch (156:9): [True: 3.24k, False: 14.6k]
  ------------------
  157|  3.24k|      ++count;
  158|     91|  result.alloc((count + 1) / 2);
  159|       |
  160|       |  // hex to binary
  161|     91|  count = 0;
  162|     91|  byte* r = result.data();
  163|     91|  int n = 0;  // nibble
  164|  18.0k|  for (size_t i = 0; i < length; i++) {
  ------------------
  |  Branch (164:22): [True: 17.9k, False: 91]
  ------------------
  165|  17.9k|    if (value[p[i]]) {
  ------------------
  |  Branch (165:9): [True: 3.24k, False: 14.6k]
  ------------------
  166|  3.24k|      int v = value[p[i]] - 1;
  167|  3.24k|      if (++count % 2)
  ------------------
  |  Branch (167:11): [True: 1.63k, False: 1.61k]
  ------------------
  168|  1.63k|        n = v * 16;  // leading digit
  169|  1.61k|      else
  170|  1.61k|        *r++ = n + v;  // trailing
  171|  3.24k|    }
  172|  17.9k|  }
  173|     91|  return true;
  174|     91|}
pngimage.cpp:_ZN5Exiv2L13zlibToDataBufEPKhmRNS_7DataBufE:
   74|    340|static bool zlibToDataBuf(const byte* bytes, uLongf length, DataBuf& result) {
   75|    340|  uLongf uncompressedLen = length;  // just a starting point
   76|    340|  int zlibResult = Z_BUF_ERROR;
   77|       |
   78|    736|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (78:10): [True: 396, False: 340]
  ------------------
   79|    396|    result.alloc(uncompressedLen);
   80|    396|    zlibResult = uncompress(result.data(), &uncompressedLen, bytes, length);
   81|       |    // if result buffer is large than necessary, redo to fit perfectly.
   82|    396|    if (zlibResult == Z_OK && uncompressedLen < result.size()) {
  ------------------
  |  Branch (82:9): [True: 18, False: 378]
  |  Branch (82:31): [True: 18, False: 0]
  ------------------
   83|     18|      result.reset();
   84|       |
   85|     18|      result.alloc(uncompressedLen);
   86|     18|      zlibResult = uncompress(result.data(), &uncompressedLen, bytes, length);
   87|     18|    }
   88|    396|    if (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (88:9): [True: 56, False: 340]
  ------------------
   89|       |      // the uncompressed buffer needs to be larger
   90|     56|      result.reset();
   91|       |
   92|       |      // Sanity - never bigger than 16mb
   93|     56|      if (uncompressedLen > 16 * 1024 * 1024)
  ------------------
  |  Branch (93:11): [True: 0, False: 56]
  ------------------
   94|      0|        zlibResult = Z_DATA_ERROR;
   95|     56|      else
   96|     56|        uncompressedLen *= 2;
   97|     56|    }
   98|    396|  }
   99|       |
  100|       |  return zlibResult == Z_OK;
  101|    340|}
pngimage.cpp:_ZN5Exiv2L9readChunkERNS_7DataBufERNS_7BasicIoE:
  379|  93.9k|static void readChunk(DataBuf& buffer, BasicIo& io) {
  380|       |#ifdef EXIV2_DEBUG_MESSAGES
  381|       |  std::cout << "Exiv2::PngImage::readMetadata: Position: " << io.tell() << '\n';
  382|       |#endif
  383|  93.9k|  const size_t bufRead = io.read(buffer.data(), buffer.size());
  384|  93.9k|  if (io.error()) {
  ------------------
  |  Branch (384:7): [True: 0, False: 93.9k]
  ------------------
  385|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  386|      0|  }
  387|  93.9k|  if (bufRead != buffer.size()) {
  ------------------
  |  Branch (387:7): [True: 50, False: 93.9k]
  ------------------
  388|     50|    throw Error(ErrorCode::kerInputDataReadFailed);
  389|     50|  }
  390|  93.9k|}
pngimage.cpp:_ZN5Exiv2L16zlibToCompressedEPKhmRNS_7DataBufE:
  103|     39|static bool zlibToCompressed(const byte* bytes, uLongf length, DataBuf& result) {
  104|     39|  uLongf compressedLen = length;  // just a starting point
  105|     39|  int zlibResult = Z_BUF_ERROR;
  106|       |
  107|    150|  while (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (107:10): [True: 111, False: 39]
  ------------------
  108|    111|    result.alloc(compressedLen);
  109|    111|    zlibResult = compress(result.data(), &compressedLen, bytes, length);
  110|    111|    if (zlibResult == Z_BUF_ERROR) {
  ------------------
  |  Branch (110:9): [True: 72, False: 39]
  ------------------
  111|       |      // the compressedArray needs to be larger
  112|     72|      result.reset();
  113|     72|      compressedLen *= 2;
  114|     72|    } else {
  115|     39|      result.reset();
  116|     39|      result.alloc(compressedLen);
  117|     39|      zlibResult = compress(result.data(), &compressedLen, bytes, length);
  118|     39|    }
  119|    111|  }
  120|       |
  121|       |  return zlibResult == Z_OK;
  122|     39|}
pngimage.cpp:_ZN12_GLOBAL__N_17compareENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEERKN5Exiv27DataBufE:
   44|  1.19k|bool compare(std::string_view str, const Exiv2::DataBuf& buf) {
   45|  1.19k|  const auto minlen = std::min<size_t>(str.size(), buf.size());
   46|  1.19k|  return buf.cmpBytes(0, str.data(), minlen) == 0;
   47|  1.19k|}

_ZN5Exiv212PreviewImageC2ENS_17PreviewPropertiesEONS_7DataBufE:
  953|    468|    properties_(std::move(properties)), preview_(std::move(data)) {
  954|    468|}
_ZNK5Exiv212PreviewImage5pDataEv:
  980|    468|const byte* PreviewImage::pData() const {
  981|    468|  return preview_.c_data();
  982|    468|}
_ZNK5Exiv212PreviewImage4sizeEv:
  984|    468|uint32_t PreviewImage::size() const {
  985|    468|  return static_cast<uint32_t>(preview_.size());
  986|    468|}
_ZN5Exiv214PreviewManagerC2ERKNS_5ImageE:
 1008|  2.28k|PreviewManager::PreviewManager(const Image& image) : image_(image) {
 1009|  2.28k|}
_ZNK5Exiv214PreviewManager20getPreviewPropertiesEv:
 1011|  2.28k|PreviewPropertiesList PreviewManager::getPreviewProperties() const {
 1012|  2.28k|  PreviewPropertiesList list;
 1013|       |  // go through the loader table and store all successfully created loaders in the list
 1014|  78.8k|  for (PreviewId id = 0; id < Loader::getNumLoaders(); ++id) {
  ------------------
  |  Branch (1014:26): [True: 76.6k, False: 2.28k]
  ------------------
 1015|  76.6k|    auto loader = Loader::create(id, image_);
 1016|  76.6k|    if (loader && loader->readDimensions()) {
  ------------------
  |  Branch (1016:9): [True: 4.77k, False: 71.8k]
  |  Branch (1016:19): [True: 3.21k, False: 1.55k]
  ------------------
 1017|  3.21k|      PreviewProperties props = loader->getProperties();
 1018|  3.21k|      DataBuf buf = loader->getData();  // #16 getPreviewImage()
 1019|  3.21k|      props.size_ = buf.size();         //     update the size
 1020|  3.21k|      list.push_back(std::move(props));
 1021|  3.21k|    }
 1022|  76.6k|  }
 1023|  2.28k|  std::sort(list.begin(), list.end(),
 1024|  2.28k|            [](const auto& lhs, const auto& rhs) { return lhs.width_ * lhs.height_ < rhs.width_ * rhs.height_; });
 1025|       |
 1026|  2.28k|  return list;
 1027|  2.28k|}
_ZNK5Exiv214PreviewManager15getPreviewImageERKNS_17PreviewPropertiesE:
 1029|    468|PreviewImage PreviewManager::getPreviewImage(const PreviewProperties& properties) const {
 1030|    468|  auto loader = Loader::create(properties.id_, image_);
 1031|    468|  DataBuf buf;
 1032|    468|  if (loader) {
  ------------------
  |  Branch (1032:7): [True: 468, False: 0]
  ------------------
 1033|    468|    buf = loader->getData();
 1034|    468|  }
 1035|       |
 1036|    468|  return {properties, std::move(buf)};
 1037|    468|}
preview.cpp:_ZN12_GLOBAL__N_16Loader13getNumLoadersEv:
  341|   155k|PreviewId Loader::getNumLoaders() {
  342|   155k|  return PreviewId{std::size(loaderList_)};
  343|   155k|}
preview.cpp:_ZN12_GLOBAL__N_118createLoaderNativeEiRKN5Exiv25ImageEi:
  359|  9.12k|Loader::UniquePtr createLoaderNative(PreviewId id, const Image& image, int parIdx) {
  360|  9.12k|  return std::make_unique<LoaderNative>(id, image, parIdx);
  361|  9.12k|}
preview.cpp:_ZN12_GLOBAL__N_112LoaderNativeC2EiRKN5Exiv25ImageEi:
  345|  9.12k|LoaderNative::LoaderNative(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  346|  9.12k|  if (0 > parIdx || static_cast<size_t>(parIdx) >= image.nativePreviews().size())
  ------------------
  |  Branch (346:7): [True: 0, False: 9.12k]
  |  Branch (346:21): [True: 9.12k, False: 0]
  ------------------
  347|  9.12k|    return;
  348|      0|  nativePreview_ = image.nativePreviews()[parIdx];
  349|      0|  width_ = nativePreview_.width_;
  350|      0|  height_ = nativePreview_.height_;
  351|      0|  valid_ = true;
  352|      0|  if (nativePreview_.filter_.empty()) {
  ------------------
  |  Branch (352:7): [True: 0, False: 0]
  ------------------
  353|      0|    size_ = nativePreview_.size_;
  354|      0|  } else {
  355|      0|    size_ = getData().size();
  356|      0|  }
  357|      0|}
preview.cpp:_ZN12_GLOBAL__N_16LoaderC2EiRKN5Exiv25ImageE:
  334|  72.6k|Loader::Loader(PreviewId id, const Image& image) : id_(id), image_(image) {
  335|  72.6k|}
preview.cpp:_ZNK12_GLOBAL__N_16Loader13getPropertiesEv:
  337|  3.21k|PreviewProperties Loader::getProperties() const {
  338|  3.21k|  return {"", "", size_, width_, height_, id_};
  339|  3.21k|}
preview.cpp:_ZN12_GLOBAL__N_16Loader14readDimensionsEv:
   68|  2.40k|  virtual bool readDimensions() {
   69|  2.40k|    return true;
   70|  2.40k|  }
preview.cpp:_ZN12_GLOBAL__N_16LoaderD2Ev:
   45|  72.6k|  virtual ~Loader() = default;
preview.cpp:_ZNK12_GLOBAL__N_16Loader5validEv:
   57|  76.1k|  [[nodiscard]] virtual bool valid() const {
   58|  76.1k|    return valid_;
   59|  76.1k|  }
preview.cpp:_ZN12_GLOBAL__N_124createLoaderExifDataJpegEiRKN5Exiv25ImageEi:
  552|  27.3k|Loader::UniquePtr createLoaderExifDataJpeg(PreviewId id, const Image& image, int parIdx) {
  553|  27.3k|  return std::make_unique<LoaderExifDataJpeg>(id, image, parIdx);
  554|  27.3k|}
preview.cpp:_ZN12_GLOBAL__N_118LoaderExifDataJpegC2EiRKN5Exiv25ImageEi:
  539|  27.3k|    Loader(id, image), dataKey_(param_[parIdx].dataKey_) {
  540|  27.3k|  if (auto pos = image_.exifData().findKey(dataKey_); pos != image_.exifData().end()) {
  ------------------
  |  Branch (540:55): [True: 33, False: 27.3k]
  ------------------
  541|     33|    size_ = pos->sizeDataArea();  // indirect data
  542|     33|    if (size_ == 0 && pos->typeId() == undefined)
  ------------------
  |  Branch (542:9): [True: 33, False: 0]
  |  Branch (542:23): [True: 8, False: 25]
  ------------------
  543|      8|      size_ = pos->size();  // direct data
  544|     33|  }
  545|       |
  546|  27.3k|  if (size_ == 0)
  ------------------
  |  Branch (546:7): [True: 27.3k, False: 8]
  ------------------
  547|  27.3k|    return;
  548|       |
  549|      8|  valid_ = true;
  550|      8|}
preview.cpp:_ZNK12_GLOBAL__N_118LoaderExifDataJpeg13getPropertiesEv:
  556|      2|PreviewProperties LoaderExifDataJpeg::getProperties() const {
  557|      2|  PreviewProperties prop = Loader::getProperties();
  558|      2|  prop.mimeType_ = "image/jpeg";
  559|      2|  prop.extension_ = ".jpg";
  560|      2|  return prop;
  561|      2|}
preview.cpp:_ZNK12_GLOBAL__N_118LoaderExifDataJpeg7getDataEv:
  563|     10|DataBuf LoaderExifDataJpeg::getData() const {
  564|     10|  DataBuf buf;
  565|       |
  566|     10|  if (!valid())
  ------------------
  |  Branch (566:7): [True: 0, False: 10]
  ------------------
  567|      0|    return buf;
  568|       |
  569|     10|  if (auto pos = image_.exifData().findKey(dataKey_); pos != image_.exifData().end()) {
  ------------------
  |  Branch (569:55): [True: 10, False: 0]
  ------------------
  570|     10|    buf = pos->dataArea();  // indirect data
  571|       |
  572|     10|    if (buf.empty()) {  // direct data
  ------------------
  |  Branch (572:9): [True: 10, False: 0]
  ------------------
  573|     10|      buf = DataBuf(pos->size());
  574|     10|      pos->copy(buf.data(), invalidByteOrder);
  575|     10|    }
  576|       |
  577|     10|    buf.write_uint8(0, 0xff);  // fix Minolta thumbnails with invalid jpeg header
  578|     10|    return buf;
  579|     10|  }
  580|       |
  581|      0|  return buf;
  582|     10|}
preview.cpp:_ZN12_GLOBAL__N_118LoaderExifDataJpeg14readDimensionsEv:
  584|      6|bool LoaderExifDataJpeg::readDimensions() {
  585|      6|  if (!valid())
  ------------------
  |  Branch (585:7): [True: 0, False: 6]
  ------------------
  586|      0|    return false;
  587|       |
  588|      6|  DataBuf buf = getData();
  589|      6|  if (buf.empty())
  ------------------
  |  Branch (589:7): [True: 0, False: 6]
  ------------------
  590|      0|    return false;
  591|       |
  592|      6|  try {
  593|      6|    auto image = ImageFactory::open(buf.c_data(), buf.size());
  594|      6|    if (!image)
  ------------------
  |  Branch (594:9): [True: 0, False: 6]
  ------------------
  595|      0|      return false;
  596|      6|    image->readMetadata();
  597|       |
  598|      6|    width_ = image->pixelWidth();
  599|      6|    height_ = image->pixelHeight();
  600|      6|  } catch (const Error& /* error */) {
  601|      4|    return false;
  602|      4|  }
  603|       |
  604|      2|  return true;
  605|      6|}
preview.cpp:_ZN12_GLOBAL__N_116createLoaderTiffEiRKN5Exiv25ImageEi:
  665|  15.8k|Loader::UniquePtr createLoaderTiff(PreviewId id, const Image& image, int parIdx) {
  666|  15.8k|  return std::make_unique<LoaderTiff>(id, image, parIdx);
  667|  15.8k|}
preview.cpp:_ZN12_GLOBAL__N_110LoaderTiffC2EiRKN5Exiv25ImageEi:
  608|  15.8k|    Loader(id, image), group_(param_[parIdx].group_) {
  609|  15.8k|  const ExifData& exifData = image_.exifData();
  610|       |
  611|  15.8k|  size_t offsetCount = 0;
  612|  15.8k|  ExifData::const_iterator pos;
  613|       |
  614|       |  // check if the group_ contains a preview image
  615|  15.8k|  if (param_[parIdx].checkTag_) {
  ------------------
  |  Branch (615:7): [True: 13.6k, False: 2.22k]
  ------------------
  616|  13.6k|    pos = exifData.findKey(ExifKey(param_[parIdx].checkTag_));
  617|  13.6k|    if (pos == exifData.end())
  ------------------
  |  Branch (617:9): [True: 10.3k, False: 3.24k]
  ------------------
  618|  10.3k|      return;
  619|  3.24k|    if (param_[parIdx].checkValue_ && pos->toString() != param_[parIdx].checkValue_)
  ------------------
  |  Branch (619:9): [True: 3.24k, False: 0]
  |  Branch (619:9): [True: 268, False: 2.97k]
  |  Branch (619:39): [True: 268, False: 2.97k]
  ------------------
  620|    268|      return;
  621|  3.24k|  }
  622|       |
  623|  5.20k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".StripOffsets"));
  624|  5.20k|  if (pos != exifData.end()) {
  ------------------
  |  Branch (624:7): [True: 2.78k, False: 2.41k]
  ------------------
  625|  2.78k|    offsetTag_ = "StripOffsets";
  626|  2.78k|    sizeTag_ = "StripByteCounts";
  627|  2.78k|    offsetCount = pos->value().count();
  628|  2.78k|  } else {
  629|  2.41k|    pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".TileOffsets"));
  630|  2.41k|    if (pos == exifData.end())
  ------------------
  |  Branch (630:9): [True: 2.29k, False: 115]
  ------------------
  631|  2.29k|      return;
  632|    115|    offsetTag_ = "TileOffsets";
  633|    115|    sizeTag_ = "TileByteCounts";
  634|    115|    offsetCount = pos->value().count();
  635|    115|  }
  636|       |
  637|  2.90k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + '.' + sizeTag_));
  638|  2.90k|  if (pos == exifData.end())
  ------------------
  |  Branch (638:7): [True: 95, False: 2.80k]
  ------------------
  639|     95|    return;
  640|  2.80k|  if (offsetCount != pos->value().count())
  ------------------
  |  Branch (640:7): [True: 34, False: 2.77k]
  ------------------
  641|     34|    return;
  642|  7.18k|  for (size_t i = 0; i < offsetCount; i++) {
  ------------------
  |  Branch (642:22): [True: 4.40k, False: 2.77k]
  ------------------
  643|  4.40k|    size_ += pos->toUint32(i);
  644|  4.40k|  }
  645|       |
  646|  2.77k|  if (size_ == 0)
  ------------------
  |  Branch (646:7): [True: 41, False: 2.73k]
  ------------------
  647|     41|    return;
  648|       |
  649|  2.73k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".ImageWidth"));
  650|  2.73k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (650:7): [True: 2.70k, False: 24]
  |  Branch (650:7): [True: 2.61k, False: 121]
  |  Branch (650:32): [True: 2.61k, False: 97]
  ------------------
  651|  2.61k|    width_ = pos->toUint32();
  652|  2.61k|  }
  653|       |
  654|  2.73k|  pos = exifData.findKey(ExifKey(std::string("Exif.") + group_ + ".ImageLength"));
  655|  2.73k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (655:7): [True: 2.69k, False: 41]
  |  Branch (655:7): [True: 2.64k, False: 91]
  |  Branch (655:32): [True: 2.64k, False: 50]
  ------------------
  656|  2.64k|    height_ = pos->toUint32();
  657|  2.64k|  }
  658|       |
  659|  2.73k|  if (width_ == 0 || height_ == 0)
  ------------------
  |  Branch (659:7): [True: 148, False: 2.58k]
  |  Branch (659:22): [True: 73, False: 2.51k]
  ------------------
  660|    221|    return;
  661|       |
  662|  2.51k|  valid_ = true;
  663|  2.51k|}
preview.cpp:_ZNK12_GLOBAL__N_110LoaderTiff13getPropertiesEv:
  669|  2.40k|PreviewProperties LoaderTiff::getProperties() const {
  670|  2.40k|  PreviewProperties prop = Loader::getProperties();
  671|  2.40k|  prop.mimeType_ = "image/tiff";
  672|  2.40k|  prop.extension_ = ".tif";
  673|  2.40k|  return prop;
  674|  2.40k|}
preview.cpp:_ZNK12_GLOBAL__N_110LoaderTiff7getDataEv:
  676|  2.51k|DataBuf LoaderTiff::getData() const {
  677|  2.51k|  const ExifData& exifData = image_.exifData();
  678|       |
  679|  2.51k|  ExifData preview;
  680|       |
  681|       |  // copy tags
  682|   658k|  for (auto&& pos : exifData) {
  ------------------
  |  Branch (682:19): [True: 658k, False: 2.51k]
  ------------------
  683|   658k|    if (pos.groupName() == group_) {
  ------------------
  |  Branch (683:9): [True: 148k, False: 510k]
  ------------------
  684|       |      /*
  685|       |         Write only the necessary TIFF image tags
  686|       |         tags that especially could cause problems are:
  687|       |         "NewSubfileType" - the result is no longer a thumbnail, it is a standalone image
  688|       |         "Orientation" - this tag typically appears only in the "Image" group. Deleting it ensures
  689|       |                         consistent result for all previews, including JPEG
  690|       |      */
  691|   148k|      uint16_t tag = pos.tag();
  692|   148k|      if (tag != 0x00fe && tag != 0x00ff && Internal::isTiffImageTag(tag, IfdId::ifd0Id)) {
  ------------------
  |  Branch (692:11): [True: 145k, False: 2.70k]
  |  Branch (692:28): [True: 144k, False: 958]
  |  Branch (692:45): [True: 76.9k, False: 67.5k]
  ------------------
  693|  76.9k|        preview.add(ExifKey(tag, "Image"), &pos.value());
  694|  76.9k|      }
  695|   148k|    }
  696|   658k|  }
  697|       |
  698|  2.51k|  auto& dataValue = const_cast<Value&>(preview["Exif.Image." + offsetTag_].value());
  699|       |
  700|  2.51k|  if (dataValue.sizeDataArea() == 0) {
  ------------------
  |  Branch (700:7): [True: 2.51k, False: 0]
  ------------------
  701|       |    // image data are not available via exifData, read them from image_.io()
  702|  2.51k|    BasicIo& io = image_.io();
  703|       |
  704|  2.51k|    if (io.open() != 0) {
  ------------------
  |  Branch (704:9): [True: 0, False: 2.51k]
  ------------------
  705|      0|      throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  706|      0|    }
  707|  2.51k|    IoCloser closer(io);
  708|       |
  709|  2.51k|    const Exiv2::byte* base = io.mmap();
  710|       |
  711|  2.51k|    const Value& sizes = preview["Exif.Image." + sizeTag_].value();
  712|       |
  713|  2.51k|    if (sizes.count() == dataValue.count()) {
  ------------------
  |  Branch (713:9): [True: 2.51k, False: 0]
  ------------------
  714|  2.51k|      if (sizes.count() == 1) {
  ------------------
  |  Branch (714:11): [True: 2.41k, False: 97]
  ------------------
  715|       |        // this saves one copying of the buffer
  716|  2.41k|        uint32_t offset = dataValue.toUint32(0);
  717|  2.41k|        uint32_t size = sizes.toUint32(0);
  718|  2.41k|        if (Safe::add(offset, size) <= static_cast<uint32_t>(io.size()))
  ------------------
  |  Branch (718:13): [True: 1.30k, False: 1.10k]
  ------------------
  719|  1.30k|          dataValue.setDataArea(base + offset, size);
  720|  2.41k|      } else {
  721|       |        // FIXME: the buffer is probably copied twice, it should be optimized
  722|     97|        Internal::enforce(size_ <= io.size(), ErrorCode::kerCorruptedMetadata);
  723|     97|        DataBuf buf(size_);
  724|     97|        uint32_t idxBuf = 0;
  725|  1.25k|        for (size_t i = 0; i < sizes.count(); i++) {
  ------------------
  |  Branch (725:28): [True: 1.15k, False: 97]
  ------------------
  726|  1.15k|          uint32_t offset = dataValue.toUint32(i);
  727|  1.15k|          uint32_t size = sizes.toUint32(i);
  728|       |
  729|       |          // the size_ parameter is originally computed by summing all values inside sizes
  730|       |          // see the constructor of LoaderTiff
  731|       |          // But e.g in malicious files some of these values could be negative
  732|       |          // That's why we check again for each step here to really make sure we don't overstep
  733|  1.15k|          Internal::enforce(Safe::add(idxBuf, size) <= size_, ErrorCode::kerCorruptedMetadata);
  734|  1.15k|          if (size != 0 && Safe::add(offset, size) <= static_cast<uint32_t>(io.size())) {
  ------------------
  |  Branch (734:15): [True: 658, False: 501]
  |  Branch (734:28): [True: 292, False: 366]
  ------------------
  735|    292|            std::copy_n(base + offset, size, buf.begin() + idxBuf);
  736|    292|          }
  737|       |
  738|  1.15k|          idxBuf += size;
  739|  1.15k|        }
  740|     97|        dataValue.setDataArea(buf.c_data(), buf.size());
  741|     97|      }
  742|  2.51k|    }
  743|  2.51k|  }
  744|       |
  745|       |  // Fix compression value in the CR2 IFD2 image
  746|  2.51k|  if (0 == strcmp(group_, "Image2") && image_.mimeType() == "image/x-canon-cr2") {
  ------------------
  |  Branch (746:7): [True: 0, False: 2.51k]
  |  Branch (746:7): [True: 0, False: 2.51k]
  |  Branch (746:40): [True: 0, False: 0]
  ------------------
  747|      0|    preview["Exif.Image.Compression"] = std::uint16_t{1};
  748|      0|  }
  749|       |
  750|       |  // write new image
  751|  2.51k|  MemIo mio;
  752|  2.51k|  IptcData emptyIptc;
  753|  2.51k|  XmpData emptyXmp;
  754|  2.51k|  TiffParser::encode(mio, nullptr, 0, Exiv2::littleEndian, preview, emptyIptc, emptyXmp);
  755|  2.51k|  return {mio.mmap(), mio.size()};
  756|  2.51k|}
preview.cpp:_ZN12_GLOBAL__N_120createLoaderExifJpegEiRKN5Exiv25ImageEi:
  480|  18.1k|Loader::UniquePtr createLoaderExifJpeg(PreviewId id, const Image& image, int parIdx) {
  481|  18.1k|  return std::make_unique<LoaderExifJpeg>(id, image, parIdx);
  482|  18.1k|}
preview.cpp:_ZN12_GLOBAL__N_114LoaderExifJpegC2EiRKN5Exiv25ImageEi:
  451|  18.1k|LoaderExifJpeg::LoaderExifJpeg(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  452|  18.1k|  const ExifData& exifData = image_.exifData();
  453|  18.1k|  auto pos = exifData.findKey(ExifKey(param_[parIdx].offsetKey_));
  454|  18.1k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (454:7): [True: 4.78k, False: 13.3k]
  |  Branch (454:7): [True: 3.04k, False: 15.0k]
  |  Branch (454:32): [True: 3.04k, False: 1.74k]
  ------------------
  455|  3.04k|    offset_ = pos->toUint32();
  456|  3.04k|  }
  457|       |
  458|  18.1k|  size_ = 0;
  459|  18.1k|  pos = exifData.findKey(ExifKey(param_[parIdx].sizeKey_));
  460|  18.1k|  if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (460:7): [True: 4.72k, False: 13.3k]
  |  Branch (460:7): [True: 3.02k, False: 15.0k]
  |  Branch (460:32): [True: 3.02k, False: 1.69k]
  ------------------
  461|  3.02k|    size_ = pos->toUint32();
  462|  3.02k|  }
  463|       |
  464|  18.1k|  if (offset_ == 0 || size_ == 0)
  ------------------
  |  Branch (464:7): [True: 15.1k, False: 2.99k]
  |  Branch (464:23): [True: 170, False: 2.82k]
  ------------------
  465|  15.2k|    return;
  466|       |
  467|  2.82k|  if (param_[parIdx].baseOffsetKey_) {
  ------------------
  |  Branch (467:7): [True: 0, False: 2.82k]
  ------------------
  468|      0|    pos = exifData.findKey(ExifKey(param_[parIdx].baseOffsetKey_));
  469|      0|    if (pos != exifData.end() && pos->count() > 0) {
  ------------------
  |  Branch (469:9): [True: 0, False: 0]
  |  Branch (469:9): [True: 0, False: 0]
  |  Branch (469:34): [True: 0, False: 0]
  ------------------
  470|      0|      offset_ += pos->toUint32();
  471|      0|    }
  472|      0|  }
  473|       |
  474|  2.82k|  if (Safe::add(offset_, size_) > image_.io().size())
  ------------------
  |  Branch (474:7): [True: 106, False: 2.71k]
  ------------------
  475|    106|    return;
  476|       |
  477|  2.71k|  valid_ = true;
  478|  2.71k|}
preview.cpp:_ZNK12_GLOBAL__N_114LoaderExifJpeg13getPropertiesEv:
  484|    812|PreviewProperties LoaderExifJpeg::getProperties() const {
  485|    812|  PreviewProperties prop = Loader::getProperties();
  486|    812|  prop.mimeType_ = "image/jpeg";
  487|    812|  prop.extension_ = ".jpg";
  488|    812|  return prop;
  489|    812|}
preview.cpp:_ZNK12_GLOBAL__N_114LoaderExifJpeg7getDataEv:
  491|  1.16k|DataBuf LoaderExifJpeg::getData() const {
  492|  1.16k|  if (!valid())
  ------------------
  |  Branch (492:7): [True: 0, False: 1.16k]
  ------------------
  493|      0|    return {};
  494|  1.16k|  BasicIo& io = image_.io();
  495|       |
  496|  1.16k|  if (io.open() != 0) {
  ------------------
  |  Branch (496:7): [True: 0, False: 1.16k]
  ------------------
  497|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  498|      0|  }
  499|  1.16k|  IoCloser closer(io);
  500|       |
  501|  1.16k|  const Exiv2::byte* base = io.mmap();
  502|       |
  503|  1.16k|  return {base + offset_, size_};
  504|  1.16k|}
preview.cpp:_ZN12_GLOBAL__N_114LoaderExifJpeg14readDimensionsEv:
  506|  2.36k|bool LoaderExifJpeg::readDimensions() {
  507|  2.36k|  if (!valid())
  ------------------
  |  Branch (507:7): [True: 0, False: 2.36k]
  ------------------
  508|      0|    return false;
  509|  2.36k|  if (width_ || height_)
  ------------------
  |  Branch (509:7): [True: 0, False: 2.36k]
  |  Branch (509:17): [True: 0, False: 2.36k]
  ------------------
  510|      0|    return true;
  511|       |
  512|  2.36k|  BasicIo& io = image_.io();
  513|       |
  514|  2.36k|  if (io.open() != 0) {
  ------------------
  |  Branch (514:7): [True: 0, False: 2.36k]
  ------------------
  515|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io.path(), strError());
  516|      0|  }
  517|  2.36k|  IoCloser closer(io);
  518|  2.36k|  const Exiv2::byte* base = io.mmap();
  519|       |
  520|  2.36k|  try {
  521|  2.36k|    auto image = ImageFactory::open(base + offset_, size_);
  522|  2.36k|    if (!image)
  ------------------
  |  Branch (522:9): [True: 0, False: 2.36k]
  ------------------
  523|      0|      return false;
  524|  2.36k|    image->readMetadata();
  525|       |
  526|  2.36k|    width_ = image->pixelWidth();
  527|  2.36k|    height_ = image->pixelHeight();
  528|  2.36k|  } catch (const Error& /* error */) {
  529|  1.54k|#ifndef SUPPRESS_WARNINGS
  530|  1.54k|    EXV_WARNING << "Invalid JPEG preview image.\n";
  ------------------
  |  |  138|  1.54k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.54k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.54k|  LogMsg(LogMsg::warn).os()
  ------------------
  531|  1.54k|#endif
  532|  1.54k|    return false;
  533|  1.54k|  }
  534|       |
  535|    812|  return true;
  536|  2.36k|}
preview.cpp:_ZN12_GLOBAL__N_119createLoaderXmpJpegEiRKN5Exiv25ImageEi:
  791|  2.21k|Loader::UniquePtr createLoaderXmpJpeg(PreviewId id, const Image& image, int parIdx) {
  792|  2.21k|  return std::make_unique<LoaderXmpJpeg>(id, image, parIdx);
  793|  2.21k|}
preview.cpp:_ZN12_GLOBAL__N_113LoaderXmpJpegC2EiRKN5Exiv25ImageEi:
  758|  2.21k|LoaderXmpJpeg::LoaderXmpJpeg(PreviewId id, const Image& image, int parIdx) : Loader(id, image) {
  759|  2.21k|  (void)parIdx;
  760|       |
  761|  2.21k|  const XmpData& xmpData = image_.xmpData();
  762|       |
  763|  2.21k|  std::string prefix = "xmpGImg";
  764|  2.21k|  if (xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/xapGImg:image")) != xmpData.end()) {
  ------------------
  |  Branch (764:7): [True: 0, False: 2.21k]
  ------------------
  765|      0|    prefix = "xapGImg";
  766|      0|  }
  767|       |
  768|  2.21k|  auto imageDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":image"));
  769|  2.21k|  if (imageDatum == xmpData.end())
  ------------------
  |  Branch (769:7): [True: 2.21k, False: 0]
  ------------------
  770|  2.21k|    return;
  771|      0|  auto formatDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":format"));
  772|      0|  if (formatDatum == xmpData.end())
  ------------------
  |  Branch (772:7): [True: 0, False: 0]
  ------------------
  773|      0|    return;
  774|      0|  auto widthDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":width"));
  775|      0|  if (widthDatum == xmpData.end())
  ------------------
  |  Branch (775:7): [True: 0, False: 0]
  ------------------
  776|      0|    return;
  777|      0|  auto heightDatum = xmpData.findKey(XmpKey("Xmp.xmp.Thumbnails[1]/" + prefix + ":height"));
  778|      0|  if (heightDatum == xmpData.end())
  ------------------
  |  Branch (778:7): [True: 0, False: 0]
  ------------------
  779|      0|    return;
  780|       |
  781|      0|  if (formatDatum->toString() != "JPEG")
  ------------------
  |  Branch (781:7): [True: 0, False: 0]
  ------------------
  782|      0|    return;
  783|       |
  784|      0|  width_ = widthDatum->toUint32();
  785|      0|  height_ = heightDatum->toUint32();
  786|      0|  preview_ = decodeBase64(imageDatum->toString());
  787|      0|  size_ = preview_.size();
  788|      0|  valid_ = true;
  789|      0|}
preview.cpp:_ZN12_GLOBAL__N_16Loader6createEiRKN5Exiv25ImageE:
  319|  77.0k|Loader::UniquePtr Loader::create(PreviewId id, const Image& image) {
  320|  77.0k|  Loader::UniquePtr loader;
  321|  77.0k|  if (id < 0 || id >= Loader::getNumLoaders())
  ------------------
  |  Branch (321:7): [True: 0, False: 77.0k]
  |  Branch (321:17): [True: 0, False: 77.0k]
  ------------------
  322|      0|    return loader;
  323|       |
  324|  77.0k|  if (loaderList_[id].imageMimeType_ && std::string(loaderList_[id].imageMimeType_) != image.mimeType())
  ------------------
  |  Branch (324:7): [True: 6.72k, False: 70.3k]
  |  Branch (324:7): [True: 4.43k, False: 72.6k]
  |  Branch (324:41): [True: 4.43k, False: 2.28k]
  ------------------
  325|  4.43k|    return loader;
  326|       |
  327|  72.6k|  loader = loaderList_[id].create_(id, image, loaderList_[id].parIdx_);
  328|  72.6k|  if (!loader->valid())
  ------------------
  |  Branch (328:7): [True: 67.4k, False: 5.23k]
  ------------------
  329|  67.4k|    loader = nullptr;
  330|       |
  331|  72.6k|  return loader;
  332|  77.0k|}
preview.cpp:_ZZNK5Exiv214PreviewManager20getPreviewPropertiesEvENK3$_0clINS_17PreviewPropertiesES3_EEDaRKT_RKT0_:
 1024|  2.10k|            [](const auto& lhs, const auto& rhs) { return lhs.width_ * lhs.height_ < rhs.width_ * rhs.height_; });

_ZNK5Exiv29XmpNsInfoeqERKNS0_2NsE:
 4939|   103k|bool XmpNsInfo::operator==(const XmpNsInfo::Ns& ns) const {
 4940|   103k|  return ns_ == ns.ns_;
 4941|   103k|}
_ZNK5Exiv29XmpNsInfoeqERKNS0_6PrefixE:
 4943|  58.9M|bool XmpNsInfo::operator==(const XmpNsInfo::Prefix& prefix) const {
 4944|  58.9M|  return prefix_ == prefix.prefix_;
 4945|  58.9M|}
_ZN5Exiv213XmpProperties8getMutexEv:
 4952|  1.98M|std::mutex& XmpProperties::getMutex() {
 4953|  1.98M|  static std::mutex m;
 4954|  1.98M|  return m;
 4955|  1.98M|}
_ZN5Exiv213XmpProperties24lookupNsRegistryUnlockedERKNS_9XmpNsInfo6PrefixERKNS0_7XmpLockE:
 4963|  1.94M|const XmpNsInfo* XmpProperties::lookupNsRegistryUnlocked(const XmpNsInfo::Prefix& prefix, const XmpLock&) {
 4964|  28.7M|  for (const auto& [_, p] : nsRegistry_) {
  ------------------
  |  Branch (4964:27): [True: 28.7M, False: 1.92M]
  ------------------
 4965|  28.7M|    if (p == prefix)
  ------------------
  |  Branch (4965:9): [True: 22.7k, False: 28.7M]
  ------------------
 4966|  22.7k|      return &p;
 4967|  28.7M|  }
 4968|  1.92M|  return nullptr;
 4969|  1.94M|}
_ZN5Exiv213XmpProperties18registerNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS0_7XmpLockE:
 4976|  2.01k|void XmpProperties::registerNsUnlocked(const std::string& ns, const std::string& prefix, const XmpLock& lock) {
 4977|  2.01k|  if (ns.empty())
  ------------------
  |  Branch (4977:7): [True: 0, False: 2.01k]
  ------------------
 4978|      0|    return;
 4979|  2.01k|  std::string ns2 = ns;
 4980|  2.01k|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (4980:7): [True: 1.54k, False: 466]
  |  Branch (4980:28): [True: 1.50k, False: 44]
  ------------------
 4981|  1.50k|    ns2 += '/';
 4982|       |
 4983|       |  // 1. Check if this URI is already registered with this exact prefix
 4984|  2.01k|  auto it = nsRegistry_.find(ns2);
 4985|  2.01k|  if (it != nsRegistry_.end() && std::strcmp(it->second.prefix_, prefix.c_str()) == 0) {
  ------------------
  |  Branch (4985:7): [True: 0, False: 2.01k]
  |  Branch (4985:7): [True: 0, False: 2.01k]
  |  Branch (4985:34): [True: 0, False: 0]
  ------------------
 4986|      0|    return;  // Already registered with this prefix
 4987|      0|  }
 4988|       |
 4989|       |  // 2. Check if this prefix is already registered with a DIFFERENT URI
 4990|  2.01k|  if (auto xnp = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock)) {
  ------------------
  |  Branch (4990:12): [True: 1.99k, False: 17]
  ------------------
 4991|  1.99k|#ifndef SUPPRESS_WARNINGS
 4992|  1.99k|    if (ns2 != xnp->ns_)
  ------------------
  |  Branch (4992:9): [True: 1.99k, False: 0]
  ------------------
 4993|  1.99k|      EXV_WARNING << "Updating namespace URI for " << prefix << " from " << xnp->ns_ << " to " << ns2 << "\n";
  ------------------
  |  |  138|  1.99k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.99k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.99k|  LogMsg(LogMsg::warn).os()
  ------------------
 4994|  1.99k|#endif
 4995|  1.99k|    unregisterNsUnlocked(xnp->ns_, lock);
 4996|  1.99k|  }
 4997|       |
 4998|       |  // 3. Ensure the URI is unregistered if it's currently used with a different prefix
 4999|       |  // (This handles the case where prefix changed for the same URI, preventing memory leak)
 5000|  2.01k|  unregisterNsUnlocked(ns2, lock);
 5001|       |  // Allocated memory is freed when the namespace is unregistered.
 5002|       |  // Using malloc/free for better system compatibility in case
 5003|       |  // users don't unregister their namespaces explicitly.
 5004|  2.01k|  XmpNsInfo xn;
 5005|  2.01k|  auto c = new char[ns2.size() + 1];
 5006|  2.01k|  std::strcpy(c, ns2.c_str());
 5007|  2.01k|  xn.ns_ = c;
 5008|  2.01k|  c = new char[prefix.size() + 1];
 5009|  2.01k|  std::strcpy(c, prefix.c_str());
 5010|  2.01k|  xn.prefix_ = c;
 5011|  2.01k|  xn.xmpPropertyInfo_ = nullptr;
 5012|  2.01k|  xn.desc_ = "";
 5013|  2.01k|  nsRegistry_[ns2] = xn;
 5014|  2.01k|}
_ZN5Exiv213XmpProperties20unregisterNsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5021|  4.00k|void XmpProperties::unregisterNsUnlocked(const std::string& ns, const XmpLock&) {
 5022|  4.00k|  unregisterNsNoLock(ns, LifetimeKey{});
 5023|  4.00k|}
_ZN5Exiv213XmpProperties18unregisterNsNoLockERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS0_11LifetimeKeyE:
 5025|  4.02k|void XmpProperties::unregisterNsNoLock(const std::string& ns, LifetimeKey) {
 5026|  4.02k|  auto i = nsRegistry_.find(ns);
 5027|  4.02k|  if (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5027:7): [True: 2.01k, False: 2.01k]
  ------------------
 5028|  2.01k|    delete[] i->second.prefix_;
 5029|  2.01k|    delete[] i->second.ns_;
 5030|  2.01k|    nsRegistry_.erase(i);
 5031|  2.01k|  }
 5032|  4.02k|}
_ZN5Exiv213XmpProperties21unregisterAllNsNoLockENS0_11LifetimeKeyE:
 5042|      1|void XmpProperties::unregisterAllNsNoLock(LifetimeKey) {
 5043|       |  /// \todo check if we are not unregistering the first NS
 5044|      1|  auto i = nsRegistry_.begin();
 5045|     18|  while (i != nsRegistry_.end()) {
  ------------------
  |  Branch (5045:10): [True: 17, False: 1]
  ------------------
 5046|     17|    auto kill = i++;
 5047|     17|    unregisterNsNoLock(kill->first, LifetimeKey{});
 5048|     17|  }
 5049|      1|}
_ZN5Exiv213XmpProperties14prefixUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5056|  15.8k|std::string XmpProperties::prefixUnlocked(const std::string& ns, const XmpLock&) {
 5057|  15.8k|  std::string ns2 = ns;
 5058|  15.8k|  if (ns2.back() != '/' && ns2.back() != '#')
  ------------------
  |  Branch (5058:7): [True: 10.9k, False: 4.84k]
  |  Branch (5058:28): [True: 10.2k, False: 713]
  ------------------
 5059|  10.2k|    ns2 += '/';
 5060|       |
 5061|  15.8k|  auto i = nsRegistry_.find(ns2);
 5062|  15.8k|  std::string p;
 5063|  15.8k|  if (i != nsRegistry_.end())
  ------------------
  |  Branch (5063:7): [True: 12.5k, False: 3.32k]
  ------------------
 5064|  12.5k|    p = i->second.prefix_;
 5065|  3.32k|  else if (auto xn = Exiv2::find(xmpNsInfo, XmpNsInfo::Ns{std::move(ns2)}))
  ------------------
  |  Branch (5065:17): [True: 1.31k, False: 2.01k]
  ------------------
 5066|  1.31k|    p = std::string(xn->prefix_);
 5067|  15.8k|  return p;
 5068|  15.8k|}
_ZN5Exiv213XmpProperties10nsUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5075|   969k|std::string XmpProperties::nsUnlocked(const std::string& prefix, const XmpLock& lock) {
 5076|   969k|  if (auto xn = lookupNsRegistryUnlocked(XmpNsInfo::Prefix{prefix}, lock))
  ------------------
  |  Branch (5076:12): [True: 20.7k, False: 949k]
  ------------------
 5077|  20.7k|    return xn->ns_;
 5078|   949k|  return nsInfoUnlocked(prefix, lock)->ns_;
 5079|   969k|}
_ZN5Exiv213XmpProperties20propertyTypeUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5106|  22.3k|TypeId XmpProperties::propertyTypeUnlocked(const XmpKey& key, const XmpLock& lock) {
 5107|  22.3k|  const XmpPropertyInfo* pi = propertyInfoUnlocked(key, lock);
 5108|  22.3k|  return pi ? pi->typeId_ : xmpText;
  ------------------
  |  Branch (5108:10): [True: 21.7k, False: 656]
  ------------------
 5109|  22.3k|}
_ZN5Exiv213XmpProperties20propertyInfoUnlockedERKNS_6XmpKeyERKNS0_7XmpLockE:
 5116|  22.3k|const XmpPropertyInfo* XmpProperties::propertyInfoUnlocked(const XmpKey& key, const XmpLock& lock) {
 5117|  22.3k|  std::string prefix = key.groupName();
 5118|  22.3k|  std::string property = key.tagName();
 5119|       |  // If property is a path for a nested property, determines the innermost element
 5120|  22.3k|  if (auto i = property.find_last_of('/'); i != std::string::npos) {
  ------------------
  |  Branch (5120:44): [True: 0, False: 22.3k]
  ------------------
 5121|      0|    i = std::distance(property.begin(), std::find_if(property.begin() + i, property.end(), isalpha));
 5122|      0|    property = property.substr(i);
 5123|      0|    i = property.find_first_of(':');
 5124|      0|    if (i != std::string::npos) {
  ------------------
  |  Branch (5124:9): [True: 0, False: 0]
  ------------------
 5125|      0|      prefix = property.substr(0, i);
 5126|      0|      property = property.substr(i + 1);
 5127|      0|    }
 5128|       |#ifdef EXIV2_DEBUG_MESSAGES
 5129|       |    std::cout << "Nested key: " << key.key() << ", prefix: " << prefix << ", property: " << property << "\n";
 5130|       |#endif
 5131|      0|  }
 5132|  22.3k|  if (auto pl = propertyListUnlocked(prefix, lock)) {
  ------------------
  |  Branch (5132:12): [True: 22.3k, False: 0]
  ------------------
 5133|  3.05M|    for (size_t j = 0; pl[j].name_; ++j) {
  ------------------
  |  Branch (5133:24): [True: 3.05M, False: 656]
  ------------------
 5134|  3.05M|      if (property == pl[j].name_) {
  ------------------
  |  Branch (5134:11): [True: 21.7k, False: 3.03M]
  ------------------
 5135|  21.7k|        return pl + j;
 5136|  21.7k|      }
 5137|  3.05M|    }
 5138|  22.3k|  }
 5139|    656|  return nullptr;
 5140|  22.3k|}
_ZN5Exiv213XmpProperties20propertyListUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5157|  22.3k|const XmpPropertyInfo* XmpProperties::propertyListUnlocked(const std::string& prefix, const XmpLock& lock) {
 5158|  22.3k|  return nsInfoUnlocked(prefix, lock)->xmpPropertyInfo_;
 5159|  22.3k|}
_ZN5Exiv213XmpProperties14nsInfoUnlockedERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS0_7XmpLockE:
 5166|   971k|const XmpNsInfo* XmpProperties::nsInfoUnlocked(const std::string& prefix, const XmpLock& lock) {
 5167|   971k|  const auto pf = XmpNsInfo::Prefix{prefix};
 5168|   971k|  const XmpNsInfo* xn = lookupNsRegistryUnlocked(pf, lock);
 5169|   971k|  if (!xn)
  ------------------
  |  Branch (5169:7): [True: 971k, False: 0]
  ------------------
 5170|   971k|    xn = Exiv2::find(xmpNsInfo, pf);
 5171|   971k|  if (!xn)
  ------------------
  |  Branch (5171:7): [True: 0, False: 971k]
  ------------------
 5172|      0|    throw Error(ErrorCode::kerNoNamespaceInfoForXmpPrefix, prefix);
 5173|   971k|  return xn;
 5174|   971k|}
_ZN5Exiv213XmpProperties13printPropertyERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueE:
 5202|  17.9k|std::ostream& XmpProperties::printProperty(std::ostream& os, const std::string& key, const Value& value) {
 5203|  17.9k|  XmpLock lock;
 5204|  17.9k|  return printPropertyUnlocked(os, key, value, lock);
 5205|  17.9k|}
_ZN5Exiv213XmpProperties21printPropertyUnlockedERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS1_12basic_stringIcS4_NS1_9allocatorIcEEEERKNS_5ValueERKNS0_7XmpLockE:
 5208|  17.9k|                                                   const XmpLock&) {
 5209|  17.9k|  PrintFct fct = printValue;
 5210|  17.9k|  if (value.count() != 0) {
  ------------------
  |  Branch (5210:7): [True: 17.3k, False: 682]
  ------------------
 5211|  17.3k|    if (auto info = Exiv2::find(xmpPrintInfo, key))
  ------------------
  |  Branch (5211:14): [True: 0, False: 17.3k]
  ------------------
 5212|      0|      fct = info->printFct_;
 5213|  17.3k|  }
 5214|  17.9k|  return fct(os, value, nullptr);
 5215|  17.9k|}
_ZN5Exiv26XmpKey4ImplC2ERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEESA_RKNS_13XmpProperties7XmpLockE:
 5245|  10.8k|XmpKey::Impl::Impl(const std::string& prefix, const std::string& property, const XmpProperties::XmpLock& lock) {
 5246|       |  // Validate prefix unlocked (must hold lock)
 5247|  10.8k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5247:7): [True: 0, False: 10.8k]
  ------------------
 5248|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5249|       |
 5250|  10.8k|  property_ = property;
 5251|  10.8k|  prefix_ = prefix;
 5252|  10.8k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 5254|  81.6k|XmpKey::XmpKey(const std::string& key) : p_(std::make_unique<Impl>()) {
 5255|  81.6k|  p_->decomposeKey(key);
 5256|  81.6k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5258|   874k|XmpKey::XmpKey(const std::string& key, const XmpProperties::XmpLock& lock) : p_(std::make_unique<Impl>()) {
 5259|   874k|  p_->decomposeKeyUnlocked(key, lock);
 5260|   874k|}
_ZN5Exiv26XmpKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS_13XmpProperties7XmpLockE:
 5266|  10.8k|    p_(std::make_unique<Impl>(prefix, property, lock)) {
 5267|  10.8k|}
_ZN5Exiv26XmpKeyD2Ev:
 5269|  1.04M|XmpKey::~XmpKey() = default;
_ZN5Exiv26XmpKeyC2ERKS0_:
 5271|  76.8k|XmpKey::XmpKey(const XmpKey& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
 5272|  76.8k|}
_ZNK5Exiv26XmpKey5cloneEv:
 5281|  76.8k|XmpKey::UniquePtr XmpKey::clone() const {
 5282|  76.8k|  return UniquePtr(clone_());
 5283|  76.8k|}
_ZNK5Exiv26XmpKey6clone_Ev:
 5285|  76.8k|XmpKey* XmpKey::clone_() const {
 5286|  76.8k|  return new XmpKey(*this);
 5287|  76.8k|}
_ZNK5Exiv26XmpKey3keyEv:
 5289|  12.8M|std::string XmpKey::key() const {
 5290|  12.8M|  return std::string(Exiv2::XmpKey::Impl::familyName_) + "." + p_->prefix_ + "." + p_->property_;
 5291|  12.8M|}
_ZNK5Exiv26XmpKey9groupNameEv:
 5297|  25.3k|std::string XmpKey::groupName() const {
 5298|  25.3k|  return p_->prefix_;
 5299|  25.3k|}
_ZNK5Exiv26XmpKey7tagNameEv:
 5301|  37.8k|std::string XmpKey::tagName() const {
 5302|  37.8k|  return p_->property_;
 5303|  37.8k|}
_ZN5Exiv26XmpKey4Impl12decomposeKeyERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
 5331|  81.6k|void XmpKey::Impl::decomposeKey(const std::string& key) {
 5332|  81.6k|  XmpProperties::XmpLock lock;
 5333|  81.6k|  decomposeKeyUnlocked(key, lock);
 5334|  81.6k|}  // XmpKey::Impl::decomposeKey
_ZN5Exiv26XmpKey4Impl20decomposeKeyUnlockedERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEERKNS_13XmpProperties7XmpLockE:
 5336|   955k|void XmpKey::Impl::decomposeKeyUnlocked(const std::string& key, const XmpProperties::XmpLock& lock) {
 5337|       |  // Get the family name, prefix and property name parts of the key
 5338|   955k|  if (!key.starts_with(familyName_))
  ------------------
  |  Branch (5338:7): [True: 22, False: 955k]
  ------------------
 5339|     22|    throw Error(ErrorCode::kerInvalidKey, key);
 5340|   955k|  std::string::size_type pos1 = key.find('.');
 5341|   955k|  std::string::size_type pos0 = pos1 + 1;
 5342|   955k|  pos1 = key.find('.', pos0);
 5343|   955k|  if (pos1 == std::string::npos)
  ------------------
  |  Branch (5343:7): [True: 0, False: 955k]
  ------------------
 5344|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5345|   955k|  std::string prefix = key.substr(pos0, pos1 - pos0);
 5346|   955k|  if (prefix.empty())
  ------------------
  |  Branch (5346:7): [True: 0, False: 955k]
  ------------------
 5347|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5348|   955k|  std::string property = key.substr(pos1 + 1);
 5349|   955k|  if (property.empty())
  ------------------
  |  Branch (5349:7): [True: 0, False: 955k]
  ------------------
 5350|      0|    throw Error(ErrorCode::kerInvalidKey, key);
 5351|       |
 5352|       |  // Validate prefix unlocked (must hold lock)
 5353|   955k|  if (XmpProperties::nsUnlocked(prefix, lock).empty())
  ------------------
  |  Branch (5353:7): [True: 0, False: 955k]
  ------------------
 5354|      0|    throw Error(ErrorCode::kerNoNamespaceForPrefix, prefix);
 5355|       |
 5356|   955k|  property_ = std::move(property);
 5357|   955k|  prefix_ = std::move(prefix);
 5358|   955k|}  // XmpKey::Impl::decomposeKeyUnlocked
properties.cpp:_ZNK12_GLOBAL__N_112XmpPrintInfoeqERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   21|  1.16M|  bool operator==(const std::string& key) const {
   22|  1.16M|    return key == key_;
   23|  1.16M|  }
_ZN5Exiv26XmpKey4ImplC2Ev:
 5219|   955k|  Impl() = default;                                                                             //!< Default constructor

_ZN5Exiv28PsdImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  100|    115|PsdImage::PsdImage(BasicIo::UniquePtr io) : Image(ImageType::psd, mdExif | mdIptc | mdXmp, std::move(io)) {
  101|    115|}  // PsdImage::PsdImage
_ZN5Exiv28PsdImage12readMetadataEv:
  112|    114|void PsdImage::readMetadata() {
  113|       |#ifdef EXIV2_DEBUG_MESSAGES
  114|       |  std::cerr << "Exiv2::PsdImage::readMetadata: Reading Photoshop file " << io_->path() << "\n";
  115|       |#endif
  116|    114|  if (io_->open() != 0) {
  ------------------
  |  Branch (116:7): [True: 0, False: 114]
  ------------------
  117|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  118|      0|  }
  119|    114|  IoCloser closer(*io_);
  120|       |  // Ensure that this is the correct image type
  121|    114|  if (!isPsdType(*io_, false)) {
  ------------------
  |  Branch (121:7): [True: 0, False: 114]
  ------------------
  122|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (122:9): [True: 0, False: 0]
  |  Branch (122:25): [True: 0, False: 0]
  ------------------
  123|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  124|      0|    throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  125|      0|  }
  126|    114|  clearMetadata();
  127|       |
  128|       |  /*
  129|       |    The Photoshop header goes as follows -- all numbers are in big-endian byte order:
  130|       |
  131|       |    offset  length   name       description
  132|       |    ======  =======  =========  =========
  133|       |     0      4 bytes  signature  always '8BPS'
  134|       |     4      2 bytes  version    always equal to 1
  135|       |     6      6 bytes  reserved   must be zero
  136|       |    12      2 bytes  channels   number of channels in the image, including alpha channels (1 to 24)
  137|       |    14      4 bytes  rows       the height of the image in pixels
  138|       |    18      4 bytes  columns    the width of the image in pixels
  139|       |    22      2 bytes  depth      the number of bits per channel
  140|       |    24      2 bytes  mode       the color mode of the file; Supported values are: Bitmap=0; Grayscale=1;
  141|       |    Indexed=2; RGB=3; CMYK=4; Multichannel=7; Duotone=8; Lab=9
  142|       |  */
  143|    114|  byte buf[26];
  144|    114|  if (io_->read(buf, 26) != 26) {
  ------------------
  |  Branch (144:7): [True: 0, False: 114]
  ------------------
  145|      0|    throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  146|      0|  }
  147|    114|  pixelWidth_ = getLong(buf + 18, bigEndian);
  148|    114|  pixelHeight_ = getLong(buf + 14, bigEndian);
  149|       |
  150|       |  // immediately following the image header is the color mode data section,
  151|       |  // the first four bytes of which specify the byte size of the whole section
  152|    114|  if (io_->read(buf, 4) != 4) {
  ------------------
  |  Branch (152:7): [True: 0, False: 114]
  ------------------
  153|      0|    throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  154|      0|  }
  155|       |
  156|       |  // skip it
  157|    114|  if (io_->seek(getULong(buf, bigEndian), BasicIo::cur)) {
  ------------------
  |  Branch (157:7): [True: 11, False: 103]
  ------------------
  158|     11|    throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  159|     11|  }
  160|       |
  161|       |  // after the color data section, comes a list of resource blocks, preceded by the total byte size
  162|    103|  if (io_->read(buf, 4) != 4) {
  ------------------
  |  Branch (162:7): [True: 1, False: 102]
  ------------------
  163|      1|    throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  164|      1|  }
  165|    102|  uint32_t resourcesLength = getULong(buf, bigEndian);
  166|    102|  Internal::enforce(resourcesLength < io_->size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  167|       |
  168|    231|  while (resourcesLength > 0) {
  ------------------
  |  Branch (168:10): [True: 154, False: 77]
  ------------------
  169|    154|    Internal::enforce(resourcesLength >= 8, Exiv2::ErrorCode::kerCorruptedMetadata);
  170|    154|    resourcesLength -= 8;
  171|    154|    if (io_->read(buf, 8) != 8) {
  ------------------
  |  Branch (171:9): [True: 4, False: 150]
  ------------------
  172|      4|      throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  173|      4|    }
  174|       |
  175|    150|    if (!Photoshop::isIrb(buf)) {
  ------------------
  |  Branch (175:9): [True: 20, False: 130]
  ------------------
  176|     20|      break;  // bad resource type
  177|     20|    }
  178|    130|    uint16_t resourceId = getUShort(buf + 4, bigEndian);
  179|    130|    uint32_t resourceNameLength = buf[6] & ~1;
  180|       |
  181|       |    // skip the resource name, plus any padding
  182|    130|    Internal::enforce(resourceNameLength <= resourcesLength, Exiv2::ErrorCode::kerCorruptedMetadata);
  183|    130|    resourcesLength -= resourceNameLength;
  184|    130|    io_->seek(resourceNameLength, BasicIo::cur);
  185|       |
  186|       |    // read resource size
  187|    130|    Internal::enforce(resourcesLength >= 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  188|    130|    resourcesLength -= 4;
  189|    130|    if (io_->read(buf, 4) != 4) {
  ------------------
  |  Branch (189:9): [True: 1, False: 129]
  ------------------
  190|      1|      throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  191|      1|    }
  192|    129|    uint32_t resourceSize = getULong(buf, bigEndian);
  193|    129|    const size_t curOffset = io_->tell();
  194|       |
  195|       |#ifdef EXIV2_DEBUG_MESSAGES
  196|       |    std::cerr << std::hex << "resourceId: " << resourceId << std::dec << " length: " << resourceSize << std::hex
  197|       |              << "\n";
  198|       |#endif
  199|       |
  200|    129|    Internal::enforce(resourceSize <= resourcesLength, Exiv2::ErrorCode::kerCorruptedMetadata);
  201|    129|    readResourceBlock(resourceId, resourceSize);
  202|    129|    resourceSize = (resourceSize + 1) & ~1;  // pad to even
  203|    129|    Internal::enforce(resourceSize <= resourcesLength, Exiv2::ErrorCode::kerCorruptedMetadata);
  204|    129|    resourcesLength -= resourceSize;
  205|    129|    io_->seek(curOffset + resourceSize, BasicIo::beg);
  206|    129|  }
  207|       |
  208|    102|}  // PsdImage::readMetadata
_ZN5Exiv28PsdImage17readResourceBlockEtj:
  210|     94|void PsdImage::readResourceBlock(uint16_t resourceId, uint32_t resourceSize) {
  211|     94|  switch (resourceId) {
  212|     22|    case kPhotoshopResourceID::IPTC_NAA: {
  ------------------
  |  Branch (212:5): [True: 22, False: 72]
  ------------------
  213|     22|      DataBuf rawIPTC(resourceSize);
  214|     22|      io_->read(rawIPTC.data(), rawIPTC.size());
  215|     22|      if (io_->error() || io_->eof())
  ------------------
  |  Branch (215:11): [True: 0, False: 22]
  |  Branch (215:27): [True: 1, False: 21]
  ------------------
  216|      1|        throw Error(ErrorCode::kerFailedToReadImageData);
  217|     21|      if (IptcParser::decode(iptcData_, rawIPTC.c_data(), rawIPTC.size())) {
  ------------------
  |  Branch (217:11): [True: 5, False: 16]
  ------------------
  218|      5|#ifndef SUPPRESS_WARNINGS
  219|      5|        EXV_WARNING << "Failed to decode IPTC metadata.\n";
  ------------------
  |  |  138|      5|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 5]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      5|  LogMsg(LogMsg::warn).os()
  ------------------
  220|      5|#endif
  221|      5|        iptcData_.clear();
  222|      5|      }
  223|     21|      break;
  224|     22|    }
  225|       |
  226|      9|    case kPhotoshopResourceID::ExifInfo: {
  ------------------
  |  Branch (226:5): [True: 9, False: 85]
  ------------------
  227|      9|      DataBuf rawExif(resourceSize);
  228|      9|      io_->read(rawExif.data(), rawExif.size());
  229|      9|      if (io_->error() || io_->eof())
  ------------------
  |  Branch (229:11): [True: 0, False: 9]
  |  Branch (229:27): [True: 1, False: 8]
  ------------------
  230|      1|        throw Error(ErrorCode::kerFailedToReadImageData);
  231|      8|      ByteOrder bo = ExifParser::decode(exifData_, rawExif.c_data(), rawExif.size());
  232|      8|      setByteOrder(bo);
  233|      8|      if (!rawExif.empty() && byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (233:11): [True: 1, False: 7]
  |  Branch (233:31): [True: 0, False: 1]
  ------------------
  234|      0|#ifndef SUPPRESS_WARNINGS
  235|      0|        EXV_WARNING << "Failed to decode Exif metadata.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  236|      0|#endif
  237|      0|        exifData_.clear();
  238|      0|      }
  239|      8|      break;
  240|      9|    }
  241|       |
  242|     12|    case kPhotoshopResourceID::XMPPacket: {
  ------------------
  |  Branch (242:5): [True: 12, False: 82]
  ------------------
  243|     12|      DataBuf xmpPacket(resourceSize);
  244|     12|      io_->read(xmpPacket.data(), xmpPacket.size());
  245|     12|      if (io_->error() || io_->eof())
  ------------------
  |  Branch (245:11): [True: 0, False: 12]
  |  Branch (245:27): [True: 1, False: 11]
  ------------------
  246|      1|        throw Error(ErrorCode::kerFailedToReadImageData);
  247|     11|      xmpPacket_.assign(xmpPacket.c_str(), xmpPacket.size());
  248|     11|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (248:11): [True: 4, False: 7]
  |  Branch (248:34): [True: 4, False: 0]
  ------------------
  249|      4|#ifndef SUPPRESS_WARNINGS
  250|      4|        EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|      4|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      4|  LogMsg(LogMsg::warn).os()
  ------------------
  251|      4|#endif
  252|      4|      }
  253|     11|      break;
  254|     12|    }
  255|       |
  256|       |    // - PS 4.0 preview data is fetched from ThumbnailResource
  257|       |    // - PS >= 5.0 preview data is fetched from ThumbnailResource2
  258|      1|    case kPhotoshopResourceID::ThumbnailResource:
  ------------------
  |  Branch (258:5): [True: 1, False: 93]
  ------------------
  259|     24|    case kPhotoshopResourceID::ThumbnailResource2: {
  ------------------
  |  Branch (259:5): [True: 23, False: 71]
  ------------------
  260|       |      /*
  261|       |        Photoshop thumbnail resource header
  262|       |
  263|       |        offset  length    name            description
  264|       |        ======  ========  ====            ===========
  265|       |         0      4 bytes   format          = 1 (kJpegRGB). Also supports kRawRGB (0).
  266|       |         4      4 bytes   width           Width of thumbnail in pixels.
  267|       |         8      4 bytes   height          Height of thumbnail in pixels.
  268|       |        12      4 bytes   widthbytes      Padded row bytes as (width * bitspixel + 31) / 32 * 4.
  269|       |        16      4 bytes   size            Total size as widthbytes * height * planes
  270|       |        20      4 bytes   compressedsize  Size after compression. Used for consistency check.
  271|       |        24      2 bytes   bitspixel       = 24. Bits per pixel.
  272|       |        26      2 bytes   planes          = 1. Number of planes.
  273|       |        28      variable  data            JFIF data in RGB format.
  274|       |                                          Note: For resource ID 1033 the data is in BGR format.
  275|       |      */
  276|     24|      byte buf[28];
  277|     24|      if (io_->read(buf, 28) != 28) {
  ------------------
  |  Branch (277:11): [True: 2, False: 22]
  ------------------
  278|      2|        throw Error(ErrorCode::kerNotAnImage, "Photoshop");
  279|      2|      }
  280|     22|      NativePreview nativePreview;
  281|     22|      nativePreview.position_ = io_->tell();
  282|     22|      nativePreview.size_ = getLong(buf + 20, bigEndian);  // compressedsize
  283|     22|      nativePreview.width_ = getLong(buf + 4, bigEndian);
  284|     22|      nativePreview.height_ = getLong(buf + 8, bigEndian);
  285|     22|      const uint32_t format = getLong(buf + 0, bigEndian);
  286|       |
  287|     22|      Internal::enforce(nativePreview.size_ <= static_cast<size_t>(std::numeric_limits<long>::max()),
  288|     22|                        Exiv2::ErrorCode::kerCorruptedMetadata);
  289|       |
  290|     22|      if (nativePreview.size_ > 0 && nativePreview.position_ > 0) {
  ------------------
  |  Branch (290:11): [True: 8, False: 14]
  |  Branch (290:38): [True: 8, False: 0]
  ------------------
  291|      8|        io_->seek(static_cast<long>(nativePreview.size_), BasicIo::cur);
  292|      8|        if (io_->error() || io_->eof())
  ------------------
  |  Branch (292:13): [True: 0, False: 8]
  |  Branch (292:29): [True: 2, False: 6]
  ------------------
  293|      2|          throw Error(ErrorCode::kerFailedToReadImageData);
  294|       |
  295|       |        // unsupported format of native preview
  296|      6|        if (format != 1)
  ------------------
  |  Branch (296:13): [True: 5, False: 1]
  ------------------
  297|      5|          break;
  298|      1|        nativePreview.filter_ = "";
  299|      1|        nativePreview.mimeType_ = "image/jpeg";
  300|      1|        nativePreviews_.push_back(std::move(nativePreview));
  301|      1|      }
  302|     15|      break;
  303|     22|    }
  304|       |
  305|     27|    default:
  ------------------
  |  Branch (305:5): [True: 27, False: 67]
  ------------------
  306|     27|      break;
  307|     94|  }
  308|     94|}  // PsdImage::readResourceBlock
_ZN5Exiv214newPsdInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  674|    115|Image::UniquePtr newPsdInstance(BasicIo::UniquePtr io, bool /*create*/) {
  675|    115|  auto image = std::make_unique<PsdImage>(std::move(io));
  676|    115|  if (!image->good()) {
  ------------------
  |  Branch (676:7): [True: 1, False: 114]
  ------------------
  677|      1|    return nullptr;
  678|      1|  }
  679|    114|  return image;
  680|    115|}
_ZN5Exiv29isPsdTypeERNS_7BasicIoEb:
  682|  10.4k|bool isPsdType(BasicIo& iIo, bool advance) {
  683|  10.4k|  const int32_t len = 6;
  684|  10.4k|  const std::array<byte, len> PsdHeader{'8', 'B', 'P', 'S', 0, 1};
  685|  10.4k|  std::array<byte, len> buf;
  686|  10.4k|  iIo.read(buf.data(), len);
  687|  10.4k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (687:7): [True: 0, False: 10.4k]
  |  Branch (687:22): [True: 139, False: 10.3k]
  ------------------
  688|    139|    return false;
  689|    139|  }
  690|  10.3k|  bool matched = buf == PsdHeader;
  691|  10.3k|  if (!advance || !matched) {
  ------------------
  |  Branch (691:7): [True: 10.3k, False: 0]
  |  Branch (691:19): [True: 0, False: 0]
  ------------------
  692|  10.3k|    iIo.seek(-len, BasicIo::cur);
  693|  10.3k|  }
  694|       |
  695|  10.3k|  return matched;
  696|  10.4k|}

_ZN5Exiv214QuickTimeVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEm:
  540|  1.85k|    Image(ImageType::qtime, mdNone, std::move(io)),
  541|  1.85k|    mvhdTimeScale_(1),
  542|  1.85k|    mdhdTimeScale_(1),
  543|  1.85k|    currentStream_(Null),
  544|  1.85k|    max_recursion_depth_(max_recursion_depth) {
  545|  1.85k|}  // QuickTimeVideo::QuickTimeVideo
_ZNK5Exiv214QuickTimeVideo8mimeTypeEv:
  547|  1.85k|std::string QuickTimeVideo::mimeType() const {
  548|  1.85k|  return "video/quicktime";
  549|  1.85k|}
_ZN5Exiv214QuickTimeVideo12readMetadataEv:
  554|  1.85k|void QuickTimeVideo::readMetadata() {
  555|  1.85k|  if (io_->open() != 0)
  ------------------
  |  Branch (555:7): [True: 0, False: 1.85k]
  ------------------
  556|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  557|       |
  558|       |  // Ensure that this is the correct image type
  559|  1.85k|  if (!isQTimeType(*io_, false)) {
  ------------------
  |  Branch (559:7): [True: 0, False: 1.85k]
  ------------------
  560|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (560:9): [True: 0, False: 0]
  |  Branch (560:25): [True: 0, False: 0]
  ------------------
  561|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  562|      0|    throw Error(ErrorCode::kerNotAnImage, "QuickTime");
  563|      0|  }
  564|       |
  565|  1.85k|  IoCloser closer(*io_);
  566|  1.85k|  clearMetadata();
  567|  1.85k|  continueTraversing_ = true;
  568|  1.85k|  height_ = width_ = 1;
  569|       |
  570|  1.85k|  xmpData_["Xmp.video.FileSize"] = static_cast<double>(io_->size()) / 1048576.0;
  571|  1.85k|  xmpData_["Xmp.video.MimeType"] = mimeType();
  572|       |
  573|  13.8k|  while (continueTraversing_)
  ------------------
  |  Branch (573:10): [True: 12.0k, False: 1.85k]
  ------------------
  574|  12.0k|    decodeBlock(0);
  575|       |
  576|  1.85k|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width_, height_);
  577|  1.85k|}  // QuickTimeVideo::readMetadata
_ZN5Exiv214QuickTimeVideo11decodeBlockEmRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  579|  19.8k|void QuickTimeVideo::decodeBlock(size_t recursion_depth, std::string const& entered_from) {
  580|  19.8k|  enforce(recursion_depth < max_recursion_depth_, Exiv2::ErrorCode::kerCorruptedMetadata);
  581|       |
  582|  19.8k|  const long bufMinSize = 4;
  583|  19.8k|  DataBuf buf(bufMinSize + 1);
  584|  19.8k|  uint64_t size = 0;
  585|  19.8k|  buf.data()[4] = '\0';
  586|       |
  587|  19.8k|  io_->read(buf.data(), 4);
  588|  19.8k|  if (io_->eof()) {
  ------------------
  |  Branch (588:7): [True: 167, False: 19.7k]
  ------------------
  589|    167|    continueTraversing_ = false;
  590|    167|    return;
  591|    167|  }
  592|       |
  593|  19.7k|  size = buf.read_uint32(0, bigEndian);
  594|       |
  595|  19.7k|  io_->readOrThrow(buf.data(), 4);
  596|       |
  597|       |  // we have read 2x 4 bytes
  598|  19.7k|  size_t hdrsize = 8;
  599|       |
  600|  19.7k|  if (size == 1) {
  ------------------
  |  Branch (600:7): [True: 62, False: 19.6k]
  ------------------
  601|       |    // The box size is encoded as a uint64_t, so we need to read another 8 bytes.
  602|     62|    DataBuf data(8);
  603|     62|    hdrsize += 8;
  604|     62|    io_->readOrThrow(data.data(), data.size());
  605|     62|    size = data.read_uint64(0, bigEndian);
  606|  19.6k|  } else if (size == 0 && entered_from == "meta") {
  ------------------
  |  Branch (606:14): [True: 88, False: 19.5k]
  |  Branch (606:27): [True: 13, False: 75]
  ------------------
  607|     13|    size = buf.read_uint32(0, bigEndian);
  608|     13|    io_->readOrThrow(buf.data(), 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  609|     13|  }
  610|       |
  611|  19.7k|  enforce(size >= hdrsize, Exiv2::ErrorCode::kerCorruptedMetadata);
  612|  19.7k|  enforce(size - hdrsize <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  613|  19.7k|  enforce(size - hdrsize <= std::numeric_limits<size_t>::max(), Exiv2::ErrorCode::kerCorruptedMetadata);
  614|       |
  615|       |  // std::cerr<<"Tag=>"<<buf.data()<<"     size=>"<<size-hdrsize << '\n';
  616|  19.7k|  const auto newsize = static_cast<size_t>(size - hdrsize);
  617|  19.7k|  if (ignoreList(buf)) {
  ------------------
  |  Branch (617:7): [True: 370, False: 19.3k]
  ------------------
  618|    370|    discard(newsize);
  619|    370|    return;
  620|    370|  }
  621|  19.3k|  if (newsize > buf.size()) {
  ------------------
  |  Branch (621:7): [True: 14.8k, False: 4.53k]
  ------------------
  622|  14.8k|    buf.resize(newsize);
  623|  14.8k|  }
  624|  19.3k|  tagDecoder(buf, newsize, recursion_depth + 1);
  625|  19.3k|}  // QuickTimeVideo::decodeBlock
_ZN5Exiv214QuickTimeVideo10tagDecoderERNS_7DataBufEmm:
  635|  18.4k|void QuickTimeVideo::tagDecoder(Exiv2::DataBuf& buf, size_t size, size_t recursion_depth) {
  636|  18.4k|  enforce(recursion_depth < max_recursion_depth_, Exiv2::ErrorCode::kerCorruptedMetadata);
  637|  18.4k|  assert(buf.size() > 4);
  638|       |
  639|  18.4k|  if (ignoreList(buf))
  ------------------
  |  Branch (639:7): [True: 0, False: 18.4k]
  ------------------
  640|      0|    discard(size);
  641|       |
  642|  18.4k|  else if (dataIgnoreList(buf)) {
  ------------------
  |  Branch (642:12): [True: 975, False: 17.4k]
  ------------------
  643|    975|    decodeBlock(recursion_depth + 1, Exiv2::toString(buf.data()));
  644|  17.4k|  } else if (equalsQTimeTag(buf, "ftyp"))
  ------------------
  |  Branch (644:14): [True: 3.47k, False: 14.0k]
  ------------------
  645|  3.47k|    fileTypeDecoder(size);
  646|       |
  647|  14.0k|  else if (equalsQTimeTag(buf, "trak"))
  ------------------
  |  Branch (647:12): [True: 790, False: 13.2k]
  ------------------
  648|    790|    setMediaStream();
  649|       |
  650|  13.2k|  else if (equalsQTimeTag(buf, "mvhd"))
  ------------------
  |  Branch (650:12): [True: 55, False: 13.1k]
  ------------------
  651|     55|    movieHeaderDecoder(size);
  652|       |
  653|  13.1k|  else if (equalsQTimeTag(buf, "tkhd"))
  ------------------
  |  Branch (653:12): [True: 213, False: 12.9k]
  ------------------
  654|    213|    trackHeaderDecoder(size);
  655|       |
  656|  12.9k|  else if (equalsQTimeTag(buf, "mdhd"))
  ------------------
  |  Branch (656:12): [True: 54, False: 12.8k]
  ------------------
  657|     54|    mediaHeaderDecoder(size);
  658|       |
  659|  12.8k|  else if (equalsQTimeTag(buf, "hdlr"))
  ------------------
  |  Branch (659:12): [True: 314, False: 12.5k]
  ------------------
  660|    314|    handlerDecoder(size);
  661|       |
  662|  12.5k|  else if (equalsQTimeTag(buf, "vmhd"))
  ------------------
  |  Branch (662:12): [True: 805, False: 11.7k]
  ------------------
  663|    805|    videoHeaderDecoder(size);
  664|       |
  665|  11.7k|  else if (equalsQTimeTag(buf, "udta"))
  ------------------
  |  Branch (665:12): [True: 1.21k, False: 10.5k]
  ------------------
  666|  1.21k|    userDataDecoder(size, recursion_depth + 1);
  667|       |
  668|  10.5k|  else if (equalsQTimeTag(buf, "dref"))
  ------------------
  |  Branch (668:12): [True: 5.09k, False: 5.46k]
  ------------------
  669|  5.09k|    multipleEntriesDecoder(recursion_depth + 1);
  670|       |
  671|  5.46k|  else if (equalsQTimeTag(buf, "stsd"))
  ------------------
  |  Branch (671:12): [True: 383, False: 5.07k]
  ------------------
  672|    383|    sampleDesc(size);
  673|       |
  674|  5.07k|  else if (equalsQTimeTag(buf, "stts"))
  ------------------
  |  Branch (674:12): [True: 143, False: 4.93k]
  ------------------
  675|    143|    timeToSampleDecoder();
  676|       |
  677|  4.93k|  else if (equalsQTimeTag(buf, "pnot"))
  ------------------
  |  Branch (677:12): [True: 101, False: 4.83k]
  ------------------
  678|    101|    previewTagDecoder(size);
  679|       |
  680|  4.83k|  else if (equalsQTimeTag(buf, "tapt"))
  ------------------
  |  Branch (680:12): [True: 175, False: 4.65k]
  ------------------
  681|    175|    trackApertureTagDecoder(size);
  682|       |
  683|  4.65k|  else if (equalsQTimeTag(buf, "keys"))
  ------------------
  |  Branch (683:12): [True: 118, False: 4.54k]
  ------------------
  684|    118|    keysTagDecoder(size);
  685|       |
  686|  4.54k|  else if (equalsQTimeTag(buf, "url ")) {
  ------------------
  |  Branch (686:12): [True: 217, False: 4.32k]
  ------------------
  687|    217|    if (currentStream_ == Video)
  ------------------
  |  Branch (687:9): [True: 148, False: 69]
  ------------------
  688|    148|      xmpData_["Xmp.video.URL"] = readString(*io_, size);
  689|     69|    else if (currentStream_ == Audio)
  ------------------
  |  Branch (689:14): [True: 20, False: 49]
  ------------------
  690|     20|      xmpData_["Xmp.audio.URL"] = readString(*io_, size);
  691|     49|    else
  692|     49|      discard(size);
  693|    217|  }
  694|       |
  695|  4.32k|  else if (equalsQTimeTag(buf, "urn ")) {
  ------------------
  |  Branch (695:12): [True: 82, False: 4.24k]
  ------------------
  696|     82|    if (currentStream_ == Video)
  ------------------
  |  Branch (696:9): [True: 32, False: 50]
  ------------------
  697|     32|      xmpData_["Xmp.video.URN"] = readString(*io_, size);
  698|     50|    else if (currentStream_ == Audio)
  ------------------
  |  Branch (698:14): [True: 30, False: 20]
  ------------------
  699|     30|      xmpData_["Xmp.audio.URN"] = readString(*io_, size);
  700|     20|    else
  701|     20|      discard(size);
  702|     82|  }
  703|       |
  704|  4.24k|  else if (equalsQTimeTag(buf, "dcom")) {
  ------------------
  |  Branch (704:12): [True: 12, False: 4.23k]
  ------------------
  705|     12|    xmpData_["Xmp.video.Compressor"] = readString(*io_, size);
  706|     12|  }
  707|       |
  708|  4.23k|  else if (equalsQTimeTag(buf, "smhd")) {
  ------------------
  |  Branch (708:12): [True: 10, False: 4.22k]
  ------------------
  709|     10|    io_->readOrThrow(buf.data(), 4);
  710|     10|    io_->readOrThrow(buf.data(), 4);
  711|     10|    xmpData_["Xmp.audio.Balance"] = buf.read_uint16(0, bigEndian);
  712|     10|  }
  713|       |
  714|  4.22k|  else {
  715|  4.22k|    discard(size);
  716|  4.22k|  }
  717|  18.4k|}  // QuickTimeVideo::tagDecoder
_ZN5Exiv214QuickTimeVideo7discardEm:
  719|  4.65k|void QuickTimeVideo::discard(size_t size) {
  720|  4.65k|  size_t cur_pos = io_->tell();
  721|  4.65k|  io_->seek(cur_pos + size, BasicIo::beg);
  722|  4.65k|}  // QuickTimeVideo::discard
_ZN5Exiv214QuickTimeVideo17previewTagDecoderEm:
  724|    101|void QuickTimeVideo::previewTagDecoder(size_t size) {
  725|    101|  DataBuf buf(4);
  726|    101|  size_t cur_pos = io_->tell();
  727|    101|  io_->readOrThrow(buf.data(), 4);
  728|    101|  xmpData_["Xmp.video.PreviewDate"] = buf.read_uint32(0, bigEndian);
  729|    101|  io_->readOrThrow(buf.data(), 2);
  730|    101|  xmpData_["Xmp.video.PreviewVersion"] = getShort(buf.data(), bigEndian);
  731|       |
  732|    101|  io_->readOrThrow(buf.data(), 4);
  733|    101|  if (equalsQTimeTag(buf, "PICT"))
  ------------------
  |  Branch (733:7): [True: 9, False: 92]
  ------------------
  734|      9|    xmpData_["Xmp.video.PreviewAtomType"] = "QuickDraw Picture";
  735|     92|  else
  736|     92|    xmpData_["Xmp.video.PreviewAtomType"] = std::string{buf.c_str(), 4};
  737|       |
  738|    101|  io_->seek(cur_pos + size, BasicIo::beg);
  739|    101|}  // QuickTimeVideo::previewTagDecoder
_ZN5Exiv214QuickTimeVideo14keysTagDecoderEm:
  741|    118|void QuickTimeVideo::keysTagDecoder(size_t size) {
  742|    118|  DataBuf buf(4);
  743|    118|  size_t cur_pos = io_->tell();
  744|    118|  io_->readOrThrow(buf.data(), 4);
  745|    118|  xmpData_["Xmp.video.PreviewDate"] = buf.read_uint32(0, bigEndian);
  746|    118|  io_->readOrThrow(buf.data(), 2);
  747|    118|  xmpData_["Xmp.video.PreviewVersion"] = getShort(buf.data(), bigEndian);
  748|       |
  749|    118|  io_->readOrThrow(buf.data(), 4);
  750|    118|  if (equalsQTimeTag(buf, "PICT"))
  ------------------
  |  Branch (750:7): [True: 1, False: 117]
  ------------------
  751|      1|    xmpData_["Xmp.video.PreviewAtomType"] = "QuickDraw Picture";
  752|    117|  else
  753|    117|    xmpData_["Xmp.video.PreviewAtomType"] = std::string{buf.c_str(), 4};
  754|       |
  755|    118|  io_->seek(cur_pos + size, BasicIo::beg);
  756|    118|}  // QuickTimeVideo::keysTagDecoder
_ZN5Exiv214QuickTimeVideo23trackApertureTagDecoderEm:
  758|    175|void QuickTimeVideo::trackApertureTagDecoder(size_t size) {
  759|    175|  DataBuf buf(4);
  760|    175|  DataBuf buf2(2);
  761|    175|  size_t cur_pos = io_->tell();
  762|    175|  byte n = 3;
  763|       |
  764|    694|  while (n--) {
  ------------------
  |  Branch (764:10): [True: 519, False: 175]
  ------------------
  765|    519|    io_->seek(4L, BasicIo::cur);
  766|    519|    io_->readOrThrow(buf.data(), 4);
  767|       |
  768|    519|    if (equalsQTimeTag(buf, "clef")) {
  ------------------
  |  Branch (768:9): [True: 13, False: 506]
  ------------------
  769|     13|      io_->seek(4L, BasicIo::cur);
  770|     13|      io_->readOrThrow(buf.data(), 2);
  771|     13|      io_->readOrThrow(buf2.data(), 2);
  772|     13|      xmpData_["Xmp.video.CleanApertureWidth"] =
  773|     13|          stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   18|     13|#define stringFormat std::format
  ------------------
  774|     13|      io_->readOrThrow(buf.data(), 2);
  775|     13|      io_->readOrThrow(buf2.data(), 2);
  776|     13|      xmpData_["Xmp.video.CleanApertureHeight"] =
  777|     13|          stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   18|     13|#define stringFormat std::format
  ------------------
  778|     13|    }
  779|       |
  780|    506|    else if (equalsQTimeTag(buf, "prof")) {
  ------------------
  |  Branch (780:14): [True: 13, False: 493]
  ------------------
  781|     13|      io_->seek(4L, BasicIo::cur);
  782|     13|      io_->readOrThrow(buf.data(), 2);
  783|     13|      io_->readOrThrow(buf2.data(), 2);
  784|     13|      xmpData_["Xmp.video.ProductionApertureWidth"] =
  785|     13|          stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   18|     13|#define stringFormat std::format
  ------------------
  786|     13|      io_->readOrThrow(buf.data(), 2);
  787|     13|      io_->readOrThrow(buf2.data(), 2);
  788|     13|      xmpData_["Xmp.video.ProductionApertureHeight"] =
  789|     13|          stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   18|     13|#define stringFormat std::format
  ------------------
  790|     13|    }
  791|       |
  792|    493|    else if (equalsQTimeTag(buf, "enof")) {
  ------------------
  |  Branch (792:14): [True: 35, False: 458]
  ------------------
  793|     35|      io_->seek(4L, BasicIo::cur);
  794|     35|      io_->readOrThrow(buf.data(), 2);
  795|     35|      io_->readOrThrow(buf2.data(), 2);
  796|     35|      xmpData_["Xmp.video.EncodedPixelsWidth"] =
  797|     35|          stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   18|     35|#define stringFormat std::format
  ------------------
  798|     35|      io_->readOrThrow(buf.data(), 2);
  799|     35|      io_->readOrThrow(buf2.data(), 2);
  800|     35|      xmpData_["Xmp.video.EncodedPixelsHeight"] =
  801|     35|          stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   18|     35|#define stringFormat std::format
  ------------------
  802|     35|    }
  803|    519|  }
  804|    175|  io_->seek(cur_pos + size, BasicIo::beg);
  805|    175|}  // QuickTimeVideo::trackApertureTagDecoder
_ZN5Exiv214QuickTimeVideo17CameraTagsDecoderEm:
  807|    149|void QuickTimeVideo::CameraTagsDecoder(size_t size) {
  808|    149|  size_t cur_pos = io_->tell();
  809|    149|  DataBuf buf(50);
  810|    149|  DataBuf buf2(4);
  811|       |
  812|    149|  io_->readOrThrow(buf.data(), 4);
  813|    149|  if (equalsQTimeTag(buf, "NIKO")) {
  ------------------
  |  Branch (813:7): [True: 99, False: 50]
  ------------------
  814|     99|    io_->seek(cur_pos, BasicIo::beg);
  815|       |
  816|     99|    io_->readOrThrow(buf.data(), 24);
  817|     99|    xmpData_["Xmp.video.Make"] = buf.data();
  818|     99|    io_->readOrThrow(buf.data(), 14);
  819|     99|    xmpData_["Xmp.video.Model"] = buf.data();
  820|     99|    io_->readOrThrow(buf.data(), 4);
  821|     99|    xmpData_["Xmp.video.ExposureTime"] = stringFormat("1/{}", std::ceil(buf.read_uint32(0, littleEndian) / 10.0));
  ------------------
  |  |   18|     99|#define stringFormat std::format
  ------------------
  822|     99|    io_->readOrThrow(buf.data(), 4);
  823|     99|    io_->readOrThrow(buf2.data(), 4);
  824|     99|    xmpData_["Xmp.video.FNumber"] =
  825|     99|        buf.read_uint32(0, littleEndian) / static_cast<double>(buf2.read_uint32(0, littleEndian));
  826|     99|    io_->readOrThrow(buf.data(), 4);
  827|     99|    io_->readOrThrow(buf2.data(), 4);
  828|     99|    xmpData_["Xmp.video.ExposureCompensation"] =
  829|     99|        buf.read_uint32(0, littleEndian) / static_cast<double>(buf2.read_uint32(0, littleEndian));
  830|     99|    io_->readOrThrow(buf.data(), 10);
  831|     99|    io_->readOrThrow(buf.data(), 4);
  832|     99|    if (auto td = Exiv2::find(whiteBalance, buf.read_uint32(0, littleEndian)))
  ------------------
  |  Branch (832:14): [True: 42, False: 57]
  ------------------
  833|     42|      xmpData_["Xmp.video.WhiteBalance"] = _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  834|     99|    io_->readOrThrow(buf.data(), 4);
  835|     99|    io_->readOrThrow(buf2.data(), 4);
  836|     99|    xmpData_["Xmp.video.FocalLength"] =
  837|     99|        buf.read_uint32(0, littleEndian) / static_cast<double>(buf2.read_uint32(0, littleEndian));
  838|     99|    io_->seek(95L, BasicIo::cur);
  839|     99|    io_->readOrThrow(buf.data(), 48);
  840|     99|    buf.write_uint8(48, 0);
  841|     99|    xmpData_["Xmp.video.Software"] = buf.data();
  842|     99|    io_->readOrThrow(buf.data(), 4);
  843|     99|    xmpData_["Xmp.video.ISO"] = buf.read_uint32(0, littleEndian);
  844|     99|  }
  845|       |
  846|    149|  io_->seek(cur_pos + size, BasicIo::beg);
  847|    149|}  // QuickTimeVideo::CameraTagsDecoder
_ZN5Exiv214QuickTimeVideo15userDataDecoderEmm:
  849|  1.24k|void QuickTimeVideo::userDataDecoder(size_t outer_size, size_t recursion_depth) {
  850|  1.24k|  enforce(recursion_depth < max_recursion_depth_, Exiv2::ErrorCode::kerCorruptedMetadata);
  851|  1.24k|  size_t cur_pos = io_->tell();
  852|  1.24k|  const TagVocabulary* td;
  853|  1.24k|  const TagVocabulary* tv;
  854|  1.24k|  const TagVocabulary* tv_internal;
  855|       |
  856|  1.24k|  const long bufMinSize = 100;
  857|  1.24k|  DataBuf buf(bufMinSize);
  858|  1.24k|  size_t size_internal = outer_size;
  859|  1.24k|  std::memset(buf.data(), 0x0, buf.size());
  860|       |
  861|  3.44k|  while ((size_internal / 4 != 0) && (size_internal > 0)) {
  ------------------
  |  Branch (861:10): [True: 2.87k, False: 566]
  |  Branch (861:38): [True: 2.87k, False: 0]
  ------------------
  862|  2.87k|    buf.data()[4] = '\0';
  863|  2.87k|    io_->readOrThrow(buf.data(), 4);
  864|  2.87k|    const size_t size = buf.read_uint32(0, bigEndian);
  865|  2.87k|    if (size > size_internal)
  ------------------
  |  Branch (865:9): [True: 638, False: 2.23k]
  ------------------
  866|    638|      break;
  867|  2.23k|    size_internal -= size;
  868|  2.23k|    io_->readOrThrow(buf.data(), 4);
  869|       |
  870|  2.23k|    if (buf.data()[0] == 169)
  ------------------
  |  Branch (870:9): [True: 3, False: 2.23k]
  ------------------
  871|      3|      buf.data()[0] = ' ';
  872|  2.23k|    td = Exiv2::find(userDatatags, Exiv2::toString(buf.data()));
  873|       |
  874|  2.23k|    tv = Exiv2::find(userDataReferencetags, Exiv2::toString(buf.data()));
  875|       |
  876|  2.23k|    if (size <= 12)
  ------------------
  |  Branch (876:9): [True: 40, False: 2.19k]
  ------------------
  877|     40|      break;
  878|       |
  879|  2.19k|    if (equalsQTimeTag(buf, "DcMD") || equalsQTimeTag(buf, "NCDT"))
  ------------------
  |  Branch (879:9): [True: 12, False: 2.18k]
  |  Branch (879:40): [True: 13, False: 2.17k]
  ------------------
  880|     25|      userDataDecoder(size - 8, recursion_depth + 1);
  881|       |
  882|  2.17k|    else if (equalsQTimeTag(buf, "NCTG"))
  ------------------
  |  Branch (882:14): [True: 1.58k, False: 591]
  ------------------
  883|  1.58k|      NikonTagsDecoder(size - 8);
  884|       |
  885|    591|    else if (equalsQTimeTag(buf, "TAGS"))
  ------------------
  |  Branch (885:14): [True: 149, False: 442]
  ------------------
  886|    149|      CameraTagsDecoder(size - 8);
  887|       |
  888|    442|    else if (equalsQTimeTag(buf, "CNCV") || equalsQTimeTag(buf, "CNFV") || equalsQTimeTag(buf, "CNMN") ||
  ------------------
  |  Branch (888:14): [True: 1, False: 441]
  |  Branch (888:45): [True: 15, False: 426]
  |  Branch (888:76): [True: 5, False: 421]
  ------------------
  889|    421|             equalsQTimeTag(buf, "NCHD") || equalsQTimeTag(buf, "FFMV")) {
  ------------------
  |  Branch (889:14): [True: 17, False: 404]
  |  Branch (889:45): [True: 12, False: 392]
  ------------------
  890|     50|      enforce(tv, Exiv2::ErrorCode::kerCorruptedMetadata);
  891|     50|      xmpData_[_(tv->label_)] = readString(*io_, size - 8);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  892|     50|    }
  893|       |
  894|    392|    else if (equalsQTimeTag(buf, "CMbo") || equalsQTimeTag(buf, "Cmbo")) {
  ------------------
  |  Branch (894:14): [True: 38, False: 354]
  |  Branch (894:45): [True: 0, False: 354]
  ------------------
  895|     38|      enforce(tv, Exiv2::ErrorCode::kerCorruptedMetadata);
  896|     38|      io_->readOrThrow(buf.data(), 2);
  897|     38|      buf.data()[2] = '\0';
  898|     38|      tv_internal = Exiv2::find(cameraByteOrderTags, Exiv2::toString(buf.data()));
  899|       |
  900|     38|      if (tv_internal)
  ------------------
  |  Branch (900:11): [True: 19, False: 19]
  ------------------
  901|     19|        xmpData_[_(tv->label_)] = _(tv_internal->label_);
  ------------------
  |  |   40|     19|#define _(String) (String)
  ------------------
                      xmpData_[_(tv->label_)] = _(tv_internal->label_);
  ------------------
  |  |   40|     19|#define _(String) (String)
  ------------------
  902|     19|      else
  903|     19|        xmpData_[_(tv->label_)] = buf.data();
  ------------------
  |  |   40|     19|#define _(String) (String)
  ------------------
  904|     38|    }
  905|       |
  906|    354|    else if (tv) {
  ------------------
  |  Branch (906:14): [True: 63, False: 291]
  ------------------
  907|     63|      io_->readOrThrow(buf.data(), 4);
  908|     63|      xmpData_[_(tv->label_)] = readString(*io_, size - 12);
  ------------------
  |  |   40|     63|#define _(String) (String)
  ------------------
  909|     63|    }
  910|       |
  911|    291|    else if (td)
  ------------------
  |  Branch (911:14): [True: 12, False: 279]
  ------------------
  912|     12|      tagDecoder(buf, size - 8, recursion_depth + 1);
  913|  2.19k|  }
  914|       |
  915|  1.24k|  io_->seek(cur_pos + outer_size, BasicIo::beg);
  916|  1.24k|}  // QuickTimeVideo::userDataDecoder
_ZN5Exiv214QuickTimeVideo16NikonTagsDecoderEm:
  918|  1.58k|void QuickTimeVideo::NikonTagsDecoder(size_t size) {
  919|  1.58k|  size_t cur_pos = io_->tell();
  920|  1.58k|  DataBuf buf(201);
  921|  1.58k|  DataBuf buf2(4 + 1);
  922|  1.58k|  uint32_t TagID = 0;
  923|  1.58k|  uint16_t dataLength = 0;
  924|  1.58k|  uint16_t dataType = 2;
  925|  1.58k|  const TagDetails* td;
  926|  1.58k|  const TagDetails* td2;
  927|       |
  928|   138k|  for (int i = 0; i < 100; i++) {
  ------------------
  |  Branch (928:19): [True: 136k, False: 1.58k]
  ------------------
  929|   136k|    io_->readOrThrow(buf.data(), 4);
  930|   136k|    TagID = buf.read_uint32(0, bigEndian);
  931|   136k|    td = Exiv2::find(NikonNCTGTags, TagID);
  932|       |
  933|   136k|    io_->readOrThrow(buf.data(), 2);
  934|   136k|    dataType = buf.read_uint16(0, bigEndian);
  935|       |
  936|   136k|    std::memset(buf.data(), 0x0, buf.size());
  937|   136k|    io_->readOrThrow(buf.data(), 2);
  938|       |
  939|   136k|    if (TagID == 0x2000023) {
  ------------------
  |  Branch (939:9): [True: 3.16k, False: 133k]
  ------------------
  940|  3.16k|      size_t local_pos = io_->tell();
  941|  3.16k|      dataLength = buf.read_uint16(0, bigEndian);
  942|  3.16k|      std::memset(buf.data(), 0x0, buf.size());
  943|       |
  944|  3.16k|      io_->readOrThrow(buf.data(), 4);
  945|  3.16k|      xmpData_["Xmp.video.PictureControlVersion"] = buf.data();
  946|  3.16k|      io_->readOrThrow(buf.data(), 20);
  947|  3.16k|      xmpData_["Xmp.video.PictureControlName"] = buf.data();
  948|  3.16k|      io_->readOrThrow(buf.data(), 20);
  949|  3.16k|      xmpData_["Xmp.video.PictureControlBase"] = buf.data();
  950|  3.16k|      io_->readOrThrow(buf.data(), 4);
  951|  3.16k|      std::memset(buf.data(), 0x0, buf.size());
  952|       |
  953|  3.16k|      io_->readOrThrow(buf.data(), 1);
  954|  3.16k|      td2 = Exiv2::find(PictureControlAdjust, static_cast<int>(buf.data()[0]) & 7);
  955|  3.16k|      if (td2)
  ------------------
  |  Branch (955:11): [True: 2.00k, False: 1.16k]
  ------------------
  956|  2.00k|        xmpData_["Xmp.video.PictureControlAdjust"] = _(td2->label_);
  ------------------
  |  |   40|  2.00k|#define _(String) (String)
  ------------------
  957|  1.16k|      else
  958|  1.16k|        xmpData_["Xmp.video.PictureControlAdjust"] = static_cast<int>(buf.data()[0]) & 7;
  959|       |
  960|  3.16k|      io_->readOrThrow(buf.data(), 1);
  961|  3.16k|      td2 = Exiv2::find(NormalSoftHard, static_cast<int>(buf.data()[0]) & 7);
  962|  3.16k|      if (td2)
  ------------------
  |  Branch (962:11): [True: 1.62k, False: 1.54k]
  ------------------
  963|  1.62k|        xmpData_["Xmp.video.PictureControlQuickAdjust"] = _(td2->label_);
  ------------------
  |  |   40|  1.62k|#define _(String) (String)
  ------------------
  964|       |
  965|  3.16k|      io_->readOrThrow(buf.data(), 1);
  966|  3.16k|      td2 = Exiv2::find(NormalSoftHard, static_cast<int>(buf.data()[0]) & 7);
  967|  3.16k|      if (td2)
  ------------------
  |  Branch (967:11): [True: 1.76k, False: 1.40k]
  ------------------
  968|  1.76k|        xmpData_["Xmp.video.Sharpness"] = _(td2->label_);
  ------------------
  |  |   40|  1.76k|#define _(String) (String)
  ------------------
  969|  1.40k|      else
  970|  1.40k|        xmpData_["Xmp.video.Sharpness"] = static_cast<int>(buf.data()[0]) & 7;
  971|       |
  972|  3.16k|      io_->readOrThrow(buf.data(), 1);
  973|  3.16k|      td2 = Exiv2::find(NormalSoftHard, static_cast<int>(buf.data()[0]) & 7);
  974|  3.16k|      if (td2)
  ------------------
  |  Branch (974:11): [True: 1.69k, False: 1.47k]
  ------------------
  975|  1.69k|        xmpData_["Xmp.video.Contrast"] = _(td2->label_);
  ------------------
  |  |   40|  1.69k|#define _(String) (String)
  ------------------
  976|  1.47k|      else
  977|  1.47k|        xmpData_["Xmp.video.Contrast"] = static_cast<int>(buf.data()[0]) & 7;
  978|       |
  979|  3.16k|      io_->readOrThrow(buf.data(), 1);
  980|  3.16k|      td2 = Exiv2::find(NormalSoftHard, static_cast<int>(buf.data()[0]) & 7);
  981|  3.16k|      if (td2)
  ------------------
  |  Branch (981:11): [True: 1.37k, False: 1.79k]
  ------------------
  982|  1.37k|        xmpData_["Xmp.video.Brightness"] = _(td2->label_);
  ------------------
  |  |   40|  1.37k|#define _(String) (String)
  ------------------
  983|  1.79k|      else
  984|  1.79k|        xmpData_["Xmp.video.Brightness"] = static_cast<int>(buf.data()[0]) & 7;
  985|       |
  986|  3.16k|      io_->readOrThrow(buf.data(), 1);
  987|  3.16k|      td2 = Exiv2::find(Saturation, static_cast<int>(buf.data()[0]) & 7);
  988|  3.16k|      if (td2)
  ------------------
  |  Branch (988:11): [True: 1.46k, False: 1.70k]
  ------------------
  989|  1.46k|        xmpData_["Xmp.video.Saturation"] = _(td2->label_);
  ------------------
  |  |   40|  1.46k|#define _(String) (String)
  ------------------
  990|  1.70k|      else
  991|  1.70k|        xmpData_["Xmp.video.Saturation"] = static_cast<int>(buf.data()[0]) & 7;
  992|       |
  993|  3.16k|      io_->readOrThrow(buf.data(), 1);
  994|  3.16k|      xmpData_["Xmp.video.HueAdjustment"] = static_cast<int>(buf.data()[0]) & 7;
  995|       |
  996|  3.16k|      io_->readOrThrow(buf.data(), 1);
  997|  3.16k|      td2 = Exiv2::find(FilterEffect, static_cast<int>(buf.data()[0]));
  998|  3.16k|      if (td2)
  ------------------
  |  Branch (998:11): [True: 863, False: 2.30k]
  ------------------
  999|    863|        xmpData_["Xmp.video.FilterEffect"] = _(td2->label_);
  ------------------
  |  |   40|    863|#define _(String) (String)
  ------------------
 1000|  2.30k|      else
 1001|  2.30k|        xmpData_["Xmp.video.FilterEffect"] = static_cast<int>(buf.data()[0]);
 1002|       |
 1003|  3.16k|      io_->readOrThrow(buf.data(), 1);
 1004|  3.16k|      td2 = Exiv2::find(ToningEffect, static_cast<int>(buf.data()[0]));
 1005|  3.16k|      if (td2)
  ------------------
  |  Branch (1005:11): [True: 988, False: 2.17k]
  ------------------
 1006|    988|        xmpData_["Xmp.video.ToningEffect"] = _(td2->label_);
  ------------------
  |  |   40|    988|#define _(String) (String)
  ------------------
 1007|  2.17k|      else
 1008|  2.17k|        xmpData_["Xmp.video.ToningEffect"] = static_cast<int>(buf.data()[0]);
 1009|       |
 1010|  3.16k|      io_->readOrThrow(buf.data(), 1);
 1011|  3.16k|      xmpData_["Xmp.video.ToningSaturation"] = static_cast<int>(buf.data()[0]);
 1012|       |
 1013|  3.16k|      io_->seek(local_pos + dataLength, BasicIo::beg);
 1014|  3.16k|    }
 1015|       |
 1016|   133k|    else if (TagID == 0x2000024) {
  ------------------
  |  Branch (1016:14): [True: 756, False: 132k]
  ------------------
 1017|    756|      size_t local_pos = io_->tell();
 1018|    756|      dataLength = buf.read_uint16(0, bigEndian);
 1019|    756|      std::memset(buf.data(), 0x0, buf.size());
 1020|       |
 1021|    756|      io_->readOrThrow(buf.data(), 2);
 1022|    756|      xmpData_["Xmp.video.TimeZone"] = Exiv2::getShort(buf.data(), bigEndian);
 1023|    756|      io_->readOrThrow(buf.data(), 1);
 1024|    756|      td2 = Exiv2::find(YesNo, static_cast<int>(buf.data()[0]));
 1025|    756|      if (td2)
  ------------------
  |  Branch (1025:11): [True: 527, False: 229]
  ------------------
 1026|    527|        xmpData_["Xmp.video.DayLightSavings"] = _(td2->label_);
  ------------------
  |  |   40|    527|#define _(String) (String)
  ------------------
 1027|       |
 1028|    756|      io_->readOrThrow(buf.data(), 1);
 1029|    756|      td2 = Exiv2::find(DateDisplayFormat, static_cast<int>(buf.data()[0]));
 1030|    756|      if (td2)
  ------------------
  |  Branch (1030:11): [True: 500, False: 256]
  ------------------
 1031|    500|        xmpData_["Xmp.video.DateDisplayFormat"] = _(td2->label_);
  ------------------
  |  |   40|    500|#define _(String) (String)
  ------------------
 1032|       |
 1033|    756|      io_->seek(local_pos + dataLength, BasicIo::beg);
 1034|    756|    }
 1035|       |
 1036|   132k|    else if (dataType == 2 || dataType == 7) {
  ------------------
  |  Branch (1036:14): [True: 1.90k, False: 130k]
  |  Branch (1036:31): [True: 369, False: 130k]
  ------------------
 1037|  1.94k|      dataLength = buf.read_uint16(0, bigEndian);
 1038|  1.94k|      std::memset(buf.data(), 0x0, buf.size());
 1039|       |
 1040|       |      // Sanity check with an "unreasonably" large number
 1041|  1.94k|      if (dataLength >= buf.size()) {
  ------------------
  |  Branch (1041:11): [True: 512, False: 1.43k]
  ------------------
 1042|    512|#ifndef SUPPRESS_WARNINGS
 1043|    512|        EXV_ERROR << "Xmp.video Nikon Tags, dataLength was found to be larger than 200."
  ------------------
  |  |  142|    512|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 512]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    512|  LogMsg(LogMsg::error).os()
  ------------------
 1044|      0|                  << " Entries considered invalid. Not Processed.\n";
 1045|    512|#endif
 1046|    512|        io_->seek(io_->tell() + dataLength, BasicIo::beg);
 1047|    512|        buf.data()[0] = '\0';
 1048|  1.43k|      } else {
 1049|  1.43k|        io_->readOrThrow(buf.data(), dataLength);
 1050|  1.43k|        buf.data()[dataLength] = '\0';
 1051|  1.43k|      }
 1052|       |
 1053|  1.94k|      if (td) {
  ------------------
  |  Branch (1053:11): [True: 540, False: 1.40k]
  ------------------
 1054|    540|        xmpData_[_(td->label_)] = buf.data();
  ------------------
  |  |   40|    540|#define _(String) (String)
  ------------------
 1055|    540|      }
 1056|   130k|    } else if (dataType == 4) {
  ------------------
  |  Branch (1056:16): [True: 976, False: 129k]
  ------------------
 1057|    976|      dataLength = buf.read_uint16(0, bigEndian) * 4;
 1058|    976|      std::memset(buf.data(), 0x0, buf.size());
 1059|    976|      io_->readOrThrow(buf.data(), 4);
 1060|    976|      if (td)
  ------------------
  |  Branch (1060:11): [True: 271, False: 705]
  ------------------
 1061|    271|        xmpData_[_(td->label_)] = buf.read_uint32(0, bigEndian);
  ------------------
  |  |   40|    271|#define _(String) (String)
  ------------------
 1062|       |
 1063|       |      // Sanity check with an "unreasonably" large number
 1064|    976|      if (dataLength > 200 || dataLength < 4) {
  ------------------
  |  Branch (1064:11): [True: 490, False: 486]
  |  Branch (1064:31): [True: 379, False: 107]
  ------------------
 1065|    865|#ifndef SUPPRESS_WARNINGS
 1066|    865|        EXV_ERROR << "Xmp.video Nikon Tags, dataLength was found to be of inappropriate size."
  ------------------
  |  |  142|    865|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 865]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    865|  LogMsg(LogMsg::error).os()
  ------------------
 1067|      0|                  << " Entries considered invalid. Not Processed.\n";
 1068|    865|#endif
 1069|    865|        io_->seek(io_->tell() + dataLength - 4, BasicIo::beg);
 1070|    865|      } else
 1071|    111|        io_->readOrThrow(buf.data(), dataLength - 4);
 1072|   129k|    } else if (dataType == 3) {
  ------------------
  |  Branch (1072:16): [True: 861, False: 128k]
  ------------------
 1073|    861|      dataLength = buf.read_uint16(0, bigEndian) * 2;
 1074|    861|      std::memset(buf.data(), 0x0, buf.size());
 1075|    861|      io_->readOrThrow(buf.data(), 2);
 1076|    861|      if (td)
  ------------------
  |  Branch (1076:11): [True: 271, False: 590]
  ------------------
 1077|    271|        xmpData_[_(td->label_)] = buf.read_uint16(0, bigEndian);
  ------------------
  |  |   40|    271|#define _(String) (String)
  ------------------
 1078|       |
 1079|       |      // Sanity check with an "unreasonably" large number
 1080|    861|      if (dataLength > 200 || dataLength < 2) {
  ------------------
  |  Branch (1080:11): [True: 325, False: 536]
  |  Branch (1080:31): [True: 493, False: 43]
  ------------------
 1081|    817|#ifndef SUPPRESS_WARNINGS
 1082|    817|        EXV_ERROR << "Xmp.video Nikon Tags, dataLength was found to be of inappropriate size."
  ------------------
  |  |  142|    817|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 817]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    817|  LogMsg(LogMsg::error).os()
  ------------------
 1083|      0|                  << " Entries considered invalid. Not Processed.\n";
 1084|    817|#endif
 1085|    817|        io_->seek(io_->tell() + dataLength - 2, BasicIo::beg);
 1086|    817|      } else
 1087|     44|        io_->readOrThrow(buf.data(), dataLength - 2);
 1088|   128k|    } else if (dataType == 5) {
  ------------------
  |  Branch (1088:16): [True: 522, False: 128k]
  ------------------
 1089|    522|      dataLength = buf.read_uint16(0, bigEndian) * 8;
 1090|    522|      std::memset(buf.data(), 0x0, buf.size());
 1091|    522|      io_->readOrThrow(buf.data(), 4);
 1092|    522|      io_->readOrThrow(buf2.data(), 4);
 1093|    522|      if (td)
  ------------------
  |  Branch (1093:11): [True: 198, False: 324]
  ------------------
 1094|    198|        xmpData_[_(td->label_)] =
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
 1095|    198|            static_cast<double>(buf.read_uint32(0, bigEndian)) / static_cast<double>(buf2.read_uint32(0, bigEndian));
 1096|       |
 1097|       |      // Sanity check with an "unreasonably" large number
 1098|    522|      if (dataLength > 200 || dataLength < 8) {
  ------------------
  |  Branch (1098:11): [True: 147, False: 375]
  |  Branch (1098:31): [True: 306, False: 69]
  ------------------
 1099|    453|#ifndef SUPPRESS_WARNINGS
 1100|    453|        EXV_ERROR << "Xmp.video Nikon Tags, dataLength was found to be of inappropriate size."
  ------------------
  |  |  142|    453|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 453]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    453|  LogMsg(LogMsg::error).os()
  ------------------
 1101|      0|                  << " Entries considered invalid. Not Processed.\n";
 1102|    453|#endif
 1103|    453|        io_->seek(io_->tell() + dataLength - 8, BasicIo::beg);
 1104|    453|      } else
 1105|     69|        io_->readOrThrow(buf.data(), dataLength - 8);
 1106|   128k|    } else if (dataType == 8) {
  ------------------
  |  Branch (1106:16): [True: 414, False: 127k]
  ------------------
 1107|    414|      dataLength = buf.read_uint16(0, bigEndian) * 2;
 1108|    414|      std::memset(buf.data(), 0x0, buf.size());
 1109|    414|      io_->readOrThrow(buf.data(), 2);
 1110|    414|      io_->readOrThrow(buf2.data(), 2);
 1111|    414|      if (td)
  ------------------
  |  Branch (1111:11): [True: 123, False: 291]
  ------------------
 1112|    123|        xmpData_[_(td->label_)] = stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   40|    123|#define _(String) (String)
  ------------------
                      xmpData_[_(td->label_)] = stringFormat("{}.{}", buf.read_uint16(0, bigEndian), buf2.read_uint16(0, bigEndian));
  ------------------
  |  |   18|    123|#define stringFormat std::format
  ------------------
 1113|       |
 1114|       |      // Sanity check with an "unreasonably" large number
 1115|    414|      if (dataLength > 200 || dataLength < 4) {
  ------------------
  |  Branch (1115:11): [True: 163, False: 251]
  |  Branch (1115:31): [True: 87, False: 164]
  ------------------
 1116|    250|#ifndef SUPPRESS_WARNINGS
 1117|    250|        EXV_ERROR << "Xmp.video Nikon Tags, dataLength was found to be of inappropriate size."
  ------------------
  |  |  142|    250|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 250]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    250|  LogMsg(LogMsg::error).os()
  ------------------
 1118|      0|                  << " Entries considered invalid. Not Processed.\n";
 1119|    250|#endif
 1120|    250|        io_->seek(io_->tell() + dataLength - 4, BasicIo::beg);
 1121|    250|      } else
 1122|    164|        io_->readOrThrow(buf.data(), dataLength - 4);
 1123|    414|    }
 1124|   136k|  }
 1125|       |
 1126|  1.58k|  io_->seek(cur_pos + size, BasicIo::beg);
 1127|  1.58k|}  // QuickTimeVideo::NikonTagsDecoder
_ZN5Exiv214QuickTimeVideo14setMediaStreamEv:
 1129|    790|void QuickTimeVideo::setMediaStream() {
 1130|    790|  size_t current_position = io_->tell();
 1131|    790|  DataBuf buf(4 + 1);
 1132|       |
 1133|   208k|  while (!io_->eof()) {
  ------------------
  |  Branch (1133:10): [True: 208k, False: 5]
  ------------------
 1134|   208k|    io_->readOrThrow(buf.data(), 4);
 1135|   208k|    if (equalsQTimeTag(buf, "hdlr")) {
  ------------------
  |  Branch (1135:9): [True: 785, False: 207k]
  ------------------
 1136|    785|      io_->readOrThrow(buf.data(), 4);
 1137|    785|      io_->readOrThrow(buf.data(), 4);
 1138|    785|      io_->readOrThrow(buf.data(), 4);
 1139|       |
 1140|    785|      if (equalsQTimeTag(buf, "vide"))
  ------------------
  |  Branch (1140:11): [True: 73, False: 712]
  ------------------
 1141|     73|        currentStream_ = Video;
 1142|    712|      else if (equalsQTimeTag(buf, "soun"))
  ------------------
  |  Branch (1142:16): [True: 138, False: 574]
  ------------------
 1143|    138|        currentStream_ = Audio;
 1144|    574|      else if (equalsQTimeTag(buf, "hint"))
  ------------------
  |  Branch (1144:16): [True: 45, False: 529]
  ------------------
 1145|     45|        currentStream_ = Hint;
 1146|    529|      else
 1147|    529|        currentStream_ = GenMediaHeader;
 1148|    785|      break;
 1149|    785|    }
 1150|   208k|  }
 1151|       |
 1152|    790|  io_->seek(current_position, BasicIo::beg);
 1153|    790|}  // QuickTimeVideo::setMediaStream
_ZN5Exiv214QuickTimeVideo19timeToSampleDecoderEv:
 1155|    143|void QuickTimeVideo::timeToSampleDecoder() {
 1156|    143|  DataBuf buf(4 + 1);
 1157|    143|  io_->readOrThrow(buf.data(), 4);
 1158|    143|  io_->readOrThrow(buf.data(), 4);
 1159|    143|  uint64_t totalframes = 0;
 1160|    143|  uint64_t timeOfFrames = 0;
 1161|    143|  const uint32_t noOfEntries = buf.read_uint32(0, bigEndian);
 1162|       |
 1163|    501|  for (uint32_t i = 0; i < noOfEntries; i++) {
  ------------------
  |  Branch (1163:24): [True: 358, False: 143]
  ------------------
 1164|    358|    io_->readOrThrow(buf.data(), 4);
 1165|    358|    const uint64_t temp = buf.read_uint32(0, bigEndian);
 1166|    358|    totalframes = Safe::add(totalframes, temp);
 1167|    358|    io_->readOrThrow(buf.data(), 4);
 1168|    358|    timeOfFrames = Safe::add(timeOfFrames, temp * buf.read_uint32(0, bigEndian));
 1169|    358|  }
 1170|    143|  if (currentStream_ == Video) {
  ------------------
  |  Branch (1170:7): [True: 83, False: 60]
  ------------------
 1171|     83|    if (timeOfFrames == 0)
  ------------------
  |  Branch (1171:9): [True: 44, False: 39]
  ------------------
 1172|     44|      timeOfFrames = 1;
 1173|     83|    xmpData_["Xmp.video.FrameRate"] =
 1174|     83|        static_cast<double>(totalframes) * static_cast<double>(mdhdTimeScale_) / static_cast<double>(timeOfFrames);
 1175|     83|  }
 1176|    143|}  // QuickTimeVideo::timeToSampleDecoder
_ZN5Exiv214QuickTimeVideo10sampleDescEm:
 1178|    383|void QuickTimeVideo::sampleDesc(size_t size) {
 1179|    383|  DataBuf buf(100);
 1180|    383|  size_t cur_pos = io_->tell();
 1181|    383|  io_->readOrThrow(buf.data(), 4);
 1182|    383|  io_->readOrThrow(buf.data(), 4);
 1183|    383|  const uint32_t noOfEntries = buf.read_uint32(0, bigEndian);
 1184|       |
 1185|   144k|  for (uint32_t i = 0; i < noOfEntries; i++) {
  ------------------
  |  Branch (1185:24): [True: 144k, False: 275]
  ------------------
 1186|   144k|    if (currentStream_ == Video)
  ------------------
  |  Branch (1186:9): [True: 73.4k, False: 71.0k]
  ------------------
 1187|  73.4k|      imageDescDecoder();
 1188|  71.0k|    else if (currentStream_ == Audio)
  ------------------
  |  Branch (1188:14): [True: 70.9k, False: 108]
  ------------------
 1189|  70.9k|      audioDescDecoder();
 1190|    108|    else
 1191|    108|      break;
 1192|   144k|  }
 1193|    383|  io_->seek(Safe::add(cur_pos, size), BasicIo::beg);
 1194|    383|}  // QuickTimeVideo::sampleDesc
_ZN5Exiv214QuickTimeVideo16audioDescDecoderEv:
 1196|  70.9k|void QuickTimeVideo::audioDescDecoder() {
 1197|  70.9k|  DataBuf buf(40);
 1198|  70.9k|  std::memset(buf.data(), 0x0, buf.size());
 1199|  70.9k|  buf.data()[4] = '\0';
 1200|  70.9k|  io_->readOrThrow(buf.data(), 4);
 1201|  70.9k|  size_t size = 82;
 1202|       |
 1203|  70.9k|  const TagVocabulary* td;
 1204|       |
 1205|  1.48M|  for (int i = 0; size / 4 != 0; size -= 4, i++) {
  ------------------
  |  Branch (1205:19): [True: 1.41M, False: 70.8k]
  ------------------
 1206|  1.41M|    io_->readOrThrow(buf.data(), 4);
 1207|  1.41M|    switch (i) {
 1208|  70.9k|      case AudioFormat:
  ------------------
  |  Branch (1208:7): [True: 70.9k, False: 1.34M]
  ------------------
 1209|  70.9k|        td = Exiv2::find(qTimeFileType, Exiv2::toString(buf.data()));
 1210|  70.9k|        if (td)
  ------------------
  |  Branch (1210:13): [True: 210, False: 70.7k]
  ------------------
 1211|    210|          xmpData_["Xmp.audio.Compressor"] = _(td->label_);
  ------------------
  |  |   40|    210|#define _(String) (String)
  ------------------
 1212|  70.7k|        else
 1213|  70.7k|          xmpData_["Xmp.audio.Compressor"] = buf.data();
 1214|  70.9k|        break;
 1215|  70.9k|      case AudioVendorID:
  ------------------
  |  Branch (1215:7): [True: 70.9k, False: 1.34M]
  ------------------
 1216|  70.9k|        td = Exiv2::find(vendorIDTags, Exiv2::toString(buf.data()));
 1217|  70.9k|        if (td)
  ------------------
  |  Branch (1217:13): [True: 555, False: 70.3k]
  ------------------
 1218|    555|          xmpData_["Xmp.audio.VendorID"] = _(td->label_);
  ------------------
  |  |   40|    555|#define _(String) (String)
  ------------------
 1219|  70.9k|        break;
 1220|  70.9k|      case AudioChannels:
  ------------------
  |  Branch (1220:7): [True: 70.9k, False: 1.34M]
  ------------------
 1221|  70.9k|        xmpData_["Xmp.audio.ChannelType"] = buf.read_uint16(0, bigEndian);
 1222|  70.9k|        xmpData_["Xmp.audio.BitsPerSample"] = ((buf.data()[2] * 256) + buf.data()[3]);
 1223|  70.9k|        break;
 1224|  70.8k|      case AudioSampleRate:
  ------------------
  |  Branch (1224:7): [True: 70.8k, False: 1.34M]
  ------------------
 1225|  70.8k|        xmpData_["Xmp.audio.SampleRate"] =
 1226|  70.8k|            buf.read_uint16(0, bigEndian) + ((buf.data()[2] * 256 + buf.data()[3]) * 0.01);
 1227|  70.8k|        break;
 1228|  1.13M|      default:
  ------------------
  |  Branch (1228:7): [True: 1.13M, False: 283k]
  ------------------
 1229|  1.13M|        break;
 1230|  1.41M|    }
 1231|  1.41M|  }
 1232|  70.8k|  io_->readOrThrow(buf.data(), static_cast<long>(size % 4));  // cause size is so small, this cast should be right.
 1233|  70.8k|}  // QuickTimeVideo::audioDescDecoder
_ZN5Exiv214QuickTimeVideo16imageDescDecoderEv:
 1235|  73.4k|void QuickTimeVideo::imageDescDecoder() {
 1236|  73.4k|  DataBuf buf(40);
 1237|  73.4k|  std::memset(buf.data(), 0x0, buf.size());
 1238|  73.4k|  buf.data()[4] = '\0';
 1239|  73.4k|  io_->readOrThrow(buf.data(), 4);
 1240|  73.4k|  size_t size = 82;
 1241|       |
 1242|  73.4k|  const TagVocabulary* td;
 1243|       |
 1244|   881k|  for (int i = 0; size / 4 != 0; size -= 4, i++) {
  ------------------
  |  Branch (1244:19): [True: 807k, False: 73.3k]
  ------------------
 1245|   807k|    io_->readOrThrow(buf.data(), 4);
 1246|       |
 1247|   807k|    switch (i) {
 1248|  73.4k|      case codec:
  ------------------
  |  Branch (1248:7): [True: 73.4k, False: 734k]
  ------------------
 1249|  73.4k|        td = Exiv2::find(qTimeFileType, Exiv2::toString(buf.data()));
 1250|  73.4k|        if (td)
  ------------------
  |  Branch (1250:13): [True: 570, False: 72.8k]
  ------------------
 1251|    570|          xmpData_["Xmp.video.Codec"] = _(td->label_);
  ------------------
  |  |   40|    570|#define _(String) (String)
  ------------------
 1252|  72.8k|        else
 1253|  72.8k|          xmpData_["Xmp.video.Codec"] = buf.data();
 1254|  73.4k|        break;
 1255|  73.4k|      case VendorID:
  ------------------
  |  Branch (1255:7): [True: 73.4k, False: 734k]
  ------------------
 1256|  73.4k|        td = Exiv2::find(vendorIDTags, Exiv2::toString(buf.data()));
 1257|  73.4k|        if (td)
  ------------------
  |  Branch (1257:13): [True: 567, False: 72.8k]
  ------------------
 1258|    567|          xmpData_["Xmp.video.VendorID"] = _(td->label_);
  ------------------
  |  |   40|    567|#define _(String) (String)
  ------------------
 1259|  73.4k|        break;
 1260|  73.4k|      case SourceImageWidth_Height:
  ------------------
  |  Branch (1260:7): [True: 73.4k, False: 734k]
  ------------------
 1261|  73.4k|        xmpData_["Xmp.video.SourceImageWidth"] = buf.read_uint16(0, bigEndian);
 1262|  73.4k|        xmpData_["Xmp.video.SourceImageHeight"] = ((buf.data()[2] * 256) + buf.data()[3]);
 1263|  73.4k|        break;
 1264|  73.4k|      case XResolution:
  ------------------
  |  Branch (1264:7): [True: 73.4k, False: 734k]
  ------------------
 1265|  73.4k|        xmpData_["Xmp.video.XResolution"] =
 1266|  73.4k|            buf.read_uint16(0, bigEndian) + ((buf.data()[2] * 256 + buf.data()[3]) * 0.01);
 1267|  73.4k|        break;
 1268|  73.4k|      case YResolution:
  ------------------
  |  Branch (1268:7): [True: 73.4k, False: 734k]
  ------------------
 1269|  73.4k|        xmpData_["Xmp.video.YResolution"] =
 1270|  73.4k|            buf.read_uint16(0, bigEndian) + ((buf.data()[2] * 256 + buf.data()[3]) * 0.01);
 1271|  73.4k|        io_->readOrThrow(buf.data(), 3);
 1272|  73.4k|        size -= 3;
 1273|  73.4k|        break;
 1274|  73.3k|      case CompressorName:
  ------------------
  |  Branch (1274:7): [True: 73.3k, False: 734k]
  ------------------
 1275|  73.3k|        io_->readOrThrow(buf.data(), 32);
 1276|  73.3k|        size -= 32;
 1277|  73.3k|        xmpData_["Xmp.video.Compressor"] = buf.data();
 1278|  73.3k|        break;
 1279|   367k|      default:
  ------------------
  |  Branch (1279:7): [True: 367k, False: 440k]
  ------------------
 1280|   367k|        break;
 1281|   807k|    }
 1282|   807k|  }
 1283|  73.3k|  io_->readOrThrow(buf.data(), static_cast<long>(size % 4));
 1284|  73.3k|  xmpData_["Xmp.video.BitDepth"] = static_cast<int>(buf.read_uint8(0));
 1285|  73.3k|}  // QuickTimeVideo::imageDescDecoder
_ZN5Exiv214QuickTimeVideo22multipleEntriesDecoderEm:
 1287|  5.09k|void QuickTimeVideo::multipleEntriesDecoder(size_t recursion_depth) {
 1288|  5.09k|  enforce(recursion_depth < max_recursion_depth_, Exiv2::ErrorCode::kerCorruptedMetadata);
 1289|  5.09k|  DataBuf buf(4 + 1);
 1290|  5.09k|  io_->readOrThrow(buf.data(), 4);
 1291|  5.09k|  io_->readOrThrow(buf.data(), 4);
 1292|  5.09k|  uint32_t noOfEntries;
 1293|       |
 1294|  5.09k|  noOfEntries = buf.read_uint32(0, bigEndian);
 1295|       |
 1296|  11.9k|  for (uint32_t i = 0; i < noOfEntries && continueTraversing_; i++) {
  ------------------
  |  Branch (1296:24): [True: 7.34k, False: 4.63k]
  |  Branch (1296:43): [True: 6.88k, False: 465]
  ------------------
 1297|  6.88k|    decodeBlock(recursion_depth + 1);
 1298|  6.88k|  }
 1299|  5.09k|}  // QuickTimeVideo::multipleEntriesDecoder
_ZN5Exiv214QuickTimeVideo18videoHeaderDecoderEm:
 1301|    805|void QuickTimeVideo::videoHeaderDecoder(size_t size) {
 1302|    805|  DataBuf buf(3);
 1303|    805|  std::memset(buf.data(), 0x0, buf.size());
 1304|    805|  buf.data()[2] = '\0';
 1305|    805|  currentStream_ = Video;
 1306|       |
 1307|    805|  const TagDetails* td;
 1308|       |
 1309|  8.10k|  for (int i = 0; size / 2 != 0; size -= 2, i++) {
  ------------------
  |  Branch (1309:19): [True: 7.29k, False: 805]
  ------------------
 1310|  7.29k|    io_->readOrThrow(buf.data(), 2);
 1311|       |
 1312|  7.29k|    switch (i) {
 1313|    794|      case GraphicsMode:
  ------------------
  |  Branch (1313:7): [True: 794, False: 6.50k]
  ------------------
 1314|    794|        td = Exiv2::find(graphicsModetags, buf.read_uint16(0, bigEndian));
 1315|    794|        if (td)
  ------------------
  |  Branch (1315:13): [True: 611, False: 183]
  ------------------
 1316|    611|          xmpData_["Xmp.video.GraphicsMode"] = _(td->label_);
  ------------------
  |  |   40|    611|#define _(String) (String)
  ------------------
 1317|    794|        break;
 1318|    303|      case OpColor:
  ------------------
  |  Branch (1318:7): [True: 303, False: 6.99k]
  ------------------
 1319|    303|        xmpData_["Xmp.video.OpColor"] = buf.read_uint16(0, bigEndian);
 1320|    303|        break;
 1321|  6.20k|      default:
  ------------------
  |  Branch (1321:7): [True: 6.20k, False: 1.09k]
  ------------------
 1322|  6.20k|        break;
 1323|  7.29k|    }
 1324|  7.29k|  }
 1325|    805|  io_->readOrThrow(buf.data(), size % 2);
 1326|    805|}  // QuickTimeVideo::videoHeaderDecoder
_ZN5Exiv214QuickTimeVideo14handlerDecoderEm:
 1328|    314|void QuickTimeVideo::handlerDecoder(size_t size) {
 1329|    314|  size_t cur_pos = io_->tell();
 1330|    314|  DataBuf buf(100);
 1331|    314|  std::memset(buf.data(), 0x0, buf.size());
 1332|    314|  buf.data()[4] = '\0';
 1333|       |
 1334|    314|  const TagVocabulary* tv;
 1335|       |
 1336|  1.87k|  for (int i = 0; i < 5; i++) {
  ------------------
  |  Branch (1336:19): [True: 1.56k, False: 311]
  ------------------
 1337|  1.56k|    io_->readOrThrow(buf.data(), 4);
 1338|       |
 1339|  1.56k|    switch (i) {
  ------------------
  |  Branch (1339:13): [True: 938, False: 628]
  ------------------
 1340|    314|      case HandlerClass:
  ------------------
  |  Branch (1340:7): [True: 314, False: 1.25k]
  ------------------
 1341|    314|        tv = Exiv2::find(handlerClassTags, Exiv2::toString(buf.data()));
 1342|    314|        if (tv) {
  ------------------
  |  Branch (1342:13): [True: 34, False: 280]
  ------------------
 1343|     34|          if (currentStream_ == Video)
  ------------------
  |  Branch (1343:15): [True: 21, False: 13]
  ------------------
 1344|     21|            xmpData_["Xmp.video.HandlerClass"] = _(tv->label_);
  ------------------
  |  |   40|     21|#define _(String) (String)
  ------------------
 1345|     13|          else if (currentStream_ == Audio)
  ------------------
  |  Branch (1345:20): [True: 6, False: 7]
  ------------------
 1346|      6|            xmpData_["Xmp.audio.HandlerClass"] = _(tv->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1347|     34|        }
 1348|    314|        break;
 1349|    313|      case HandlerType:
  ------------------
  |  Branch (1349:7): [True: 313, False: 1.25k]
  ------------------
 1350|    313|        tv = Exiv2::find(handlerTypeTags, Exiv2::toString(buf.data()));
 1351|    313|        if (tv) {
  ------------------
  |  Branch (1351:13): [True: 236, False: 77]
  ------------------
 1352|    236|          if (currentStream_ == Video)
  ------------------
  |  Branch (1352:15): [True: 47, False: 189]
  ------------------
 1353|     47|            xmpData_["Xmp.video.HandlerType"] = _(tv->label_);
  ------------------
  |  |   40|     47|#define _(String) (String)
  ------------------
 1354|    189|          else if (currentStream_ == Audio)
  ------------------
  |  Branch (1354:20): [True: 80, False: 109]
  ------------------
 1355|     80|            xmpData_["Xmp.audio.HandlerType"] = _(tv->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
 1356|    236|        }
 1357|    313|        break;
 1358|    311|      case HandlerVendorID:
  ------------------
  |  Branch (1358:7): [True: 311, False: 1.25k]
  ------------------
 1359|    311|        tv = Exiv2::find(vendorIDTags, Exiv2::toString(buf.data()));
 1360|    311|        if (tv) {
  ------------------
  |  Branch (1360:13): [True: 104, False: 207]
  ------------------
 1361|    104|          if (currentStream_ == Video)
  ------------------
  |  Branch (1361:15): [True: 21, False: 83]
  ------------------
 1362|     21|            xmpData_["Xmp.video.HandlerVendorID"] = _(tv->label_);
  ------------------
  |  |   40|     21|#define _(String) (String)
  ------------------
 1363|     83|          else if (currentStream_ == Audio)
  ------------------
  |  Branch (1363:20): [True: 49, False: 34]
  ------------------
 1364|     49|            xmpData_["Xmp.audio.HandlerVendorID"] = _(tv->label_);
  ------------------
  |  |   40|     49|#define _(String) (String)
  ------------------
 1365|    104|        }
 1366|    311|        break;
 1367|  1.56k|    }
 1368|  1.56k|  }
 1369|    311|  io_->seek(cur_pos + size, BasicIo::beg);
 1370|    311|}  // QuickTimeVideo::handlerDecoder
_ZN5Exiv214QuickTimeVideo15fileTypeDecoderEm:
 1372|  3.47k|void QuickTimeVideo::fileTypeDecoder(size_t size) {
 1373|  3.47k|  DataBuf buf(5);
 1374|  3.47k|  std::memset(buf.data(), 0x0, buf.size());
 1375|  3.47k|  buf.data()[4] = '\0';
 1376|  3.47k|  Exiv2::Value::UniquePtr v = Exiv2::Value::create(Exiv2::xmpSeq);
 1377|  3.47k|  const TagVocabulary* td;
 1378|       |
 1379|  47.7k|  for (int i = 0; size / 4 != 0; size -= 4, i++) {
  ------------------
  |  Branch (1379:19): [True: 44.3k, False: 3.47k]
  ------------------
 1380|  44.3k|    io_->readOrThrow(buf.data(), 4);
 1381|  44.3k|    td = Exiv2::find(qTimeFileType, Exiv2::toString(buf.data()));
 1382|       |
 1383|  44.3k|    switch (i) {
 1384|  3.46k|      case 0:
  ------------------
  |  Branch (1384:7): [True: 3.46k, False: 40.8k]
  ------------------
 1385|  3.46k|        if (td)
  ------------------
  |  Branch (1385:13): [True: 2.89k, False: 570]
  ------------------
 1386|  2.89k|          xmpData_["Xmp.video.MajorBrand"] = _(td->label_);
  ------------------
  |  |   40|  2.89k|#define _(String) (String)
  ------------------
 1387|  3.46k|        break;
 1388|  2.67k|      case 1:
  ------------------
  |  Branch (1388:7): [True: 2.67k, False: 41.6k]
  ------------------
 1389|  2.67k|        xmpData_["Xmp.video.MinorVersion"] = buf.read_uint32(0, bigEndian);
 1390|  2.67k|        break;
 1391|  38.1k|      default:
  ------------------
  |  Branch (1391:7): [True: 38.1k, False: 6.13k]
  ------------------
 1392|  38.1k|        if (td)
  ------------------
  |  Branch (1392:13): [True: 836, False: 37.3k]
  ------------------
 1393|    836|          v->read(_(td->label_));
  ------------------
  |  |   40|    836|#define _(String) (String)
  ------------------
 1394|  37.3k|        else
 1395|  37.3k|          v->read(Exiv2::toString(buf.data()));
 1396|  38.1k|        break;
 1397|  44.3k|    }
 1398|  44.3k|  }
 1399|  3.47k|  xmpData_.add(Exiv2::XmpKey("Xmp.video.CompatibleBrands"), v.get());
 1400|  3.47k|  io_->readOrThrow(buf.data(), size % 4);
 1401|  3.47k|}  // QuickTimeVideo::fileTypeDecoder
_ZN5Exiv214QuickTimeVideo18mediaHeaderDecoderEm:
 1403|     54|void QuickTimeVideo::mediaHeaderDecoder(size_t size) {
 1404|     54|  DataBuf buf(5);
 1405|     54|  std::memset(buf.data(), 0x0, buf.size());
 1406|     54|  buf.data()[4] = '\0';
 1407|     54|  int64_t time_scale = 1;
 1408|       |
 1409|    541|  for (int i = 0; size / 4 != 0; size -= 4, i++) {
  ------------------
  |  Branch (1409:19): [True: 487, False: 54]
  ------------------
 1410|    487|    io_->readOrThrow(buf.data(), 4);
 1411|       |
 1412|    487|    switch (i) {
 1413|     38|      case MediaHeaderVersion:
  ------------------
  |  Branch (1413:7): [True: 38, False: 449]
  ------------------
 1414|     38|        if (currentStream_ == Video)
  ------------------
  |  Branch (1414:13): [True: 15, False: 23]
  ------------------
 1415|     15|          xmpData_["Xmp.video.MediaHeaderVersion"] = static_cast<int>(buf.read_uint8(0));
 1416|     23|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1416:18): [True: 5, False: 18]
  ------------------
 1417|      5|          xmpData_["Xmp.audio.MediaHeaderVersion"] = static_cast<int>(buf.read_uint8(0));
 1418|     38|        break;
 1419|     37|      case MediaCreateDate:
  ------------------
  |  Branch (1419:7): [True: 37, False: 450]
  ------------------
 1420|       |        // A 32-bit integer that specifies (in seconds since midnight, January 1, 1904) when the movie atom was created.
 1421|     37|        if (currentStream_ == Video)
  ------------------
  |  Branch (1421:13): [True: 14, False: 23]
  ------------------
 1422|     14|          xmpData_["Xmp.video.MediaCreateDate"] = buf.read_uint32(0, bigEndian);
 1423|     23|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1423:18): [True: 5, False: 18]
  ------------------
 1424|      5|          xmpData_["Xmp.audio.MediaCreateDate"] = buf.read_uint32(0, bigEndian);
 1425|     37|        break;
 1426|     36|      case MediaModifyDate:
  ------------------
  |  Branch (1426:7): [True: 36, False: 451]
  ------------------
 1427|       |        // A 32-bit integer that specifies (in seconds since midnight, January 1, 1904) when the movie atom was created.
 1428|     36|        if (currentStream_ == Video)
  ------------------
  |  Branch (1428:13): [True: 14, False: 22]
  ------------------
 1429|     14|          xmpData_["Xmp.video.MediaModifyDate"] = buf.read_uint32(0, bigEndian);
 1430|     22|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1430:18): [True: 5, False: 17]
  ------------------
 1431|      5|          xmpData_["Xmp.audio.MediaModifyDate"] = buf.read_uint32(0, bigEndian);
 1432|     36|        break;
 1433|     29|      case MediaTimeScale:
  ------------------
  |  Branch (1433:7): [True: 29, False: 458]
  ------------------
 1434|     29|        if (currentStream_ == Video)
  ------------------
  |  Branch (1434:13): [True: 10, False: 19]
  ------------------
 1435|     10|          xmpData_["Xmp.video.MediaTimeScale"] = buf.read_uint32(0, bigEndian);
 1436|     19|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1436:18): [True: 5, False: 14]
  ------------------
 1437|      5|          xmpData_["Xmp.audio.MediaTimeScale"] = buf.read_uint32(0, bigEndian);
 1438|     29|        time_scale = std::max(1U, buf.read_uint32(0, bigEndian));
 1439|     29|        mdhdTimeScale_ = time_scale;
 1440|     29|        break;
 1441|     26|      case MediaDuration:
  ------------------
  |  Branch (1441:7): [True: 26, False: 461]
  ------------------
 1442|     26|        if (currentStream_ == Video)
  ------------------
  |  Branch (1442:13): [True: 9, False: 17]
  ------------------
 1443|      9|          xmpData_["Xmp.video.MediaDuration"] = time_scale ? buf.read_uint32(0, bigEndian) / time_scale : 0;
  ------------------
  |  Branch (1443:49): [True: 9, False: 0]
  ------------------
 1444|     17|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1444:18): [True: 5, False: 12]
  ------------------
 1445|      5|          xmpData_["Xmp.audio.MediaDuration"] = time_scale ? buf.read_uint32(0, bigEndian) / time_scale : 0;
  ------------------
  |  Branch (1445:49): [True: 5, False: 0]
  ------------------
 1446|     26|        break;
 1447|     26|      case MediaLanguageCode:
  ------------------
  |  Branch (1447:7): [True: 26, False: 461]
  ------------------
 1448|     26|        if (currentStream_ == Video)
  ------------------
  |  Branch (1448:13): [True: 9, False: 17]
  ------------------
 1449|      9|          xmpData_["Xmp.video.MediaLangCode"] = buf.read_uint16(0, bigEndian);
 1450|     17|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1450:18): [True: 5, False: 12]
  ------------------
 1451|      5|          xmpData_["Xmp.audio.MediaLangCode"] = buf.read_uint16(0, bigEndian);
 1452|     26|        break;
 1453|       |
 1454|    295|      default:
  ------------------
  |  Branch (1454:7): [True: 295, False: 192]
  ------------------
 1455|    295|        break;
 1456|    487|    }
 1457|    487|  }
 1458|     54|  io_->readOrThrow(buf.data(), size % 4);
 1459|     54|}  // QuickTimeVideo::mediaHeaderDecoder
_ZN5Exiv214QuickTimeVideo18trackHeaderDecoderEm:
 1461|    213|void QuickTimeVideo::trackHeaderDecoder(size_t size) {
 1462|    213|  DataBuf buf(5);
 1463|    213|  std::memset(buf.data(), 0x0, buf.size());
 1464|    213|  buf.data()[4] = '\0';
 1465|    213|  int64_t temp = 0;
 1466|       |
 1467|    989|  for (int i = 0; size / 4 != 0; size -= 4, i++) {
  ------------------
  |  Branch (1467:19): [True: 776, False: 213]
  ------------------
 1468|    776|    io_->readOrThrow(buf.data(), 4);
 1469|       |
 1470|    776|    switch (i) {
 1471|     29|      case TrackHeaderVersion:
  ------------------
  |  Branch (1471:7): [True: 29, False: 747]
  ------------------
 1472|     29|        if (currentStream_ == Video)
  ------------------
  |  Branch (1472:13): [True: 10, False: 19]
  ------------------
 1473|     10|          xmpData_["Xmp.video.TrackHeaderVersion"] = static_cast<int>(buf.read_uint8(0));
 1474|     19|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1474:18): [True: 7, False: 12]
  ------------------
 1475|      7|          xmpData_["Xmp.audio.TrackHeaderVersion"] = static_cast<int>(buf.read_uint8(0));
 1476|     29|        break;
 1477|     28|      case TrackCreateDate:
  ------------------
  |  Branch (1477:7): [True: 28, False: 748]
  ------------------
 1478|       |        // A 32-bit integer that specifies (in seconds since midnight, January 1, 1904) when the movie atom was created.
 1479|     28|        if (currentStream_ == Video)
  ------------------
  |  Branch (1479:13): [True: 10, False: 18]
  ------------------
 1480|     10|          xmpData_["Xmp.video.TrackCreateDate"] = buf.read_uint32(0, bigEndian);
 1481|     18|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1481:18): [True: 7, False: 11]
  ------------------
 1482|      7|          xmpData_["Xmp.audio.TrackCreateDate"] = buf.read_uint32(0, bigEndian);
 1483|     28|        break;
 1484|     27|      case TrackModifyDate:
  ------------------
  |  Branch (1484:7): [True: 27, False: 749]
  ------------------
 1485|       |        // A 32-bit integer that specifies (in seconds since midnight, January 1, 1904) when the movie atom was created.
 1486|     27|        if (currentStream_ == Video)
  ------------------
  |  Branch (1486:13): [True: 10, False: 17]
  ------------------
 1487|     10|          xmpData_["Xmp.video.TrackModifyDate"] = buf.read_uint32(0, bigEndian);
 1488|     17|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1488:18): [True: 7, False: 10]
  ------------------
 1489|      7|          xmpData_["Xmp.audio.TrackModifyDate"] = buf.read_uint32(0, bigEndian);
 1490|     27|        break;
 1491|     26|      case TrackID:
  ------------------
  |  Branch (1491:7): [True: 26, False: 750]
  ------------------
 1492|     26|        if (currentStream_ == Video)
  ------------------
  |  Branch (1492:13): [True: 10, False: 16]
  ------------------
 1493|     10|          xmpData_["Xmp.video.TrackID"] = buf.read_uint32(0, bigEndian);
 1494|     16|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1494:18): [True: 7, False: 9]
  ------------------
 1495|      7|          xmpData_["Xmp.audio.TrackID"] = buf.read_uint32(0, bigEndian);
 1496|     26|        break;
 1497|     24|      case TrackDuration:
  ------------------
  |  Branch (1497:7): [True: 24, False: 752]
  ------------------
 1498|     24|        if (currentStream_ == Video)
  ------------------
  |  Branch (1498:13): [True: 10, False: 14]
  ------------------
 1499|     10|          xmpData_["Xmp.video.TrackDuration"] = mvhdTimeScale_ ? buf.read_uint32(0, bigEndian) / mvhdTimeScale_ : 0;
  ------------------
  |  Branch (1499:49): [True: 10, False: 0]
  ------------------
 1500|     14|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1500:18): [True: 6, False: 8]
  ------------------
 1501|      6|          xmpData_["Xmp.audio.TrackDuration"] = mvhdTimeScale_ ? buf.read_uint32(0, bigEndian) / mvhdTimeScale_ : 0;
  ------------------
  |  Branch (1501:49): [True: 6, False: 0]
  ------------------
 1502|     24|        break;
 1503|     22|      case TrackLayer:
  ------------------
  |  Branch (1503:7): [True: 22, False: 754]
  ------------------
 1504|     22|        if (currentStream_ == Video)
  ------------------
  |  Branch (1504:13): [True: 10, False: 12]
  ------------------
 1505|     10|          xmpData_["Xmp.video.TrackLayer"] = buf.read_uint16(0, bigEndian);
 1506|     12|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1506:18): [True: 6, False: 6]
  ------------------
 1507|      6|          xmpData_["Xmp.audio.TrackLayer"] = buf.read_uint16(0, bigEndian);
 1508|     22|        break;
 1509|     21|      case TrackVolume:
  ------------------
  |  Branch (1509:7): [True: 21, False: 755]
  ------------------
 1510|     21|        if (currentStream_ == Video)
  ------------------
  |  Branch (1510:13): [True: 9, False: 12]
  ------------------
 1511|      9|          xmpData_["Xmp.video.TrackVolume"] = (static_cast<int>(buf.read_uint8(0)) + (buf.data()[2] * 0.1)) * 100;
 1512|     12|        else if (currentStream_ == Audio)
  ------------------
  |  Branch (1512:18): [True: 6, False: 6]
  ------------------
 1513|      6|          xmpData_["Xmp.video.TrackVolume"] = (static_cast<int>(buf.read_uint8(0)) + (buf.data()[2] * 0.1)) * 100;
 1514|     21|        break;
 1515|     18|      case ImageWidth:
  ------------------
  |  Branch (1515:7): [True: 18, False: 758]
  ------------------
 1516|     18|        if (currentStream_ == Video) {
  ------------------
  |  Branch (1516:13): [True: 6, False: 12]
  ------------------
 1517|      6|          temp = buf.read_uint16(0, bigEndian) + static_cast<int64_t>((buf.data()[2] * 256 + buf.data()[3]) * 0.01);
 1518|      6|          xmpData_["Xmp.video.Width"] = temp;
 1519|      6|          width_ = temp;
 1520|      6|        }
 1521|     18|        break;
 1522|     18|      case ImageHeight:
  ------------------
  |  Branch (1522:7): [True: 18, False: 758]
  ------------------
 1523|     18|        if (currentStream_ == Video) {
  ------------------
  |  Branch (1523:13): [True: 6, False: 12]
  ------------------
 1524|      6|          temp = buf.read_uint16(0, bigEndian) + static_cast<int64_t>((buf.data()[2] * 256 + buf.data()[3]) * 0.01);
 1525|      6|          xmpData_["Xmp.video.Height"] = temp;
 1526|      6|          height_ = temp;
 1527|      6|        }
 1528|     18|        break;
 1529|    563|      default:
  ------------------
  |  Branch (1529:7): [True: 563, False: 213]
  ------------------
 1530|    563|        break;
 1531|    776|    }
 1532|    776|  }
 1533|    213|  io_->readOrThrow(buf.data(), size % 4);
 1534|    213|}  // QuickTimeVideo::trackHeaderDecoder
_ZN5Exiv214QuickTimeVideo18movieHeaderDecoderEm:
 1536|     55|void QuickTimeVideo::movieHeaderDecoder(size_t size) {
 1537|     55|  DataBuf buf(5);
 1538|     55|  std::memset(buf.data(), 0x0, buf.size());
 1539|     55|  buf.data()[4] = '\0';
 1540|       |
 1541|    946|  for (int i = 0; size / 4 != 0; size -= 4, i++) {
  ------------------
  |  Branch (1541:19): [True: 891, False: 55]
  ------------------
 1542|    891|    io_->readOrThrow(buf.data(), 4);
 1543|       |
 1544|    891|    switch (i) {
 1545|     33|      case MovieHeaderVersion:
  ------------------
  |  Branch (1545:7): [True: 33, False: 858]
  ------------------
 1546|     33|        xmpData_["Xmp.video.MovieHeaderVersion"] = static_cast<int>(buf.read_uint8(0));
 1547|     33|        break;
 1548|     31|      case CreateDate:
  ------------------
  |  Branch (1548:7): [True: 31, False: 860]
  ------------------
 1549|       |        // A 32-bit integer that specifies (in seconds since midnight, January 1, 1904) when the movie atom was created.
 1550|     31|        xmpData_["Xmp.video.DateUTC"] = buf.read_uint32(0, bigEndian);
 1551|     31|        break;
 1552|     30|      case ModifyDate:
  ------------------
  |  Branch (1552:7): [True: 30, False: 861]
  ------------------
 1553|       |        // A 32-bit integer that specifies (in seconds since midnight, January 1, 1904) when the movie atom was created.
 1554|     30|        xmpData_["Xmp.video.ModificationDate"] = buf.read_uint32(0, bigEndian);
 1555|     30|        break;
 1556|     29|      case TimeScale:
  ------------------
  |  Branch (1556:7): [True: 29, False: 862]
  ------------------
 1557|     29|        xmpData_["Xmp.video.TimeScale"] = buf.read_uint32(0, bigEndian);
 1558|     29|        mvhdTimeScale_ = std::max(1U, buf.read_uint32(0, bigEndian));
 1559|     29|        break;
 1560|     27|      case Duration:
  ------------------
  |  Branch (1560:7): [True: 27, False: 864]
  ------------------
 1561|     27|        if (mvhdTimeScale_ != 0) {  // To prevent division by zero
  ------------------
  |  Branch (1561:13): [True: 27, False: 0]
  ------------------
 1562|     27|          xmpData_["Xmp.video.Duration"] = buf.read_uint32(0, bigEndian) * 1000 / mvhdTimeScale_;
 1563|     27|        }
 1564|     27|        break;
 1565|     27|      case PreferredRate:
  ------------------
  |  Branch (1565:7): [True: 27, False: 864]
  ------------------
 1566|     27|        xmpData_["Xmp.video.PreferredRate"] =
 1567|     27|            buf.read_uint16(0, bigEndian) + ((buf.data()[2] * 256 + buf.data()[3]) * 0.01);
 1568|     27|        break;
 1569|     27|      case PreferredVolume:
  ------------------
  |  Branch (1569:7): [True: 27, False: 864]
  ------------------
 1570|     27|        xmpData_["Xmp.video.PreferredVolume"] = (static_cast<int>(buf.read_uint8(0)) + (buf.data()[2] * 0.1)) * 100;
 1571|     27|        break;
 1572|     18|      case PreviewTime:
  ------------------
  |  Branch (1572:7): [True: 18, False: 873]
  ------------------
 1573|     18|        xmpData_["Xmp.video.PreviewTime"] = buf.read_uint32(0, bigEndian);
 1574|     18|        break;
 1575|     18|      case PreviewDuration:
  ------------------
  |  Branch (1575:7): [True: 18, False: 873]
  ------------------
 1576|     18|        xmpData_["Xmp.video.PreviewDuration"] = buf.read_uint32(0, bigEndian);
 1577|     18|        break;
 1578|     18|      case PosterTime:
  ------------------
  |  Branch (1578:7): [True: 18, False: 873]
  ------------------
 1579|     18|        xmpData_["Xmp.video.PosterTime"] = buf.read_uint32(0, bigEndian);
 1580|     18|        break;
 1581|     18|      case SelectionTime:
  ------------------
  |  Branch (1581:7): [True: 18, False: 873]
  ------------------
 1582|     18|        xmpData_["Xmp.video.SelectionTime"] = buf.read_uint32(0, bigEndian);
 1583|     18|        break;
 1584|     18|      case SelectionDuration:
  ------------------
  |  Branch (1584:7): [True: 18, False: 873]
  ------------------
 1585|     18|        xmpData_["Xmp.video.SelectionDuration"] = buf.read_uint32(0, bigEndian);
 1586|     18|        break;
 1587|     18|      case CurrentTime:
  ------------------
  |  Branch (1587:7): [True: 18, False: 873]
  ------------------
 1588|     18|        xmpData_["Xmp.video.CurrentTime"] = buf.read_uint32(0, bigEndian);
 1589|     18|        break;
 1590|     18|      case NextTrackID:
  ------------------
  |  Branch (1590:7): [True: 18, False: 873]
  ------------------
 1591|     18|        xmpData_["Xmp.video.NextTrackID"] = buf.read_uint32(0, bigEndian);
 1592|     18|        break;
 1593|    561|      default:
  ------------------
  |  Branch (1593:7): [True: 561, False: 330]
  ------------------
 1594|    561|        break;
 1595|    891|    }
 1596|    891|  }
 1597|     55|  io_->readOrThrow(buf.data(), size % 4);
 1598|     55|}  // QuickTimeVideo::movieHeaderDecoder
_ZN5Exiv216newQTimeInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
 1600|  1.85k|Image::UniquePtr newQTimeInstance(BasicIo::UniquePtr io, bool /*create*/) {
 1601|  1.85k|  auto image = std::make_unique<QuickTimeVideo>(std::move(io));
 1602|  1.85k|  if (!image->good()) {
  ------------------
  |  Branch (1602:7): [True: 1, False: 1.85k]
  ------------------
 1603|      1|    return nullptr;
 1604|      1|  }
 1605|  1.85k|  return image;
 1606|  1.85k|}
_ZN5Exiv211isQTimeTypeERNS_7BasicIoEb:
 1608|  12.8k|bool isQTimeType(BasicIo& iIo, bool advance) {
 1609|  12.8k|  auto buf = DataBuf(12);
 1610|  12.8k|  iIo.read(buf.data(), 12);
 1611|       |
 1612|  12.8k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (1612:7): [True: 0, False: 12.8k]
  |  Branch (1612:22): [True: 139, False: 12.7k]
  ------------------
 1613|    139|    return false;
 1614|    139|  }
 1615|  12.7k|  auto qTimeTags = std::array{"PICT", "free", "ftyp", "junk", "mdat", "moov", "pict", "pnot", "skip", "uuid", "wide"};
 1616|       |
 1617|  12.7k|  bool matched = false;
 1618|       |
 1619|  58.4k|  for (auto const& tag : qTimeTags) {
  ------------------
  |  Branch (1619:24): [True: 58.4k, False: 2.11k]
  ------------------
 1620|  58.4k|    auto tmp = buf.cmpBytes(4, tag, 4);
 1621|  58.4k|    if (tmp == 0) {
  ------------------
  |  Branch (1621:9): [True: 10.6k, False: 47.7k]
  ------------------
 1622|       |      // we only match if we actually know the video type. This is done
 1623|       |      // to avoid matching just on ftyp because bmffimage also has that
 1624|       |      // header.
 1625|  10.6k|      if (Exiv2::find(qTimeFileType, std::string{buf.c_str(8), 4})) {
  ------------------
  |  Branch (1625:11): [True: 5.56k, False: 5.09k]
  ------------------
 1626|  5.56k|        matched = true;
 1627|  5.56k|      }
 1628|  10.6k|      break;
 1629|  10.6k|    }
 1630|  58.4k|  }
 1631|       |
 1632|  12.7k|  if (!advance || !matched) {
  ------------------
  |  Branch (1632:7): [True: 12.7k, False: 0]
  |  Branch (1632:19): [True: 0, False: 0]
  ------------------
 1633|  12.7k|    iIo.seek(0L, BasicIo::beg);
 1634|  12.7k|  }
 1635|       |
 1636|  12.7k|  return matched;
 1637|  12.8k|}
quicktimevideo.cpp:_ZN5Exiv28InternalL10ignoreListERNS_7DataBufE:
  503|  37.2k|static bool ignoreList(Exiv2::DataBuf& buf) {
  504|  37.2k|  const char ignoreList[13][5] = {
  505|  37.2k|      "mdat", "edts", "junk", "iods", "alis", "stsc", "stsz", "stco", "ctts", "stss", "skip", "wide", "cmvd",
  506|  37.2k|  };
  507|       |
  508|  37.2k|  for (auto i : ignoreList)
  ------------------
  |  Branch (508:15): [True: 480k, False: 36.9k]
  ------------------
  509|   480k|    if (equalsQTimeTag(buf, i))
  ------------------
  |  Branch (509:9): [True: 370, False: 480k]
  ------------------
  510|    370|      return true;
  511|       |
  512|  36.9k|  return false;
  513|  37.2k|}
quicktimevideo.cpp:_ZN5Exiv28InternalL14dataIgnoreListERNS_7DataBufE:
  522|  18.4k|static bool dataIgnoreList(Exiv2::DataBuf& buf) {
  523|  18.4k|  const char ignoreList[8][5] = {
  524|  18.4k|      "moov", "mdia", "minf", "dinf", "alis", "stbl", "cmov", "meta",
  525|  18.4k|  };
  526|       |
  527|  18.4k|  for (auto i : ignoreList)
  ------------------
  |  Branch (527:15): [True: 143k, False: 17.4k]
  ------------------
  528|   143k|    if (equalsQTimeTag(buf, i))
  ------------------
  |  Branch (528:9): [True: 975, False: 142k]
  ------------------
  529|    975|      return true;
  530|       |
  531|  17.4k|  return false;
  532|  18.4k|}
quicktimevideo.cpp:_ZN5Exiv28InternalL14equalsQTimeTagERNS_7DataBufEPKc:
  492|  1.00M|static bool equalsQTimeTag(Exiv2::DataBuf& buf, const char str[5]) {
  493|  1.00M|  return std::equal(buf.begin(), buf.begin() + 4, str,
  494|  1.00M|                    [](auto b, auto s) { return std::tolower(b) == std::tolower(s); });
  495|  1.00M|}
quicktimevideo.cpp:_ZZN5Exiv28InternalL14equalsQTimeTagERNS_7DataBufEPKcENK3$_0clIhcEEDaT_T0_:
  494|  1.11M|                    [](auto b, auto s) { return std::tolower(b) == std::tolower(s); });
quicktimevideo.cpp:_ZN5Exiv2L10readStringERNS_7BasicIoEm:
  627|    352|static std::string readString(BasicIo& io, size_t size) {
  628|    352|  enforce(size <= io.size() - io.tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  629|    352|  Exiv2::DataBuf str(size + 1);
  630|    352|  io.readOrThrow(str.data(), size);
  631|    352|  str.write_uint8(size, 0);  // nul-terminate string
  632|    352|  return Exiv2::toString(str.data());
  633|    352|}

_ZN5Exiv28RafImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   25|    156|    Image(ImageType::raf, mdExif | mdIptc | mdXmp, std::move(io)) {
   26|    156|}  // RafImage::RafImage
_ZNK5Exiv28RafImage10pixelWidthEv:
   32|     14|uint32_t RafImage::pixelWidth() const {
   33|     14|  if (pixelWidth_ != 0)
  ------------------
  |  Branch (33:7): [True: 0, False: 14]
  ------------------
   34|      0|    return pixelWidth_;
   35|       |
   36|     14|  auto widthIter = exifData_.findKey(Exiv2::ExifKey("Exif.Fujifilm.RawImageFullWidth"));
   37|     14|  if (widthIter == exifData_.end() || widthIter->count() == 0)
  ------------------
  |  Branch (37:7): [True: 14, False: 0]
  |  Branch (37:7): [True: 14, False: 0]
  |  Branch (37:39): [True: 0, False: 0]
  ------------------
   38|     14|    return 0;
   39|      0|  return widthIter->toUint32();
   40|     14|}
_ZNK5Exiv28RafImage11pixelHeightEv:
   42|     14|uint32_t RafImage::pixelHeight() const {
   43|     14|  if (pixelHeight_ != 0)
  ------------------
  |  Branch (43:7): [True: 0, False: 14]
  ------------------
   44|      0|    return pixelHeight_;
   45|       |
   46|     14|  auto heightIter = exifData_.findKey(Exiv2::ExifKey("Exif.Fujifilm.RawImageFullHeight"));
   47|     14|  if (heightIter == exifData_.end() || heightIter->count() == 0)
  ------------------
  |  Branch (47:7): [True: 14, False: 0]
  |  Branch (47:7): [True: 14, False: 0]
  |  Branch (47:40): [True: 0, False: 0]
  ------------------
   48|     14|    return 0;
   49|      0|  return heightIter->toUint32();
   50|     14|}
_ZN5Exiv28RafImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
   67|    324|void RafImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
   68|    324|  if (io_->open() != 0) {
  ------------------
  |  Branch (68:7): [True: 0, False: 324]
  ------------------
   69|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   70|      0|  }
   71|       |  // Ensure this is the correct image type
   72|    324|  if (!isRafType(*io_, true)) {
  ------------------
  |  Branch (72:7): [True: 0, False: 324]
  ------------------
   73|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (73:9): [True: 0, False: 0]
  |  Branch (73:25): [True: 0, False: 0]
  ------------------
   74|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   75|      0|    throw Error(ErrorCode::kerNotAnImage, "RAF");
   76|      0|  }
   77|       |
   78|       |  // The following is based on https://libopenraw.freedesktop.org/formats/raf/ and
   79|       |  // https://exiftool.org/TagNames/FujiFilm.html#RAFHeader
   80|       |
   81|    324|  const bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (81:23): [True: 78, False: 246]
  |  Branch (81:45): [True: 42, False: 204]
  ------------------
   82|    324|  if (bPrint) {
  ------------------
  |  Branch (82:7): [True: 120, False: 204]
  ------------------
   83|    120|    io_->seek(0, BasicIo::beg);  // rewind
   84|    120|    size_t address = io_->tell();
   85|    120|    constexpr auto format = " {:9} | {:9} | ";
   86|       |
   87|    120|    {
   88|    120|      out << Internal::indent(depth) << "STRUCTURE OF RAF FILE: " << io().path() << '\n';
   89|    120|      out << Internal::indent(depth) << "   Address |    Length | Payload" << '\n';
   90|    120|    }
   91|       |
   92|    120|    byte magicdata[17];
   93|    120|    io_->readOrThrow(magicdata, 16);
   94|    120|    magicdata[16] = 0;
   95|    120|    {
   96|    120|      out << Internal::indent(depth) << stringFormat(format, address, 16)  // 0
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
   97|    120|          << "       magic : " << reinterpret_cast<const char*>(magicdata) << '\n';
   98|    120|    }
   99|       |
  100|    120|    address = io_->tell();
  101|    120|    byte data1[5];
  102|    120|    io_->read(data1, 4);
  103|    120|    data1[4] = 0;
  104|    120|    {
  105|    120|      out << Internal::indent(depth) << stringFormat(format, address, 4)  // 16
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  106|    120|          << "       data1 : " << reinterpret_cast<const char*>(&data1) << '\n';
  107|    120|    }
  108|       |
  109|    120|    address = io_->tell();
  110|    120|    byte data2[9];
  111|    120|    io_->read(data2, 8);
  112|    120|    data2[8] = 0;
  113|    120|    {
  114|    120|      out << Internal::indent(depth) << stringFormat(format, address, 8)  // 20
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  115|    120|          << "       data2 : " << reinterpret_cast<const char*>(&data2) << '\n';
  116|    120|    }
  117|       |
  118|    120|    address = io_->tell();
  119|    120|    byte camdata[33];
  120|    120|    io_->read(camdata, 32);
  121|    120|    camdata[32] = 0;
  122|    120|    {
  123|    120|      out << Internal::indent(depth) << stringFormat(format, address, 32)  // 28
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  124|    120|          << "      camera : " << reinterpret_cast<const char*>(&camdata) << '\n';
  125|    120|    }
  126|       |
  127|    120|    address = io_->tell();
  128|    120|    byte dir_version[5];
  129|    120|    io_->read(dir_version, 4);
  130|    120|    dir_version[4] = 0;
  131|    120|    {
  132|    120|      out << Internal::indent(depth) << stringFormat(format, address, 4)  // 60
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  133|    120|          << "     version : " << reinterpret_cast<const char*>(&dir_version) << '\n';
  134|    120|    }
  135|       |
  136|    120|    address = io_->tell();
  137|    120|    DataBuf unknown(20);
  138|    120|    io_->readOrThrow(unknown.data(), unknown.size());
  139|    120|    {
  140|    120|      out << Internal::indent(depth) << stringFormat(format, address, 20)
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  141|    120|          << "     unknown : " << Internal::binaryToString(makeSlice(unknown, 0, unknown.size())) << '\n';
  142|    120|    }
  143|       |
  144|    120|    address = io_->tell();
  145|    120|    byte jpg_img_offset[4];
  146|    120|    io_->read(jpg_img_offset, 4);
  147|    120|    byte jpg_img_length[4];
  148|    120|    size_t address2 = io_->tell();
  149|    120|    io_->read(jpg_img_length, 4);
  150|       |
  151|    120|    uint32_t jpg_img_off = Exiv2::getULong(jpg_img_offset, bigEndian);
  152|    120|    uint32_t jpg_img_len = Exiv2::getULong(jpg_img_length, bigEndian);
  153|    120|    {
  154|    120|      out << Internal::indent(depth) << stringFormat(format, address, 4) << " JPEG offset : " << jpg_img_off << '\n';
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  155|    120|      out << Internal::indent(depth) << stringFormat(format, address2, 4) << " JPEG length : " << jpg_img_len << '\n';
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  156|    120|    }
  157|       |
  158|       |    // RAFs can carry the payload in one or two parts
  159|    120|    uint32_t meta_off[2], meta_len[2];
  160|    120|    uint32_t cfa_off[2], cfa_len[2], comp[2], cfa_size[2], cfa_data[2];
  161|    353|    for (size_t i = 0; i < 2; i++) {
  ------------------
  |  Branch (161:24): [True: 233, False: 120]
  ------------------
  162|    233|      address = io_->tell();
  163|    233|      byte data[4];
  164|    233|      io_->readOrThrow(data, 4);
  165|    233|      meta_off[i] = Exiv2::getULong(data, bigEndian);
  166|    233|      address2 = io_->tell();
  167|    233|      io_->readOrThrow(data, 4);
  168|    233|      meta_len[i] = Exiv2::getULong(data, bigEndian);
  169|    233|      {
  170|    233|        out << Internal::indent(depth) << stringFormat(format, address, 4)
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  171|    233|            << stringFormat("meta offset{} : {}\n", i + 1, meta_off[i]);
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  172|    233|        out << Internal::indent(depth) << stringFormat(format, address2, 4)
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  173|    233|            << stringFormat("meta length{} : {}\n", i + 1, meta_len[i]);
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  174|    233|      }
  175|       |
  176|    233|      address = io_->tell();
  177|    233|      io_->readOrThrow(data, 4);
  178|    233|      cfa_off[i] = Exiv2::getULong(data, bigEndian);
  179|    233|      address2 = io_->tell();
  180|    233|      io_->readOrThrow(data, 4);
  181|    233|      cfa_len[i] = Exiv2::getULong(data, bigEndian);
  182|    233|      size_t address3 = io_->tell();
  183|    233|      io_->readOrThrow(data, 4);
  184|    233|      comp[i] = Exiv2::getULong(data, bigEndian);
  185|    233|      size_t address4 = io_->tell();
  186|    233|      io_->readOrThrow(data, 4);
  187|    233|      cfa_size[i] = Exiv2::getULong(data, bigEndian);
  188|    233|      size_t address5 = io_->tell();
  189|    233|      io_->readOrThrow(data, 4);
  190|    233|      cfa_data[i] = Exiv2::getULong(data, bigEndian);
  191|    233|      {
  192|    233|        out << Internal::indent(depth) << stringFormat(format, address, 4U)
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  193|    233|            << stringFormat(" CFA offset{} : {}\n", i + 1, cfa_off[i]);
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  194|    233|        out << Internal::indent(depth) << stringFormat(format, address2, 4U)
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  195|    233|            << stringFormat(" CFA length{} : {}\n", i + 1, cfa_len[i]);
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  196|    233|        out << Internal::indent(depth) << stringFormat(format, address3, 4U)
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  197|    233|            << stringFormat("compression{} : {}\n", i + 1, comp[i]);
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  198|    233|        out << Internal::indent(depth) << stringFormat(format, address4, 4U)
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  199|    233|            << stringFormat("  CFA chunk{} : {}\n", i + 1, cfa_size[i]);
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  200|    233|        out << Internal::indent(depth) << stringFormat(format, address5, 4U)
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  201|    233|            << stringFormat("    unknown{} : {}\n", i + 1, cfa_data[i]);
  ------------------
  |  |   18|    233|#define stringFormat std::format
  ------------------
  202|    233|      }
  203|    233|    }
  204|       |
  205|    120|    io_->seek(jpg_img_off, BasicIo::beg);  // rewind
  206|    120|    address = io_->tell();
  207|    120|    DataBuf payload(16);  // header is different from chunks
  208|    120|    io_->readOrThrow(payload.data(), payload.size());
  209|    120|    {
  210|    120|      out << Internal::indent(depth) << stringFormat(format, address, jpg_img_len)
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  211|    120|          << "   JPEG data : " << Internal::binaryToString(makeSlice(payload, 0, payload.size())) << '\n';
  212|    120|    }
  213|       |
  214|    120|    io_->seek(meta_off[0], BasicIo::beg);  // rewind
  215|    120|    address = io_->tell();
  216|    120|    io_->readOrThrow(payload.data(), payload.size());
  217|    120|    {
  218|    120|      out << Internal::indent(depth) << stringFormat(format, address, meta_len[0])
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  219|    120|          << "  meta data1 : " << Internal::binaryToString(makeSlice(payload, 0, payload.size())) << '\n';
  220|    120|    }
  221|       |
  222|    120|    if (meta_off[1] && meta_len[1]) {
  ------------------
  |  Branch (222:9): [True: 91, False: 29]
  |  Branch (222:24): [True: 86, False: 5]
  ------------------
  223|     86|      io_->seek(meta_off[1], BasicIo::beg);  // rewind
  224|     86|      address = io_->tell();
  225|     86|      io_->readOrThrow(payload.data(), payload.size());
  226|     86|      {
  227|     86|        out << Internal::indent(depth) << stringFormat(format, address, meta_len[1])
  ------------------
  |  |   18|     86|#define stringFormat std::format
  ------------------
  228|     86|            << "  meta data2 : " << Internal::binaryToString(makeSlice(payload, 0, payload.size())) << '\n';
  229|     86|      }
  230|     86|    }
  231|       |
  232|    120|    io_->seek(cfa_off[0], BasicIo::beg);  // rewind
  233|    120|    address = io_->tell();
  234|    120|    io_->readOrThrow(payload.data(), payload.size());
  235|    120|    {
  236|    120|      out << Internal::indent(depth) << stringFormat(format, address, cfa_len[0])
  ------------------
  |  |   18|    120|#define stringFormat std::format
  ------------------
  237|    120|          << "   CFA data1 : " << Internal::binaryToString(makeSlice(payload, 0, payload.size())) << '\n';
  238|    120|    }
  239|       |
  240|    120|    if (cfa_off[1] && cfa_len[1]) {
  ------------------
  |  Branch (240:9): [True: 89, False: 31]
  |  Branch (240:23): [True: 83, False: 6]
  ------------------
  241|     83|      io_->seek(cfa_off[1], BasicIo::beg);  // rewind
  242|     83|      address = io_->tell();
  243|     83|      io_->readOrThrow(payload.data(), payload.size());
  244|     83|      {
  245|     83|        out << Internal::indent(depth) << stringFormat(format, address, cfa_len[1])  // cfa_off
  ------------------
  |  |   18|     83|#define stringFormat std::format
  ------------------
  246|     83|            << "   CFA data2 : " << Internal::binaryToString(makeSlice(payload, 0, payload.size())) << '\n';
  247|     83|      }
  248|     83|    }
  249|    120|  }
  250|    324|}  // RafImage::printStructure
_ZN5Exiv28RafImage12readMetadataEv:
  252|    156|void RafImage::readMetadata() {
  253|       |#ifdef EXIV2_DEBUG_MESSAGES
  254|       |  std::cerr << "Reading RAF file " << io_->path() << "\n";
  255|       |#endif
  256|    156|  if (io_->open() != 0)
  ------------------
  |  Branch (256:7): [True: 0, False: 156]
  ------------------
  257|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  258|    156|  IoCloser closer(*io_);
  259|       |  // Ensure that this is the correct image type
  260|    156|  if (!isRafType(*io_, false)) {
  ------------------
  |  Branch (260:7): [True: 0, False: 156]
  ------------------
  261|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (261:9): [True: 0, False: 0]
  |  Branch (261:25): [True: 0, False: 0]
  ------------------
  262|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  263|      0|    throw Error(ErrorCode::kerNotAnImage, "RAF");
  264|      0|  }
  265|       |
  266|    156|  clearMetadata();
  267|       |
  268|    156|  if (io_->seek(84, BasicIo::beg) != 0)
  ------------------
  |  Branch (268:7): [True: 0, False: 156]
  ------------------
  269|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  270|    156|  byte jpg_img_offset[4];
  271|    156|  if (io_->read(jpg_img_offset, 4) != 4)
  ------------------
  |  Branch (271:7): [True: 1, False: 155]
  ------------------
  272|      1|    throw Error(ErrorCode::kerFailedToReadImageData);
  273|    155|  byte jpg_img_length[4];
  274|    155|  if (io_->read(jpg_img_length, 4) != 4)
  ------------------
  |  Branch (274:7): [True: 2, False: 153]
  ------------------
  275|      2|    throw Error(ErrorCode::kerFailedToReadImageData);
  276|    153|  uint32_t jpg_img_off_u32 = Exiv2::getULong(jpg_img_offset, bigEndian);
  277|    153|  uint32_t jpg_img_len_u32 = Exiv2::getULong(jpg_img_length, bigEndian);
  278|       |
  279|    153|  Internal::enforce(Safe::add(jpg_img_off_u32, jpg_img_len_u32) <= io_->size(), ErrorCode::kerCorruptedMetadata);
  280|       |
  281|    153|  auto jpg_img_off = static_cast<long>(jpg_img_off_u32);
  282|    153|  auto jpg_img_len = static_cast<long>(jpg_img_len_u32);
  283|       |
  284|    153|  Internal::enforce(jpg_img_len >= 12, ErrorCode::kerCorruptedMetadata);
  285|       |
  286|    153|  DataBuf jpg_buf(jpg_img_len);
  287|    153|  if (io_->seek(jpg_img_off, BasicIo::beg) != 0)
  ------------------
  |  Branch (287:7): [True: 0, False: 153]
  ------------------
  288|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  289|       |
  290|    153|  if (!jpg_buf.empty()) {
  ------------------
  |  Branch (290:7): [True: 127, False: 26]
  ------------------
  291|    127|    io_->read(jpg_buf.data(), jpg_buf.size());
  292|    127|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (292:9): [True: 0, False: 127]
  |  Branch (292:25): [True: 0, False: 127]
  ------------------
  293|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  294|    127|  }
  295|       |
  296|       |  // Retrieve metadata from embedded JPEG preview image.
  297|    153|  try {
  298|    153|    auto jpg_io = std::make_unique<Exiv2::MemIo>(jpg_buf.data(), jpg_buf.size());
  299|    153|    auto jpg_img = JpegImage(std::move(jpg_io), false);
  300|    153|    jpg_img.readMetadata();
  301|    153|    setByteOrder(jpg_img.byteOrder());
  302|    153|    xmpData_ = jpg_img.xmpData();
  303|    153|    exifData_ = jpg_img.exifData();
  304|    153|    iptcData_ = jpg_img.iptcData();
  305|    153|    comment_ = jpg_img.comment();
  306|    153|  } catch (const Exiv2::Error&) {
  307|    125|  }
  308|       |
  309|    153|  exifData_["Exif.Image2.JPEGInterchangeFormat"] = getULong(jpg_img_offset, bigEndian);
  310|    127|  exifData_["Exif.Image2.JPEGInterchangeFormatLength"] = getULong(jpg_img_length, bigEndian);
  311|       |
  312|       |  // Todo: parse the proprietary metadata structure
  313|       |  //       at offset 92 for pixelWidth_ & pixelHeight_
  314|       |  // See https://libopenraw.freedesktop.org/formats/raf/
  315|       |  // and https://exiftool.org/TagNames/FujiFilm.html#RAF
  316|       |
  317|       |  // parse the tiff
  318|    127|  std::array<byte, 4> readBuff;
  319|    127|  if (io_->seek(100, BasicIo::beg) != 0)
  ------------------
  |  Branch (319:7): [True: 1, False: 126]
  ------------------
  320|      1|    throw Error(ErrorCode::kerFailedToReadImageData);
  321|    126|  if (io_->read(readBuff.data(), 4) != 4)
  ------------------
  |  Branch (321:7): [True: 0, False: 126]
  ------------------
  322|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  323|    126|  uint32_t tiffOffset = Exiv2::getULong(readBuff.data(), bigEndian);
  324|       |
  325|    126|  if (io_->read(readBuff.data(), 4) != 4)
  ------------------
  |  Branch (325:7): [True: 6, False: 120]
  ------------------
  326|      6|    throw Error(ErrorCode::kerFailedToReadImageData);
  327|    120|  uint32_t tiffLength = Exiv2::getULong(readBuff.data(), bigEndian);
  328|       |
  329|       |  // sanity check.  Does tiff lie inside the file?
  330|    120|  Internal::enforce(Safe::add(tiffOffset, tiffLength) <= io_->size(), ErrorCode::kerCorruptedMetadata);
  331|       |
  332|    120|  if (io_->seek(tiffOffset, BasicIo::beg) != 0)
  ------------------
  |  Branch (332:7): [True: 0, False: 120]
  ------------------
  333|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
  334|       |
  335|       |  // Check if this really is a tiff and then call the tiff parser.
  336|       |  // Check is needed because some older models just embed a raw bitstream.
  337|       |  // For those files we skip the parsing step.
  338|    120|  if (io_->read(readBuff.data(), 4) != 4) {
  ------------------
  |  Branch (338:7): [True: 1, False: 119]
  ------------------
  339|      1|    throw Error(ErrorCode::kerFailedToReadImageData);
  340|      1|  }
  341|    119|  io_->seek(-4, BasicIo::cur);
  342|    119|  const std::array<byte, 4> Id1{0x49, 0x49, 0x2A, 0x00};
  343|    119|  const std::array<byte, 4> Id2{0x4D, 0x4D, 0x00, 0x2A};
  344|    119|  if (readBuff == Id1 || readBuff == Id2) {
  ------------------
  |  Branch (344:7): [True: 23, False: 96]
  |  Branch (344:26): [True: 5, False: 91]
  ------------------
  345|      6|    DataBuf tiff(tiffLength);
  346|      6|    io_->read(tiff.data(), tiff.size());
  347|       |
  348|      6|    if (!io_->error() && !io_->eof()) {
  ------------------
  |  Branch (348:9): [True: 6, False: 0]
  |  Branch (348:26): [True: 6, False: 0]
  ------------------
  349|      6|      TiffParser::decode(exifData_, iptcData_, xmpData_, tiff.c_data(), tiff.size());
  350|      6|    }
  351|      6|  }
  352|    119|}
_ZN5Exiv28RafImage13writeMetadataEv:
  354|     42|void RafImage::writeMetadata() {
  355|       |  //! Todo: implement me!
  356|     42|  throw(Error(ErrorCode::kerWritingImageFormatUnsupported, "RAF"));
  357|     42|}  // RafImage::writeMetadata
_ZN5Exiv214newRafInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  361|    156|Image::UniquePtr newRafInstance(BasicIo::UniquePtr io, bool create) {
  362|    156|  auto image = std::make_unique<RafImage>(std::move(io), create);
  363|    156|  if (!image->good()) {
  ------------------
  |  Branch (363:7): [True: 0, False: 156]
  ------------------
  364|      0|    return nullptr;
  365|      0|  }
  366|    156|  return image;
  367|    156|}
_ZN5Exiv29isRafTypeERNS_7BasicIoEb:
  369|  13.0k|bool isRafType(BasicIo& iIo, bool advance) {
  370|  13.0k|  const int32_t len = 8;
  371|  13.0k|  constexpr std::array<byte, len> RafId{'F', 'U', 'J', 'I', 'F', 'I', 'L', 'M'};
  372|  13.0k|  std::array<byte, len> buf;
  373|  13.0k|  iIo.read(buf.data(), len);
  374|  13.0k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (374:7): [True: 0, False: 13.0k]
  |  Branch (374:22): [True: 0, False: 13.0k]
  ------------------
  375|      0|    return false;
  376|      0|  }
  377|  13.0k|  bool rc = buf == RafId;
  378|  13.0k|  if (!advance || !rc) {
  ------------------
  |  Branch (378:7): [True: 12.6k, False: 324]
  |  Branch (378:19): [True: 0, False: 324]
  ------------------
  379|  12.6k|    iIo.seek(-len, BasicIo::cur);
  380|  12.6k|  }
  381|  13.0k|  return rc;
  382|  13.0k|}

_ZN5Exiv29RiffVideoC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
  364|    290|RiffVideo::RiffVideo(BasicIo::UniquePtr io) : Image(ImageType::riff, mdNone, std::move(io)) {
  365|    290|}  // RiffVideo::RiffVideo
_ZNK5Exiv29RiffVideo8mimeTypeEv:
  367|    290|std::string RiffVideo::mimeType() const {
  368|    290|  return "video/riff";
  369|    290|}
_ZN5Exiv29RiffVideo12readMetadataEv:
  374|    290|void RiffVideo::readMetadata() {
  375|    290|  if (io_->open() != 0)
  ------------------
  |  Branch (375:7): [True: 0, False: 290]
  ------------------
  376|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  377|       |
  378|       |  // Ensure that this is the correct image type
  379|    290|  if (!isRiffType(*io_, false)) {
  ------------------
  |  Branch (379:7): [True: 0, False: 290]
  ------------------
  380|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (380:9): [True: 0, False: 0]
  |  Branch (380:25): [True: 0, False: 0]
  ------------------
  381|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  382|      0|    throw Error(ErrorCode::kerNotAnImage, "RIFF");
  383|      0|  }
  384|       |
  385|    290|  IoCloser closer(*io_);
  386|    290|  clearMetadata();
  387|       |
  388|    290|  xmpData_["Xmp.video.FileSize"] = io_->size();
  389|    290|  xmpData_["Xmp.video.MimeType"] = mimeType();
  390|       |
  391|    290|  HeaderReader header(io_);
  392|    290|  xmpData_["Xmp.video.Container"] = header.getId();
  393|       |
  394|    290|  xmpData_["Xmp.video.FileType"] = readStringTag(io_);
  395|       |
  396|    290|  decodeBlocks();
  397|    290|}  // RiffVideo::readMetadata
_ZN5Exiv29RiffVideo12HeaderReaderC2ERKNSt3__110unique_ptrINS_7BasicIoENS2_14default_deleteIS4_EEEE:
  399|  29.1k|RiffVideo::HeaderReader::HeaderReader(const BasicIo::UniquePtr& io) {
  400|  29.1k|  Internal::enforce(io->size() > io->tell() + DWORD + DWORD, Exiv2::ErrorCode::kerCorruptedMetadata);
  401|  29.1k|  id_ = readStringTag(io);
  402|  29.1k|  size_ = readDWORDTag(io);
  403|  29.1k|}
_ZN5Exiv29RiffVideo5equalERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  405|   309k|bool RiffVideo::equal(const std::string& str1, const std::string& str2) {
  406|   309k|  if (str1.size() != str2.size())
  ------------------
  |  Branch (406:7): [True: 304k, False: 5.32k]
  ------------------
  407|   304k|    return false;
  408|       |
  409|  5.32k|  return Internal::upper(str1) == str2;
  410|   309k|}
_ZN5Exiv29RiffVideo8readListERKNS0_12HeaderReaderE:
  412|    235|void RiffVideo::readList(const HeaderReader& header_) {
  413|    235|  std::string chunk_type = readStringTag(io_);
  414|       |
  415|       |#ifdef EXIV2_DEBUG_MESSAGES
  416|       |  EXV_INFO << "-> Reading list : id= " << header_.getId() << "  type= " << chunk_type << " size= " << header_.getSize()
  417|       |           << "(" << io_->tell() << "/" << io_->size() << ")" << '\n';
  418|       |#endif
  419|       |
  420|    235|  if (equal(chunk_type, CHUNK_ID_INFO))
  ------------------
  |  Branch (420:7): [True: 122, False: 113]
  ------------------
  421|    122|    readInfoListChunk(header_.getSize());
  422|    113|  else if (equal(chunk_type, CHUNK_ID_MOVI)) {
  ------------------
  |  Branch (422:12): [True: 2, False: 111]
  ------------------
  423|      2|    readMoviList(header_.getSize());
  424|      2|  }
  425|    235|}
_ZN5Exiv29RiffVideo9readChunkERKNS0_12HeaderReaderE:
  427|  28.5k|void RiffVideo::readChunk(const HeaderReader& header_) {
  428|       |#ifdef EXIV2_DEBUG_MESSAGES
  429|       |  if (header_.getSize())
  430|       |    EXV_INFO << "--> Reading Chunk : [" << header_.getId() << "] size= " << header_.getSize() << "(" << io_->tell()
  431|       |             << "/" << io_->size() << ")" << '\n';
  432|       |#endif
  433|       |
  434|  28.5k|  if (equal(header_.getId(), CHUNK_ID_AVIH))
  ------------------
  |  Branch (434:7): [True: 141, False: 28.4k]
  ------------------
  435|    141|    readAviHeader();
  436|  28.4k|  else if (equal(header_.getId(), CHUNK_ID_STRH))
  ------------------
  |  Branch (436:12): [True: 106, False: 28.3k]
  ------------------
  437|    106|    readStreamHeader();
  438|  28.3k|  else if (equal(header_.getId(), CHUNK_ID_STRF))
  ------------------
  |  Branch (438:12): [True: 29, False: 28.3k]
  ------------------
  439|     29|    readStreamFormat(header_.getSize());
  440|  28.3k|  else if (equal(header_.getId(), CHUNK_ID_FMT)) {
  ------------------
  |  Branch (440:12): [True: 490, False: 27.8k]
  ------------------
  441|    490|    streamType_ = Audio;
  442|    490|    readStreamFormat(header_.getSize());
  443|  27.8k|  } else if (equal(header_.getId(), CHUNK_ID_STRD))
  ------------------
  |  Branch (443:14): [True: 6, False: 27.8k]
  ------------------
  444|      6|    readStreamData(header_.getSize());
  445|  27.8k|  else if (equal(header_.getId(), CHUNK_ID_STRN))
  ------------------
  |  Branch (445:12): [True: 2, False: 27.8k]
  ------------------
  446|      2|    StreamName(header_.getSize());
  447|  27.8k|  else if (equal(header_.getId(), CHUNK_ID_VPRP))
  ------------------
  |  Branch (447:12): [True: 10, False: 27.8k]
  ------------------
  448|     10|    readVPRPChunk(header_.getSize());
  449|  27.8k|  else if (equal(header_.getId(), CHUNK_ID_IDX1))
  ------------------
  |  Branch (449:12): [True: 1, False: 27.8k]
  ------------------
  450|      1|    readIndexChunk(header_.getSize());
  451|  27.8k|  else if (equal(header_.getId(), CHUNK_ID_DATA))
  ------------------
  |  Branch (451:12): [True: 47, False: 27.7k]
  ------------------
  452|     47|    readDataChunk(header_.getSize());
  453|  27.7k|  else if (equal(header_.getId(), CHUNK_ID_JUNK))
  ------------------
  |  Branch (453:12): [True: 14, False: 27.7k]
  ------------------
  454|     14|    readJunk(header_.getSize());
  455|  27.7k|  else {
  456|       |#ifdef EXIV2_DEBUG_MESSAGES
  457|       |    if (header_.getSize())
  458|       |      EXV_WARNING << "--> Ignoring Chunk : " << header_.getId() << "] size= " << header_.getSize() << "(" << io_->tell()
  459|       |                  << "/" << io_->size() << ")" << '\n';
  460|       |#endif
  461|  27.7k|    io_->seekOrThrow(io_->tell() + header_.getSize(), BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  462|  27.7k|  }
  463|  28.5k|}
_ZN5Exiv29RiffVideo12decodeBlocksEv:
  465|    290|void RiffVideo::decodeBlocks() {
  466|  28.8k|  do {
  467|  28.8k|    if (HeaderReader header(io_); equal(header.getId(), CHUNK_ID_LIST)) {
  ------------------
  |  Branch (467:35): [True: 235, False: 28.6k]
  ------------------
  468|    235|      readList(header);
  469|  28.6k|    } else {
  470|  28.6k|      readChunk(header);
  471|  28.6k|    }
  472|  28.8k|  } while (!io_->eof() && io_->tell() < io_->size());
  ------------------
  |  Branch (472:12): [True: 28.5k, False: 276]
  |  Branch (472:27): [True: 28.5k, False: 14]
  ------------------
  473|    290|}  // RiffVideo::decodeBlock
_ZN5Exiv29RiffVideo13readAviHeaderEv:
  475|    141|void RiffVideo::readAviHeader() {
  476|       |#ifdef EXIV2_DEBUG_MESSAGES
  477|       |  EXV_INFO << "--> dwMicroSecPerFrame    = " << readDWORDTag(io_) << '\n';
  478|       |  EXV_INFO << "--> dwMaxBytesPerSec      = " << readDWORDTag(io_) << '\n';
  479|       |  EXV_INFO << "--> dwPaddingGranularity  = " << readDWORDTag(io_) << '\n';
  480|       |  EXV_INFO << "--> dwFlags               = " << readDWORDTag(io_) << '\n';
  481|       |  EXV_INFO << "--> dwTotalFrames         = " << readDWORDTag(io_) << '\n';
  482|       |  EXV_INFO << "--> dwInitialFrames       = " << readDWORDTag(io_) << '\n';
  483|       |  EXV_INFO << "--> dwStreams             = " << readDWORDTag(io_) << '\n';
  484|       |  EXV_INFO << "--> dwSuggestedBufferSize = " << readDWORDTag(io_) << '\n';
  485|       |  EXV_INFO << "--> dwWidth               = " << readDWORDTag(io_) << '\n';
  486|       |  EXV_INFO << "--> dwHeight              = " << readDWORDTag(io_) << '\n';
  487|       |  EXV_INFO << "--> dwReserved1           = " << readDWORDTag(io_) << '\n';
  488|       |  EXV_INFO << "--> dwReserved2           = " << readDWORDTag(io_) << '\n';
  489|       |  EXV_INFO << "--> dwReserved3           = " << readDWORDTag(io_) << '\n';
  490|       |  EXV_INFO << "--> dwReserved4           = " << readDWORDTag(io_) << '\n';
  491|       |  if (LogMsg::info >= LogMsg::level() && LogMsg::handler())
  492|       |    io_->seekOrThrow(io_->tell() - DWORD * 14, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  493|       |#endif
  494|       |
  495|    141|  uint32_t TimeBetweenFrames = readDWORDTag(io_);
  496|    141|  xmpData_["Xmp.video.MicroSecPerFrame"] = TimeBetweenFrames;
  497|    141|  double frame_rate = 1000000. / TimeBetweenFrames;
  498|       |
  499|    141|  xmpData_["Xmp.video.MaxDataRate"] = readDWORDTag(io_);  // MaximumDataRate
  500|       |
  501|    141|  io_->seekOrThrow(io_->tell() + (DWORD * 2), BasicIo::beg,
  502|    141|                   ErrorCode::kerFailedToReadImageData);  // ignore PaddingGranularity and Flags
  503|       |
  504|    141|  uint32_t frame_count = readDWORDTag(io_);  // TotalNumberOfFrames
  505|    141|  xmpData_["Xmp.video.FrameCount"] = frame_count;
  506|       |
  507|    141|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg,
  508|    141|                   ErrorCode::kerFailedToReadImageData);  // ignore NumberOfInitialFrames
  509|       |
  510|    141|  xmpData_["Xmp.audio.ChannelType"] = getStreamType(readDWORDTag(io_));  // NumberOfStreams
  511|       |
  512|    141|  xmpData_["Xmp.video.StreamCount"] = readDWORDTag(io_);  // SuggestedBufferSize
  513|       |
  514|    141|  uint32_t width = readDWORDTag(io_);
  515|    141|  xmpData_["Xmp.video.Width"] = width;
  516|       |
  517|    141|  uint32_t height = readDWORDTag(io_);
  518|    141|  xmpData_["Xmp.video.Height"] = height;
  519|       |
  520|    141|  io_->seekOrThrow(io_->tell() + (DWORD * 4), BasicIo::beg,
  521|    141|                   ErrorCode::kerFailedToReadImageData);  // TimeScale, DataRate, StartTime, DataLength
  522|       |
  523|    141|  xmpData_["Xmp.video.AspectRatio"] = getAspectRatio(width, height);
  524|       |
  525|    141|  fillDuration(frame_rate, frame_count);
  526|    141|}
_ZN5Exiv29RiffVideo16readStreamHeaderEv:
  528|    106|void RiffVideo::readStreamHeader() {
  529|    106|  std::string stream = readStringTag(io_);
  530|    106|  streamType_ = (equal(stream, "VIDS")) ? Video : Audio;
  ------------------
  |  Branch (530:17): [True: 30, False: 76]
  ------------------
  531|       |
  532|       |#ifdef EXIV2_DEBUG_MESSAGES
  533|       |  EXV_INFO << "--> fccType                = " << stream << '\n';
  534|       |  EXV_INFO << "--> fccHandler             = " << readStringTag(io_) << '\n';
  535|       |  EXV_INFO << "--> dwFlags                = " << readDWORDTag(io_) << '\n';
  536|       |  EXV_INFO << "--> wPriority              = " << readWORDTag(io_) << '\n';
  537|       |  EXV_INFO << "--> wLanguage              = " << readWORDTag(io_) << '\n';
  538|       |  EXV_INFO << "--> dwInitialFrames        = " << readDWORDTag(io_) << '\n';  // 20
  539|       |  EXV_INFO << "--> dwScale                = " << readDWORDTag(io_) << '\n';
  540|       |  EXV_INFO << "--> dwRate                 = " << readDWORDTag(io_) << '\n';
  541|       |  EXV_INFO << "--> dwStart                = " << readDWORDTag(io_) << '\n';
  542|       |  EXV_INFO << "--> dwLength               = " << readDWORDTag(io_) << '\n';
  543|       |  EXV_INFO << "--> dwSuggestedBufferSize  = " << readDWORDTag(io_) << '\n';  // 40
  544|       |  EXV_INFO << "--> dwSampleSize           = " << readDWORDTag(io_) << '\n';
  545|       |  EXV_INFO << "--> Left                   = " << readWORDTag(io_) << '\n';
  546|       |  EXV_INFO << "--> top                    = " << readWORDTag(io_) << '\n';
  547|       |  EXV_INFO << "--> right                  = " << readWORDTag(io_) << '\n';
  548|       |  EXV_INFO << "--> bottom                 = " << readWORDTag(io_) << '\n';
  549|       |  EXV_INFO << "--> XXXXXX                 = " << readDWORDTag(io_) << '\n';  // 56
  550|       |  if (LogMsg::info >= LogMsg::level() && LogMsg::handler())
  551|       |    io_->seekOrThrow(io_->tell() - DWORD * 13, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  552|       |#endif
  553|       |
  554|    106|  xmpData_["Xmp.video.Codec"] = readStringTag(io_);  // DataHandler
  555|       |
  556|    106|  io_->seekOrThrow(io_->tell() + (DWORD * 2) + (WORD * 2), BasicIo::beg,
  557|    106|                   ErrorCode::kerFailedToReadImageData);  // dwFlags, wPriority, wLanguage, dwInitialFrames
  558|       |
  559|    106|  uint32_t divisor = readDWORDTag(io_);  // TimeScale
  560|       |
  561|    106|  if (divisor) {
  ------------------
  |  Branch (561:7): [True: 91, False: 15]
  ------------------
  562|     91|    auto rate = static_cast<double>(readDWORDTag(io_)) / divisor;
  563|     91|    xmpData_[(streamType_ == Video) ? "Xmp.video.FrameRate" : "Xmp.audio.SampleRate"] = rate;
  ------------------
  |  Branch (563:14): [True: 29, False: 62]
  ------------------
  564|     91|  }
  565|    106|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // dwStart
  566|       |
  567|    106|  if (divisor) {
  ------------------
  |  Branch (567:7): [True: 90, False: 16]
  ------------------
  568|     90|    auto frame_count = static_cast<double>(readDWORDTag(io_)) / divisor;  // DataLength
  569|     90|    xmpData_[(streamType_ == Video) ? "Xmp.video.FrameCount" : "Xmp.audio.FrameCount"] = frame_count;
  ------------------
  |  Branch (569:14): [True: 29, False: 61]
  ------------------
  570|     90|  }
  571|       |
  572|    106|  io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // dwSuggestedBufferSize
  573|       |
  574|    106|  xmpData_[(streamType_ == Video) ? "Xmp.video.VideoQuality" : "Xmp.video.StreamQuality"] = readDWORDTag(io_);
  ------------------
  |  Branch (574:12): [True: 29, False: 77]
  ------------------
  575|       |
  576|    106|  xmpData_[(streamType_ == Video) ? "Xmp.video.VideoSampleSize" : "Xmp.video.StreamSampleSize"] = readDWORDTag(io_);
  ------------------
  |  Branch (576:12): [True: 27, False: 79]
  ------------------
  577|    106|  io_->seekOrThrow(io_->tell() + (DWORD * 2), BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  578|    106|}
_ZN5Exiv29RiffVideo16readStreamFormatEm:
  580|    519|void RiffVideo::readStreamFormat(uint64_t size_) {
  581|       |  // The structure of the strf chunk depends on the media type. Video streams use the BITMAPINFOHEADER structure,
  582|       |  // whereas audio streams use the WAVEFORMATEX structure.
  583|       |
  584|       |#ifdef EXIV2_DEBUG_MESSAGES
  585|       |  if (streamType_ == Audio) {
  586|       |    EXV_INFO << "--> wFormatTag      = " << readWORDTag(io_) << '\n';
  587|       |    EXV_INFO << "--> nChannels       = " << readWORDTag(io_) << '\n';
  588|       |    EXV_INFO << "--> nSamplesPerSec  = " << readDWORDTag(io_) << '\n';
  589|       |    EXV_INFO << "--> nAvgBytesPerSec = " << readDWORDTag(io_) << '\n';
  590|       |    EXV_INFO << "--> nBlockAlign     = " << readWORDTag(io_) << '\n';
  591|       |    EXV_INFO << "--> wBitsPerSample  = " << readWORDTag(io_) << '\n';
  592|       |    if (LogMsg::info >= LogMsg::level() && LogMsg::handler())
  593|       |      io_->seekOrThrow(io_->tell() - DWORD * 4, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  594|       |  } else if (streamType_ == Video) {
  595|       |    EXV_INFO << "--> biSize            = " << readDWORDTag(io_) << '\n';
  596|       |    EXV_INFO << "--> biWidth           = " << readDWORDTag(io_) << '\n';
  597|       |    EXV_INFO << "--> biHeight          = " << readDWORDTag(io_) << '\n';
  598|       |    EXV_INFO << "--> biPlanes          = " << readWORDTag(io_) << '\n';
  599|       |    EXV_INFO << "--> biBitCount        = " << readWORDTag(io_) << '\n';
  600|       |    EXV_INFO << "--> biCompression     = " << readDWORDTag(io_) << '\n';
  601|       |    EXV_INFO << "--> biSizeImage       = " << readDWORDTag(io_) << '\n';
  602|       |    EXV_INFO << "--> biXPelsPerMeter   = " << readDWORDTag(io_) << '\n';
  603|       |    EXV_INFO << "--> biYPelsPerMeter   = " << readDWORDTag(io_) << '\n';
  604|       |    EXV_INFO << "--> biClrUsed         = " << readDWORDTag(io_) << '\n';
  605|       |    EXV_INFO << "--> biClrImportant    = " << readDWORDTag(io_) << '\n';
  606|       |    if (LogMsg::info >= LogMsg::level() && LogMsg::handler())
  607|       |      io_->seekOrThrow(io_->tell() - DWORD * 10, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  608|       |  }
  609|       |#endif
  610|       |
  611|    519|  if (streamType_ == Video) {
  ------------------
  |  Branch (611:7): [True: 18, False: 501]
  ------------------
  612|     18|    io_->seekOrThrow(io_->tell() + (DWORD * 3), BasicIo::beg,
  613|     18|                     ErrorCode::kerFailedToReadImageData);  // ignore biSize, biWidth, biHeight
  614|     18|    xmpData_["Xmp.video.Planes"] = readWORDTag(io_);
  615|     18|    xmpData_["Xmp.video.PixelDepth"] = readWORDTag(io_);
  616|     18|    xmpData_["Xmp.video.Compressor"] = readStringTag(io_);
  617|     18|    xmpData_["Xmp.video.ImageLength"] = readDWORDTag(io_);
  618|     18|    xmpData_["Xmp.video.PixelPerMeterX"] = readQWORDTag(io_);
  619|     18|    xmpData_["Xmp.video.PixelPerMeterY"] = readQWORDTag(io_);
  620|     18|    if (uint32_t NumOfColours = readDWORDTag(io_))
  ------------------
  |  Branch (620:18): [True: 13, False: 5]
  ------------------
  621|     13|      xmpData_["Xmp.video.NumOfColours"] = NumOfColours;
  622|      5|    else
  623|      5|      xmpData_["Xmp.video.NumOfColours"] = "Unspecified";
  624|     18|    if (uint32_t NumIfImpColours = readDWORDTag(io_))
  ------------------
  |  Branch (624:18): [True: 11, False: 7]
  ------------------
  625|     11|      xmpData_["Xmp.video.NumIfImpColours"] = NumIfImpColours;
  626|      7|    else
  627|      7|      xmpData_["Xmp.video.NumIfImpColours"] = "All";
  628|    501|  } else if (streamType_ == Audio) {
  ------------------
  |  Branch (628:14): [True: 491, False: 10]
  ------------------
  629|    491|    uint16_t format_tag = readWORDTag(io_);
  630|    491|    if (auto it = Internal::audioEncodingValues.find(format_tag); it != Internal::audioEncodingValues.end())
  ------------------
  |  Branch (630:67): [True: 85, False: 406]
  ------------------
  631|     85|      xmpData_["Xmp.audio.Compressor"] = it->second;
  632|    406|    else
  633|    406|      xmpData_["Xmp.audio.Compressor"] = format_tag;
  634|       |
  635|    491|    xmpData_["Xmp.audio.ChannelType"] = getStreamType(readDWORDTag(io_));
  636|    491|    xmpData_["Xmp.audio.SampleRate"] = readDWORDTag(io_);                                      // nSamplesPerSec
  637|    491|    io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // nAvgBytesPerSec
  638|    491|    xmpData_["Xmp.audio.SampleType"] = readDWORDTag(io_);                                      // nBlockAlign
  639|    491|    xmpData_["Xmp.audio.BitsPerSample"] = readDWORDTag(io_);                                   // wBitsPerSample
  640|    491|    if (xmpData_["Xmp.video.FileType"].toString() == "AVI ")
  ------------------
  |  Branch (640:9): [True: 26, False: 465]
  ------------------
  641|     26|      io_->seekOrThrow(io_->tell() + DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);  // cbSize
  642|    491|  } else {
  643|     10|    io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  644|     10|  }
  645|    519|}
_ZNK5Exiv29RiffVideo14readStreamDataEm:
  647|      6|void RiffVideo::readStreamData(uint64_t size_) const {
  648|      6|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  649|      6|}
_ZNK5Exiv29RiffVideo10StreamNameEm:
  651|      2|void RiffVideo::StreamName(uint64_t size_) const {
  652|       |  // This element contains a name for the stream. That stream name should only use plain ASCII, especially not UTF-8.
  653|      2|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  654|      2|}
_ZN5Exiv29RiffVideo17readInfoListChunkEm:
  656|    122|void RiffVideo::readInfoListChunk(uint64_t size_) {
  657|    122|  uint64_t current_size = DWORD;
  658|    884|  while (current_size < size_) {
  ------------------
  |  Branch (658:10): [True: 762, False: 122]
  ------------------
  659|    762|    std::string type = readStringTag(io_);
  660|    762|    size_t size = readDWORDTag(io_);
  661|    762|    std::string content = readStringTag(io_, size);
  662|    762|    if (auto it = Internal::infoTags.find(type); it != Internal::infoTags.end())
  ------------------
  |  Branch (662:50): [True: 25, False: 737]
  ------------------
  663|     25|      xmpData_[it->second] = content;
  664|    762|    current_size += DWORD * 2;
  665|    762|    current_size += size;
  666|    762|  }
  667|    122|}
_ZNK5Exiv29RiffVideo12readMoviListEm:
  669|      2|void RiffVideo::readMoviList(uint64_t size_) const {
  670|      2|  io_->seekOrThrow(io_->tell() + size_ - DWORD, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  671|      2|}
_ZNK5Exiv29RiffVideo13readVPRPChunkEm:
  673|     10|void RiffVideo::readVPRPChunk(uint64_t size_) const {
  674|       |#ifdef EXIV2_DEBUG_MESSAGES
  675|       |  EXV_INFO << "--> VideoFormatToken         = " << readDWORDTag(io_) << '\n';
  676|       |  EXV_INFO << "--> VideoStandard            = " << readDWORDTag(io_) << '\n';
  677|       |  EXV_INFO << "--> VerticalRefreshRate      = " << readDWORDTag(io_) << '\n';
  678|       |  EXV_INFO << "--> HTotalInT                = " << readDWORDTag(io_) << '\n';
  679|       |  EXV_INFO << "--> VTotalInLines            = " << readDWORDTag(io_) << '\n';
  680|       |  EXV_INFO << "--> FrameAspectRatio Height  = " << readWORDTag(io_) << '\n';
  681|       |  EXV_INFO << "--> FrameAspectRatio Width   = " << readWORDTag(io_) << '\n';
  682|       |  EXV_INFO << "--> FrameWidthInPixels       = " << readDWORDTag(io_) << '\n';
  683|       |  EXV_INFO << "--> FrameHeightInLines       = " << readDWORDTag(io_) << '\n';
  684|       |  EXV_INFO << "--> CompressedBMHeight       = " << readDWORDTag(io_) << '\n';
  685|       |  EXV_INFO << "--> FieldPerFrame            = " << readDWORDTag(io_) << '\n';
  686|       |  EXV_INFO << "--> CompressedBMWidth        = " << readDWORDTag(io_) << '\n';
  687|       |  EXV_INFO << "--> ValidBMHeight            = " << readDWORDTag(io_) << '\n';
  688|       |  EXV_INFO << "--> ValidBMWidth             = " << readDWORDTag(io_) << '\n';
  689|       |  EXV_INFO << "--> ValidBMXOffset           = " << readDWORDTag(io_) << '\n';
  690|       |  EXV_INFO << "--> ValidBMYOffset           = " << readDWORDTag(io_) << '\n';
  691|       |  EXV_INFO << "--> VideoXOffsetInT          = " << readDWORDTag(io_) << '\n';
  692|       |  EXV_INFO << "--> VideoYValidStartLine     = " << readDWORDTag(io_) << '\n';
  693|       |  if (LogMsg::info >= LogMsg::level() && LogMsg::handler())
  694|       |    io_->seekOrThrow(io_->tell() - DWORD * 17, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  695|       |#endif
  696|     10|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  697|     10|}
_ZNK5Exiv29RiffVideo14readIndexChunkEm:
  699|      1|void RiffVideo::readIndexChunk(uint64_t size_) const {
  700|       |#ifdef EXIV2_DEBUG_MESSAGES
  701|       |  uint64_t current_size = 0;
  702|       |  while (current_size < size_) {
  703|       |    EXV_DEBUG << "--> Identifier               = " << readStringTag(io_) << "\t(" << current_size << "/" << size_ << ")"
  704|       |              << '\n';
  705|       |    EXV_DEBUG << "--> Flags                    = " << readDWORDTag(io_) << "\t(" << current_size << "/" << size_ << ")"
  706|       |              << '\n';
  707|       |    EXV_DEBUG << "--> Offset                   = " << readDWORDTag(io_) << "\t(" << current_size << "/" << size_ << ")"
  708|       |              << '\n';
  709|       |    EXV_DEBUG << "--> Length                   = " << readDWORDTag(io_) << "\t(" << current_size << "/" << size_ << ")"
  710|       |              << '\n';
  711|       |    current_size += DWORD * 4;
  712|       |  }
  713|       |  if (LogMsg::debug >= LogMsg::level() && LogMsg::handler())
  714|       |    io_->seekOrThrow(io_->tell() - size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  715|       |#endif
  716|      1|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  717|      1|}
_ZNK5Exiv29RiffVideo13readDataChunkEm:
  719|     47|void RiffVideo::readDataChunk(uint64_t size_) const {
  720|       |#ifdef EXIV2_DEBUG_MESSAGES
  721|       |  EXV_INFO << "--> Data               = " << readStringTag(io_, static_cast<size_t>(size_)) << '\n';
  722|       |  uint64_t readed_size = size_;
  723|       |  if (size_ % 2 != 0) {
  724|       |    EXV_INFO << "--> pad byte          = " << readStringTag(io_, 1) << '\n';
  725|       |    readed_size += 1;
  726|       |  }
  727|       |  if (LogMsg::info >= LogMsg::level() && LogMsg::handler())
  728|       |    io_->seekOrThrow(io_->tell() - readed_size, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  729|       |#endif
  730|     47|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  731|     47|  if (size_ % 2 != 0)
  ------------------
  |  Branch (731:7): [True: 40, False: 7]
  ------------------
  732|     40|    io_->seekOrThrow(io_->tell() + 1, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  733|     47|}
_ZNK5Exiv29RiffVideo8readJunkEm:
  735|     14|void RiffVideo::readJunk(uint64_t size_) const {
  736|     14|  io_->seekOrThrow(io_->tell() + size_, BasicIo::beg, ErrorCode::kerFailedToReadImageData);
  737|     14|}
_ZN5Exiv29RiffVideo13getStreamTypeEj:
  739|    626|std::string RiffVideo::getStreamType(uint32_t stream) {
  740|    626|  if (stream == 1)
  ------------------
  |  Branch (740:7): [True: 37, False: 589]
  ------------------
  741|     37|    return "Mono";
  742|    589|  if (stream == 2)
  ------------------
  |  Branch (742:7): [True: 7, False: 582]
  ------------------
  743|      7|    return "Stereo";
  744|    582|  if (stream == 5)
  ------------------
  |  Branch (744:7): [True: 111, False: 471]
  ------------------
  745|    111|    return "5.1 Surround Sound";
  746|    471|  if (stream == 7)
  ------------------
  |  Branch (746:7): [True: 3, False: 468]
  ------------------
  747|      3|    return "7.1 Surround Sound";
  748|    468|  return "Mono";
  749|    471|}
_ZN5Exiv29RiffVideo12fillDurationEdm:
  751|    129|void RiffVideo::fillDuration(double frame_rate, size_t frame_count) {
  752|    129|  if (frame_rate == 0)
  ------------------
  |  Branch (752:7): [True: 0, False: 129]
  ------------------
  753|      0|    return;
  754|       |
  755|    129|  auto duration = static_cast<uint64_t>(frame_count * 1000. / frame_rate);
  756|    129|  xmpData_["Xmp.video.FileDataRate"] = io_->size() / (1048576. * duration);
  757|    129|  xmpData_["Xmp.video.Duration"] = duration;  // Duration in number of seconds
  758|    129|}  // RiffVideo::fillDuration
_ZN5Exiv215newRiffInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  760|    290|Image::UniquePtr newRiffInstance(BasicIo::UniquePtr io, bool /*create*/) {
  761|    290|  auto image = std::make_unique<RiffVideo>(std::move(io));
  762|    290|  if (!image->good()) {
  ------------------
  |  Branch (762:7): [True: 0, False: 290]
  ------------------
  763|      0|    return nullptr;
  764|      0|  }
  765|    290|  return image;
  766|    290|}
_ZN5Exiv210isRiffTypeERNS_7BasicIoEb:
  768|  7.57k|bool isRiffType(BasicIo& iIo, bool advance) {
  769|  7.57k|  constexpr int len = 4;
  770|  7.57k|  const std::array<byte, len> RiffVideoId{'R', 'I', 'F', 'F'};
  771|  7.57k|  std::array<byte, len> buf;
  772|  7.57k|  iIo.read(buf.data(), len);
  773|  7.57k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (773:7): [True: 0, False: 7.57k]
  |  Branch (773:22): [True: 139, False: 7.43k]
  ------------------
  774|    139|    return false;
  775|    139|  }
  776|  7.43k|  bool matched = buf == RiffVideoId;
  777|  7.43k|  if (!advance || !matched) {
  ------------------
  |  Branch (777:7): [True: 7.43k, False: 0]
  |  Branch (777:19): [True: 0, False: 0]
  ------------------
  778|  7.43k|    iIo.seek(-1 * len, BasicIo::cur);
  779|  7.43k|  }
  780|  7.43k|  return matched;
  781|  7.57k|}

_ZN5Exiv28Rw2ImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   29|  2.29k|Rw2Image::Rw2Image(BasicIo::UniquePtr io) : Image(ImageType::rw2, mdExif | mdIptc | mdXmp, std::move(io)) {
   30|  2.29k|}  // Rw2Image::Rw2Image
_ZNK5Exiv28Rw2Image8mimeTypeEv:
   32|  6.72k|std::string Rw2Image::mimeType() const {
   33|  6.72k|  return "image/x-panasonic-rw2";
   34|  6.72k|}
_ZNK5Exiv28Rw2Image10pixelWidthEv:
   36|    297|uint32_t Rw2Image::pixelWidth() const {
   37|    297|  auto imageWidth = exifData_.findKey(Exiv2::ExifKey("Exif.PanasonicRaw.SensorWidth"));
   38|    297|  if (imageWidth == exifData_.end() || imageWidth->count() == 0)
  ------------------
  |  Branch (38:7): [True: 235, False: 62]
  |  Branch (38:7): [True: 288, False: 9]
  |  Branch (38:40): [True: 53, False: 9]
  ------------------
   39|    288|    return 0;
   40|      9|  return imageWidth->toUint32();
   41|    297|}
_ZNK5Exiv28Rw2Image11pixelHeightEv:
   43|    297|uint32_t Rw2Image::pixelHeight() const {
   44|    297|  auto imageHeight = exifData_.findKey(Exiv2::ExifKey("Exif.PanasonicRaw.SensorHeight"));
   45|    297|  if (imageHeight == exifData_.end() || imageHeight->count() == 0)
  ------------------
  |  Branch (45:7): [True: 253, False: 44]
  |  Branch (45:7): [True: 296, False: 1]
  |  Branch (45:41): [True: 43, False: 1]
  ------------------
   46|    296|    return 0;
   47|      1|  return imageHeight->toUint32();
   48|    297|}
_ZN5Exiv28Rw2Image14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
   65|  3.28k|void Rw2Image::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
   66|  3.28k|  out << "RW2 IMAGE" << '\n';
   67|  3.28k|  if (io_->open() != 0)
  ------------------
  |  Branch (67:7): [True: 0, False: 3.28k]
  ------------------
   68|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   69|       |  // Ensure that this is the correct image type
   70|  3.28k|  if (imageType() == ImageType::none && !isRw2Type(*io_, false)) {
  ------------------
  |  Branch (70:7): [True: 0, False: 3.28k]
  |  Branch (70:41): [True: 0, False: 0]
  ------------------
   71|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (71:9): [True: 0, False: 0]
  |  Branch (71:25): [True: 0, False: 0]
  ------------------
   72|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   73|      0|    throw Error(ErrorCode::kerNotAJpeg);
   74|      0|  }
   75|       |
   76|  3.28k|  io_->seek(0, BasicIo::beg);
   77|       |
   78|  3.28k|  printTiffStructure(io(), out, option, depth);
   79|  3.28k|}  // Rw2Image::printStructure
_ZN5Exiv28Rw2Image12readMetadataEv:
   81|  2.29k|void Rw2Image::readMetadata() {
   82|       |#ifdef EXIV2_DEBUG_MESSAGES
   83|       |  std::cerr << "Reading RW2 file " << io_->path() << "\n";
   84|       |#endif
   85|  2.29k|  if (io_->open() != 0) {
  ------------------
  |  Branch (85:7): [True: 0, False: 2.29k]
  ------------------
   86|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   87|      0|  }
   88|  2.29k|  IoCloser closer(*io_);
   89|       |  // Ensure that this is the correct image type
   90|  2.29k|  if (!isRw2Type(*io_, false)) {
  ------------------
  |  Branch (90:7): [True: 0, False: 2.29k]
  ------------------
   91|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (91:9): [True: 0, False: 0]
  |  Branch (91:25): [True: 0, False: 0]
  ------------------
   92|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   93|      0|    throw Error(ErrorCode::kerNotAnImage, "RW2");
   94|      0|  }
   95|  2.29k|  clearMetadata();
   96|  2.29k|  ByteOrder bo = Rw2Parser::decode(exifData_, iptcData_, xmpData_, io_->mmap(), io_->size());
   97|  2.29k|  setByteOrder(bo);
   98|       |
   99|       |  // A lot more metadata is hidden in the embedded preview image
  100|       |  // Todo: This should go into the Rw2Parser, but for that it needs the Image
  101|  2.29k|  PreviewManager loader(*this);
  102|  2.29k|  PreviewPropertiesList list = loader.getPreviewProperties();
  103|       |  // Todo: What if there are more preview images?
  104|  2.29k|  if (list.size() > 1) {
  ------------------
  |  Branch (104:7): [True: 757, False: 1.53k]
  ------------------
  105|    757|#ifndef SUPPRESS_WARNINGS
  106|    757|    EXV_WARNING << "RW2 image contains more than one preview. None used.\n";
  ------------------
  |  |  138|    757|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 757]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    757|  LogMsg(LogMsg::warn).os()
  ------------------
  107|    757|#endif
  108|    757|  }
  109|  2.29k|  if (list.size() != 1)
  ------------------
  |  Branch (109:7): [True: 1.74k, False: 543]
  ------------------
  110|  1.74k|    return;
  111|    543|  ExifData exifData;
  112|    543|  PreviewImage preview = loader.getPreviewImage(*list.begin());
  113|    543|  auto image = ImageFactory::open(preview.pData(), preview.size());
  114|    543|  if (!image) {
  ------------------
  |  Branch (114:7): [True: 0, False: 543]
  ------------------
  115|      0|#ifndef SUPPRESS_WARNINGS
  116|      0|    EXV_WARNING << "Failed to open RW2 preview image.\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  117|      0|#endif
  118|      0|    return;
  119|      0|  }
  120|    543|  image->readMetadata();
  121|    543|  ExifData& prevData = image->exifData();
  122|    543|  if (!prevData.empty()) {
  ------------------
  |  Branch (122:7): [True: 436, False: 107]
  ------------------
  123|       |    // Filter duplicate tags
  124|  55.1k|    for (const auto& pos : exifData_) {
  ------------------
  |  Branch (124:26): [True: 55.1k, False: 436]
  ------------------
  125|  55.1k|      if (pos.ifdId() == IfdId::panaRawId)
  ------------------
  |  Branch (125:11): [True: 14.4k, False: 40.6k]
  ------------------
  126|  14.4k|        continue;
  127|  40.6k|      auto dup = prevData.findKey(ExifKey(pos.key()));
  128|  40.6k|      if (dup != prevData.end()) {
  ------------------
  |  Branch (128:11): [True: 6.35k, False: 34.3k]
  ------------------
  129|       |#ifdef EXIV2_DEBUG_MESSAGES
  130|       |        std::cerr << "Filtering duplicate tag " << pos.key() << " (values '" << pos.value() << "' and '" << dup->value()
  131|       |                  << "')\n";
  132|       |#endif
  133|  6.35k|        prevData.erase(dup);
  134|  6.35k|      }
  135|  40.6k|    }
  136|    436|  }
  137|       |  // Remove tags not applicable for raw images
  138|    543|  static constexpr auto filteredTags = std::array{
  139|    543|      "Exif.Photo.ComponentsConfiguration",
  140|    543|      "Exif.Photo.CompressedBitsPerPixel",
  141|    543|      "Exif.Panasonic.ColorEffect",
  142|    543|      "Exif.Panasonic.Contrast",
  143|    543|      "Exif.Panasonic.NoiseReduction",
  144|    543|      "Exif.Panasonic.ColorMode",
  145|    543|      "Exif.Panasonic.OpticalZoomMode",
  146|    543|      "Exif.Panasonic.Contrast",
  147|    543|      "Exif.Panasonic.Saturation",
  148|    543|      "Exif.Panasonic.Sharpness",
  149|    543|      "Exif.Panasonic.FilmMode",
  150|    543|      "Exif.Panasonic.SceneMode",
  151|    543|      "Exif.Panasonic.WBRedLevel",
  152|    543|      "Exif.Panasonic.WBGreenLevel",
  153|    543|      "Exif.Panasonic.WBBlueLevel",
  154|    543|      "Exif.Photo.ColorSpace",
  155|    543|      "Exif.Photo.PixelXDimension",
  156|    543|      "Exif.Photo.PixelYDimension",
  157|    543|      "Exif.Photo.SceneType",
  158|    543|      "Exif.Photo.CustomRendered",
  159|    543|      "Exif.Photo.DigitalZoomRatio",
  160|    543|      "Exif.Photo.SceneCaptureType",
  161|    543|      "Exif.Photo.GainControl",
  162|    543|      "Exif.Photo.Contrast",
  163|    543|      "Exif.Photo.Saturation",
  164|    543|      "Exif.Photo.Sharpness",
  165|    543|      "Exif.Image.PrintImageMatching",
  166|    543|      "Exif.Image.YCbCrPositioning",
  167|    543|  };
  168|  13.1k|  for (auto&& filteredTag : filteredTags) {
  ------------------
  |  Branch (168:27): [True: 13.1k, False: 543]
  ------------------
  169|  13.1k|    auto pos = prevData.findKey(ExifKey(filteredTag));
  170|  13.1k|    if (pos != prevData.end()) {
  ------------------
  |  Branch (170:9): [True: 1, False: 13.1k]
  ------------------
  171|       |#ifdef EXIV2_DEBUG_MESSAGES
  172|       |      std::cerr << "Exif tag " << pos->key() << " removed\n";
  173|       |#endif
  174|      1|      prevData.erase(pos);
  175|      1|    }
  176|  13.1k|  }
  177|       |
  178|       |  // Add the remaining tags
  179|  85.9k|  for (const auto& pos : prevData) {
  ------------------
  |  Branch (179:24): [True: 85.9k, False: 543]
  ------------------
  180|  85.9k|    exifData_.add(pos);
  181|  85.9k|  }
  182|       |
  183|    543|}  // Rw2Image::readMetadata
_ZN5Exiv29Rw2Parser6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhm:
  190|  2.29k|ByteOrder Rw2Parser::decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size) {
  191|  2.29k|  Rw2Header rw2Header;
  192|  2.29k|  return TiffParserWorker::decode(exifData, iptcData, xmpData, pData, size, Tag::pana, TiffMapping::findDecoder,
  193|  2.29k|                                  &rw2Header);
  194|  2.29k|}
_ZN5Exiv214newRw2InstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  198|  2.29k|Image::UniquePtr newRw2Instance(BasicIo::UniquePtr io, bool /*create*/) {
  199|  2.29k|  auto image = std::make_unique<Rw2Image>(std::move(io));
  200|  2.29k|  if (!image->good()) {
  ------------------
  |  Branch (200:7): [True: 0, False: 2.29k]
  ------------------
  201|      0|    return nullptr;
  202|      0|  }
  203|  2.29k|  return image;
  204|  2.29k|}
_ZN5Exiv29isRw2TypeERNS_7BasicIoEb:
  206|  20.4k|bool isRw2Type(BasicIo& iIo, bool advance) {
  207|  20.4k|  const int32_t len = 24;
  208|  20.4k|  byte buf[len];
  209|  20.4k|  iIo.read(buf, len);
  210|  20.4k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (210:7): [True: 0, False: 20.4k]
  |  Branch (210:22): [True: 124, False: 20.2k]
  ------------------
  211|    124|    return false;
  212|    124|  }
  213|  20.2k|  Rw2Header header;
  214|  20.2k|  bool rc = header.read(buf, len);
  215|  20.2k|  if (!advance || !rc) {
  ------------------
  |  Branch (215:7): [True: 20.2k, False: 0]
  |  Branch (215:19): [True: 0, False: 0]
  ------------------
  216|  20.2k|    iIo.seek(-len, BasicIo::cur);
  217|  20.2k|  }
  218|  20.2k|  return rc;
  219|  20.4k|}

_ZN5Exiv28Internal9Rw2HeaderC2Ev:
    6|  22.5k|Rw2Header::Rw2Header() : TiffHeaderBase(0x0055, 24, littleEndian, 0x00000018) {
    7|  22.5k|}

_ZN4Safe3addIjEET_S1_S1_:
  137|  5.17k|T add(T summand_1, T summand_2) {
  138|  5.17k|  T res = 0;
  139|  5.17k|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 30, False: 5.14k]
  ------------------
  140|     30|    throw std::overflow_error("Overflow in addition");
  141|     30|  }
  142|  5.14k|  return res;
  143|  5.17k|}
_ZN4Safe8Internal20builtin_add_overflowIjEEbT_S2_RS2_:
   96|  5.17k|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  5.17k|#if (defined(__GNUC__) || defined(__clang__)) && (__GNUC__ >= 5 || __clang_major__ >= 3)
   98|       |  if constexpr (std::is_same_v<T, int>)
   99|       |    return __builtin_sadd_overflow(summand_1, summand_2, &result);
  100|       |  else if constexpr (std::is_same_v<T, long>)
  101|       |    return __builtin_saddl_overflow(summand_1, summand_2, &result);
  102|       |  else if constexpr (std::is_same_v<T, long long>)
  103|       |    return __builtin_saddll_overflow(summand_1, summand_2, &result);
  104|       |  else if constexpr (std::is_same_v<T, unsigned int>)
  105|  5.17k|    return __builtin_uadd_overflow(summand_1, summand_2, &result);
  106|       |  else if constexpr (std::is_same_v<T, unsigned long>)
  107|       |    return __builtin_uaddl_overflow(summand_1, summand_2, &result);
  108|       |  else if constexpr (std::is_same_v<T, unsigned long long>)
  109|       |    return __builtin_uaddll_overflow(summand_1, summand_2, &result);
  110|       |  else
  111|       |#endif
  112|       |    return fallback_add_overflow(summand_1, summand_2, result);
  113|  5.17k|}
_ZN4Safe3addImEET_S1_S1_:
  137|  3.10M|T add(T summand_1, T summand_2) {
  138|  3.10M|  T res = 0;
  139|  3.10M|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 3, False: 3.10M]
  ------------------
  140|      3|    throw std::overflow_error("Overflow in addition");
  141|      3|  }
  142|  3.10M|  return res;
  143|  3.10M|}
_ZN4Safe8Internal20builtin_add_overflowImEEbT_S2_RS2_:
   96|  3.10M|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  3.10M|#if (defined(__GNUC__) || defined(__clang__)) && (__GNUC__ >= 5 || __clang_major__ >= 3)
   98|       |  if constexpr (std::is_same_v<T, int>)
   99|       |    return __builtin_sadd_overflow(summand_1, summand_2, &result);
  100|       |  else if constexpr (std::is_same_v<T, long>)
  101|       |    return __builtin_saddl_overflow(summand_1, summand_2, &result);
  102|       |  else if constexpr (std::is_same_v<T, long long>)
  103|       |    return __builtin_saddll_overflow(summand_1, summand_2, &result);
  104|       |  else if constexpr (std::is_same_v<T, unsigned int>)
  105|       |    return __builtin_uadd_overflow(summand_1, summand_2, &result);
  106|       |  else if constexpr (std::is_same_v<T, unsigned long>)
  107|  3.10M|    return __builtin_uaddl_overflow(summand_1, summand_2, &result);
  108|       |  else if constexpr (std::is_same_v<T, unsigned long long>)
  109|       |    return __builtin_uaddll_overflow(summand_1, summand_2, &result);
  110|       |  else
  111|       |#endif
  112|       |    return fallback_add_overflow(summand_1, summand_2, result);
  113|  3.10M|}
_ZN4Safe3addIlEET_S1_S1_:
  137|  28.7k|T add(T summand_1, T summand_2) {
  138|  28.7k|  T res = 0;
  139|  28.7k|  if (Internal::builtin_add_overflow(summand_1, summand_2, res)) {
  ------------------
  |  Branch (139:7): [True: 2, False: 28.7k]
  ------------------
  140|      2|    throw std::overflow_error("Overflow in addition");
  141|      2|  }
  142|  28.7k|  return res;
  143|  28.7k|}
_ZN4Safe8Internal20builtin_add_overflowIlEEbT_S2_RS2_:
   96|  28.7k|bool builtin_add_overflow(T summand_1, T summand_2, T& result) {
   97|  28.7k|#if (defined(__GNUC__) || defined(__clang__)) && (__GNUC__ >= 5 || __clang_major__ >= 3)
   98|       |  if constexpr (std::is_same_v<T, int>)
   99|       |    return __builtin_sadd_overflow(summand_1, summand_2, &result);
  100|       |  else if constexpr (std::is_same_v<T, long>)
  101|  28.7k|    return __builtin_saddl_overflow(summand_1, summand_2, &result);
  102|       |  else if constexpr (std::is_same_v<T, long long>)
  103|       |    return __builtin_saddll_overflow(summand_1, summand_2, &result);
  104|       |  else if constexpr (std::is_same_v<T, unsigned int>)
  105|       |    return __builtin_uadd_overflow(summand_1, summand_2, &result);
  106|       |  else if constexpr (std::is_same_v<T, unsigned long>)
  107|       |    return __builtin_uaddl_overflow(summand_1, summand_2, &result);
  108|       |  else if constexpr (std::is_same_v<T, unsigned long long>)
  109|       |    return __builtin_uaddll_overflow(summand_1, summand_2, &result);
  110|       |  else
  111|       |#endif
  112|       |    return fallback_add_overflow(summand_1, summand_2, result);
  113|  28.7k|}

samsungmn_int.cpp:_ZN5Exiv28InternalL22printCameraTemperatureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   53|     50|static std::ostream& printCameraTemperature(std::ostream& os, const Value& value, const ExifData*) {
   54|     50|  if (value.count() != 1 || value.typeId() != signedRational) {
  ------------------
  |  Branch (54:7): [True: 14, False: 36]
  |  Branch (54:29): [True: 16, False: 20]
  ------------------
   55|     30|    return os << value;
   56|     30|  }
   57|     20|  return os << value.toFloat() << " C";
   58|     50|}
samsungmn_int.cpp:_ZN5Exiv28InternalL18printFocalLength35ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   61|     26|static std::ostream& printFocalLength35(std::ostream& os, const Value& value, const ExifData*) {
   62|     26|  if (value.count() != 1 || value.typeId() != unsignedLong) {
  ------------------
  |  Branch (62:7): [True: 8, False: 18]
  |  Branch (62:29): [True: 6, False: 12]
  ------------------
   63|     14|    return os << value;
   64|     14|  }
   65|     12|  auto length = value.toInt64();
   66|     12|  if (length == 0) {
  ------------------
  |  Branch (66:7): [True: 6, False: 6]
  ------------------
   67|      6|    return os << _("Unknown");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
   68|      6|  }
   69|      6|  return os << stringFormat("{:.1f} mm", length / 10.0);
  ------------------
  |  |   18|      6|#define stringFormat std::format
  ------------------
   70|     12|}
samsungmn_int.cpp:_ZN5Exiv28InternalL12printPwColorERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  147|     66|static std::ostream& printPwColor(std::ostream& os, const Value& value, const ExifData*) {
  148|     66|  if (value.count() != 1 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (148:7): [True: 0, False: 66]
  |  Branch (148:29): [True: 0, False: 66]
  ------------------
  149|      0|    return os << value;
  150|      0|  }
  151|       |  // Special case where no color modification is done
  152|     66|  if (value.toInt64() == 65535) {
  ------------------
  |  Branch (152:7): [True: 2, False: 64]
  ------------------
  153|      2|    return os << _("Neutral");
  ------------------
  |  |   40|      2|#define _(String) (String)
  ------------------
  154|      2|  }
  155|       |  // Output seems to represent Hue in degrees
  156|     64|  return os << value.toInt64();
  157|     66|}
samsungmn_int.cpp:_ZN5Exiv28InternalL16printValueMinus4ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  160|    194|static std::ostream& printValueMinus4(std::ostream& os, const Value& value, const ExifData*) {
  161|    194|  if (value.count() != 1 || value.typeId() != unsignedShort) {
  ------------------
  |  Branch (161:7): [True: 0, False: 194]
  |  Branch (161:29): [True: 0, False: 194]
  ------------------
  162|      0|    return os << value;
  163|      0|  }
  164|    194|  return os << value.toInt64(0) - 4;
  165|    194|}

_ZN5Exiv28Internal17Samsung2MakerNote7tagListEv:
   19|  57.8k|  static constexpr auto tagList() {
   20|  57.8k|    return tagInfo_;
   21|  57.8k|  }
_ZN5Exiv28Internal17Samsung2MakerNote9tagListPwEv:
   23|  78.0k|  static constexpr auto tagListPw() {
   24|  78.0k|    return tagInfoPw_;
   25|  78.0k|  }

_ZN5Exiv28Internal14SigmaMakerNote15printStripLabelERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   71|    360|std::ostream& SigmaMakerNote::printStripLabel(std::ostream& os, const Value& value, const ExifData*) {
   72|    360|  std::string v = value.toString();
   73|    360|  if (auto pos = v.find(':'); pos != std::string::npos) {
  ------------------
  |  Branch (73:31): [True: 158, False: 202]
  ------------------
   74|    158|    if (v.at(pos + 1) == ' ')
  ------------------
  |  Branch (74:9): [True: 50, False: 108]
  ------------------
   75|     50|      ++pos;
   76|    158|    v = v.substr(pos + 1);
   77|    158|  }
   78|    360|  return os << v;
   79|    360|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0008ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
   81|    342|std::ostream& SigmaMakerNote::print0x0008(std::ostream& os, const Value& value, const ExifData*) {
   82|    342|  std::string v = value.toString();
   83|    342|  if (v.empty()) {
  ------------------
  |  Branch (83:7): [True: 58, False: 284]
  ------------------
   84|     58|    return os;
   85|     58|  }
   86|    284|  switch (v.front()) {
   87|     16|    case 'P':
  ------------------
  |  Branch (87:5): [True: 16, False: 268]
  ------------------
   88|     16|      return os << _("Program");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
   89|     44|    case 'A':
  ------------------
  |  Branch (89:5): [True: 44, False: 240]
  ------------------
   90|     44|      return os << _("Aperture priority");
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
   91|     34|    case 'S':
  ------------------
  |  Branch (91:5): [True: 34, False: 250]
  ------------------
   92|     34|      return os << _("Shutter priority");
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
   93|     16|    case 'M':
  ------------------
  |  Branch (93:5): [True: 16, False: 268]
  ------------------
   94|     16|      return os << _("Manual");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
   95|    174|    default:
  ------------------
  |  Branch (95:5): [True: 174, False: 110]
  ------------------
   96|    174|      return os << "(" << value << ")";
   97|    284|  }
   98|    284|}
_ZN5Exiv28Internal14SigmaMakerNote11print0x0009ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  100|    418|std::ostream& SigmaMakerNote::print0x0009(std::ostream& os, const Value& value, const ExifData*) {
  101|    418|  std::string v = value.toString();
  102|    418|  if (v.empty()) {
  ------------------
  |  Branch (102:7): [True: 82, False: 336]
  ------------------
  103|     82|    return os;
  104|     82|  }
  105|    336|  switch (v.front()) {
  106|     40|    case 'A':
  ------------------
  |  Branch (106:5): [True: 40, False: 296]
  ------------------
  107|     40|      return os << _("Average");
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  108|     72|    case 'C':
  ------------------
  |  Branch (108:5): [True: 72, False: 264]
  ------------------
  109|     72|      return os << _("Center");
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  110|     36|    case '8':
  ------------------
  |  Branch (110:5): [True: 36, False: 300]
  ------------------
  111|     36|      return os << _("8-Segment");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  112|    188|    default:
  ------------------
  |  Branch (112:5): [True: 188, False: 148]
  ------------------
  113|    188|      return os << "(" << value << ")";
  114|    336|  }
  115|    336|}

_ZN5Exiv28Internal14SigmaMakerNote7tagListEv:
   25|  31.8k|  static constexpr auto tagList() {
   26|  31.8k|    return tagInfo_;
   27|  31.8k|  }

_ZN5Exiv28Internal13SonyMakerNote25printWhiteBalanceFineTuneERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  919|    116|std::ostream& SonyMakerNote::printWhiteBalanceFineTune(std::ostream& os, const Value& value, const ExifData*) {
  920|    116|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (920:7): [True: 72, False: 44]
  |  Branch (920:29): [True: 38, False: 6]
  ------------------
  921|    110|    return os << "(" << value << ")";
  922|       |
  923|       |  // Sony writes the tag as an unsignedLong but treat it as a signedLong. Source:
  924|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L681
  925|      6|  return os << static_cast<int32_t>(value.toUint32(0));
  926|    116|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  928|    808|std::ostream& SonyMakerNote::printMultiBurstMode(std::ostream& os, const Value& value, const ExifData* metadata) {
  929|    808|  if (value.count() != 1 || value.typeId() != undefined)
  ------------------
  |  Branch (929:7): [True: 684, False: 124]
  |  Branch (929:29): [True: 124, False: 0]
  ------------------
  930|    808|    return os << "(" << value << ")";
  931|       |
  932|       |  // Some cameras do not set the type to undefined. Source:
  933|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L763
  934|       |
  935|      0|  return printMinoltaSonyBoolValue(os, value, metadata);
  936|    808|}
_ZN5Exiv28Internal13SonyMakerNote19printMultiBurstSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  938|    166|std::ostream& SonyMakerNote::printMultiBurstSize(std::ostream& os, const Value& value, const ExifData*) {
  939|    166|  if (value.count() != 1 || value.typeId() != unsignedShort)
  ------------------
  |  Branch (939:7): [True: 144, False: 22]
  |  Branch (939:29): [True: 14, False: 8]
  ------------------
  940|    158|    return os << "(" << value << ")";
  941|       |
  942|       |  // Some cameras do not set the type to unsignedShort. Source:
  943|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L771
  944|       |
  945|      8|  return os << value.toUint32(0);
  946|    166|}
_ZN5Exiv28Internal13SonyMakerNote15printAutoHDRStdERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  948|    390|std::ostream& SonyMakerNote::printAutoHDRStd(std::ostream& os, const Value& value, const ExifData* metadata) {
  949|    390|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (949:7): [True: 30, False: 360]
  |  Branch (949:29): [True: 34, False: 326]
  ------------------
  950|     64|    return os << "(" << value << ")";
  951|       |
  952|       |  // Sony writes the tag as an unsignedLong but treat it as 2 unsignedShort values. Source:
  953|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L887
  954|       |
  955|    326|  const auto v0 = value.toUint32(0);
  956|    326|  EXV_PRINT_TAG(sonyHDRStdPart1)(os, (v0 & 0x00ff), metadata);
  ------------------
  |  |  199|    326|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  957|    326|  os << ", ";
  958|    326|  EXV_PRINT_TAG(sonyHDRStdPart2)(os, (v0 >> 16), metadata);
  ------------------
  |  |  199|    326|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
  959|       |
  960|    326|  return os;
  961|    390|}
_ZN5Exiv28Internal13SonyMakerNote16printWBShiftABGMERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  963|    310|std::ostream& SonyMakerNote::printWBShiftABGM(std::ostream& os, const Value& value, const ExifData*) {
  964|    310|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (964:7): [True: 54, False: 256]
  |  Branch (964:29): [True: 36, False: 220]
  ------------------
  965|     90|    return os << "(" << value << ")";
  966|       |
  967|       |  // Examples of Output:
  968|       |  // 1. "A/B: 0, G/M: 0"
  969|       |  // 2. "A/B: 1B, G/M: 2M"
  970|       |
  971|    220|  const auto v0 = value.toInt64(0);
  972|    220|  const auto v1 = value.toInt64(1);
  973|       |
  974|    220|  os << "A/B: ";
  975|    220|  if (v0 == 0) {
  ------------------
  |  Branch (975:7): [True: 32, False: 188]
  ------------------
  976|     32|    os << 0;
  977|    188|  } else if (v0 < 0) {
  ------------------
  |  Branch (977:14): [True: 84, False: 104]
  ------------------
  978|     84|    os << "A" << -v0;
  979|    104|  } else {
  980|    104|    os << "B" << v0;
  981|    104|  }
  982|       |
  983|    220|  os << ", G/M: ";
  984|    220|  if (v1 == 0)
  ------------------
  |  Branch (984:7): [True: 38, False: 182]
  ------------------
  985|     38|    return os << 0;
  986|       |
  987|    182|  if (v1 < 0)
  ------------------
  |  Branch (987:7): [True: 60, False: 122]
  ------------------
  988|     60|    return os << "G" << -v1;
  989|       |
  990|    122|  return os << "M" << v1;
  991|    182|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
  993|  2.67k|std::ostream& SonyMakerNote::printFocusMode2(std::ostream& os, const Value& value, const ExifData* metadata) {
  994|  2.67k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (994:7): [True: 189, False: 2.48k]
  |  Branch (994:29): [True: 100, False: 2.38k]
  |  Branch (994:63): [True: 1.17k, False: 1.20k]
  ------------------
  995|  1.46k|    return os << "(" << value << ")";
  996|       |
  997|       |  // Tag only valid for certain camera models. See
  998|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1123
  999|  1.20k|  std::string model;
 1000|  1.20k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1000:7): [True: 246, False: 960]
  ------------------
 1001|    246|    return os << "(" << value << ")";
 1002|       |
 1003|    960|  const auto v0 = value.toUint32(0);
 1004|       |
 1005|    960|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1006|    960|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1006:7): [True: 218, False: 742]
  ------------------
 1007|    742|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1007:7): [True: 428, False: 314]
  ------------------
 1008|    646|    return EXV_PRINT_TAG(sonyFocusMode2)(os, v0, metadata);
  ------------------
  |  |  199|    646|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1009|       |
 1010|    314|  return os << _("n/a");
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
 1011|    960|}
_ZN5Exiv28Internal13SonyMakerNote22printAFAreaModeSettingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1013|  5.37k|std::ostream& SonyMakerNote::printAFAreaModeSetting(std::ostream& os, const Value& value, const ExifData* metadata) {
 1014|  5.37k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1014:7): [True: 426, False: 4.95k]
  |  Branch (1014:29): [True: 92, False: 4.85k]
  |  Branch (1014:63): [True: 947, False: 3.91k]
  ------------------
 1015|  1.46k|    return os << "(" << value << ")";
 1016|       |
 1017|       |  // Tag only valid for certain camera models. See
 1018|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1139
 1019|  3.91k|  std::string model;
 1020|  3.91k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1020:7): [True: 87, False: 3.82k]
  ------------------
 1021|     87|    return os << "(" << value << ")";
 1022|       |
 1023|  3.82k|  const auto v0 = value.toUint32(0);
 1024|       |
 1025|  3.82k|  for (auto m : {"SLT-", "HV"})
  ------------------
  |  Branch (1025:15): [True: 7.19k, False: 3.32k]
  ------------------
 1026|  7.19k|    if (model.starts_with(m))
  ------------------
  |  Branch (1026:9): [True: 499, False: 6.69k]
  ------------------
 1027|    499|      return EXV_PRINT_TAG(sonyAFAreaModeSettingSet1)(os, v0, metadata);
  ------------------
  |  |  199|    499|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1028|       |
 1029|  3.32k|  constexpr std::array models2{
 1030|  3.32k|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1031|  3.32k|  };
 1032|  3.32k|  if (std::any_of(models2.begin(), models2.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1032:7): [True: 1.11k, False: 2.21k]
  ------------------
 1033|  1.11k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet2)(os, v0, metadata);
  ------------------
  |  |  199|  1.11k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1034|       |
 1035|  2.21k|  if (model.starts_with("ILCA-"))
  ------------------
  |  Branch (1035:7): [True: 1.47k, False: 739]
  ------------------
 1036|  1.47k|    return EXV_PRINT_TAG(sonyAFAreaModeSettingSet3)(os, v0, metadata);
  ------------------
  |  |  199|  1.47k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1037|       |
 1038|    739|  return os << _("n/a");
  ------------------
  |  |   40|    739|#define _(String) (String)
  ------------------
 1039|  2.21k|}
_ZN5Exiv28Internal13SonyMakerNote25printFlexibleSpotPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1041|  1.83k|std::ostream& SonyMakerNote::printFlexibleSpotPosition(std::ostream& os, const Value& value, const ExifData* metadata) {
 1042|  1.83k|  if (value.count() != 2 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1042:7): [True: 116, False: 1.71k]
  |  Branch (1042:29): [True: 60, False: 1.65k]
  |  Branch (1042:64): [True: 829, False: 829]
  ------------------
 1043|  1.00k|    return os << "(" << value << ")";
 1044|       |
 1045|       |  // Tag only valid for certain camera models. See
 1046|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1189
 1047|    829|  std::string model;
 1048|    829|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1048:7): [True: 83, False: 746]
  ------------------
 1049|     83|    return os << "(" << value << ")";
 1050|       |
 1051|    746|  constexpr std::array models{
 1052|    746|      "NEX-", "ILCE-", "ILME-", "DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2",
 1053|    746|  };
 1054|    746|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1054:7): [True: 348, False: 398]
  ------------------
 1055|    348|    return os << value.toUint32(0) << ", " << value.toUint32(1);
 1056|       |
 1057|    398|  return os << _("n/a");
  ------------------
  |  |   40|    398|#define _(String) (String)
  ------------------
 1058|    746|}
_ZN5Exiv28Internal13SonyMakerNote20printAFPointSelectedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1060|  9.40k|std::ostream& SonyMakerNote::printAFPointSelected(std::ostream& os, const Value& value, const ExifData* metadata) {
 1061|  9.40k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1061:7): [True: 24, False: 9.37k]
  |  Branch (1061:29): [True: 242, False: 9.13k]
  |  Branch (1061:63): [True: 4.56k, False: 4.56k]
  ------------------
 1062|  4.83k|    return os << "(" << value << ")";
 1063|       |
 1064|       |  // Tag only valid for certain camera models. See
 1065|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1203
 1066|  4.56k|  std::string model;
 1067|  4.56k|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1067:7): [True: 291, False: 4.27k]
  ------------------
 1068|    291|    return os << "(" << value << ")";
 1069|       |
 1070|  4.27k|  uint32_t aFAreaModeSetting = 0;
 1071|  4.27k|  const auto status = getAFAreaModeSetting(metadata, aFAreaModeSetting);
 1072|       |
 1073|  4.27k|  for (auto m : {"SLT-", "HV-"})
  ------------------
  |  Branch (1073:15): [True: 8.06k, False: 3.74k]
  ------------------
 1074|  8.06k|    if (model.starts_with(m))
  ------------------
  |  Branch (1074:9): [True: 536, False: 7.53k]
  ------------------
 1075|    536|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    536|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1076|       |
 1077|  3.74k|  for (auto m : {"ILCE-", "ILME-"})
  ------------------
  |  Branch (1077:15): [True: 7.36k, False: 3.46k]
  ------------------
 1078|  7.36k|    if (model.starts_with(m) && status && aFAreaModeSetting == 4)
  ------------------
  |  Branch (1078:9): [True: 877, False: 6.48k]
  |  Branch (1078:33): [True: 452, False: 425]
  |  Branch (1078:43): [True: 278, False: 174]
  ------------------
 1079|    278|      return EXV_PRINT_TAG(sonyAFPointSelectedSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    278|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1080|       |
 1081|  3.46k|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1081:15): [True: 6.36k, False: 2.67k]
  ------------------
 1082|  6.36k|    if (model.starts_with(m) && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1082:9): [True: 1.12k, False: 5.24k]
  |  Branch (1082:33): [True: 879, False: 246]
  |  Branch (1082:43): [True: 791, False: 88]
  ------------------
 1083|    791|      return EXV_PRINT_TAG(sonyAFPointSelectedSet2)(os, value, metadata);
  ------------------
  |  |  199|    791|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1084|       |
 1085|  2.67k|  if (model.starts_with("ILCA-99M2") && status && aFAreaModeSetting != 8)
  ------------------
  |  Branch (1085:7): [True: 532, False: 2.14k]
  |  Branch (1085:41): [True: 487, False: 45]
  |  Branch (1085:51): [True: 282, False: 205]
  ------------------
 1086|    282|    return EXV_PRINT_TAG(sonyAFPointSelectedSet3)(os, value, metadata);
  ------------------
  |  |  199|    282|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1087|       |
 1088|  2.39k|  if (model.starts_with("ILCA-") && status && aFAreaModeSetting == 8)
  ------------------
  |  Branch (1088:7): [True: 692, False: 1.69k]
  |  Branch (1088:37): [True: 398, False: 294]
  |  Branch (1088:47): [True: 293, False: 105]
  ------------------
 1089|    293|    return EXV_PRINT_TAG(sonyAFPointSelectedSet4)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    293|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1090|       |
 1091|  2.09k|  for (auto m : {"NEX-", "ILCE-", "ILME-"})
  ------------------
  |  Branch (1091:15): [True: 5.46k, False: 1.31k]
  ------------------
 1092|  5.46k|    if (model.starts_with(m))
  ------------------
  |  Branch (1092:9): [True: 778, False: 4.68k]
  ------------------
 1093|    778|      return EXV_PRINT_TAG(sonyAFPointSelectedSet5)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    778|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1094|       |
 1095|  1.31k|  return os << _("n/a");
  ------------------
  |  |   40|  1.31k|#define _(String) (String)
  ------------------
 1096|  2.09k|}
_ZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1098|  1.13k|std::ostream& SonyMakerNote::printAFPointsUsed(std::ostream& os, const Value& value, const ExifData* metadata) {
 1099|  1.13k|  if (value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1099:7): [True: 100, False: 1.03k]
  |  Branch (1099:41): [True: 518, False: 518]
  ------------------
 1100|    618|    return os << "(" << value << ")";
 1101|       |
 1102|    518|  std::string model;
 1103|    518|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1103:7): [True: 61, False: 457]
  ------------------
 1104|     61|    return os << "(" << value << ")";
 1105|       |
 1106|    457|  constexpr std::array models1{"ILCA-", "DSC-"};
 1107|    457|  if (std::none_of(models1.begin(), models1.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1107:7): [True: 212, False: 245]
  ------------------
 1108|    212|    return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet1)(os, value, metadata);
  ------------------
  |  |  289|    212|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1109|       |
 1110|    245|  for (auto m : {"ILCA-68", "ILCA-77M2"})
  ------------------
  |  Branch (1110:15): [True: 458, False: 139]
  ------------------
 1111|    458|    if (model.starts_with(m))
  ------------------
  |  Branch (1111:9): [True: 106, False: 352]
  ------------------
 1112|    106|      return EXV_PRINT_TAG_BITLIST_ALL_LE(sonyAFPointsUsedSet2)(os, value, metadata);
  ------------------
  |  |  289|    106|#define EXV_PRINT_TAG_BITLIST_ALL_LE(array) printTagBitlistAllLE<std::size(array), array>
  ------------------
 1113|       |
 1114|    139|  return os << _("n/a");
  ------------------
  |  |   40|    139|#define _(String) (String)
  ------------------
 1115|    245|}
_ZN5Exiv28Internal13SonyMakerNote15printAFTrackingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1117|  2.02k|std::ostream& SonyMakerNote::printAFTracking(std::ostream& os, const Value& value, const ExifData* metadata) {
 1118|  2.02k|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (1118:7): [True: 48, False: 1.97k]
  |  Branch (1118:29): [True: 72, False: 1.90k]
  |  Branch (1118:63): [True: 950, False: 950]
  ------------------
 1119|  1.07k|    return os << "(" << value << ")";
 1120|       |
 1121|       |  // Tag only valid for certain camera models. See
 1122|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1353
 1123|    950|  std::string model;
 1124|    950|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1124:7): [True: 124, False: 826]
  ------------------
 1125|    124|    return os << "(" << value << ")";
 1126|       |
 1127|    826|  constexpr std::array models{"DSC-RX10M4", "DSC-RX100M6", "DSC-RX100M7", "DSC-RX100M5A", "DSC-HX99", "DSC-RX0M2"};
 1128|    826|  if (!model.starts_with("DSC-") ||
  ------------------
  |  Branch (1128:7): [True: 183, False: 643]
  ------------------
 1129|    643|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
  ------------------
  |  Branch (1129:7): [True: 340, False: 303]
  ------------------
 1130|    523|    return EXV_PRINT_TAG(sonyAFTracking)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    523|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1131|       |
 1132|    303|  return os << _("n/a");
  ------------------
  |  |   40|    303|#define _(String) (String)
  ------------------
 1133|    826|}
_ZN5Exiv28Internal13SonyMakerNote27printFocalPlaneAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1135|     78|std::ostream& SonyMakerNote::printFocalPlaneAFPointsUsed(std::ostream& os, const Value& value, const ExifData*) {
 1136|     78|  if (value.typeId() != unsignedByte)
  ------------------
  |  Branch (1136:7): [True: 36, False: 42]
  ------------------
 1137|     36|    return os << "(" << value << ")";
 1138|       |
 1139|     42|  if (value.toUint32(0) == 0)
  ------------------
  |  Branch (1139:7): [True: 10, False: 32]
  ------------------
 1140|     10|    return os << _("None");
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
 1141|       |
 1142|     32|  return os << "(" << value << ")";
 1143|     42|}
_ZN5Exiv28Internal13SonyMakerNote23printWBShiftABGMPreciseERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1145|    102|std::ostream& SonyMakerNote::printWBShiftABGMPrecise(std::ostream& os, const Value& value, const ExifData*) {
 1146|    102|  if (value.count() != 2 || value.typeId() != signedLong)
  ------------------
  |  Branch (1146:7): [True: 14, False: 88]
  |  Branch (1146:29): [True: 36, False: 52]
  ------------------
 1147|     50|    return os << "(" << value << ")";
 1148|       |
 1149|     52|  std::ios::fmtflags f(os.flags());
 1150|       |
 1151|     52|  const auto temp0 = static_cast<double>(value.toInt64(0)) / 1000.0;
 1152|     52|  const auto temp1 = static_cast<double>(value.toInt64(1)) / 1000.0;
 1153|       |
 1154|     52|  os << "A/B: ";
 1155|     52|  if (temp0 == 0) {
  ------------------
  |  Branch (1155:7): [True: 18, False: 34]
  ------------------
 1156|     18|    os << 0;
 1157|     34|  } else if (temp0 < 0) {
  ------------------
  |  Branch (1157:14): [True: 16, False: 18]
  ------------------
 1158|     16|    os << "A" << std::fixed << std::setprecision(2) << -temp0;
 1159|     18|  } else {
 1160|     18|    os << "B" << std::fixed << std::setprecision(2) << temp0;
 1161|     18|  }
 1162|     52|  os << ", G/M: ";
 1163|     52|  if (temp1 == 0) {
  ------------------
  |  Branch (1163:7): [True: 14, False: 38]
  ------------------
 1164|     14|    os << 0;
 1165|     38|  } else if (temp1 < 0) {
  ------------------
  |  Branch (1165:14): [True: 16, False: 22]
  ------------------
 1166|     16|    os << "G" << std::fixed << std::setprecision(2) << -temp1;
 1167|     22|  } else {
 1168|     22|    os << "M" << std::fixed << std::setprecision(2) << temp1;
 1169|     22|  }
 1170|       |
 1171|     52|  os.flags(f);
 1172|     52|  return os;
 1173|    102|}
_ZN5Exiv28Internal13SonyMakerNote31printExposureStandardAdjustmentERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1175|     92|std::ostream& SonyMakerNote::printExposureStandardAdjustment(std::ostream& os, const Value& value, const ExifData*) {
 1176|     92|  if (value.count() != 1 || value.typeId() != signedRational) {
  ------------------
  |  Branch (1176:7): [True: 18, False: 74]
  |  Branch (1176:29): [True: 18, False: 56]
  ------------------
 1177|     36|    return os << "(" << value << ")";
 1178|     36|  }
 1179|       |
 1180|     56|  const auto [r, s] = value.toRational();
 1181|     56|  return os << stringFormat("{:.1f}", static_cast<double>(r) / static_cast<double>(s));
  ------------------
  |  |   18|     56|#define stringFormat std::format
  ------------------
 1182|     92|}
_ZN5Exiv28Internal13SonyMakerNote19printPixelShiftInfoERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1184|    354|std::ostream& SonyMakerNote::printPixelShiftInfo(std::ostream& os, const Value& value, const ExifData*) {
 1185|    354|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1185:7): [True: 90, False: 264]
  |  Branch (1185:29): [True: 170, False: 94]
  ------------------
 1186|    260|    return os << "(" << value << ")";
 1187|       |
 1188|       |  // Tag format:
 1189|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1504
 1190|     94|  if (value.toString() == "0 0 0 0 0 0")
  ------------------
  |  Branch (1190:7): [True: 30, False: 64]
  ------------------
 1191|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1192|       |
 1193|       |  // Convert from little endian format
 1194|     64|  auto groupID = (value.toUint32(3) << 24) + (value.toUint32(2) << 16) + (value.toUint32(1) << 8) + value.toUint32(0);
 1195|       |
 1196|     64|  return os << stringFormat("Group {:02}{:02}{:02}{:02}, Shot {}/{} (0x{:x})", (groupID >> 17) & 0x1f,
  ------------------
  |  |   18|     64|#define stringFormat std::format
  ------------------
 1197|     64|                            (groupID >> 12) & 0x1f, (groupID >> 6) & 0x3f, groupID & 0x3f, value.toUint32(4),
 1198|     64|                            value.toUint32(5), (groupID >> 22));
 1199|     94|}
_ZN5Exiv28Internal13SonyMakerNote19printFocusFrameSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1201|    204|std::ostream& SonyMakerNote::printFocusFrameSize(std::ostream& os, const Value& value, const ExifData*) {
 1202|    204|  if (value.count() != 6 || value.typeId() != undefined)
  ------------------
  |  Branch (1202:7): [True: 104, False: 100]
  |  Branch (1202:29): [True: 14, False: 86]
  ------------------
 1203|    118|    return os << "(" << value << ")";
 1204|       |
 1205|       |  // Tag is written as undefined type but is used as unsignedShort. See
 1206|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L1578
 1207|       |
 1208|     86|  if (value.toUint32(4) == 0 && value.toUint32(5) == 0)
  ------------------
  |  Branch (1208:7): [True: 76, False: 10]
  |  Branch (1208:33): [True: 30, False: 46]
  ------------------
 1209|     30|    return os << _("n/a");
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
 1210|       |
 1211|       |  // Convert from little endian format
 1212|     56|  return os << ((value.toUint32(1) << 8) + value.toUint32(0)) << "x" << ((value.toUint32(3) << 8) + value.toUint32(2));
 1213|     86|}
_ZN5Exiv28Internal13SonyMakerNote21printColorTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1215|    112|std::ostream& SonyMakerNote::printColorTemperature(std::ostream& os, const Value& value, const ExifData*) {
 1216|    112|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1216:7): [True: 30, False: 82]
  |  Branch (1216:29): [True: 30, False: 52]
  ------------------
 1217|     60|    return os << "(" << value << ")";
 1218|       |
 1219|     52|  auto v0 = value.toUint32(0);
 1220|     52|  if (v0 == 0)
  ------------------
  |  Branch (1220:7): [True: 18, False: 34]
  ------------------
 1221|     18|    return os << _("Auto");
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
 1222|       |
 1223|     34|  if (v0 == 0xffffffff)
  ------------------
  |  Branch (1223:7): [True: 6, False: 28]
  ------------------
 1224|      6|    return os << _("n/a");
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
 1225|       |
 1226|     28|  return os << v0 << " K";
 1227|     34|}
_ZN5Exiv28Internal13SonyMakerNote28printColorCompensationFilterERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1229|    120|std::ostream& SonyMakerNote::printColorCompensationFilter(std::ostream& os, const Value& value, const ExifData*) {
 1230|    120|  if (value.count() != 1 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1230:7): [True: 56, False: 64]
  |  Branch (1230:29): [True: 14, False: 50]
  ------------------
 1231|     70|    return os << "(" << value << ")";
 1232|       |
 1233|       |  // Tag is written as an unsignedLong but used as a signedLong. See
 1234|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2093
 1235|       |
 1236|     50|  int64_t temp = static_cast<int32_t>(value.toUint32(0));
 1237|     50|  os << "G/M: ";
 1238|     50|  if (temp == 0)
  ------------------
  |  Branch (1238:7): [True: 20, False: 30]
  ------------------
 1239|     20|    return os << "0";
 1240|       |
 1241|     30|  if (temp < 0)
  ------------------
  |  Branch (1241:7): [True: 16, False: 14]
  ------------------
 1242|     16|    return os << "G" << -temp;
 1243|       |
 1244|     14|  return os << "M" << temp;
 1245|     30|}
_ZN5Exiv28Internal13SonyMakerNote13printLensSpecERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1286|    833|std::ostream& SonyMakerNote::printLensSpec(std::ostream& os, const Value& value, const ExifData*) {
 1287|    833|  if (value.count() != 8 || value.typeId() != unsignedByte)
  ------------------
  |  Branch (1287:7): [True: 34, False: 799]
  |  Branch (1287:29): [True: 46, False: 753]
  ------------------
 1288|     80|    return os << "(" << value << ")";
 1289|       |
 1290|       |  // Tag uses 8 bytes in the format:
 1291|       |  // <Flgs 1> <Flgs 2> <Focal len min> <Focal len max 1> <Focal len max 2> <Aperture min> <Aperture max> <Flags
 1292|       |  // 3>
 1293|       |  //   (0)       (1)         (2)              (3)               (4)             (5)            (6)          (7)
 1294|       |  //
 1295|       |  // Bytes 2-6 are each interpreted as 2 nibbles which are used as decimal. Nibbles have a value less than 10.
 1296|       |  // e.g., 36 == 0x24, converts to "2" and "4".
 1297|       |  // Optional elements (==0) are <Flgs 1>, <Flgs 2>, <Focal len max 1>, <Focal len max 2>, <Aperture max> and
 1298|       |  // <Flgs 3>
 1299|       |  //
 1300|       |  // Values for the tag are only set with compatible lenses, otherwise all 8 are set to 0.
 1301|       |  //
 1302|       |  // Examples of final output:
 1303|       |  // 1. "FE 90mm F2.8 Macro G OSS"
 1304|       |  // 2. "E PZ 16-50mm F3.5-5.6 OSS"
 1305|       |  // 3. "DT 18-55mm F3.5-5.6 SAM"
 1306|       |  // 4. "28-100mm F1.8-4.9"
 1307|       |  // 5. "35mm F2.0"
 1308|       |  //
 1309|       |  // See:
 1310|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2170
 1311|       |
 1312|    753|  const auto focalLenMin = value.toUint32(2);
 1313|    753|  const auto focalLenMax1 = value.toUint32(3);
 1314|    753|  const auto focalLenMax2 = value.toUint32(4);
 1315|    753|  const auto appertureMin = value.toUint32(5);
 1316|    753|  const auto apertureMax = value.toUint32(6);
 1317|       |
 1318|    753|  if (value.toString() == "0 0 0 0 0 0 0 0" || focalLenMin == 0 || appertureMin == 0)
  ------------------
  |  Branch (1318:7): [True: 76, False: 677]
  |  Branch (1318:7): [True: 214, False: 539]
  |  Branch (1318:48): [True: 90, False: 587]
  |  Branch (1318:68): [True: 48, False: 539]
  ------------------
 1319|    214|    return os << _("Unknown");
  ------------------
  |  |   40|    214|#define _(String) (String)
  ------------------
 1320|       |
 1321|    539|  std::string flagsStart;
 1322|    539|  std::string flagsEnd;
 1323|    539|  findLensSpecFlags(value, flagsStart, flagsEnd);
 1324|       |
 1325|       |  // Output <Flgs 1>
 1326|    539|  if (!flagsStart.empty())
  ------------------
  |  Branch (1326:7): [True: 406, False: 133]
  ------------------
 1327|    406|    os << flagsStart << " ";
 1328|       |
 1329|       |  // Output <Focal len min>
 1330|    539|  auto temp = ((focalLenMin >> 4) & 0x0f);
 1331|    539|  if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1331:7): [True: 334, False: 205]
  ------------------
 1332|    334|    os << temp;
 1333|       |
 1334|    539|  os << (focalLenMin & 0x0f);
 1335|       |
 1336|    539|  if (focalLenMax1 != 0 || focalLenMax2 != 0) {
  ------------------
  |  Branch (1336:7): [True: 381, False: 158]
  |  Branch (1336:28): [True: 48, False: 110]
  ------------------
 1337|    416|    os << "-";
 1338|    416|  }
 1339|       |
 1340|    539|  if (focalLenMax1 != 0) {
  ------------------
  |  Branch (1340:7): [True: 368, False: 171]
  ------------------
 1341|       |    // Output <Focal len max 1>
 1342|    368|    temp = ((focalLenMax1 >> 4) & 0x0f);
 1343|    368|    if (temp != 0)  // Remove leading zero
  ------------------
  |  Branch (1343:9): [True: 198, False: 170]
  ------------------
 1344|    198|      os << temp;
 1345|    368|    os << (focalLenMax1 & 0x0f);
 1346|       |
 1347|       |    // Output <Focal len max 2>
 1348|    368|    os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1349|    368|  } else {
 1350|       |    // Output <Focal len max 2>
 1351|    171|    if (focalLenMax2 != 0)
  ------------------
  |  Branch (1351:9): [True: 48, False: 123]
  ------------------
 1352|     48|      os << ((focalLenMax2 >> 4) & 0x0f) << (focalLenMax2 & 0x0f);
 1353|    171|  }
 1354|       |
 1355|    539|  os << "mm";
 1356|       |
 1357|       |  // Output <Aperture min>
 1358|    539|  os << " F" << ((appertureMin >> 4) & 0x0f) << "." << (appertureMin & 0x0f);
 1359|       |
 1360|       |  // Output <Aperture max>
 1361|    539|  if (apertureMax != 0)
  ------------------
  |  Branch (1361:7): [True: 304, False: 235]
  ------------------
 1362|    304|    os << "-" << ((apertureMax >> 4) & 0x0f) << "." << (apertureMax & 0x0f);
 1363|       |
 1364|       |  // Output <Flags 3>
 1365|    539|  if (!flagsEnd.empty())
  ------------------
  |  Branch (1365:7): [True: 358, False: 181]
  ------------------
 1366|    358|    os << " " << flagsEnd;
 1367|    539|  return os;
 1368|    753|}
_ZN5Exiv28Internal13SonyMakerNote14printImageSizeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1370|    110|std::ostream& SonyMakerNote::printImageSize(std::ostream& os, const Value& value, const ExifData*) {
 1371|    110|  if (value.count() != 2 || value.typeId() != unsignedLong)
  ------------------
  |  Branch (1371:7): [True: 98, False: 12]
  |  Branch (1371:29): [True: 6, False: 6]
  ------------------
 1372|    104|    return os << "(" << value << ")";
 1373|       |
 1374|       |  // Values are stored as Height then Width
 1375|      6|  return os << value.toString(1) << " x " << value.toString(0);
 1376|    110|}
_ZN5Exiv28Internal13SonyMakerNote14printFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1378|    412|std::ostream& SonyMakerNote::printFocusMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1379|    412|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1379:7): [True: 170, False: 242]
  |  Branch (1379:29): [True: 36, False: 206]
  |  Branch (1379:64): [True: 103, False: 103]
  ------------------
 1380|    309|    return os << "(" << value << ")";
 1381|       |
 1382|       |  // Only valid for certain models of camera. See
 1383|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2255
 1384|       |
 1385|    103|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1385:32): [True: 62, False: 41]
  |  Branch (1385:74): [True: 28, False: 13]
  ------------------
 1386|     90|    return EXV_PRINT_TAG(sonyFocusMode)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     90|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1387|       |
 1388|     13|  return os << _("n/a");
  ------------------
  |  |   40|     13|#define _(String) (String)
  ------------------
 1389|    103|}
_ZN5Exiv28Internal13SonyMakerNote11printAFModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1391|    848|std::ostream& SonyMakerNote::printAFMode(std::ostream& os, const Value& value, const ExifData* metadata) {
 1392|    848|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1392:7): [True: 32, False: 816]
  |  Branch (1392:29): [True: 36, False: 780]
  |  Branch (1392:64): [True: 390, False: 390]
  ------------------
 1393|    458|    return os << "(" << value << ")";
 1394|       |
 1395|       |  // Only valid for certain models of camera. See
 1396|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2275
 1397|    390|  if (std::string metaVersion; !getMetaVersion(metadata, metaVersion) || metaVersion != "DC7303320222000")
  ------------------
  |  Branch (1397:32): [True: 165, False: 225]
  |  Branch (1397:74): [True: 52, False: 173]
  ------------------
 1398|    217|    return EXV_PRINT_TAG(sonyAFModeSet1)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    217|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1399|       |
 1400|    173|  if (uint32_t focusMode2 = 0; getFocusMode2(metadata, focusMode2) && focusMode2 != 0)
  ------------------
  |  Branch (1400:32): [True: 111, False: 62]
  |  Branch (1400:71): [True: 90, False: 21]
  ------------------
 1401|     90|    return EXV_PRINT_TAG(sonyAFModeSet2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     90|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1402|       |
 1403|     83|  return os << _("n/a");
  ------------------
  |  |   40|     83|#define _(String) (String)
  ------------------
 1404|    173|}
_ZN5Exiv28Internal13SonyMakerNote15printFocusMode3ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1406|    554|std::ostream& SonyMakerNote::printFocusMode3(std::ostream& os, const Value& value, const ExifData* metadata) {
 1407|    554|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1407:7): [True: 14, False: 540]
  |  Branch (1407:29): [True: 144, False: 396]
  |  Branch (1407:64): [True: 198, False: 198]
  ------------------
 1408|    356|    return os << "(" << value << ")";
 1409|       |
 1410|       |  // Only valid for certain models of camera. See
 1411|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2411
 1412|    198|  if (std::string metaVersion; getMetaVersion(metadata, metaVersion) && metaVersion == "DC7303320222000")
  ------------------
  |  Branch (1412:32): [True: 127, False: 71]
  |  Branch (1412:73): [True: 40, False: 87]
  ------------------
 1413|     40|    return EXV_PRINT_TAG(sonyFocusMode3)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|     40|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1414|       |
 1415|    158|  return os << _("n/a");
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
 1416|    198|}
_ZN5Exiv28Internal13SonyMakerNote27printHighISONoiseReduction2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1419|  1.04k|                                                         const ExifData* metadata) {
 1420|  1.04k|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (1420:7): [True: 110, False: 938]
  |  Branch (1420:29): [True: 44, False: 894]
  |  Branch (1420:64): [True: 447, False: 447]
  ------------------
 1421|    601|    return os << "(" << value << ")";
 1422|       |
 1423|       |  // Only valid for certain models of camera. See
 1424|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L2437
 1425|    447|  std::string model;
 1426|    447|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1426:7): [True: 103, False: 344]
  ------------------
 1427|    103|    return os << "(" << value << ")";
 1428|       |
 1429|    344|  if (model.starts_with("DSC-") || model.starts_with("Stellar"))
  ------------------
  |  Branch (1429:7): [True: 170, False: 174]
  |  Branch (1429:36): [True: 15, False: 159]
  ------------------
 1430|    185|    return EXV_PRINT_TAG(sonyHighISONoiseReduction2)(os, value.toUint32(0), metadata);
  ------------------
  |  |  199|    185|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 1431|       |
 1432|    159|  return os << _("n/a");
  ------------------
  |  |   40|    159|#define _(String) (String)
  ------------------
 1433|    344|}
_ZN5Exiv28Internal13SonyMakerNote30printSony2FpAmbientTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1870|    206|                                                            const ExifData* metadata) {
 1871|    206|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1871:7): [True: 0, False: 206]
  |  Branch (1871:29): [True: 103, False: 103]
  ------------------
 1872|    103|    return os << "(" << value << ")";
 1873|       |
 1874|    103|  auto pos = metadata->findKey(ExifKey("Exif.Sony2Fp.0x0002"));
 1875|    103|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() == 255)
  ------------------
  |  Branch (1875:7): [True: 103, False: 0]
  |  Branch (1875:7): [True: 10, False: 93]
  |  Branch (1875:33): [True: 103, False: 0]
  |  Branch (1875:54): [True: 10, False: 93]
  ------------------
 1876|     10|    return os << value << " °C";
 1877|       |
 1878|     93|  return os << N_("n/a");
  ------------------
  |  |   41|     93|#define N_(String) String
  ------------------
 1879|    103|}
_ZN5Exiv28Internal13SonyMakerNote21printSony2FpFocusModeERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1881|    190|std::ostream& SonyMakerNote::printSony2FpFocusMode(std::ostream& os, const Value& value, const ExifData*) {
 1882|    190|  if (value.count() != 1)
  ------------------
  |  Branch (1882:7): [True: 0, False: 190]
  ------------------
 1883|      0|    return os << value;
 1884|       |
 1885|    190|  const auto val = (value.toInt64() & 0x7F);
 1886|    190|  switch (val) {
  ------------------
  |  Branch (1886:11): [True: 98, False: 92]
  ------------------
 1887|     36|    case 0:
  ------------------
  |  Branch (1887:5): [True: 36, False: 154]
  ------------------
 1888|     36|      return os << N_("Manual");
  ------------------
  |  |   41|     36|#define N_(String) String
  ------------------
 1889|     22|    case 2:
  ------------------
  |  Branch (1889:5): [True: 22, False: 168]
  ------------------
 1890|     22|      return os << N_("AF-S");
  ------------------
  |  |   41|     22|#define N_(String) String
  ------------------
 1891|     24|    case 3:
  ------------------
  |  Branch (1891:5): [True: 24, False: 166]
  ------------------
 1892|     24|      return os << N_("AF-C");
  ------------------
  |  |   41|     24|#define N_(String) String
  ------------------
 1893|     14|    case 4:
  ------------------
  |  Branch (1893:5): [True: 14, False: 176]
  ------------------
 1894|     14|      return os << N_("AF-A");
  ------------------
  |  |   41|     14|#define N_(String) String
  ------------------
 1895|      2|    case 6:
  ------------------
  |  Branch (1895:5): [True: 2, False: 188]
  ------------------
 1896|      2|      return os << N_("DMF");
  ------------------
  |  |   41|      2|#define N_(String) String
  ------------------
 1897|    190|  }
 1898|       |
 1899|     92|  return os << "(" << val << ")";
 1900|    190|}
_ZN5Exiv28Internal13SonyMakerNote26printSony2FpFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1903|    190|                                                        const ExifData* metadata) {
 1904|    190|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1904:7): [True: 0, False: 190]
  |  Branch (1904:29): [True: 95, False: 95]
  ------------------
 1905|     95|    return os << "(" << value << ")";
 1906|       |
 1907|     95|  std::string model;
 1908|     95|  if (!getModel(metadata, model))
  ------------------
  |  Branch (1908:7): [True: 38, False: 57]
  ------------------
 1909|     38|    return os << "(" << value << ")";
 1910|       |
 1911|       |  // Ranges of models that do not support this tag
 1912|     57|  for (const auto& m : {"DSC-", "Stellar"})
  ------------------
  |  Branch (1912:22): [True: 101, False: 41]
  ------------------
 1913|    101|    if (model.starts_with(m))
  ------------------
  |  Branch (1913:9): [True: 16, False: 85]
  ------------------
 1914|     16|      return os << N_("n/a");
  ------------------
  |  |   41|     16|#define N_(String) String
  ------------------
 1915|       |
 1916|     41|  const auto val = value.toInt64();
 1917|     41|  if (val == 255)
  ------------------
  |  Branch (1917:7): [True: 4, False: 37]
  ------------------
 1918|      4|    return os << N_("Infinity");
  ------------------
  |  |   41|      4|#define N_(String) String
  ------------------
 1919|       |
 1920|     37|  return os << val;
 1921|     41|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc1CameraTemperatureERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1933|     46|                                                             const ExifData* metadata) {
 1934|     46|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1934:7): [True: 0, False: 46]
  |  Branch (1934:29): [True: 23, False: 23]
  ------------------
 1935|     23|    return os << "(" << value << ")";
 1936|       |
 1937|     23|  auto pos = metadata->findKey(ExifKey("Exif.SonyMisc1.0x0004"));
 1938|     23|  if (pos != metadata->end() && pos->count() == 1 && pos->toInt64() != 0 && pos->toInt64() < 100)
  ------------------
  |  Branch (1938:7): [True: 23, False: 0]
  |  Branch (1938:7): [True: 4, False: 19]
  |  Branch (1938:33): [True: 23, False: 0]
  |  Branch (1938:54): [True: 11, False: 12]
  |  Branch (1938:77): [True: 4, False: 7]
  ------------------
 1939|      4|    return os << value << " °C";
 1940|       |
 1941|     19|  return os << N_("n/a");
  ------------------
  |  |   41|     19|#define N_(String) String
  ------------------
 1942|     23|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc2bLensZoomPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 1997|     52|                                                             const ExifData* metadata) {
 1998|     52|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (1998:7): [True: 0, False: 52]
  |  Branch (1998:29): [True: 26, False: 26]
  ------------------
 1999|     26|    return os << "(" << value << ")";
 2000|       |
 2001|     26|  std::string model;
 2002|     26|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2002:7): [True: 3, False: 23]
  ------------------
 2003|      3|    return os << "(" << value << ")";
 2004|       |
 2005|       |  // Models that do not support this tag
 2006|     23|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2006:15): [True: 63, False: 18]
  ------------------
 2007|     63|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2007:9): [True: 5, False: 58]
  ------------------
 2008|      5|      return os << N_("n/a");
  ------------------
  |  |   41|      5|#define N_(String) String
  ------------------
 2009|       |
 2010|     18|  return os << stringFormat("{}%", std::lround(value.toInt64() / 10.24));
  ------------------
  |  |   18|     18|#define stringFormat std::format
  ------------------
 2011|     23|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc2bFocusPosition2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2014|     52|                                                           const ExifData* metadata) {
 2015|     52|  if (value.count() != 1 || !metadata)
  ------------------
  |  Branch (2015:7): [True: 0, False: 52]
  |  Branch (2015:29): [True: 26, False: 26]
  ------------------
 2016|     26|    return os << "(" << value << ")";
 2017|       |
 2018|     26|  std::string model;
 2019|     26|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2019:7): [True: 3, False: 23]
  ------------------
 2020|      3|    return os << "(" << value << ")";
 2021|       |
 2022|       |  // Models that do not support this tag
 2023|     23|  for (auto m : {"SLT-", "HV", "ILCA-"})
  ------------------
  |  Branch (2023:15): [True: 63, False: 18]
  ------------------
 2024|     63|    if (Internal::contains(model, m))
  ------------------
  |  Branch (2024:9): [True: 5, False: 58]
  ------------------
 2025|      5|      return os << N_("n/a");
  ------------------
  |  |   41|      5|#define N_(String) String
  ------------------
 2026|       |
 2027|     18|  return os << value;
 2028|     23|}
_ZN5Exiv28Internal13SonyMakerNote37printSonyMisc3cShotNumberSincePowerUpERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2106|    294|                                                                   const ExifData* metadata) {
 2107|    294|  if (value.count() != 1 || value.typeId() != unsignedLong || !metadata)
  ------------------
  |  Branch (2107:7): [True: 0, False: 294]
  |  Branch (2107:29): [True: 54, False: 240]
  |  Branch (2107:63): [True: 120, False: 120]
  ------------------
 2108|    174|    return os << "(" << value << ")";
 2109|       |
 2110|    120|  std::string model;
 2111|    120|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2111:7): [True: 48, False: 72]
  ------------------
 2112|     48|    return os << "(" << value << ")";
 2113|       |
 2114|       |  // Tag only valid for certain camera models. See
 2115|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8170
 2116|     72|  static constexpr const char* models[] = {
 2117|     72|      "ILCA-68",     "ILCA-77M2",   "ILCA-99M2",   "ILCE-5000",  "ILCE-5100", "ILCE-6000",  "ILCE-6300",
 2118|     72|      "ILCE-6500",   "ILCE-7",      "ILCE-7M2",    "ILCE-7R",    "ILCE-7RM2", "ILCE-7S",    "ILCE-7SM2",
 2119|     72|      "ILCE-7SM5",   "ILCE-QX1",    "DSC-HX350",   "DSC-HX400V", "DSC-HX60V", "DSC-HX80",   "DSC-HX90",
 2120|     72|      "DSC-HX90V",   "DSC-QX30",    "DSC-RX0",     "DSC-RX1RM2", "DSC-RX10",  "DSC-RX10M2", "DSC-RX10M3",
 2121|     72|      "DSC-RX100M3", "DSC-RX100M4", "DSC-RX100M5", "DSC-WX220",  "DSC-WX350", "DSC-WX500",
 2122|     72|  };
 2123|       |
 2124|     72|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2124:7): [True: 10, False: 62]
  ------------------
 2125|     10|    return os << value.toInt64();
 2126|       |
 2127|     62|  return os << N_("n/a");
  ------------------
  |  |   41|     62|#define N_(String) String
  ------------------
 2128|     72|}
_ZN5Exiv28Internal13SonyMakerNote29printSonyMisc3cSequenceNumberERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2130|    578|std::ostream& SonyMakerNote::printSonyMisc3cSequenceNumber(std::ostream& os, const Value& value, const ExifData*) {
 2131|    578|  return (value.count() != 1 || value.typeId() != unsignedLong) ? os << "(" << value << ")"
  ------------------
  |  Branch (2131:11): [True: 0, False: 578]
  |  Branch (2131:33): [True: 108, False: 470]
  ------------------
 2132|    578|                                                                : os << (value.toInt64() + 1);
 2133|    578|}
_ZN5Exiv28Internal13SonyMakerNote23printSonyMisc3cQuality2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2135|    284|std::ostream& SonyMakerNote::printSonyMisc3cQuality2(std::ostream& os, const Value& value, const ExifData* metadata) {
 2136|    284|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2136:7): [True: 0, False: 284]
  |  Branch (2136:29): [True: 0, False: 284]
  |  Branch (2136:63): [True: 142, False: 142]
  ------------------
 2137|    142|    return os << "(" << value << ")";
 2138|       |
 2139|    142|  std::string model;
 2140|    142|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2140:7): [True: 43, False: 99]
  ------------------
 2141|     43|    return os << "(" << value << ")";
 2142|       |
 2143|     99|  const auto val = value.toInt64();
 2144|       |
 2145|       |  // Tag only valid for certain camera models. See
 2146|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8219
 2147|     99|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2148|       |
 2149|     99|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2149:7): [True: 21, False: 78]
  ------------------
 2150|     21|    return EXV_PRINT_TAG(sonyMisc3cQuality2a)(os, val, metadata);
  ------------------
  |  |  199|     21|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2151|       |
 2152|     78|  return EXV_PRINT_TAG(sonyMisc3cQuality2b)(os, val, metadata);
  ------------------
  |  |  199|     78|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2153|     99|}
_ZN5Exiv28Internal13SonyMakerNote30printSonyMisc3cSonyImageHeightERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2156|    190|                                                            const ExifData* metadata) {
 2157|    190|  if (value.count() != 1 || value.typeId() != unsignedShort || !metadata)
  ------------------
  |  Branch (2157:7): [True: 0, False: 190]
  |  Branch (2157:29): [True: 54, False: 136]
  |  Branch (2157:64): [True: 68, False: 68]
  ------------------
 2158|    122|    return os << "(" << value << ")";
 2159|       |
 2160|     68|  std::string model;
 2161|     68|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2161:7): [True: 19, False: 49]
  ------------------
 2162|     19|    return os << "(" << value << ")";
 2163|       |
 2164|       |  // Tag only valid for certain camera models. See
 2165|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8239
 2166|     49|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2167|       |
 2168|     49|  if (Exiv2::find(models, model))
  ------------------
  |  Branch (2168:7): [True: 6, False: 43]
  ------------------
 2169|      6|    return os << N_("n/a");
  ------------------
  |  |   41|      6|#define N_(String) String
  ------------------
 2170|       |
 2171|     43|  const auto val = value.toInt64();
 2172|     43|  if (val > 0)
  ------------------
  |  Branch (2172:7): [True: 24, False: 19]
  ------------------
 2173|     24|    return os << (8 * val);
 2174|     19|  return os << N_("n/a");
  ------------------
  |  |   41|     19|#define N_(String) String
  ------------------
 2175|     43|}
_ZN5Exiv28Internal13SonyMakerNote31printSonyMisc3cModelReleaseYearERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2178|    160|                                                             const ExifData* metadata) {
 2179|    160|  if (value.count() != 1 || value.typeId() != unsignedByte || !metadata)
  ------------------
  |  Branch (2179:7): [True: 0, False: 160]
  |  Branch (2179:29): [True: 0, False: 160]
  |  Branch (2179:63): [True: 80, False: 80]
  ------------------
 2180|     80|    return os << "(" << value << ")";
 2181|       |
 2182|     80|  std::string model;
 2183|     80|  if (!getModel(metadata, model))
  ------------------
  |  Branch (2183:7): [True: 15, False: 65]
  ------------------
 2184|     15|    return os << "(" << value << ")";
 2185|       |
 2186|       |  // Tag only valid for certain camera models. See
 2187|       |  // https://github.com/exiftool/exiftool/blob/7368629751669ba170511419b3d1e05bf0076d0e/lib/Image/ExifTool/Sony.pm#L8245
 2188|     65|  constexpr const char* models[] = {"ILCE-1", "ILCE-7M4", "ILCE-7RM5", "ILCE-7SM3", "ILME-FX3"};
 2189|       |
 2190|     65|  if (Exiv2::find(models, model)) {
  ------------------
  |  Branch (2190:7): [True: 3, False: 62]
  ------------------
 2191|      3|    return os << N_("n/a");
  ------------------
  |  |   41|      3|#define N_(String) String
  ------------------
 2192|      3|  }
 2193|       |
 2194|     62|  const auto val = value.toInt64();
 2195|     62|  if (val > 99)
  ------------------
  |  Branch (2195:7): [True: 21, False: 41]
  ------------------
 2196|     21|    return os << "(" << val << ")";
 2197|       |
 2198|     41|  if (val == 0)
  ------------------
  |  Branch (2198:7): [True: 14, False: 27]
  ------------------
 2199|     14|    return os << "2000";
 2200|       |
 2201|     27|  return os << "20" << val;
 2202|     41|}
_ZN5Exiv28Internal15sonyTagDecipherEtPKhmPNS0_13TiffComponentE:
 2331|    636|DataBuf sonyTagDecipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2332|    636|  return sonyTagCipher(tag, bytes, size, object, true);
 2333|    636|}
_ZN5Exiv28Internal15sonyTagEncipherEtPKhmPNS0_13TiffComponentE:
 2334|     35|DataBuf sonyTagEncipher(uint16_t tag, const byte* bytes, size_t size, TiffComponent* object) {
 2335|     35|  return sonyTagCipher(tag, bytes, size, object, false);
 2336|     35|}
sonymn_int.cpp:_ZN5Exiv28InternalL8getModelEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  814|  12.9k|static auto getModel(const ExifData* metadata, std::string& val) {
  815|  12.9k|  auto pos = metadata->findKey(ExifKey("Exif.Image.Model"));
  816|  12.9k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == asciiString) {
  ------------------
  |  Branch (816:7): [True: 5.84k, False: 7.14k]
  |  Branch (816:7): [True: 4.99k, False: 7.99k]
  |  Branch (816:33): [True: 5.31k, False: 527]
  |  Branch (816:53): [True: 4.99k, False: 326]
  ------------------
  817|  4.99k|    val = pos->toString(0);
  818|  4.99k|    return true;
  819|  4.99k|  }
  820|       |
  821|       |  // NOTE: As using the translated SonyModelID value, need to be synchronized with the array format
  822|  7.99k|  pos = metadata->findKey(ExifKey("Exif.Sony1.SonyModelID"));
  823|  7.99k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (823:7): [True: 668, False: 7.32k]
  |  Branch (823:7): [True: 443, False: 7.55k]
  |  Branch (823:33): [True: 526, False: 142]
  |  Branch (823:53): [True: 443, False: 83]
  ------------------
  824|    443|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (824:43): [True: 403, False: 40]
  ------------------
  825|    403|      val = std::move(temp);
  826|    403|      return true;
  827|    403|    }
  828|     40|    val = "";
  829|     40|    return false;
  830|    443|  }
  831|  7.55k|  pos = metadata->findKey(ExifKey("Exif.Sony2.SonyModelID"));
  832|  7.55k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedShort) {
  ------------------
  |  Branch (832:7): [True: 6.72k, False: 828]
  |  Branch (832:7): [True: 6.50k, False: 1.05k]
  |  Branch (832:33): [True: 6.59k, False: 127]
  |  Branch (832:53): [True: 6.50k, False: 95]
  ------------------
  833|  6.50k|    if (auto temp = pos->print(metadata); !Internal::contains(temp, ' ')) {
  ------------------
  |  Branch (833:43): [True: 6.42k, False: 74]
  ------------------
  834|  6.42k|      val = std::move(temp);
  835|  6.42k|      return true;
  836|  6.42k|    }
  837|     74|    val = "";
  838|     74|    return false;
  839|  6.50k|  }
  840|       |
  841|  1.05k|  val = "";
  842|  1.05k|  return false;
  843|  7.55k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote15printFocusMode2ERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1007|  3.32k|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote22printAFAreaModeSettingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1032|  23.7k|  if (std::any_of(models2.begin(), models2.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote25printFlexibleSpotPositionERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1054|  5.21k|  if (std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZN5Exiv28InternalL20getAFAreaModeSettingEPKNS_8ExifDataERj:
  845|  4.27k|static auto getAFAreaModeSetting(const ExifData* metadata, uint32_t& val) {
  846|  4.27k|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.AFAreaModeSetting"));
  847|  4.27k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (847:7): [True: 946, False: 3.33k]
  |  Branch (847:7): [True: 580, False: 3.69k]
  |  Branch (847:33): [True: 674, False: 272]
  |  Branch (847:53): [True: 580, False: 94]
  ------------------
  848|    580|    std::ostringstream oss;
  849|    580|    pos->write(oss, metadata);
  850|    580|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    580|#define _(String) (String)
  ------------------
  |  Branch (850:9): [True: 84, False: 496]
  ------------------
  851|     84|      val = 0;
  852|     84|      return false;
  853|     84|    }
  854|       |
  855|    496|    val = pos->toUint32(0);
  856|    496|    return true;
  857|    580|  }
  858|  3.69k|  pos = metadata->findKey(ExifKey("Exif.Sony2.AFAreaModeSetting"));
  859|  3.69k|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (859:7): [True: 2.86k, False: 828]
  |  Branch (859:7): [True: 2.64k, False: 1.04k]
  |  Branch (859:33): [True: 2.77k, False: 93]
  |  Branch (859:53): [True: 2.64k, False: 127]
  ------------------
  860|  2.64k|    std::ostringstream oss;
  861|  2.64k|    pos->write(oss, metadata);
  862|  2.64k|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|  2.64k|#define _(String) (String)
  ------------------
  |  Branch (862:9): [True: 472, False: 2.17k]
  ------------------
  863|    472|      val = 0;
  864|    472|      return false;
  865|    472|    }
  866|       |
  867|  2.17k|    val = pos->toUint32(0);
  868|  2.17k|    return true;
  869|  2.64k|  }
  870|       |
  871|  1.04k|  val = 0;
  872|  1.04k|  return false;
  873|  3.69k|}
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote17printAFPointsUsedERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1107|    793|  if (std::none_of(models1.begin(), models1.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZZN5Exiv28Internal13SonyMakerNote15printAFTrackingERNSt3__113basic_ostreamIcNS2_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataEENK3$_0clIPKcEEDaT_:
 1129|  2.89k|      std::any_of(models.begin(), models.end(), [&model](auto m) { return model.starts_with(m); }))
sonymn_int.cpp:_ZN5Exiv28InternalL17findLensSpecFlagsERKNS_5ValueERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEESB_:
 1247|    539|static void findLensSpecFlags(const Value& value, std::string& flagsStart, std::string& flagsEnd) {
 1248|    539|  static constexpr struct LensSpecFlags {
 1249|    539|    int64_t mask;  // Contains all the bits set in the flags.val_ array values
 1250|    539|    TagDetails flags[4];
 1251|    539|    bool prepend;
 1252|    539|  } lSFArray[] = {
 1253|    539|      {0x4000, {{0x4000, "PZ"}}, true},
 1254|    539|      {0x0300, {{0x0100, "DT"}, {0x0200, "FE"}, {0x0300, "E"}}, true},
 1255|    539|      {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    539|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    539|#define N_(String) String
  ------------------
                    {0x00e0, {{0x0020, "STF"}, {0x0040, N_("Reflex")}, {0x0060, N_("Macro")}, {0x0080, N_("Fisheye")}}, false},
  ------------------
  |  |   41|    539|#define N_(String) String
  ------------------
 1256|    539|      {0x000c, {{0x0004, "ZA"}, {0x0008, "G"}}, false},
 1257|    539|      {0x0003, {{0x0001, "SSM"}, {0x0002, "SAM"}}, false},
 1258|    539|      {0x8000, {{0x8000, "OSS"}}, false},
 1259|    539|      {0x2000, {{0x2000, "LE"}}, false},
 1260|    539|      {0x0800, {{0x0800, "II"}}, false},
 1261|    539|  };
 1262|       |
 1263|       |  // When processing, a bitwise 'AND' selects a compatible LensSpecFlags entry,
 1264|       |  // then search inside the 'flags' array for one match.
 1265|       |  //
 1266|       |  // See
 1267|       |  // https://github.com/exiftool/exiftool/blob/1e17485cbb372a502e5b9d052d01303db735e6fa/lib/Image/ExifTool/Sony.pm#L10545
 1268|       |
 1269|    539|  const auto joinedV0V7 = ((value.toUint32(0) << 8) + value.toUint32(7));
 1270|  4.26k|  for (const auto& i : lSFArray) {
  ------------------
  |  Branch (1270:22): [True: 4.26k, False: 526]
  ------------------
 1271|  4.26k|    if (auto temp = i.mask & joinedV0V7) {  // Check if a flag matches in the current LensSpecFlags
  ------------------
  |  Branch (1271:14): [True: 2.15k, False: 2.11k]
  ------------------
 1272|  2.15k|      if (auto f = Exiv2::find(i.flags, temp)) {
  ------------------
  |  Branch (1272:16): [True: 2.13k, False: 13]
  ------------------
 1273|  2.13k|        if (i.prepend)
  ------------------
  |  Branch (1273:13): [True: 590, False: 1.54k]
  ------------------
 1274|    590|          flagsStart = flagsStart.empty() ? f->label_ : stringFormat("{} {}", f->label_, flagsStart);
  ------------------
  |  |   18|    178|#define stringFormat std::format
  ------------------
  |  Branch (1274:24): [True: 412, False: 178]
  ------------------
 1275|  1.54k|        else
 1276|  1.54k|          flagsEnd = flagsEnd.empty() ? f->label_ : stringFormat("{} {}", flagsEnd, f->label_);
  ------------------
  |  |   18|  1.18k|#define stringFormat std::format
  ------------------
  |  Branch (1276:22): [True: 368, False: 1.18k]
  ------------------
 1277|  2.13k|        continue;
 1278|  2.13k|      }
 1279|       |      // Should never get in here. LensSpecFlags.mask should contain all the
 1280|       |      // bits in all the LensSpecFlags.flags.val_ entries
 1281|     13|      throw Error(ErrorCode::kerErrorMessage, "LensSpecFlags mask doesn't match the bits in the flags array");
 1282|  2.15k|    }
 1283|  4.26k|  }
 1284|    539|}
sonymn_int.cpp:_ZN5Exiv28InternalL14getMetaVersionEPKNS_8ExifDataERNSt3__112basic_stringIcNS4_11char_traitsIcEENS4_9allocatorIcEEEE:
  875|    691|static auto getMetaVersion(const ExifData* metadata, std::string& val) {
  876|    691|  const auto pos = metadata->findKey(ExifKey("Exif.SonySInfo1.MetaVersion"));
  877|       |
  878|    691|  if (pos != metadata->end() && pos->typeId() == asciiString) {
  ------------------
  |  Branch (878:7): [True: 423, False: 268]
  |  Branch (878:7): [True: 423, False: 268]
  |  Branch (878:33): [True: 423, False: 0]
  ------------------
  879|    423|    std::string temp = pos->toString();
  880|    423|    if (!temp.empty()) {
  ------------------
  |  Branch (880:9): [True: 393, False: 30]
  ------------------
  881|    393|      val = std::move(temp);
  882|    393|      return true;
  883|    393|    }
  884|    423|  }
  885|    298|  val = "";
  886|    298|  return false;
  887|    691|}
sonymn_int.cpp:_ZN5Exiv28InternalL13getFocusMode2EPKNS_8ExifDataERj:
  889|    173|static auto getFocusMode2(const ExifData* metadata, uint32_t& val) {
  890|    173|  auto pos = metadata->findKey(ExifKey("Exif.Sony1.FocusMode2"));
  891|       |
  892|    173|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (892:7): [True: 0, False: 173]
  |  Branch (892:7): [True: 0, False: 173]
  |  Branch (892:33): [True: 0, False: 0]
  |  Branch (892:53): [True: 0, False: 0]
  ------------------
  893|      0|    std::ostringstream oss;
  894|      0|    pos->write(oss, metadata);
  895|      0|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  |  Branch (895:9): [True: 0, False: 0]
  ------------------
  896|      0|      val = 0;
  897|      0|      return false;
  898|      0|    }
  899|       |
  900|      0|    val = pos->toUint32(0);
  901|      0|    return true;
  902|      0|  }
  903|    173|  pos = metadata->findKey(ExifKey("Exif.Sony2.FocusMode2"));
  904|    173|  if (pos != metadata->end() && pos->size() != 0 && pos->typeId() == unsignedByte) {
  ------------------
  |  Branch (904:7): [True: 154, False: 19]
  |  Branch (904:7): [True: 118, False: 55]
  |  Branch (904:33): [True: 136, False: 18]
  |  Branch (904:53): [True: 118, False: 18]
  ------------------
  905|    118|    std::ostringstream oss;
  906|    118|    pos->write(oss, metadata);
  907|    118|    if (oss.str() == _("n/a")) {
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  |  Branch (907:9): [True: 7, False: 111]
  ------------------
  908|      7|      val = 0;
  909|      7|      return false;
  910|      7|    }
  911|    111|    val = pos->toUint32(0);
  912|    111|    return true;
  913|    118|  }
  914|       |
  915|     55|  val = 0;
  916|     55|  return false;
  917|    173|}
sonymn_int.cpp:_ZN5Exiv28InternalL13sonyTagCipherEtPKhmPKNS0_13TiffComponentEb:
 2307|    671|                             bool bDecipher) {
 2308|    671|  DataBuf b(bytes, size);  // copy the data
 2309|       |
 2310|       |  // initialize the code table
 2311|    671|  byte code[256];
 2312|   167k|  for (uint32_t i = 0; i < 249; i++) {
  ------------------
  |  Branch (2312:24): [True: 167k, False: 671]
  ------------------
 2313|   167k|    if (bDecipher) {
  ------------------
  |  Branch (2313:9): [True: 158k, False: 8.71k]
  ------------------
 2314|   158k|      code[(i * i * i) % 249] = static_cast<byte>(i);
 2315|   158k|    } else {
 2316|  8.71k|      code[i] = (i * i * i) % 249;
 2317|  8.71k|    }
 2318|   167k|  }
 2319|  5.36k|  for (uint32_t i = 249; i < 256; i++) {
  ------------------
  |  Branch (2319:26): [True: 4.69k, False: 671]
  ------------------
 2320|  4.69k|    code[i] = static_cast<byte>(i);
 2321|  4.69k|  }
 2322|       |
 2323|       |  // code byte-by-byte
 2324|  1.81M|  for (uint32_t i = 0; i < size; i++) {
  ------------------
  |  Branch (2324:24): [True: 1.81M, False: 671]
  ------------------
 2325|  1.81M|    b.write_uint8(i, code[bytes[i]]);
 2326|  1.81M|  }
 2327|       |
 2328|    671|  return b;
 2329|    671|}

_ZN5Exiv28Internal13SonyMakerNote7tagListEv:
   29|   424k|  static constexpr auto tagList() {
   30|   424k|    return tagInfo_;
   31|   424k|  }
_ZN5Exiv28Internal13SonyMakerNote9tagListCsEv:
   33|  53.7k|  static constexpr auto tagListCs() {
   34|  53.7k|    return tagInfoCs_;
   35|  53.7k|  }
_ZN5Exiv28Internal13SonyMakerNote10tagListCs2Ev:
   37|  1.53k|  static constexpr auto tagListCs2() {
   38|  1.53k|    return tagInfoCs2_;
   39|  1.53k|  }
_ZN5Exiv28Internal13SonyMakerNote9tagListFpEv:
   41|  18.2k|  static constexpr auto tagListFp() {
   42|  18.2k|    return tagInfoFp_;
   43|  18.2k|  }
_ZN5Exiv28Internal13SonyMakerNote16tagListSonyMisc1Ev:
   45|  4.08k|  static constexpr auto tagListSonyMisc1() {
   46|  4.08k|    return tagInfoSonyMisc1_;
   47|  4.08k|  }
_ZN5Exiv28Internal13SonyMakerNote17tagListSonyMisc2bEv:
   49|  1.79k|  static constexpr auto tagListSonyMisc2b() {
   50|  1.79k|    return tagInfoSonyMisc2b_;
   51|  1.79k|  }
_ZN5Exiv28Internal13SonyMakerNote17tagListSonyMisc3cEv:
   53|  1.78M|  static constexpr auto tagListSonyMisc3c() {
   54|  1.78M|    return tagInfoSonyMisc3c_;
   55|  1.78M|  }
_ZN5Exiv28Internal13SonyMakerNote17tagListSonySInfo1Ev:
   57|  27.3k|  static constexpr auto tagListSonySInfo1() {
   58|  27.3k|    return tagInfoSonySInfo1_;
   59|  27.3k|  }
_ZN5Exiv28Internal13SonyMakerNote12tagList2010eEv:
   61|    575|  static constexpr auto tagList2010e() {
   62|    575|    return tagInfo2010e_;
   63|    575|  }

_ZNK5Exiv28Internal13TagVocabularyeqENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   48|  19.5M|bool TagVocabulary::operator==(std::string_view key) const {
   49|  19.5M|  return key.ends_with(voc_);
   50|  19.5M|}
_ZNK5Exiv29GroupInfoeqENS_5IfdIdE:
   68|  2.20G|bool GroupInfo::operator==(IfdId ifdId) const {
   69|  2.20G|  return ifdId_ == ifdId;
   70|  2.20G|}
_ZNK5Exiv29GroupInfoeqERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
   72|   916M|bool GroupInfo::operator==(const GroupName& groupName) const {
   73|   916M|  return groupName == groupName_;
   74|   916M|}
_ZN5Exiv28ExifTags7tagListERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  108|  4.35k|const TagInfo* ExifTags::tagList(const std::string& groupName) {
  109|  4.35k|  return Internal::tagList(groupName);
  110|  4.35k|}
_ZNK5Exiv27ExifKey4Impl7tagNameEv:
  177|  33.7M|std::string ExifKey::Impl::tagName() const {
  178|  33.7M|  if (tagInfo_ && tagInfo_->tag_ != 0xffff) {
  ------------------
  |  Branch (178:7): [True: 33.7M, False: 0]
  |  Branch (178:19): [True: 2.44M, False: 31.2M]
  ------------------
  179|  2.44M|    return tagInfo_->name_;
  180|  2.44M|  }
  181|  31.2M|  return stringFormat("0x{:04x}", tag_);
  ------------------
  |  |   18|  31.2M|#define stringFormat std::format
  ------------------
  182|  33.7M|}
_ZN5Exiv27ExifKey4Impl12decomposeKeyERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  184|   496k|void ExifKey::Impl::decomposeKey(const std::string& key) {
  185|       |  // Get the family name, IFD name and tag name parts of the key
  186|   496k|  std::string::size_type pos1 = key.find('.');
  187|   496k|  if (pos1 == std::string::npos)
  ------------------
  |  Branch (187:7): [True: 0, False: 496k]
  ------------------
  188|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  189|   496k|  std::string familyName = key.substr(0, pos1);
  190|   496k|  if (familyName != familyName_)
  ------------------
  |  Branch (190:7): [True: 0, False: 496k]
  ------------------
  191|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  192|   496k|  std::string::size_type pos0 = pos1 + 1;
  193|   496k|  pos1 = key.find('.', pos0);
  194|   496k|  if (pos1 == std::string::npos)
  ------------------
  |  Branch (194:7): [True: 0, False: 496k]
  ------------------
  195|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  196|   496k|  std::string groupName = key.substr(pos0, pos1 - pos0);
  197|   496k|  if (groupName.empty())
  ------------------
  |  Branch (197:7): [True: 0, False: 496k]
  ------------------
  198|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  199|   496k|  std::string tn = key.substr(pos1 + 1);
  200|   496k|  if (tn.empty())
  ------------------
  |  Branch (200:7): [True: 0, False: 496k]
  ------------------
  201|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  202|       |
  203|       |  // Find IfdId
  204|   496k|  IfdId ifdId = groupId(groupName);
  205|   496k|  if (ifdId == IfdId::ifdIdNotSet)
  ------------------
  |  Branch (205:7): [True: 0, False: 496k]
  ------------------
  206|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  207|   496k|  if (!Internal::isExifIfd(ifdId) && !Internal::isMakerIfd(ifdId)) {
  ------------------
  |  Branch (207:7): [True: 216k, False: 280k]
  |  Branch (207:38): [True: 0, False: 216k]
  ------------------
  208|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  209|      0|  }
  210|       |  // Convert tag
  211|   496k|  uint16_t tag = tagNumber(tn, ifdId);
  212|       |  // Get tag info
  213|   496k|  tagInfo_ = tagInfo(tag, ifdId);
  214|   496k|  if (!tagInfo_)
  ------------------
  |  Branch (214:7): [True: 0, False: 496k]
  ------------------
  215|      0|    throw Error(ErrorCode::kerInvalidKey, key);
  216|       |
  217|   496k|  tag_ = tag;
  218|   496k|  ifdId_ = ifdId;
  219|   496k|  groupName_ = groupName;
  220|       |  // tagName() translates hex tag name (0xabcd) to a real tag name if there is one
  221|   496k|  key_ = familyName + "." + groupName + "." + tagName();
  222|   496k|}
_ZN5Exiv27ExifKey4Impl7makeKeyEtNS_5IfdIdEPKNS_7TagInfoE:
  224|  17.2M|void ExifKey::Impl::makeKey(uint16_t tag, IfdId ifdId, const TagInfo* tagInfo) {
  225|  17.2M|  tagInfo_ = tagInfo;
  226|  17.2M|  tag_ = tag;
  227|  17.2M|  ifdId_ = ifdId;
  228|  17.2M|  key_ = std::string(familyName_) + "." + groupName_ + "." + tagName();
  229|  17.2M|}
_ZN5Exiv27ExifKeyC2EtRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  231|  17.2M|ExifKey::ExifKey(uint16_t tag, const std::string& groupName) : p_(std::make_unique<Impl>()) {
  232|  17.2M|  IfdId ifdId = groupId(groupName);
  233|       |  // Todo: Test if this condition can be removed
  234|  17.2M|  if (!Internal::isExifIfd(ifdId) && !Internal::isMakerIfd(ifdId)) {
  ------------------
  |  Branch (234:7): [True: 15.8M, False: 1.47M]
  |  Branch (234:38): [True: 0, False: 15.8M]
  ------------------
  235|      0|    throw Error(ErrorCode::kerInvalidIfdId, ifdId);
  236|      0|  }
  237|  17.2M|  if (auto ti = tagInfo(tag, ifdId)) {
  ------------------
  |  Branch (237:12): [True: 17.2M, False: 0]
  ------------------
  238|  17.2M|    p_->groupName_ = groupName;
  239|  17.2M|    p_->makeKey(tag, ifdId, ti);
  240|  17.2M|    return;
  241|  17.2M|  }
  242|      0|  throw Error(ErrorCode::kerInvalidIfdId, ifdId);
  243|  17.2M|}
_ZN5Exiv27ExifKeyC2ERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  254|   496k|ExifKey::ExifKey(const std::string& key) : p_(std::make_unique<Impl>()) {
  255|   496k|  p_->decomposeKey(key);
  256|   496k|}
_ZN5Exiv27ExifKeyC2ERKS0_:
  258|  37.2M|ExifKey::ExifKey(const ExifKey& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
  259|  37.2M|}
_ZN5Exiv27ExifKeyD2Ev:
  261|  55.0M|ExifKey::~ExifKey() = default;
_ZNK5Exiv27ExifKey6setIdxEi:
  270|  17.1M|void ExifKey::setIdx(int idx) const {
  271|  17.1M|  p_->idx_ = idx;
  272|  17.1M|}
_ZNK5Exiv27ExifKey3keyEv:
  274|   171M|std::string ExifKey::key() const {
  275|   171M|  return p_->key_;
  276|   171M|}
_ZNK5Exiv27ExifKey9groupNameEv:
  282|  3.24M|std::string ExifKey::groupName() const {
  283|  3.24M|  return p_->groupName_;
  284|  3.24M|}
_ZNK5Exiv27ExifKey7tagNameEv:
  286|  15.9M|std::string ExifKey::tagName() const {
  287|  15.9M|  return p_->tagName();
  288|  15.9M|}
_ZNK5Exiv27ExifKey13defaultTypeIdEv:
  302|  14.0k|TypeId ExifKey::defaultTypeId() const {
  303|  14.0k|  if (!p_->tagInfo_)
  ------------------
  |  Branch (303:7): [True: 0, False: 14.0k]
  ------------------
  304|      0|    return unknownTag.typeId_;
  305|  14.0k|  return p_->tagInfo_->typeId_;
  306|  14.0k|}
_ZNK5Exiv27ExifKey3tagEv:
  308|  8.60M|uint16_t ExifKey::tag() const {
  309|  8.60M|  return p_->tag_;
  310|  8.60M|}
_ZNK5Exiv27ExifKey5cloneEv:
  312|  37.2M|ExifKey::UniquePtr ExifKey::clone() const {
  313|  37.2M|  return UniquePtr(clone_());
  314|  37.2M|}
_ZNK5Exiv27ExifKey6clone_Ev:
  316|  37.2M|ExifKey* ExifKey::clone_() const {
  317|  37.2M|  return new ExifKey(*this);
  318|  37.2M|}
_ZNK5Exiv27ExifKey5ifdIdEv:
  320|  18.4M|IfdId ExifKey::ifdId() const {
  321|  18.4M|  return p_->ifdId_;
  322|  18.4M|}
_ZNK5Exiv27ExifKey3idxEv:
  324|  2.65M|int ExifKey::idx() const {
  325|  2.65M|  return p_->idx_;
  326|  2.65M|}

_ZN5Exiv28Internal10ifdTagListEv:
 1767|  2.06M|const TagInfo* ifdTagList() {
 1768|  2.06M|  return ifdTagInfo;
 1769|  2.06M|}
_ZN5Exiv28Internal11exifTagListEv:
 2166|  70.8k|const TagInfo* exifTagList() {
 2167|  70.8k|  return exifTagInfo;
 2168|  70.8k|}
_ZN5Exiv28Internal10gpsTagListEv:
 2382|  60.4k|const TagInfo* gpsTagList() {
 2383|  60.4k|  return gpsTagInfo;
 2384|  60.4k|}
_ZN5Exiv28Internal10mpfTagListEv:
 2431|    194|const TagInfo* mpfTagList() {
 2432|    194|  return mpfTagInfo;
 2433|    194|}
_ZN5Exiv28Internal10iopTagListEv:
 2457|  15.4k|const TagInfo* iopTagList() {
 2458|  15.4k|  return iopTagInfo;
 2459|  15.4k|}
_ZN5Exiv28Internal9mnTagListEv:
 2473|   170k|const TagInfo* mnTagList() {
 2474|   170k|  return mnTagInfo;
 2475|   170k|}
_ZN5Exiv28Internal10isMakerIfdENS_5IfdIdE:
 2477|  16.0M|bool isMakerIfd(IfdId ifdId) {
 2478|  16.0M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2478:12): [True: 16.0M, False: 0]
  ------------------
 2479|  16.0M|    return std::string_view("Makernote") == ii->ifdName_;
 2480|      0|  return false;
 2481|  16.0M|}
_ZN5Exiv28Internal9isExifIfdENS_5IfdIdE:
 2483|  17.7M|bool isExifIfd(IfdId ifdId) {
 2484|  17.7M|  switch (ifdId) {
 2485|   984k|    case IfdId::ifd0Id:
  ------------------
  |  Branch (2485:5): [True: 984k, False: 16.7M]
  ------------------
 2486|  1.03M|    case IfdId::exifId:
  ------------------
  |  Branch (2486:5): [True: 50.1k, False: 17.7M]
  ------------------
 2487|  1.08M|    case IfdId::gpsId:
  ------------------
  |  Branch (2487:5): [True: 47.0k, False: 17.7M]
  ------------------
 2488|  1.09M|    case IfdId::iopId:
  ------------------
  |  Branch (2488:5): [True: 12.7k, False: 17.7M]
  ------------------
 2489|  1.11M|    case IfdId::ifd1Id:
  ------------------
  |  Branch (2489:5): [True: 23.5k, False: 17.7M]
  ------------------
 2490|  1.13M|    case IfdId::ifd2Id:
  ------------------
  |  Branch (2490:5): [True: 12.4k, False: 17.7M]
  ------------------
 2491|  1.13M|    case IfdId::ifd3Id:
  ------------------
  |  Branch (2491:5): [True: 2.06k, False: 17.7M]
  ------------------
 2492|  1.13M|    case IfdId::mpfId:
  ------------------
  |  Branch (2492:5): [True: 0, False: 17.7M]
  ------------------
 2493|  1.26M|    case IfdId::subImage1Id:
  ------------------
  |  Branch (2493:5): [True: 133k, False: 17.6M]
  ------------------
 2494|  1.38M|    case IfdId::subImage2Id:
  ------------------
  |  Branch (2494:5): [True: 117k, False: 17.6M]
  ------------------
 2495|  1.48M|    case IfdId::subImage3Id:
  ------------------
  |  Branch (2495:5): [True: 103k, False: 17.6M]
  ------------------
 2496|  1.59M|    case IfdId::subImage4Id:
  ------------------
  |  Branch (2496:5): [True: 102k, False: 17.6M]
  ------------------
 2497|  1.60M|    case IfdId::subImage5Id:
  ------------------
  |  Branch (2497:5): [True: 19.9k, False: 17.7M]
  ------------------
 2498|  1.62M|    case IfdId::subImage6Id:
  ------------------
  |  Branch (2498:5): [True: 15.0k, False: 17.7M]
  ------------------
 2499|  1.64M|    case IfdId::subImage7Id:
  ------------------
  |  Branch (2499:5): [True: 18.4k, False: 17.7M]
  ------------------
 2500|  1.66M|    case IfdId::subImage8Id:
  ------------------
  |  Branch (2500:5): [True: 16.8k, False: 17.7M]
  ------------------
 2501|  1.67M|    case IfdId::subImage9Id:
  ------------------
  |  Branch (2501:5): [True: 19.3k, False: 17.7M]
  ------------------
 2502|  1.68M|    case IfdId::subThumb1Id:
  ------------------
  |  Branch (2502:5): [True: 9.66k, False: 17.7M]
  ------------------
 2503|  1.75M|    case IfdId::panaRawId:
  ------------------
  |  Branch (2503:5): [True: 62.3k, False: 17.7M]
  ------------------
 2504|  1.75M|      return true;
 2505|  16.0M|    default:
  ------------------
  |  Branch (2505:5): [True: 16.0M, False: 1.75M]
  ------------------
 2506|  16.0M|      return false;
 2507|  17.7M|  }
 2508|  17.7M|}
_ZN5Exiv28Internal7tagListENS_5IfdIdE:
 2518|  18.9M|const TagInfo* tagList(IfdId ifdId) {
 2519|  18.9M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2519:12): [True: 18.9M, False: 0]
  ------------------
 2520|  18.9M|    if (ii->tagList_)
  ------------------
  |  Branch (2520:9): [True: 18.9M, False: 0]
  ------------------
 2521|  18.9M|      return ii->tagList_();
 2522|      0|  return nullptr;
 2523|  18.9M|}  // tagList
_ZN5Exiv28Internal7tagInfoEtNS_5IfdIdE:
 2525|  18.4M|const TagInfo* tagInfo(uint16_t tag, IfdId ifdId) {
 2526|  18.4M|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2526:12): [True: 18.4M, False: 0]
  ------------------
 2527|  18.4M|    int idx = 0;
 2528|   791M|    for (idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2528:19): [True: 775M, False: 16.0M]
  ------------------
 2529|   775M|      if (ti[idx].tag_ == tag)
  ------------------
  |  Branch (2529:11): [True: 2.47M, False: 773M]
  ------------------
 2530|  2.47M|        break;
 2531|   775M|    }
 2532|  18.4M|    return ti + idx;
 2533|  18.4M|  }
 2534|      0|  return nullptr;
 2535|  18.4M|}  // tagInfo
_ZN5Exiv28Internal7tagInfoERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2537|   496k|const TagInfo* tagInfo(const std::string& tagName, IfdId ifdId) {
 2538|   496k|  if (tagName.empty())
  ------------------
  |  Branch (2538:7): [True: 0, False: 496k]
  ------------------
 2539|      0|    return nullptr;
 2540|   496k|  if (auto ti = tagList(ifdId)) {
  ------------------
  |  Branch (2540:12): [True: 496k, False: 0]
  ------------------
 2541|  23.9M|    for (int idx = 0; ti[idx].tag_ != 0xffff; ++idx) {
  ------------------
  |  Branch (2541:23): [True: 23.9M, False: 30.4k]
  ------------------
 2542|  23.9M|      if (tagName == ti[idx].name_) {
  ------------------
  |  Branch (2542:11): [True: 465k, False: 23.4M]
  ------------------
 2543|   465k|        return ti + idx;
 2544|   465k|      }
 2545|  23.9M|    }
 2546|   496k|  }
 2547|  30.4k|  return nullptr;
 2548|   496k|}  // tagInfo
_ZN5Exiv28Internal7groupIdERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 2550|  20.3M|IfdId groupId(const std::string& groupName) {
 2551|  20.3M|  if (auto ii = Exiv2::find(groupInfo, groupName))
  ------------------
  |  Branch (2551:12): [True: 20.3M, False: 0]
  ------------------
 2552|  20.3M|    return IfdId{ii->ifdId_};
 2553|      0|  return IfdId::ifdIdNotSet;
 2554|  20.3M|}
_ZN5Exiv28Internal9groupNameENS_5IfdIdE:
 2562|  17.1M|const char* groupName(IfdId ifdId) {
 2563|  17.1M|  if (auto ii = Exiv2::find(groupInfo, ifdId))
  ------------------
  |  Branch (2563:12): [True: 17.1M, False: 0]
  ------------------
 2564|  17.1M|    return ii->groupName_;
 2565|      0|  return groupInfo[0].groupName_;
 2566|  17.1M|}
_ZN5Exiv28Internal10printValueERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2568|   279k|std::ostream& printValue(std::ostream& os, const Value& value, const ExifData*) {
 2569|   279k|  return os << value;
 2570|   279k|}
_ZN5Exiv28Internal12printBitmaskERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2572|  2.57k|std::ostream& printBitmask(std::ostream& os, const Value& value, const ExifData* metadata) {
 2573|  2.57k|  if (value.typeId() == Exiv2::unsignedShort || value.typeId() == Exiv2::signedShort) {
  ------------------
  |  Branch (2573:7): [True: 374, False: 2.20k]
  |  Branch (2573:49): [True: 1.49k, False: 710]
  ------------------
 2574|  1.86k|    uint16_t bit = 0;
 2575|  1.86k|    uint16_t comma = 0;
 2576|  13.7M|    for (size_t i = 0; i < value.count(); i++) {  // for each element in value array
  ------------------
  |  Branch (2576:24): [True: 13.7M, False: 1.86k]
  ------------------
 2577|  13.7M|      auto bits = static_cast<uint16_t>(value.toInt64(i));
 2578|   234M|      for (uint16_t b = 0; b < 16; ++b) {  // for every bit
  ------------------
  |  Branch (2578:28): [True: 220M, False: 13.7M]
  ------------------
 2579|   220M|        if (bits & (1 << b)) {
  ------------------
  |  Branch (2579:13): [True: 194M, False: 26.2M]
  ------------------
 2580|   194M|          if (comma++) {
  ------------------
  |  Branch (2580:15): [True: 194M, False: 4.73k]
  ------------------
 2581|   194M|            os << ",";
 2582|   194M|          }
 2583|   194M|          os << bit;
 2584|   194M|        }
 2585|   220M|        bit++;
 2586|   220M|      }
 2587|  13.7M|    }
 2588|       |    // if no bits are set, print "(none)"
 2589|  1.86k|    if (!comma)
  ------------------
  |  Branch (2589:9): [True: 44, False: 1.82k]
  ------------------
 2590|     44|      os << N_("(none)");
  ------------------
  |  |   41|     44|#define N_(String) String
  ------------------
 2591|  1.86k|  } else {
 2592|    710|    printValue(os, value, metadata);
 2593|    710|  }
 2594|  2.57k|  return os;
 2595|  2.57k|}
_ZN5Exiv28Internal7fnumberEf:
 2597|  13.6k|float fnumber(float apertureValue) {
 2598|  13.6k|  float result = std::exp2(apertureValue / 2.F);
 2599|  13.6k|  if (std::abs(result - 3.5F) < 0.1F) {
  ------------------
  |  Branch (2599:7): [True: 103, False: 13.5k]
  ------------------
 2600|    103|    result = 3.5F;
 2601|    103|  }
 2602|  13.6k|  return result;
 2603|  13.6k|}
_ZN5Exiv28Internal12exposureTimeEf:
 2605|  1.81k|URational exposureTime(float shutterSpeedValue) {
 2606|  1.81k|  URational ur(1, 1);
 2607|  1.81k|  const double tmp = std::exp2(shutterSpeedValue);
 2608|  1.81k|  if (tmp > 1) {
  ------------------
  |  Branch (2608:7): [True: 1.10k, False: 710]
  ------------------
 2609|  1.10k|    const double x = std::round(tmp);
 2610|       |    // Check that x is within the range of a uint32_t before casting.
 2611|  1.10k|    if (x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2611:9): [True: 528, False: 576]
  ------------------
 2612|    528|      ur.second = static_cast<uint32_t>(x);
 2613|    528|    }
 2614|  1.10k|  } else {
 2615|    710|    const double x = std::round(1 / tmp);
 2616|       |    // Check that x is within the range of a uint32_t before casting.
 2617|    710|    if (0 <= x && x <= std::numeric_limits<uint32_t>::max()) {
  ------------------
  |  Branch (2617:9): [True: 710, False: 0]
  |  Branch (2617:19): [True: 536, False: 174]
  ------------------
 2618|    536|      ur.first = static_cast<uint32_t>(x);
 2619|    536|    }
 2620|    710|  }
 2621|  1.81k|  return ur;
 2622|  1.81k|}
_ZN5Exiv28Internal9tagNumberERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEENS_5IfdIdE:
 2624|   496k|uint16_t tagNumber(const std::string& tagName, IfdId ifdId) {
 2625|   496k|  auto ti = tagInfo(tagName, ifdId);
 2626|   496k|  if (ti && ti->tag_ != 0xffff)
  ------------------
  |  Branch (2626:7): [True: 465k, False: 30.4k]
  |  Branch (2626:13): [True: 465k, False: 0]
  ------------------
 2627|   465k|    return ti->tag_;
 2628|  30.4k|  if (!isHex(tagName, 4, "0x"))
  ------------------
  |  Branch (2628:7): [True: 0, False: 30.4k]
  ------------------
 2629|      0|    throw Error(ErrorCode::kerInvalidTag, tagName, ifdId);
 2630|  30.4k|  return static_cast<uint16_t>(std::stoi(tagName, nullptr, 16));
 2631|  30.4k|}  // tagNumber
_ZN5Exiv28Internal10printInt64ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2633|  2.85k|std::ostream& printInt64(std::ostream& os, const Value& value, const ExifData*) {
 2634|  2.85k|  Rational r = value.toRational();
 2635|  2.85k|  if (r.second > 0)
  ------------------
  |  Branch (2635:7): [True: 2.65k, False: 198]
  ------------------
 2636|  2.65k|    return os << static_cast<int64_t>(r.first) / r.second;
 2637|    198|  return os << "(" << value << ")";
 2638|  2.85k|}  // printLong
_ZN5Exiv28Internal10printFloatERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2640|  1.75k|std::ostream& printFloat(std::ostream& os, const Value& value, const ExifData*) {
 2641|  1.75k|  Rational r = value.toRational();
 2642|  1.75k|  if (r.second != 0) {
  ------------------
  |  Branch (2642:7): [True: 1.67k, False: 78]
  ------------------
 2643|  1.67k|    os << value.toFloat();
 2644|  1.67k|  } else {
 2645|     78|    os << "(" << value << ")";
 2646|     78|  }
 2647|  1.75k|  return os;
 2648|  1.75k|}  // printFloat
_ZN5Exiv28Internal12printDegreesERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2650|  1.17k|std::ostream& printDegrees(std::ostream& os, const Value& value, const ExifData*) {
 2651|  1.17k|  std::ios::fmtflags f(os.flags());
 2652|  1.17k|  if (value.count() == 3) {
  ------------------
  |  Branch (2652:7): [True: 906, False: 268]
  ------------------
 2653|    906|    Rational deg = value.toRational(0);
 2654|    906|    Rational min = value.toRational(1);
 2655|    906|    Rational sec = value.toRational(2);
 2656|    906|    if ((deg.second != 1) || (min.second <= 0) || (sec.second <= 0)) {
  ------------------
  |  Branch (2656:9): [True: 242, False: 664]
  |  Branch (2656:30): [True: 134, False: 530]
  |  Branch (2656:51): [True: 132, False: 398]
  ------------------
 2657|    508|      return os << "(" << value << ")";
 2658|    508|    }
 2659|    398|    const int32_t dd = deg.first;
 2660|    398|    const int32_t mm = min.first / min.second;
 2661|    398|    const int32_t rem = min.first % min.second;
 2662|    398|    if ((min.second > 1) && (rem > 0)) {
  ------------------
  |  Branch (2662:9): [True: 114, False: 284]
  |  Branch (2662:29): [True: 102, False: 12]
  ------------------
 2663|    102|      if ((sec.first == 0) && (sec.second == 1) && (rem <= std::numeric_limits<int32_t>::max() / 60)) {
  ------------------
  |  Branch (2663:11): [True: 36, False: 66]
  |  Branch (2663:31): [True: 32, False: 4]
  |  Branch (2663:52): [True: 28, False: 4]
  ------------------
 2664|     28|        sec.first = 60 * rem;
 2665|     28|        sec.second = min.second;
 2666|     74|      } else {
 2667|     74|        return os << "(" << value << ")";
 2668|     74|      }
 2669|    102|    }
 2670|    324|    const float ss = static_cast<float>(sec.first) / sec.second;
 2671|    324|    os << dd << " deg ";
 2672|    324|    os << mm << "' ";
 2673|    324|    std::ostringstream oss;
 2674|    324|    oss.copyfmt(os);
 2675|    324|    os << std::fixed << std::setprecision(sec.second > 1 ? 2 : 0) << ss << "\"";
  ------------------
  |  Branch (2675:43): [True: 68, False: 256]
  ------------------
 2676|    324|    os.copyfmt(oss);
 2677|    324|  } else {
 2678|    268|    os << "(" << value << ")";
 2679|    268|  }
 2680|    592|  os.flags(f);
 2681|    592|  return os;
 2682|  1.17k|}  // printDegrees
_ZN5Exiv28Internal9printUcs2ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2684|    650|std::ostream& printUcs2(std::ostream& os, const Value& value, const ExifData*) {
 2685|    650|  bool cnv = false;
 2686|    650|  if (value.typeId() == unsignedByte && value.size() > 0) {
  ------------------
  |  Branch (2686:7): [True: 514, False: 136]
  |  Branch (2686:41): [True: 514, False: 0]
  ------------------
 2687|    514|    DataBuf buf(value.size());
 2688|    514|    value.copy(buf.data(), invalidByteOrder);
 2689|       |    // Strip trailing odd byte due to failing UCS-2 conversion
 2690|    514|    if (buf.size() % 2 == 1) {
  ------------------
  |  Branch (2690:9): [True: 228, False: 286]
  ------------------
 2691|    228|      buf.resize(buf.size() - 1);
 2692|    228|    }
 2693|       |
 2694|       |    // Strip trailing UCS-2 0-characters
 2695|  1.76k|    while (buf.size() >= 2) {
  ------------------
  |  Branch (2695:12): [True: 1.69k, False: 78]
  ------------------
 2696|  1.69k|      if (buf.read_uint8(buf.size() - 1) != 0 || buf.read_uint8(buf.size() - 2) != 0)
  ------------------
  |  Branch (2696:11): [True: 284, False: 1.40k]
  |  Branch (2696:50): [True: 152, False: 1.25k]
  ------------------
 2697|    436|        break;
 2698|  1.25k|      buf.resize(buf.size() - 2);
 2699|  1.25k|    }
 2700|       |
 2701|    514|    std::string str(buf.c_str(), buf.size());
 2702|    514|    cnv = convertStringCharset(str, "UCS-2LE", "UTF-8");
 2703|    514|    if (cnv)
  ------------------
  |  Branch (2703:9): [True: 370, False: 144]
  ------------------
 2704|    370|      os << str;
 2705|    514|  }
 2706|    650|  if (!cnv)
  ------------------
  |  Branch (2706:7): [True: 280, False: 370]
  ------------------
 2707|    280|    os << value;
 2708|    650|  return os;
 2709|    650|}
_ZN5Exiv28Internal13printExifUnitERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2711|    466|std::ostream& printExifUnit(std::ostream& os, const Value& value, const ExifData* metadata) {
 2712|    466|  return EXV_PRINT_TAG(exifUnit)(os, value, metadata);
  ------------------
  |  |  199|    466|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2713|    466|}
_ZN5Exiv28Internal22printLensSpecificationERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2715|  1.02k|std::ostream& printLensSpecification(std::ostream& os, const Value& value, const ExifData*) {
 2716|  1.02k|  std::ios::fmtflags f(os.flags());
 2717|       |  // check type and count of values
 2718|  1.02k|  if (value.typeId() != unsignedRational || value.count() != 4 ||
  ------------------
  |  Branch (2718:7): [True: 28, False: 992]
  |  Branch (2718:7): [True: 266, False: 754]
  |  Branch (2718:45): [True: 18, False: 974]
  ------------------
 2719|       |      // divisor may be zero only if dividend is not zero
 2720|    974|      (value.toRational(0).first != 0 && value.toRational(0).second == 0) ||
  ------------------
  |  Branch (2720:8): [True: 826, False: 148]
  |  Branch (2720:42): [True: 48, False: 778]
  ------------------
 2721|    926|      (value.toRational(1).first != 0 && value.toRational(1).second == 0) ||
  ------------------
  |  Branch (2721:8): [True: 632, False: 294]
  |  Branch (2721:42): [True: 60, False: 572]
  ------------------
 2722|    866|      (value.toRational(2).first != 0 && value.toRational(2).second == 0) ||
  ------------------
  |  Branch (2722:8): [True: 632, False: 234]
  |  Branch (2722:42): [True: 48, False: 584]
  ------------------
 2723|    818|      (value.toRational(3).first != 0 && value.toRational(3).second == 0)) {
  ------------------
  |  Branch (2723:8): [True: 644, False: 174]
  |  Branch (2723:42): [True: 64, False: 580]
  ------------------
 2724|    266|    return os << "(" << value << ")";
 2725|    266|  }
 2726|       |  // values numerically are ok, so they can be converted
 2727|       |  // here first and second can be zero, so initialise float with 0.0f
 2728|    754|  float focalLength1 = 0.0f;
 2729|    754|  if (value.toRational(0).first != 0)
  ------------------
  |  Branch (2729:7): [True: 626, False: 128]
  ------------------
 2730|    626|    focalLength1 = value.toFloat(0);
 2731|    754|  float focalLength2 = 0.0f;
 2732|    754|  if (value.toRational(1).first != 0)
  ------------------
  |  Branch (2732:7): [True: 476, False: 278]
  ------------------
 2733|    476|    focalLength2 = value.toFloat(1);
 2734|    754|  float fNumber1 = 0.0f;
 2735|    754|  if (value.toRational(2).first != 0)
  ------------------
  |  Branch (2735:7): [True: 536, False: 218]
  ------------------
 2736|    536|    fNumber1 = value.toFloat(2);
 2737|    754|  float fNumber2 = 0.0f;
 2738|    754|  if (value.toRational(3).first != 0)
  ------------------
  |  Branch (2738:7): [True: 580, False: 174]
  ------------------
 2739|    580|    fNumber2 = value.toFloat(3);
 2740|       |
 2741|       |  // first value must not be bigger than second
 2742|    754|  if ((std::isgreater(focalLength1, focalLength2) && std::isgreater(focalLength2, 0.0f)) ||
  ------------------
  |  Branch (2742:8): [True: 350, False: 404]
  |  Branch (2742:54): [True: 164, False: 186]
  ------------------
 2743|    590|      (std::isgreater(fNumber1, fNumber2) && std::isgreater(fNumber2, 0.0f))) {
  ------------------
  |  Branch (2743:8): [True: 168, False: 422]
  |  Branch (2743:46): [True: 116, False: 52]
  ------------------
 2744|    280|    return os << "(" << value << ")";
 2745|    280|  }
 2746|       |
 2747|       |  // no lens specification available
 2748|    474|  if (focalLength1 == 0.0f && focalLength2 == 0.0f && fNumber1 == 0.0f && fNumber2 == 0.0f)
  ------------------
  |  Branch (2748:7): [True: 126, False: 348]
  |  Branch (2748:31): [True: 92, False: 34]
  |  Branch (2748:55): [True: 78, False: 14]
  |  Branch (2748:75): [True: 38, False: 40]
  ------------------
 2749|     38|    return os << _("n/a");
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
 2750|       |
 2751|       |  // lens specification available - at least parts
 2752|    436|  if (focalLength1 == 0.0f)
  ------------------
  |  Branch (2752:7): [True: 88, False: 348]
  ------------------
 2753|     88|    os << _("n/a");
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
 2754|    348|  else
 2755|    348|    os << std::setprecision(5) << focalLength1;
 2756|    436|  if (focalLength1 != focalLength2) {
  ------------------
  |  Branch (2756:7): [True: 356, False: 80]
  ------------------
 2757|    356|    if (focalLength2 == 0.0f)
  ------------------
  |  Branch (2757:9): [True: 174, False: 182]
  ------------------
 2758|    174|      os << "-n/a ";
 2759|    182|    else
 2760|    182|      os << "-" << std::setprecision(5) << focalLength2;
 2761|    356|  }
 2762|    436|  os << "mm";
 2763|    436|  std::ostringstream oss;
 2764|    436|  oss.copyfmt(os);
 2765|       |
 2766|    436|  if (std::isgreater(fNumber1, 0.0f) || std::isgreater(fNumber2, 0.0f)) {
  ------------------
  |  Branch (2766:7): [True: 256, False: 180]
  |  Branch (2766:41): [True: 104, False: 76]
  ------------------
 2767|    360|    os << " F";
 2768|    360|    if (fNumber1 == 0.0f)
  ------------------
  |  Branch (2768:9): [True: 104, False: 256]
  ------------------
 2769|    104|      os << " n/a";
 2770|    256|    else
 2771|    256|      os << std::setprecision(2) << fNumber1;
 2772|    360|    if (fNumber1 != fNumber2) {
  ------------------
  |  Branch (2772:9): [True: 292, False: 68]
  ------------------
 2773|    292|      if (fNumber2 == 0.0f)
  ------------------
  |  Branch (2773:11): [True: 52, False: 240]
  ------------------
 2774|     52|        os << "-n/a";
 2775|    240|      else
 2776|    240|        os << "-" << std::setprecision(2) << fNumber2;
 2777|    292|    }
 2778|    360|  }
 2779|    436|  os.copyfmt(oss);
 2780|    436|  os.flags(f);
 2781|    436|  return os;
 2782|    474|}
_ZN5Exiv28Internal11print0x0000ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2784|  1.36k|std::ostream& print0x0000(std::ostream& os, const Value& value, const ExifData*) {
 2785|  1.36k|  if (value.size() != 4 || value.typeId() != unsignedByte) {
  ------------------
  |  Branch (2785:7): [True: 1.29k, False: 66]
  |  Branch (2785:28): [True: 52, False: 14]
  ------------------
 2786|  1.34k|    return os << value;
 2787|  1.34k|  }
 2788|       |
 2789|     56|  for (int i = 0; i < 3; i++) {
  ------------------
  |  Branch (2789:19): [True: 42, False: 14]
  ------------------
 2790|     42|    os << value.toInt64(i);
 2791|     42|    os << ".";
 2792|     42|  }
 2793|     14|  os << value.toInt64(3);
 2794|       |
 2795|     14|  return os;
 2796|  1.36k|}
_ZN5Exiv28Internal11print0x0005ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2798|    162|std::ostream& print0x0005(std::ostream& os, const Value& value, const ExifData* metadata) {
 2799|    162|  return EXV_PRINT_TAG(exifGPSAltitudeRef)(os, value, metadata);
  ------------------
  |  |  199|    162|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2800|    162|}
_ZN5Exiv28Internal11print0x0006ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2802|    260|std::ostream& print0x0006(std::ostream& os, const Value& value, const ExifData*) {
 2803|    260|  std::ios::fmtflags f(os.flags());
 2804|    260|  std::ostringstream oss;
 2805|    260|  oss.copyfmt(os);
 2806|    260|  const int32_t d = value.toRational().second;
 2807|    260|  if (d == 0)
  ------------------
  |  Branch (2807:7): [True: 22, False: 238]
  ------------------
 2808|     22|    return os << "(" << value << ")";
 2809|    238|  const int p = d > 1 ? 1 : 0;
  ------------------
  |  Branch (2809:17): [True: 44, False: 194]
  ------------------
 2810|    238|  os << std::fixed << std::setprecision(p) << value.toFloat() << " m";
 2811|    238|  os.copyfmt(oss);
 2812|       |
 2813|    238|  os.flags(f);
 2814|    238|  return os;
 2815|    260|}
_ZN5Exiv28Internal11print0x0007ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2817|    540|std::ostream& print0x0007(std::ostream& os, const Value& value, const ExifData*) {
 2818|    540|  std::ios::fmtflags f(os.flags());
 2819|    540|  if (value.count() == 3) {
  ------------------
  |  Branch (2819:7): [True: 396, False: 144]
  ------------------
 2820|  1.32k|    for (int i = 0; i < 3; ++i) {
  ------------------
  |  Branch (2820:21): [True: 1.04k, False: 278]
  ------------------
 2821|  1.04k|      if (value.toRational(i).second == 0) {
  ------------------
  |  Branch (2821:11): [True: 118, False: 930]
  ------------------
 2822|    118|        return os << "(" << value << ")";
 2823|    118|      }
 2824|  1.04k|    }
 2825|    278|    std::ostringstream oss;
 2826|    278|    oss.copyfmt(os);
 2827|    278|    const double t = (3600.0 * value.toInt64(0)) + (60.0 * value.toInt64(1)) + value.toFloat(2);
 2828|    278|    enforce<std::overflow_error>(std::isfinite(t), "Non-finite time value");
 2829|    278|    int p = 0;
 2830|    278|    const double fraction = std::fmod(t, 1);
 2831|    278|    if (fraction != 0)
  ------------------
  |  Branch (2831:9): [True: 156, False: 122]
  ------------------
 2832|    156|      p = 1;
 2833|    278|    const double ss = std::fmod(t, 60);
 2834|    278|    const double minutes = (t - ss) / 60;
 2835|    278|    const auto mm = static_cast<int>(std::fmod(minutes, 60));
 2836|    278|    const double hours = (minutes - mm) / 60;
 2837|    278|    const auto hh = static_cast<int>(std::fmod(hours, 24));
 2838|       |
 2839|    278|    os << std::setw(2) << std::setfill('0') << std::right << hh << ":" << std::setw(2) << std::setfill('0')
 2840|    278|       << std::right << mm << ":" << std::setw(2 + (p * 2)) << std::setfill('0') << std::right << std::fixed
 2841|    278|       << std::setprecision(p) << ss;
 2842|       |
 2843|    278|    os.copyfmt(oss);
 2844|    278|  } else {
 2845|    144|    os << value;
 2846|    144|  }
 2847|       |
 2848|    422|  os.flags(f);
 2849|    422|  return os;
 2850|    540|}
_ZN5Exiv28Internal11print0x0009ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2852|     90|std::ostream& print0x0009(std::ostream& os, const Value& value, const ExifData* metadata) {
 2853|     90|  return EXV_PRINT_TAG(exifGPSStatus)(os, value, metadata);
  ------------------
  |  |  199|     90|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2854|     90|}
_ZN5Exiv28Internal11print0x000aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2856|     56|std::ostream& print0x000a(std::ostream& os, const Value& value, const ExifData* metadata) {
 2857|     56|  return EXV_PRINT_TAG(exifGPSMeasureMode)(os, value, metadata);
  ------------------
  |  |  199|     56|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2858|     56|}
_ZN5Exiv28Internal11print0x000cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2860|    252|std::ostream& print0x000c(std::ostream& os, const Value& value, const ExifData* metadata) {
 2861|    252|  return EXV_PRINT_TAG(exifGPSSpeedRef)(os, value, metadata);
  ------------------
  |  |  199|    252|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2862|    252|}
_ZN5Exiv28Internal11print0x0019ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2864|    174|std::ostream& print0x0019(std::ostream& os, const Value& value, const ExifData* metadata) {
 2865|    174|  return EXV_PRINT_TAG(exifGPSDestDistanceRef)(os, value, metadata);
  ------------------
  |  |  199|    174|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2866|    174|}
_ZN5Exiv28Internal11print0x001eERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2868|    228|std::ostream& print0x001e(std::ostream& os, const Value& value, const ExifData* metadata) {
 2869|    228|  return EXV_PRINT_TAG(exifGPSDifferential)(os, value, metadata);
  ------------------
  |  |  199|    228|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2870|    228|}
_ZN5Exiv28Internal11print0x0112ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2872|  1.25k|std::ostream& print0x0112(std::ostream& os, const Value& value, const ExifData* metadata) {
 2873|  1.25k|  return EXV_PRINT_TAG(exifOrientation)(os, value, metadata);
  ------------------
  |  |  199|  1.25k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2874|  1.25k|}
_ZN5Exiv28Internal11print0x0213ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2881|    310|std::ostream& print0x0213(std::ostream& os, const Value& value, const ExifData* metadata) {
 2882|    310|  return EXV_PRINT_TAG(exifYCbCrPositioning)(os, value, metadata);
  ------------------
  |  |  199|    310|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2883|    310|}
_ZN5Exiv28Internal11print0x8298ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2885|    206|std::ostream& print0x8298(std::ostream& os, const Value& value, const ExifData*) {
 2886|       |  // Print the copyright information in the format Photographer, Editor
 2887|    206|  std::string val = value.toString();
 2888|    206|  std::string::size_type pos = val.find('\0');
 2889|    206|  if (pos != std::string::npos) {
  ------------------
  |  Branch (2889:7): [True: 0, False: 206]
  ------------------
 2890|      0|    std::string photographer(val, 0, pos);
 2891|      0|    if (photographer != " ")
  ------------------
  |  Branch (2891:9): [True: 0, False: 0]
  ------------------
 2892|      0|      os << photographer;
 2893|      0|    std::string editor(val, pos + 1);
 2894|      0|    if (!editor.empty()) {
  ------------------
  |  Branch (2894:9): [True: 0, False: 0]
  ------------------
 2895|      0|      if (photographer != " ")
  ------------------
  |  Branch (2895:11): [True: 0, False: 0]
  ------------------
 2896|      0|        os << ", ";
 2897|      0|      os << editor;
 2898|      0|    }
 2899|    206|  } else {
 2900|    206|    os << val;
 2901|    206|  }
 2902|    206|  return os;
 2903|    206|}
_ZN5Exiv28Internal11print0x829aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2905|    528|std::ostream& print0x829a(std::ostream& os, const Value& value, const ExifData*) {
 2906|    528|  if (value.count() == 0)
  ------------------
  |  Branch (2906:7): [True: 0, False: 528]
  ------------------
 2907|      0|    return os;
 2908|    528|  if (value.typeId() != unsignedRational)
  ------------------
  |  Branch (2908:7): [True: 22, False: 506]
  ------------------
 2909|     22|    return os << "(" << value << ")";
 2910|       |
 2911|    506|  using Exiv2::operator<<;
 2912|    506|  URational t = value.toRational();
 2913|    506|  if (t.first == 0 || t.second == 0) {
  ------------------
  |  Branch (2913:7): [True: 72, False: 434]
  |  Branch (2913:23): [True: 68, False: 366]
  ------------------
 2914|    140|    os << "(" << t << ")";
 2915|    366|  } else if (t.second == t.first) {
  ------------------
  |  Branch (2915:14): [True: 44, False: 322]
  ------------------
 2916|     44|    os << "1 s";
 2917|    322|  } else if (t.second % t.first == 0) {
  ------------------
  |  Branch (2917:14): [True: 138, False: 184]
  ------------------
 2918|    138|    t.second = t.second / t.first;
 2919|    138|    t.first = 1;
 2920|    138|    os << t << " s";
 2921|    184|  } else {
 2922|    184|    os << static_cast<float>(t.first) / t.second << " s";
 2923|    184|  }
 2924|    506|  return os;
 2925|    528|}
_ZN5Exiv28Internal11print0x829dERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2927|    334|std::ostream& print0x829d(std::ostream& os, const Value& value, const ExifData*) {
 2928|    334|  Rational fnumber = value.toRational();
 2929|    334|  if (fnumber.second != 0)
  ------------------
  |  Branch (2929:7): [True: 268, False: 66]
  ------------------
 2930|    268|    return os << stringFormat("F{:.2g}", static_cast<float>(fnumber.first) / fnumber.second);
  ------------------
  |  |   18|    268|#define stringFormat std::format
  ------------------
 2931|     66|  return os << "(" << value << ")";
 2932|    334|}
_ZN5Exiv28Internal11print0x8822ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2941|    990|std::ostream& print0x8822(std::ostream& os, const Value& value, const ExifData* metadata) {
 2942|    990|  return EXV_PRINT_TAG(exifExposureProgram)(os, value, metadata);
  ------------------
  |  |  199|    990|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 2943|    990|}
_ZN5Exiv28Internal11print0x8827ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2945|    272|std::ostream& print0x8827(std::ostream& os, const Value& value, const ExifData*) {
 2946|    272|  return os << value.toInt64();
 2947|    272|}
_ZN5Exiv28Internal11print0x9101ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2949|    206|std::ostream& print0x9101(std::ostream& os, const Value& value, const ExifData*) {
 2950|   190k|  for (size_t i = 0; i < value.count(); ++i) {
  ------------------
  |  Branch (2950:22): [True: 190k, False: 206]
  ------------------
 2951|   190k|    const auto l = value.toInt64(i);
 2952|   190k|    switch (l) {
 2953|   102k|      case 0:
  ------------------
  |  Branch (2953:7): [True: 102k, False: 88.0k]
  ------------------
 2954|   102k|        break;
 2955|  7.51k|      case 1:
  ------------------
  |  Branch (2955:7): [True: 7.51k, False: 183k]
  ------------------
 2956|  7.51k|        os << "Y";
 2957|  7.51k|        break;
 2958|  4.71k|      case 2:
  ------------------
  |  Branch (2958:7): [True: 4.71k, False: 185k]
  ------------------
 2959|  4.71k|        os << "Cb";
 2960|  4.71k|        break;
 2961|  5.35k|      case 3:
  ------------------
  |  Branch (2961:7): [True: 5.35k, False: 185k]
  ------------------
 2962|  5.35k|        os << "Cr";
 2963|  5.35k|        break;
 2964|  2.38k|      case 4:
  ------------------
  |  Branch (2964:7): [True: 2.38k, False: 188k]
  ------------------
 2965|  2.38k|        os << "R";
 2966|  2.38k|        break;
 2967|  2.18k|      case 5:
  ------------------
  |  Branch (2967:7): [True: 2.18k, False: 188k]
  ------------------
 2968|  2.18k|        os << "G";
 2969|  2.18k|        break;
 2970|  1.14k|      case 6:
  ------------------
  |  Branch (2970:7): [True: 1.14k, False: 189k]
  ------------------
 2971|  1.14k|        os << "B";
 2972|  1.14k|        break;
 2973|  64.8k|      default:
  ------------------
  |  Branch (2973:7): [True: 64.8k, False: 125k]
  ------------------
 2974|  64.8k|        os << "(" << l << ")";
 2975|  64.8k|        break;
 2976|   190k|    }
 2977|   190k|  }
 2978|    206|  return os;
 2979|    206|}
_ZN5Exiv28Internal11print0x9201ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2981|  1.29k|std::ostream& print0x9201(std::ostream& os, const Value& value, const ExifData*) {
 2982|  1.29k|  Rational r = value.toRational();
 2983|  1.29k|  if (!value.ok() || r.second == 0)
  ------------------
  |  Branch (2983:7): [True: 0, False: 1.29k]
  |  Branch (2983:22): [True: 144, False: 1.14k]
  ------------------
 2984|    144|    return os << "(" << value << ")";
 2985|       |
 2986|  1.14k|  URational ur = exposureTime(static_cast<float>(r.first) / r.second);
 2987|  1.14k|  os << ur.first;
 2988|  1.14k|  if (ur.second > 1) {
  ------------------
  |  Branch (2988:7): [True: 246, False: 902]
  ------------------
 2989|    246|    os << "/" << ur.second;
 2990|    246|  }
 2991|  1.14k|  return os << " s";
 2992|  1.29k|}
_ZN5Exiv28Internal11print0x9202ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 2994|  1.10k|std::ostream& print0x9202(std::ostream& os, const Value& value, const ExifData*) {
 2995|  1.10k|  if (value.count() == 0 || value.toRational().second == 0)
  ------------------
  |  Branch (2995:7): [True: 0, False: 1.10k]
  |  Branch (2995:7): [True: 128, False: 976]
  |  Branch (2995:29): [True: 128, False: 976]
  ------------------
 2996|    128|    return os << "(" << value << ")";
 2997|    976|  return os << stringFormat("F{:.2g}", fnumber(value.toFloat()));
  ------------------
  |  |   18|    976|#define stringFormat std::format
  ------------------
 2998|  1.10k|}
_ZN5Exiv28Internal11print0x9204ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3000|  1.01k|std::ostream& print0x9204(std::ostream& os, const Value& value, const ExifData*) {
 3001|  1.01k|  Rational bias = value.toRational();
 3002|       |
 3003|  1.01k|  if (bias.first == 0 || bias.first == std::numeric_limits<std::int32_t>::min()) {
  ------------------
  |  Branch (3003:7): [True: 102, False: 908]
  |  Branch (3003:26): [True: 32, False: 876]
  ------------------
 3004|    134|    os << "0 EV";
 3005|    876|  } else if (bias.second <= 0) {
  ------------------
  |  Branch (3005:14): [True: 142, False: 734]
  ------------------
 3006|    142|    os << "(" << bias.first << "/" << bias.second << ")";
 3007|    734|  } else {
 3008|    734|    int32_t d = std::gcd(bias.first, bias.second);
 3009|    734|    int32_t num = std::abs(bias.first) / d;
 3010|    734|    int32_t den = bias.second / d;
 3011|    734|    os << (bias.first < 0 ? "-" : "+") << num;
  ------------------
  |  Branch (3011:12): [True: 296, False: 438]
  ------------------
 3012|    734|    if (den != 1) {
  ------------------
  |  Branch (3012:9): [True: 516, False: 218]
  ------------------
 3013|    516|      os << "/" << den;
 3014|    516|    }
 3015|    734|    os << " EV";
 3016|    734|  }
 3017|  1.01k|  return os;
 3018|  1.01k|}
_ZN5Exiv28Internal11print0x9206ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3020|    376|std::ostream& print0x9206(std::ostream& os, const Value& value, const ExifData*) {
 3021|    376|  Rational distance = value.toRational();
 3022|    376|  if (distance.first == 0)
  ------------------
  |  Branch (3022:7): [True: 40, False: 336]
  ------------------
 3023|     40|    return os << _("Unknown");
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
 3024|    336|  if (static_cast<uint32_t>(distance.first) == std::numeric_limits<uint32_t>::max())
  ------------------
  |  Branch (3024:7): [True: 36, False: 300]
  ------------------
 3025|     36|    return os << _("Infinity");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
 3026|    300|  if (distance.second != 0)
  ------------------
  |  Branch (3026:7): [True: 260, False: 40]
  ------------------
 3027|    260|    return os << stringFormat("{:.2f} m", static_cast<float>(distance.first) / distance.second);
  ------------------
  |  |   18|    260|#define stringFormat std::format
  ------------------
 3028|     40|  return os << "(" << value << ")";
 3029|    300|}
_ZN5Exiv28Internal11print0x9207ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3038|  3.02k|std::ostream& print0x9207(std::ostream& os, const Value& value, const ExifData* metadata) {
 3039|  3.02k|  return EXV_PRINT_TAG(exifMeteringMode)(os, value, metadata);
  ------------------
  |  |  199|  3.02k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3040|  3.02k|}
_ZN5Exiv28Internal11print0x9208ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3042|  2.20k|std::ostream& print0x9208(std::ostream& os, const Value& value, const ExifData* metadata) {
 3043|  2.20k|  return EXV_PRINT_TAG(exifLightSource)(os, value, metadata);
  ------------------
  |  |  199|  2.20k|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3044|  2.20k|}
_ZN5Exiv28Internal11print0x920aERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3046|    996|std::ostream& print0x920a(std::ostream& os, const Value& value, const ExifData*) {
 3047|    996|  Rational length = value.toRational();
 3048|    996|  if (length.second != 0)
  ------------------
  |  Branch (3048:7): [True: 874, False: 122]
  ------------------
 3049|    874|    return os << stringFormat("{:.1f} mm", static_cast<float>(length.first) / length.second);
  ------------------
  |  |   18|    874|#define stringFormat std::format
  ------------------
 3050|    122|  return os << "(" << value << ")";
 3051|    996|}
_ZN5Exiv28Internal11print0xa001ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3060|    226|std::ostream& print0xa001(std::ostream& os, const Value& value, const ExifData* metadata) {
 3061|    226|  return EXV_PRINT_TAG(exifColorSpace)(os, value, metadata);
  ------------------
  |  |  199|    226|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3062|    226|}
_ZN5Exiv28Internal11print0xa217ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3075|    418|std::ostream& print0xa217(std::ostream& os, const Value& value, const ExifData* metadata) {
 3076|    418|  return EXV_PRINT_TAG(exifSensingMethod)(os, value, metadata);
  ------------------
  |  |  199|    418|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3077|    418|}
_ZN5Exiv28Internal11print0xa300ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3086|    200|std::ostream& print0xa300(std::ostream& os, const Value& value, const ExifData* metadata) {
 3087|    200|  return EXV_PRINT_TAG(exifFileSource)(os, value, metadata);
  ------------------
  |  |  199|    200|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3088|    200|}
_ZN5Exiv28Internal11print0xa301ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3095|     96|std::ostream& print0xa301(std::ostream& os, const Value& value, const ExifData* metadata) {
 3096|     96|  return EXV_PRINT_TAG(exifSceneType)(os, value, metadata);
  ------------------
  |  |  199|     96|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3097|     96|}
_ZN5Exiv28Internal11print0xa401ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3105|    198|std::ostream& print0xa401(std::ostream& os, const Value& value, const ExifData* metadata) {
 3106|    198|  return EXV_PRINT_TAG(exifCustomRendered)(os, value, metadata);
  ------------------
  |  |  199|    198|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3107|    198|}
_ZN5Exiv28Internal11print0xa402ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3116|    354|std::ostream& print0xa402(std::ostream& os, const Value& value, const ExifData* metadata) {
 3117|    354|  return EXV_PRINT_TAG(exifExposureMode)(os, value, metadata);
  ------------------
  |  |  199|    354|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3118|    354|}
_ZN5Exiv28Internal11print0xa403ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3126|    350|std::ostream& print0xa403(std::ostream& os, const Value& value, const ExifData* metadata) {
 3127|    350|  return EXV_PRINT_TAG(exifWhiteBalance)(os, value, metadata);
  ------------------
  |  |  199|    350|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3128|    350|}
_ZN5Exiv28Internal11print0xa404ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3130|    172|std::ostream& print0xa404(std::ostream& os, const Value& value, const ExifData*) {
 3131|    172|  Rational zoom = value.toRational();
 3132|    172|  if (zoom.second == 0)
  ------------------
  |  Branch (3132:7): [True: 16, False: 156]
  ------------------
 3133|     16|    return os << _("Digital zoom not used");
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
 3134|    156|  return os << stringFormat("{:.1f}", static_cast<float>(zoom.first) / zoom.second);
  ------------------
  |  |   18|    156|#define stringFormat std::format
  ------------------
 3135|    172|}
_ZN5Exiv28Internal11print0xa405ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3137|     62|std::ostream& print0xa405(std::ostream& os, const Value& value, const ExifData*) {
 3138|     62|  if (auto length = value.toInt64(); length != 0)
  ------------------
  |  Branch (3138:38): [True: 26, False: 36]
  ------------------
 3139|     26|    return os << length << ".0 mm";
 3140|     36|  return os << _("Unknown");
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
 3141|     62|}
_ZN5Exiv28Internal11print0xa406ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3151|    532|std::ostream& print0xa406(std::ostream& os, const Value& value, const ExifData* metadata) {
 3152|    532|  return EXV_PRINT_TAG(exifSceneCaptureType)(os, value, metadata);
  ------------------
  |  |  199|    532|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3153|    532|}
_ZN5Exiv28Internal11print0xa407ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3161|    614|std::ostream& print0xa407(std::ostream& os, const Value& value, const ExifData* metadata) {
 3162|    614|  return EXV_PRINT_TAG(exifGainControl)(os, value, metadata);
  ------------------
  |  |  199|    614|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3163|    614|}
_ZN5Exiv28Internal11print0xa409ERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3172|    324|std::ostream& print0xa409(std::ostream& os, const Value& value, const ExifData* metadata) {
 3173|    324|  return EXV_PRINT_TAG(exifSaturation)(os, value, metadata);
  ------------------
  |  |  199|    324|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3174|    324|}
_ZN5Exiv28Internal11print0xa40cERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3184|    218|std::ostream& print0xa40c(std::ostream& os, const Value& value, const ExifData* metadata) {
 3185|    218|  return EXV_PRINT_TAG(exifSubjectDistanceRange)(os, value, metadata);
  ------------------
  |  |  199|    218|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3186|    218|}
_ZN5Exiv28Internal14printGPSDirRefERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3188|    126|std::ostream& printGPSDirRef(std::ostream& os, const Value& value, const ExifData* metadata) {
 3189|    126|  return EXV_PRINT_TAG(exifGPSDirRef)(os, value, metadata);
  ------------------
  |  |  199|    126|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3190|    126|}
_ZN5Exiv28Internal19printNormalSoftHardERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3199|    262|std::ostream& printNormalSoftHard(std::ostream& os, const Value& value, const ExifData* metadata) {
 3200|    262|  return EXV_PRINT_TAG(exifNormalSoftHard)(os, value, metadata);
  ------------------
  |  |  199|    262|#define EXV_PRINT_TAG(array) printTag<std::size(array), array>
  ------------------
 3201|    262|}
_ZN5Exiv28Internal16printExifVersionERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEERKNS_5ValueEPKNS_8ExifDataE:
 3203|  4.18k|std::ostream& printExifVersion(std::ostream& os, const Value& value, const ExifData*) {
 3204|  4.18k|  if (value.size() != 4 || value.typeId() != undefined) {
  ------------------
  |  Branch (3204:7): [True: 2.30k, False: 1.88k]
  |  Branch (3204:28): [True: 632, False: 1.25k]
  ------------------
 3205|  2.93k|    return os << "(" << value << ")";
 3206|  2.93k|  }
 3207|       |
 3208|  1.25k|  char s[5];
 3209|  6.26k|  for (int i = 0; i < 4; ++i) {
  ------------------
  |  Branch (3209:19): [True: 5.00k, False: 1.25k]
  ------------------
 3210|  5.00k|    s[i] = static_cast<char>(value.toInt64(i));
 3211|  5.00k|  }
 3212|  1.25k|  s[4] = '\0';
 3213|       |
 3214|  1.25k|  return printVersion(os, s);
 3215|  4.18k|}
_ZN5Exiv28Internal7tagListERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
 3244|  4.35k|const TagInfo* tagList(const std::string& groupName) {
 3245|  4.35k|  auto ii = Exiv2::find(groupInfo, groupName);
 3246|  4.35k|  if (!ii || !ii->tagList_) {
  ------------------
  |  Branch (3246:7): [True: 0, False: 4.35k]
  |  Branch (3246:14): [True: 0, False: 4.35k]
  ------------------
 3247|      0|    return nullptr;
 3248|      0|  }
 3249|  4.35k|  return ii->tagList_();
 3250|  4.35k|}
tags_int.cpp:_ZN12_GLOBAL__N_112printVersionERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEENS0_17basic_string_viewIcS3_EE:
   33|  1.25k|std::ostream& printVersion(std::ostream& os, std::string_view str) {
   34|  1.25k|  if (str.size() != 4) {
  ------------------
  |  Branch (34:7): [True: 88, False: 1.16k]
  ------------------
   35|     88|    return os << "(" << str << ")";
   36|     88|  }
   37|  1.16k|  if (str.front() != '0')
  ------------------
  |  Branch (37:7): [True: 72, False: 1.09k]
  ------------------
   38|     72|    os << str.front();
   39|  1.16k|  return os << str[1] << "." << str[2] << str[3];
   40|  1.25k|}

_ZNK5Exiv28Internal10TagDetailseqEl:
   50|  9.94M|  bool operator==(int64_t key) const {
   51|  9.94M|    return key == val_;
   52|  9.94M|  }
_ZNK5Exiv28Internal16StringTagDetailseqENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEE:
   64|  29.3k|  bool operator==(std::string_view key) const {
   65|  29.3k|    return key == val_;
   66|  29.3k|  }
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13nikon2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 92]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    162|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     56|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     56|  static_assert(N > 0, "Passed zero length printTag");
  195|     56|  return printTag<N, array>(os, value.toInt64(), data);
  196|     56|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikon2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     56|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     56|  static_assert(N > 0, "Passed zero length printTag");
  183|     56|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 36]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     56|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    730|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    730|  static_assert(N > 0, "Passed zero length printTag");
  195|    730|  return printTag<N, array>(os, value.toInt64(), data);
  196|    730|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikon2ImageAdjustmentEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    730|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    730|  static_assert(N > 0, "Passed zero length printTag");
  183|    730|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 506, False: 224]
  ------------------
  184|    506|    return os << _(td->label_);
  ------------------
  |  |   40|    506|#define _(String) (String)
  ------------------
  185|    224|  return os << "(" << value << ")";
  186|    730|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    824|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    824|  static_assert(N > 0, "Passed zero length printTag");
  195|    824|  return printTag<N, array>(os, value.toInt64(), data);
  196|    824|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikon2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    824|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    824|  static_assert(N > 0, "Passed zero length printTag");
  183|    824|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 478, False: 346]
  ------------------
  184|    478|    return os << _(td->label_);
  ------------------
  |  |   40|    478|#define _(String) (String)
  ------------------
  185|    346|  return os << "(" << value << ")";
  186|    824|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    812|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    812|  static_assert(N > 0, "Passed zero length printTag");
  195|    812|  return printTag<N, array>(os, value.toInt64(), data);
  196|    812|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikon2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    812|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    812|  static_assert(N > 0, "Passed zero length printTag");
  183|    812|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 522, False: 290]
  ------------------
  184|    522|    return os << _(td->label_);
  ------------------
  |  |   40|    522|#define _(String) (String)
  ------------------
  185|    290|  return os << "(" << value << ")";
  186|    812|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    790|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    790|  static_assert(N > 0, "Passed zero length printTag");
  195|    790|  return printTag<N, array>(os, value.toInt64(), data);
  196|    790|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    790|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    790|  static_assert(N > 0, "Passed zero length printTag");
  183|    790|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 656, False: 134]
  ------------------
  184|    656|    return os << _(td->label_);
  ------------------
  |  |   40|    656|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    790|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 70]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    144|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    158|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    158|  static_assert(N > 0, "Passed zero length printTag");
  195|    158|  return printTag<N, array>(os, value.toInt64(), data);
  196|    158|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    158|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    158|  static_assert(N > 0, "Passed zero length printTag");
  183|    158|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 110]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    158|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonActiveDLightingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    284|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    284|  static_assert(N > 0, "Passed zero length printTag");
  195|    284|  return printTag<N, array>(os, value.toInt64(), data);
  196|    284|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonActiveDLightingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    284|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    284|  static_assert(N > 0, "Passed zero length printTag");
  183|    284|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 236, False: 48]
  ------------------
  184|    236|    return os << _(td->label_);
  ------------------
  |  |   40|    236|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    284|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    168|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    168|  static_assert(N > 0, "Passed zero length printTag");
  195|    168|  return printTag<N, array>(os, value.toInt64(), data);
  196|    168|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9nikonOlnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    168|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    168|  static_assert(N > 0, "Passed zero length printTag");
  183|    168|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 40]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    168|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    348|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    348|  static_assert(N > 0, "Passed zero length printTag");
  195|    348|  return printTag<N, array>(os, value.toInt64(), data);
  196|    348|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonShutterModesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    348|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    348|  static_assert(N > 0, "Passed zero length printTag");
  183|    348|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 238, False: 110]
  ------------------
  184|    238|    return os << _(td->label_);
  ------------------
  |  |   40|    238|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    348|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    470|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    470|  static_assert(N > 0, "Passed zero length printTag");
  195|    470|  return printTag<N, array>(os, value.toInt64(), data);
  196|    470|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14nikonFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    470|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    470|  static_assert(N > 0, "Passed zero length printTag");
  183|    470|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 348, False: 122]
  ------------------
  184|    348|    return os << _(td->label_);
  ------------------
  |  |   40|    348|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    470|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    156|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    156|  static_assert(N > 0, "Passed zero length printTag");
  195|    156|  return printTag<N, array>(os, value.toInt64(), data);
  196|    156|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonAutoBracketReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    156|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    156|  static_assert(N > 0, "Passed zero length printTag");
  183|    156|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 42]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    156|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    552|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    552|  static_assert(N > 0, "Passed zero length printTag");
  195|    552|  return printTag<N, array>(os, value.toInt64(), data);
  196|    552|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19nikonNefCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    552|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    552|  static_assert(N > 0, "Passed zero length printTag");
  183|    552|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 280, False: 272]
  ------------------
  184|    280|    return os << _(td->label_);
  ------------------
  |  |   40|    280|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|    552|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    252|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    252|  static_assert(N > 0, "Passed zero length printTag");
  195|    252|  return printTag<N, array>(os, value.toInt64(), data);
  196|    252|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26nikonHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    252|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    252|  static_assert(N > 0, "Passed zero length printTag");
  183|    252|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 192, False: 60]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    252|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     12|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     12|  static_assert(N > 0, "Passed zero length printTag");
  195|     12|  return printTag<N, array>(os, value.toInt64(), data);
  196|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     12|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     12|  static_assert(N > 0, "Passed zero length printTag");
  183|     12|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 6]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     78|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     78|  static_assert(N > 0, "Passed zero length printTag");
  195|     78|  return printTag<N, array>(os, value.toInt64(), data);
  196|     78|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonAdjustEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     78|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     78|  static_assert(N > 0, "Passed zero length printTag");
  183|     78|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 58]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|     78|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     68|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     68|  static_assert(N > 0, "Passed zero length printTag");
  195|     68|  return printTag<N, array>(os, value.toInt64(), data);
  196|     68|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     68|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     68|  static_assert(N > 0, "Passed zero length printTag");
  183|     68|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 38]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     68|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     68|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     68|  static_assert(N > 0, "Passed zero length printTag");
  195|     68|  return printTag<N, array>(os, value.toInt64(), data);
  196|     68|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     68|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     68|  static_assert(N > 0, "Passed zero length printTag");
  183|     68|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 44]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     68|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8aftOnOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 70]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|     90|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10nikonYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 120]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     64|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     64|  static_assert(N > 0, "Passed zero length printTag");
  195|     64|  return printTag<N, array>(os, value.toInt64(), data);
  196|     64|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonDateDisplayFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     64|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     64|  static_assert(N > 0, "Passed zero length printTag");
  183|     64|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 48]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     64|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     34|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     34|  static_assert(N > 0, "Passed zero length printTag");
  195|     34|  return printTag<N, array>(os, value.toInt64(), data);
  196|     34|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonIsoExpansionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 26]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     34|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15nikonAfAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 42]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    102|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12nikonAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 40]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     98|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonPhaseDetectAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     74|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     74|  static_assert(N > 0, "Passed zero length printTag");
  195|     74|  return printTag<N, array>(os, value.toInt64(), data);
  196|     74|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonPhaseDetectAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     74|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     74|  static_assert(N > 0, "Passed zero length printTag");
  183|     74|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 26]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     74|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     10|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     10|  static_assert(N > 0, "Passed zero length printTag");
  195|     10|  return printTag<N, array>(os, value.toInt64(), data);
  196|     10|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonMultiExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     10|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     10|  static_assert(N > 0, "Passed zero length printTag");
  183|     10|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 4]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|     10|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    138|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    138|  static_assert(N > 0, "Passed zero length printTag");
  195|    138|  return printTag<N, array>(os, value.toInt64(), data);
  196|    138|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16nikonFlashSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    138|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    138|  static_assert(N > 0, "Passed zero length printTag");
  183|    138|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 96]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    138|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    126|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    126|  static_assert(N > 0, "Passed zero length printTag");
  195|    126|  return printTag<N, array>(os, value.toInt64(), data);
  196|    126|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18nikonFlashFirmwareEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    126|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    126|  static_assert(N > 0, "Passed zero length printTag");
  183|    126|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 68]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    126|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     36|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     36|  static_assert(N > 0, "Passed zero length printTag");
  195|     36|  return printTag<N, array>(os, value.toInt64(), data);
  196|     36|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23nikonExternalFlashFlagsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     36|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     36|  static_assert(N > 0, "Passed zero length printTag");
  183|     36|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 12]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     12|  return os << "(" << value << ")";
  186|     36|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm81ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20nikonFlashGNDistanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 56]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    122|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 72]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|     98|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     30|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     30|  static_assert(N > 0, "Passed zero length printTag");
  195|     30|  return printTag<N, array>(os, value.toInt64(), data);
  196|     30|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonFlashAWLModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     30|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     30|  static_assert(N > 0, "Passed zero length printTag");
  183|     30|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 6]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     30|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     40|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     40|  static_assert(N > 0, "Passed zero length printTag");
  195|     40|  return printTag<N, array>(os, value.toInt64(), data);
  196|     40|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     40|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     40|  static_assert(N > 0, "Passed zero length printTag");
  183|     40|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 30]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     40|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     12|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     12|  static_assert(N > 0, "Passed zero length printTag");
  195|     12|  return printTag<N, array>(os, value.toInt64(), data);
  196|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11nikonOffOn3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     12|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     12|  static_assert(N > 0, "Passed zero length printTag");
  183|     12|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 4]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|      4|  return os << "(" << value << ")";
  186|     12|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm52ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm52ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17nikonZMountLensIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 32]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L35nikonAf2AreaModeContrastDetectAfOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     55|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     55|  static_assert(N > 0, "Passed zero length printTag");
  195|     55|  return printTag<N, array>(os, value.toInt64(), data);
  196|     55|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L35nikonAf2AreaModeContrastDetectAfOffEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     55|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     55|  static_assert(N > 0, "Passed zero length printTag");
  183|     55|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 5]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|      5|  return os << "(" << value << ")";
  186|     55|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34nikonAf2AreaModeContrastDetectAfOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     19|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     19|  static_assert(N > 0, "Passed zero length printTag");
  195|     19|  return printTag<N, array>(os, value.toInt64(), data);
  196|     19|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34nikonAf2AreaModeContrastDetectAfOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     19|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     19|  static_assert(N > 0, "Passed zero length printTag");
  183|     19|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 13]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     13|  return os << "(" << value << ")";
  186|     19|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm11ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20nikonAfPointsInFocusEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|     96|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|     96|  static_assert(N > 0, "Passed zero length printTag");
  208|     96|  const auto val = value.toUint32();
  209|     96|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 2, False: 94]
  ------------------
  210|      2|    auto [mask, label] = *array;
  211|      2|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 2]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      2|  }
  214|     96|  bool sep = false;
  215|  1.05k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.05k, False: 96]
  ------------------
  216|  1.05k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 282, False: 774]
  ------------------
  217|    282|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 190, False: 92]
  ------------------
  218|    190|        os << ", " << _(label);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  219|    190|      } else {
  220|     92|        os << _(label);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  221|     92|        sep = true;
  222|     92|      }
  223|    282|    }
  224|  1.05k|  }
  225|     96|  return os;
  226|     96|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20nikonShootingModeD70EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    142|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    142|  static_assert(N > 0, "Passed zero length printTag");
  208|    142|  const auto val = value.toUint32();
  209|    142|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 142]
  ------------------
  210|      0|    auto [mask, label] = *array;
  211|      0|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 0]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      0|  }
  214|    142|  bool sep = false;
  215|    994|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 994, False: 142]
  ------------------
  216|    994|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 315, False: 679]
  ------------------
  217|    315|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 198, False: 117]
  ------------------
  218|    198|        os << ", " << _(label);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  219|    198|      } else {
  220|    117|        os << _(label);
  ------------------
  |  |   40|    117|#define _(String) (String)
  ------------------
  221|    117|        sep = true;
  222|    117|      }
  223|    315|    }
  224|    994|  }
  225|    142|  return os;
  226|    142|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17nikonShootingModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    566|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    566|  static_assert(N > 0, "Passed zero length printTag");
  208|    566|  const auto val = value.toUint32();
  209|    566|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 566]
  ------------------
  210|      0|    auto [mask, label] = *array;
  211|      0|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 0]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      0|  }
  214|    566|  bool sep = false;
  215|  5.09k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 5.09k, False: 566]
  ------------------
  216|  5.09k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.68k, False: 3.41k]
  ------------------
  217|  1.68k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.13k, False: 551]
  ------------------
  218|  1.13k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.13k|#define _(String) (String)
  ------------------
  219|  1.13k|      } else {
  220|    551|        os << _(label);
  ------------------
  |  |   40|    551|#define _(String) (String)
  ------------------
  221|    551|        sep = true;
  222|    551|      }
  223|  1.68k|    }
  224|  5.09k|  }
  225|    566|  return os;
  226|    566|}
nikonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18nikonFlashAdaptorsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|     48|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|     48|  static_assert(N > 0, "Passed zero length printTag");
  208|     48|  const auto val = value.toUint32();
  209|     48|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 48]
  ------------------
  210|      0|    auto [mask, label] = *array;
  211|      0|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 0]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      0|  }
  214|     48|  bool sep = false;
  215|    144|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 144, False: 48]
  ------------------
  216|    144|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 62, False: 82]
  ------------------
  217|     62|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 24, False: 38]
  ------------------
  218|     24|        os << ", " << _(label);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  219|     38|      } else {
  220|     38|        os << _(label);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  221|     38|        sep = true;
  222|     38|      }
  223|     62|    }
  224|    144|  }
  225|     48|  return os;
  226|     48|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21nikonFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    374|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    374|  static_assert(N > 0, "Passed zero length printTag");
  183|    374|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 294, False: 80]
  ------------------
  184|    294|    return os << _(td->label_);
  ------------------
  |  |   40|    294|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    374|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22nikonFlashExposureCompEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     36|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     36|  static_assert(N > 0, "Passed zero length printTag");
  183|     36|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 0]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     36|}
nikonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25nikonFlashIlluminationPatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     32|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     32|  static_assert(N > 0, "Passed zero length printTag");
  183|     32|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 16]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|     32|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.10k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNewSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.81k, False: 292]
  ------------------
  184|  4.81k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.81k|#define _(String) (String)
  ------------------
  185|    292|  return os << "(" << value << ")";
  186|  5.10k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    404|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    404|  static_assert(N > 0, "Passed zero length printTag");
  195|    404|  return printTag<N, array>(os, value.toInt64(), data);
  196|    404|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifSubfileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    404|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    404|  static_assert(N > 0, "Passed zero length printTag");
  183|    404|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 88, False: 316]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|    316|  return os << "(" << value << ")";
  186|    404|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.01k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.01k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.01k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.01k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm34ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifCompressionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.01k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.01k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.01k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.54k, False: 468]
  ------------------
  184|  1.54k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.54k|#define _(String) (String)
  ------------------
  185|    468|  return os << "(" << value << ")";
  186|  2.01k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    736|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    736|  static_assert(N > 0, "Passed zero length printTag");
  195|    736|  return printTag<N, array>(os, value.toInt64(), data);
  196|    736|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29exifPhotometricInterpretationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    736|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    736|  static_assert(N > 0, "Passed zero length printTag");
  183|    736|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 478, False: 258]
  ------------------
  184|    478|    return os << _(td->label_);
  ------------------
  |  |   40|    478|#define _(String) (String)
  ------------------
  185|    258|  return os << "(" << value << ")";
  186|    736|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    320|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    320|  static_assert(N > 0, "Passed zero length printTag");
  195|    320|  return printTag<N, array>(os, value.toInt64(), data);
  196|    320|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifThresholdingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    320|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    320|  static_assert(N > 0, "Passed zero length printTag");
  183|    320|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 192]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    320|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23exifPlanarConfigurationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    172|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    172|  static_assert(N > 0, "Passed zero length printTag");
  183|    172|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 50]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    172|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    502|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    502|  static_assert(N > 0, "Passed zero length printTag");
  195|    502|  return printTag<N, array>(os, value.toInt64(), data);
  196|    502|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    502|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    502|  static_assert(N > 0, "Passed zero length printTag");
  183|    502|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 278, False: 224]
  ------------------
  184|    278|    return os << _(td->label_);
  ------------------
  |  |   40|    278|#define _(String) (String)
  ------------------
  185|    224|  return os << "(" << value << ")";
  186|    502|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    396|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    396|  static_assert(N > 0, "Passed zero length printTag");
  195|    396|  return printTag<N, array>(os, value.toInt64(), data);
  196|    396|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10exifInkSetEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    396|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    396|  static_assert(N > 0, "Passed zero length printTag");
  183|    396|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 180, False: 216]
  ------------------
  184|    180|    return os << _(td->label_);
  ------------------
  |  |   40|    180|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    396|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    458|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    458|  static_assert(N > 0, "Passed zero length printTag");
  195|    458|  return printTag<N, array>(os, value.toInt64(), data);
  196|    458|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifSampleFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    458|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    458|  static_assert(N > 0, "Passed zero length printTag");
  183|    458|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 342, False: 116]
  ------------------
  184|    342|    return os << _(td->label_);
  ------------------
  |  |   40|    342|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    458|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11exifIndexedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    112|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    112|  static_assert(N > 0, "Passed zero length printTag");
  183|    112|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 46]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    112|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.97k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.97k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.97k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.97k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25exifJpegLosslessPredictorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.97k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.97k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.97k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.07k, False: 902]
  ------------------
  184|  1.07k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.07k|#define _(String) (String)
  ------------------
  185|    902|  return os << "(" << value << ")";
  186|  1.97k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.68k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.68k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.68k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.68k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm27ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9exifFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.68k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.68k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.68k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.27k, False: 412]
  ------------------
  184|  4.27k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.27k|#define _(String) (String)
  ------------------
  185|    412|  return os << "(" << value << ")";
  186|  4.68k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    592|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    592|  static_assert(N > 0, "Passed zero length printTag");
  195|    592|  return printTag<N, array>(os, value.toInt64(), data);
  196|    592|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28tiffFocalPlaneResolutionUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    592|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    592|  static_assert(N > 0, "Passed zero length printTag");
  183|    592|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 218, False: 374]
  ------------------
  184|    218|    return os << _(td->label_);
  ------------------
  |  |   40|    218|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|    592|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    800|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    800|  static_assert(N > 0, "Passed zero length printTag");
  195|    800|  return printTag<N, array>(os, value.toInt64(), data);
  196|    800|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17tiffSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    800|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    800|  static_assert(N > 0, "Passed zero length printTag");
  183|    800|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 636, False: 164]
  ------------------
  184|    636|    return os << _(td->label_);
  ------------------
  |  |   40|    636|#define _(String) (String)
  ------------------
  185|    164|  return os << "(" << value << ")";
  186|    800|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    528|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    528|  static_assert(N > 0, "Passed zero length printTag");
  195|    528|  return printTag<N, array>(os, value.toInt64(), data);
  196|    528|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12dngCfaLayoutEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    528|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    528|  static_assert(N > 0, "Passed zero length printTag");
  183|    528|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 366, False: 162]
  ------------------
  184|    366|    return os << _(td->label_);
  ------------------
  |  |   40|    366|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|    528|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    468|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    468|  static_assert(N > 0, "Passed zero length printTag");
  195|    468|  return printTag<N, array>(os, value.toInt64(), data);
  196|    468|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngMakerNoteSafetyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    468|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    468|  static_assert(N > 0, "Passed zero length printTag");
  183|    468|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 282, False: 186]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|    186|  return os << "(" << value << ")";
  186|    468|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    250|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    250|  static_assert(N > 0, "Passed zero length printTag");
  195|    250|  return printTag<N, array>(os, value.toInt64(), data);
  196|    250|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24dngColorimetricReferenceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    250|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    250|  static_assert(N > 0, "Passed zero length printTag");
  183|    250|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 170, False: 80]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    250|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngProfileEmbedPolicyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 54]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    162|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    426|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    426|  static_assert(N > 0, "Passed zero length printTag");
  195|    426|  return printTag<N, array>(os, value.toInt64(), data);
  196|    426|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20dngPreviewColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    426|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    426|  static_assert(N > 0, "Passed zero length printTag");
  183|    426|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 346, False: 80]
  ------------------
  184|    346|    return os << _(td->label_);
  ------------------
  |  |   40|    346|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    426|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     92|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     92|  static_assert(N > 0, "Passed zero length printTag");
  195|     92|  return printTag<N, array>(os, value.toInt64(), data);
  196|     92|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18dngProfileEncodingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     92|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     92|  static_assert(N > 0, "Passed zero length printTag");
  183|     92|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 30]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     92|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     34|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     34|  static_assert(N > 0, "Passed zero length printTag");
  195|     34|  return printTag<N, array>(os, value.toInt64(), data);
  196|     34|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21dngDefaultBlackRenderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 20]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     34|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14dngDepthFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 50]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    146|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13dngDepthUnitsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 26]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     96|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    126|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    126|  static_assert(N > 0, "Passed zero length printTag");
  195|    126|  return printTag<N, array>(os, value.toInt64(), data);
  196|    126|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19dngDepthMeasureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    126|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    126|  static_assert(N > 0, "Passed zero length printTag");
  183|    126|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 104, False: 22]
  ------------------
  184|    104|    return os << _(td->label_);
  ------------------
  |  |   40|    104|#define _(String) (String)
  ------------------
  185|     22|  return os << "(" << value << ")";
  186|    126|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCompositeImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    100|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    100|  static_assert(N > 0, "Passed zero length printTag");
  183|    100|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 68, False: 32]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    100|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSLatitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 76]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    146|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     50|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     50|  static_assert(N > 0, "Passed zero length printTag");
  195|     50|  return printTag<N, array>(os, value.toInt64(), data);
  196|     50|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSLongitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     50|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     50|  static_assert(N > 0, "Passed zero length printTag");
  183|     50|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 30]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     50|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm21ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.22k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.22k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.22k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.22k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm21ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.22k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.22k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.22k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.80k, False: 414]
  ------------------
  184|  1.80k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.80k|#define _(String) (String)
  ------------------
  185|    414|  return os << "(" << value << ")";
  186|  2.22k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    466|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    466|  static_assert(N > 0, "Passed zero length printTag");
  195|    466|  return printTag<N, array>(os, value.toInt64(), data);
  196|    466|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8exifUnitEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    466|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    466|  static_assert(N > 0, "Passed zero length printTag");
  183|    466|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 336, False: 130]
  ------------------
  184|    336|    return os << _(td->label_);
  ------------------
  |  |   40|    336|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    466|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSAltitudeRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 66]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    162|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSStatusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 56]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|     90|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     56|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     56|  static_assert(N > 0, "Passed zero length printTag");
  195|     56|  return printTag<N, array>(os, value.toInt64(), data);
  196|     56|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifGPSMeasureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     56|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     56|  static_assert(N > 0, "Passed zero length printTag");
  183|     56|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 20]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     56|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    252|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    252|  static_assert(N > 0, "Passed zero length printTag");
  195|    252|  return printTag<N, array>(os, value.toInt64(), data);
  196|    252|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGPSSpeedRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    252|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    252|  static_assert(N > 0, "Passed zero length printTag");
  183|    252|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 126, False: 126]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    252|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    174|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    174|  static_assert(N > 0, "Passed zero length printTag");
  195|    174|  return printTag<N, array>(os, value.toInt64(), data);
  196|    174|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22exifGPSDestDistanceRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    174|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    174|  static_assert(N > 0, "Passed zero length printTag");
  183|    174|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 68]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    174|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    228|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    228|  static_assert(N > 0, "Passed zero length printTag");
  195|    228|  return printTag<N, array>(os, value.toInt64(), data);
  196|    228|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifGPSDifferentialEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    228|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    228|  static_assert(N > 0, "Passed zero length printTag");
  183|    228|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 148, False: 80]
  ------------------
  184|    148|    return os << _(td->label_);
  ------------------
  |  |   40|    148|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    228|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.25k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.25k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.25k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.25k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.25k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.25k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.25k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 846, False: 408]
  ------------------
  184|    846|    return os << _(td->label_);
  ------------------
  |  |   40|    846|#define _(String) (String)
  ------------------
  185|    408|  return os << "(" << value << ")";
  186|  1.25k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    310|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    310|  static_assert(N > 0, "Passed zero length printTag");
  195|    310|  return printTag<N, array>(os, value.toInt64(), data);
  196|    310|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifYCbCrPositioningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    310|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    310|  static_assert(N > 0, "Passed zero length printTag");
  183|    310|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 282, False: 28]
  ------------------
  184|    282|    return os << _(td->label_);
  ------------------
  |  |   40|    282|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|    310|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    990|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    990|  static_assert(N > 0, "Passed zero length printTag");
  195|    990|  return printTag<N, array>(os, value.toInt64(), data);
  196|    990|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19exifExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    990|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    990|  static_assert(N > 0, "Passed zero length printTag");
  183|    990|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 820, False: 170]
  ------------------
  184|    820|    return os << _(td->label_);
  ------------------
  |  |   40|    820|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    990|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.02k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.02k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.02k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.02k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.02k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.02k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.02k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.74k, False: 282]
  ------------------
  184|  2.74k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.74k|#define _(String) (String)
  ------------------
  185|    282|  return os << "(" << value << ")";
  186|  3.02k|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    226|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    226|  static_assert(N > 0, "Passed zero length printTag");
  195|    226|  return printTag<N, array>(os, value.toInt64(), data);
  196|    226|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    226|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    226|  static_assert(N > 0, "Passed zero length printTag");
  183|    226|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 202, False: 24]
  ------------------
  184|    202|    return os << _(td->label_);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|    226|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    418|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    418|  static_assert(N > 0, "Passed zero length printTag");
  195|    418|  return printTag<N, array>(os, value.toInt64(), data);
  196|    418|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17exifSensingMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    418|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    418|  static_assert(N > 0, "Passed zero length printTag");
  183|    418|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 342, False: 76]
  ------------------
  184|    342|    return os << _(td->label_);
  ------------------
  |  |   40|    342|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    418|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    200|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    200|  static_assert(N > 0, "Passed zero length printTag");
  195|    200|  return printTag<N, array>(os, value.toInt64(), data);
  196|    200|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifFileSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    200|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    200|  static_assert(N > 0, "Passed zero length printTag");
  183|    200|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 148]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|    148|  return os << "(" << value << ")";
  186|    200|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifSceneTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 82]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|     96|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    198|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    198|  static_assert(N > 0, "Passed zero length printTag");
  195|    198|  return printTag<N, array>(os, value.toInt64(), data);
  196|    198|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifCustomRenderedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    198|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    198|  static_assert(N > 0, "Passed zero length printTag");
  183|    198|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 154, False: 44]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    198|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    354|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    354|  static_assert(N > 0, "Passed zero length printTag");
  195|    354|  return printTag<N, array>(os, value.toInt64(), data);
  196|    354|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    354|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    354|  static_assert(N > 0, "Passed zero length printTag");
  183|    354|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 300, False: 54]
  ------------------
  184|    300|    return os << _(td->label_);
  ------------------
  |  |   40|    300|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    354|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    350|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    350|  static_assert(N > 0, "Passed zero length printTag");
  195|    350|  return printTag<N, array>(os, value.toInt64(), data);
  196|    350|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16exifWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    350|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    350|  static_assert(N > 0, "Passed zero length printTag");
  183|    350|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 182, False: 168]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    350|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    532|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    532|  static_assert(N > 0, "Passed zero length printTag");
  195|    532|  return printTag<N, array>(os, value.toInt64(), data);
  196|    532|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20exifSceneCaptureTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    532|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    532|  static_assert(N > 0, "Passed zero length printTag");
  183|    532|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 284, False: 248]
  ------------------
  184|    284|    return os << _(td->label_);
  ------------------
  |  |   40|    284|#define _(String) (String)
  ------------------
  185|    248|  return os << "(" << value << ")";
  186|    532|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    614|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    614|  static_assert(N > 0, "Passed zero length printTag");
  195|    614|  return printTag<N, array>(os, value.toInt64(), data);
  196|    614|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15exifGainControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    614|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    614|  static_assert(N > 0, "Passed zero length printTag");
  183|    614|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 552, False: 62]
  ------------------
  184|    552|    return os << _(td->label_);
  ------------------
  |  |   40|    552|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    614|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    324|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    324|  static_assert(N > 0, "Passed zero length printTag");
  195|    324|  return printTag<N, array>(os, value.toInt64(), data);
  196|    324|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14exifSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    324|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    324|  static_assert(N > 0, "Passed zero length printTag");
  183|    324|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 172, False: 152]
  ------------------
  184|    172|    return os << _(td->label_);
  ------------------
  |  |   40|    172|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    324|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    218|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    218|  static_assert(N > 0, "Passed zero length printTag");
  195|    218|  return printTag<N, array>(os, value.toInt64(), data);
  196|    218|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24exifSubjectDistanceRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    218|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    218|  static_assert(N > 0, "Passed zero length printTag");
  183|    218|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 98]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    218|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    126|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    126|  static_assert(N > 0, "Passed zero length printTag");
  195|    126|  return printTag<N, array>(os, value.toInt64(), data);
  196|    126|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13exifGPSDirRefEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    126|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    126|  static_assert(N > 0, "Passed zero length printTag");
  183|    126|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 66]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    126|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNormalSoftHardEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    262|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    262|  static_assert(N > 0, "Passed zero length printTag");
  195|    262|  return printTag<N, array>(os, value.toInt64(), data);
  196|    262|}
tags_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18exifNormalSoftHardEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    262|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    262|  static_assert(N > 0, "Passed zero length printTag");
  183|    262|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 254, False: 8]
  ------------------
  184|    254|    return os << _(td->label_);
  ------------------
  |  |   40|    254|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|    262|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     41|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     41|  static_assert(N > 0, "Passed zero length printTag");
  195|     41|  return printTag<N, array>(os, value.toInt64(), data);
  196|     41|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm533ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     41|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     41|  static_assert(N > 0, "Passed zero length printTag");
  183|     41|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 41, False: 0]
  ------------------
  184|     41|    return os << _(td->label_);
  ------------------
  |  |   40|     41|#define _(String) (String)
  ------------------
  185|      0|  return os << "(" << value << ")";
  186|     41|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    258|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    258|  static_assert(N > 0, "Passed zero length printTag");
  195|    258|  return printTag<N, array>(os, value.toInt64(), data);
  196|    258|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm357ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    258|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    258|  static_assert(N > 0, "Passed zero length printTag");
  183|    258|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 138, False: 120]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    258|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    164|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    164|  static_assert(N > 0, "Passed zero length printTag");
  195|    164|  return printTag<N, array>(os, value.toInt64(), data);
  196|    164|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSerialNumberFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    164|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    164|  static_assert(N > 0, "Passed zero length printTag");
  183|    164|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 80]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    164|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    186|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    186|  static_assert(N > 0, "Passed zero length printTag");
  195|    186|  return printTag<N, array>(os, value.toInt64(), data);
  196|    186|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonSuperMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    186|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    186|  static_assert(N > 0, "Passed zero length printTag");
  183|    186|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 92]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    186|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    168|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    168|  static_assert(N > 0, "Passed zero length printTag");
  195|    168|  return printTag<N, array>(os, value.toInt64(), data);
  196|    168|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonDateStampModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    168|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    168|  static_assert(N > 0, "Passed zero length printTag");
  183|    168|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 130, False: 38]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    168|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    156|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    156|  static_assert(N > 0, "Passed zero length printTag");
  195|    156|  return printTag<N, array>(os, value.toInt64(), data);
  196|    156|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    156|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    156|  static_assert(N > 0, "Passed zero length printTag");
  183|    156|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 90]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    156|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.03k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.03k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.03k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.03k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.03k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.03k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.03k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 830, False: 208]
  ------------------
  184|    830|    return os << _(td->label_);
  ------------------
  |  |   40|    830|#define _(String) (String)
  ------------------
  185|    208|  return os << "(" << value << ")";
  186|  1.03k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    318|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    318|  static_assert(N > 0, "Passed zero length printTag");
  195|    318|  return printTag<N, array>(os, value.toInt64(), data);
  196|    318|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonPictureStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    318|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    318|  static_assert(N > 0, "Passed zero length printTag");
  183|    318|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 200, False: 118]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    318|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    398|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    398|  static_assert(N > 0, "Passed zero length printTag");
  195|    398|  return printTag<N, array>(os, value.toInt64(), data);
  196|    398|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonSiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    398|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    398|  static_assert(N > 0, "Passed zero length printTag");
  183|    398|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 130, False: 268]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    268|  return os << "(" << value << ")";
  186|    398|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     22|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     22|  static_assert(N > 0, "Passed zero length printTag");
  195|     22|  return printTag<N, array>(os, value.toInt64(), data);
  196|     22|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonAFMicroAdjModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     22|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     22|  static_assert(N > 0, "Passed zero length printTag");
  183|     22|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 16]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|     22|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    764|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    764|  static_assert(N > 0, "Passed zero length printTag");
  195|    764|  return printTag<N, array>(os, value.toInt64(), data);
  196|    764|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    764|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    764|  static_assert(N > 0, "Passed zero length printTag");
  183|    764|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 656]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    656|  return os << "(" << value << ")";
  186|    764|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    114|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    114|  static_assert(N > 0, "Passed zero length printTag");
  195|    114|  return printTag<N, array>(os, value.toInt64(), data);
  196|    114|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAutoLightingOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    114|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    114|  static_assert(N > 0, "Passed zero length printTag");
  183|    114|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 98]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    114|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    112|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    112|  static_assert(N > 0, "Passed zero length printTag");
  183|    112|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 102]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    112|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 80]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonDigitalLensOptimizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 86]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    104|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    104|  static_assert(N > 0, "Passed zero length printTag");
  195|    104|  return printTag<N, array>(os, value.toInt64(), data);
  196|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonDualPixelRawEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    104|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    104|  static_assert(N > 0, "Passed zero length printTag");
  183|    104|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 88]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    104|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     82|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     82|  static_assert(N > 0, "Passed zero length printTag");
  195|     82|  return printTag<N, array>(os, value.toInt64(), data);
  196|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAmbienceSelectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     82|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     82|  static_assert(N > 0, "Passed zero length printTag");
  183|     82|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 64]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     82|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    200|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    200|  static_assert(N > 0, "Passed zero length printTag");
  195|    200|  return printTag<N, array>(os, value.toInt64(), data);
  196|    200|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonMultiExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    200|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    200|  static_assert(N > 0, "Passed zero length printTag");
  183|    200|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 176]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|    176|  return os << "(" << value << ")";
  186|    200|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    108|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    108|  static_assert(N > 0, "Passed zero length printTag");
  195|    108|  return printTag<N, array>(os, value.toInt64(), data);
  196|    108|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonMultiExposureControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    108|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    108|  static_assert(N > 0, "Passed zero length printTag");
  183|    108|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 98]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    108|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     66|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     66|  static_assert(N > 0, "Passed zero length printTag");
  195|     66|  return printTag<N, array>(os, value.toInt64(), data);
  196|     66|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm1ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonFilterInfoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     66|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     66|  static_assert(N > 0, "Passed zero length printTag");
  183|     66|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 52]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|     66|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     12|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     12|  static_assert(N > 0, "Passed zero length printTag");
  195|     12|  return printTag<N, array>(os, value.toInt64(), data);
  196|     12|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31canonMiniatureFilterOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     12|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     12|  static_assert(N > 0, "Passed zero length printTag");
  183|     12|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 8]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     12|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     56|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     56|  static_assert(N > 0, "Passed zero length printTag");
  195|     56|  return printTag<N, array>(os, value.toInt64(), data);
  196|     56|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8canonHdrEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     56|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     56|  static_assert(N > 0, "Passed zero length printTag");
  183|     56|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 46]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|     56|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     56|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     56|  static_assert(N > 0, "Passed zero length printTag");
  195|     56|  return printTag<N, array>(os, value.toInt64(), data);
  196|     56|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonHdrEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     56|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     56|  static_assert(N > 0, "Passed zero length printTag");
  183|     56|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 46]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|     56|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonAIServoFirstImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 416]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|    416|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAIServoSecondImageEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 382]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|    382|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonUSMLensElectronicMFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 390]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    390|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonAFAssistBeamEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 400]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21canonOneShotAFReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 412]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    412|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAutoAFPointSelEOSiTRAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 414]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    414|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    440|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    440|  static_assert(N > 0, "Passed zero length printTag");
  195|    440|  return printTag<N, array>(os, value.toInt64(), data);
  196|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonLensDriveWhenAFImpossibleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    440|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    440|  static_assert(N > 0, "Passed zero length printTag");
  183|    440|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 384]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    384|  return os << "(" << value << ")";
  186|    440|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonSelectAFAreaSelectionModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 386]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    386|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonAFAreaSelectionMethodEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 398]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    398|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24canonOrientationLinkedAFEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 392]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|    392|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28canonManualAFPointSelPatternEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 394]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    394|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30canonAFPointDisplayDuringFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 400]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27canonAVFDisplayIlluminationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 406]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    406|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    436|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    436|  static_assert(N > 0, "Passed zero length printTag");
  195|    436|  return printTag<N, array>(os, value.toInt64(), data);
  196|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonAFStatusViewfinderEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    436|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    436|  static_assert(N > 0, "Passed zero length printTag");
  183|    436|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 412]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|    412|  return os << "(" << value << ")";
  186|    436|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    384|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    384|  static_assert(N > 0, "Passed zero length printTag");
  195|    384|  return printTag<N, array>(os, value.toInt64(), data);
  196|    384|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26canonInitialAFPointInServoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    384|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    384|  static_assert(N > 0, "Passed zero length printTag");
  183|    384|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 358]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    358|  return os << "(" << value << ")";
  186|    384|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.36k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.36k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.36k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.36k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12canonCsMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.36k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.36k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.36k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 5.33k]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|  5.33k|  return os << "(" << value << ")";
  186|  5.36k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.71k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.71k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.71k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.71k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.71k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.71k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.71k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 526, False: 5.19k]
  ------------------
  184|    526|    return os << _(td->label_);
  ------------------
  |  |   40|    526|#define _(String) (String)
  ------------------
  185|  5.19k|  return os << "(" << value << ")";
  186|  5.71k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.33k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.33k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.33k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.33k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.33k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.33k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.33k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.15k, False: 3.17k]
  ------------------
  184|  2.15k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.15k|#define _(String) (String)
  ------------------
  185|  3.17k|  return os << "(" << value << ")";
  186|  5.33k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.33k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.33k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.33k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.33k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsDriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.33k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.33k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.33k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 472, False: 4.86k]
  ------------------
  184|    472|    return os << _(td->label_);
  ------------------
  |  |   40|    472|#define _(String) (String)
  ------------------
  185|  4.86k|  return os << "(" << value << ")";
  186|  5.33k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.33k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.33k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.33k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.33k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.33k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.33k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.33k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.53k, False: 798]
  ------------------
  184|  4.53k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.53k|#define _(String) (String)
  ------------------
  185|    798|  return os << "(" << value << ")";
  186|  5.33k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonCsRecordModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 178, False: 5.15k]
  ------------------
  184|    178|    return os << _(td->label_);
  ------------------
  |  |   40|    178|#define _(String) (String)
  ------------------
  185|  5.15k|  return os << "(" << value << ")";
  186|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.15k, False: 3.17k]
  ------------------
  184|  2.15k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.15k|#define _(String) (String)
  ------------------
  185|  3.17k|  return os << "(" << value << ")";
  186|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm71ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsEasyModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.79k, False: 530]
  ------------------
  184|  4.79k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.79k|#define _(String) (String)
  ------------------
  185|    530|  return os << "(" << value << ")";
  186|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.32k, False: 1.00k]
  ------------------
  184|  4.32k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.32k|#define _(String) (String)
  ------------------
  185|  1.00k|  return os << "(" << value << ")";
  186|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  15.9k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  15.9k|  static_assert(N > 0, "Passed zero length printTag");
  195|  15.9k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  15.9k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10canonCsLnhEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  15.9k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  15.9k|  static_assert(N > 0, "Passed zero length printTag");
  183|  15.9k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 5.28k, False: 10.6k]
  ------------------
  184|  5.28k|    return os << _(td->label_);
  ------------------
  |  |   40|  5.28k|#define _(String) (String)
  ------------------
  185|  10.6k|  return os << "(" << value << ")";
  186|  15.9k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonCsISOSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.25k, False: 4.07k]
  ------------------
  184|  1.25k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.25k|#define _(String) (String)
  ------------------
  185|  4.07k|  return os << "(" << value << ")";
  186|  5.32k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.31k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.31k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.31k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.31k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonCsMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.31k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.31k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.31k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.77k, False: 3.54k]
  ------------------
  184|  1.77k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.77k|#define _(String) (String)
  ------------------
  185|  3.54k|  return os << "(" << value << ")";
  186|  5.31k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.31k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.31k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.31k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.31k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsFocusTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.31k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.31k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.31k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.80k, False: 2.51k]
  ------------------
  184|  2.80k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.80k|#define _(String) (String)
  ------------------
  185|  2.51k|  return os << "(" << value << ")";
  186|  5.31k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.31k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.31k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.31k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.31k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonCsAfPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.31k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.31k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.31k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 5.27k]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|  5.27k|  return os << "(" << value << ")";
  186|  5.31k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.26k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.26k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.26k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.26k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.26k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.26k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.26k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.54k, False: 1.72k]
  ------------------
  184|  3.54k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.54k|#define _(String) (String)
  ------------------
  185|  1.72k|  return os << "(" << value << ")";
  186|  5.26k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.15k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.15k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.15k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.15k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20canonCsFlashActivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.15k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.15k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.15k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 472, False: 4.68k]
  ------------------
  184|    472|    return os << _(td->label_);
  ------------------
  |  |   40|    472|#define _(String) (String)
  ------------------
  185|  4.68k|  return os << "(" << value << ")";
  186|  5.15k|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonCsFlashDetailsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|  5.14k|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|  5.14k|  static_assert(N > 0, "Passed zero length printTag");
  208|  5.14k|  const auto val = value.toUint32();
  209|  5.14k|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 2.32k, False: 2.82k]
  ------------------
  210|  2.32k|    auto [mask, label] = *array;
  211|  2.32k|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 2.32k]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|  2.32k|  }
  214|  5.14k|  bool sep = false;
  215|  46.3k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 46.3k, False: 5.14k]
  ------------------
  216|  46.3k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 12.8k, False: 33.4k]
  ------------------
  217|  12.8k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 10.0k, False: 2.76k]
  ------------------
  218|  10.0k|        os << ", " << _(label);
  ------------------
  |  |   40|  10.0k|#define _(String) (String)
  ------------------
  219|  10.0k|      } else {
  220|  2.76k|        os << _(label);
  ------------------
  |  |   40|  2.76k|#define _(String) (String)
  ------------------
  221|  2.76k|        sep = true;
  222|  2.76k|      }
  223|  12.8k|    }
  224|  46.3k|  }
  225|  5.14k|  return os;
  226|  5.14k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22canonCsFocusContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.37k, False: 2.72k]
  ------------------
  184|  2.37k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.37k|#define _(String) (String)
  ------------------
  185|  2.72k|  return os << "(" << value << ")";
  186|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.10k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.10k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonCsAESettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.10k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.10k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.10k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.06k, False: 1.03k]
  ------------------
  184|  4.06k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.06k|#define _(String) (String)
  ------------------
  185|  1.03k|  return os << "(" << value << ")";
  186|  5.10k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.09k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.09k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.09k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.09k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25canonCsImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.09k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.09k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.09k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.32k, False: 2.77k]
  ------------------
  184|  2.32k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.32k|#define _(String) (String)
  ------------------
  185|  2.77k|  return os << "(" << value << ")";
  186|  5.09k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.01k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.01k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.01k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.01k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonCsSpotMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.01k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.01k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.01k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.08k, False: 928]
  ------------------
  184|  4.08k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.08k|#define _(String) (String)
  ------------------
  185|    928|  return os << "(" << value << ")";
  186|  5.01k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.01k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.01k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.01k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.01k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsPhotoEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.01k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.01k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.01k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.09k, False: 2.92k]
  ------------------
  184|  2.09k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.09k|#define _(String) (String)
  ------------------
  185|  2.92k|  return os << "(" << value << ")";
  186|  5.01k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  5.59k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  5.59k|  static_assert(N > 0, "Passed zero length printTag");
  195|  5.59k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  5.59k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonCsSRAWQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  5.59k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  5.59k|  static_assert(N > 0, "Passed zero length printTag");
  183|  5.59k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4.30k, False: 1.28k]
  ------------------
  184|  4.30k|    return os << _(td->label_);
  ------------------
  |  |   40|  4.30k|#define _(String) (String)
  ------------------
  185|  1.28k|  return os << "(" << value << ")";
  186|  5.59k|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    360|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    360|  static_assert(N > 0, "Passed zero length printTag");
  195|    360|  return printTag<N, array>(os, value.toInt64(), data);
  196|    360|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11slowShutterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    360|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    360|  static_assert(N > 0, "Passed zero length printTag");
  183|    360|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 72, False: 288]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|    288|  return os << "(" << value << ")";
  186|    360|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    356|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    356|  static_assert(N > 0, "Passed zero length printTag");
  195|    356|  return printTag<N, array>(os, value.toInt64(), data);
  196|    356|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonSiFlashBiasEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    356|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    356|  static_assert(N > 0, "Passed zero length printTag");
  183|    356|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 262]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    262|  return os << "(" << value << ")";
  186|    356|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    356|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    356|  static_assert(N > 0, "Passed zero length printTag");
  195|    356|  return printTag<N, array>(os, value.toInt64(), data);
  196|    356|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22autoExposureBracketingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    356|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    356|  static_assert(N > 0, "Passed zero length printTag");
  183|    356|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 234]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    234|  return os << "(" << value << ")";
  186|    356|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    286|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    286|  static_assert(N > 0, "Passed zero length printTag");
  195|    286|  return printTag<N, array>(os, value.toInt64(), data);
  196|    286|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10cameraTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    286|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    286|  static_assert(N > 0, "Passed zero length printTag");
  183|    286|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 124, False: 162]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|    286|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    274|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    274|  static_assert(N > 0, "Passed zero length printTag");
  195|    274|  return printTag<N, array>(os, value.toInt64(), data);
  196|    274|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10autoRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    274|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    274|  static_assert(N > 0, "Passed zero length printTag");
  183|    274|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 224]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|    224|  return os << "(" << value << ")";
  186|    274|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    274|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    274|  static_assert(N > 0, "Passed zero length printTag");
  195|    274|  return printTag<N, array>(os, value.toInt64(), data);
  196|    274|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8ndRotateEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    274|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    274|  static_assert(N > 0, "Passed zero length printTag");
  183|    274|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 124, False: 150]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    274|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    268|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    268|  static_assert(N > 0, "Passed zero length printTag");
  195|    268|  return printTag<N, array>(os, value.toInt64(), data);
  196|    268|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10selfTimer2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    268|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    268|  static_assert(N > 0, "Passed zero length printTag");
  183|    268|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 172]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    172|  return os << "(" << value << ")";
  186|    268|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     20|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     20|  static_assert(N > 0, "Passed zero length printTag");
  195|     20|  return printTag<N, array>(os, value.toInt64(), data);
  196|     20|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonPaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     20|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     20|  static_assert(N > 0, "Passed zero length printTag");
  183|     20|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 10]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     20|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L19canonPiAFPointsUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    136|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    136|  static_assert(N > 0, "Passed zero length printTag");
  208|    136|  const auto val = value.toUint32();
  209|    136|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 4, False: 132]
  ------------------
  210|      4|    auto [mask, label] = *array;
  211|      4|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 4]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      4|  }
  214|    136|  bool sep = false;
  215|    952|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 952, False: 136]
  ------------------
  216|    952|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 416, False: 536]
  ------------------
  217|    416|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 284, False: 132]
  ------------------
  218|    284|        os << ", " << _(label);
  ------------------
  |  |   40|    284|#define _(String) (String)
  ------------------
  219|    284|      } else {
  220|    132|        os << _(label);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  221|    132|        sep = true;
  222|    132|      }
  223|    416|    }
  224|    952|  }
  225|    136|  return os;
  226|    136|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm9ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L22canonPiAFPointsUsed20DEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    136|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    136|  static_assert(N > 0, "Passed zero length printTag");
  208|    136|  const auto val = value.toUint32();
  209|    136|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 6, False: 130]
  ------------------
  210|      6|    auto [mask, label] = *array;
  211|      6|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 6]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      6|  }
  214|    136|  bool sep = false;
  215|  1.22k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 1.22k, False: 136]
  ------------------
  216|  1.22k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 476, False: 748]
  ------------------
  217|    476|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 348, False: 128]
  ------------------
  218|    348|        os << ", " << _(label);
  ------------------
  |  |   40|    348|#define _(String) (String)
  ------------------
  219|    348|      } else {
  220|    128|        os << _(label);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  221|    128|        sep = true;
  222|    128|      }
  223|    476|    }
  224|  1.22k|  }
  225|    136|  return os;
  226|    136|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    426|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    426|  static_assert(N > 0, "Passed zero length printTag");
  195|    426|  return printTag<N, array>(os, value.toInt64(), data);
  196|    426|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16canonBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    426|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    426|  static_assert(N > 0, "Passed zero length printTag");
  183|    426|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 324]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    324|  return os << "(" << value << ")";
  186|    426|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    372|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    372|  static_assert(N > 0, "Passed zero length printTag");
  195|    372|  return printTag<N, array>(os, value.toInt64(), data);
  196|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm19ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRawJpgSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    372|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    372|  static_assert(N > 0, "Passed zero length printTag");
  183|    372|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 152, False: 220]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|    220|  return os << "(" << value << ")";
  186|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    372|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    372|  static_assert(N > 0, "Passed zero length printTag");
  195|    372|  return printTag<N, array>(os, value.toInt64(), data);
  196|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19canonNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    372|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    372|  static_assert(N > 0, "Passed zero length printTag");
  183|    372|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 90, False: 282]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    282|  return os << "(" << value << ")";
  186|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    372|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    372|  static_assert(N > 0, "Passed zero length printTag");
  195|    372|  return printTag<N, array>(os, value.toInt64(), data);
  196|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18canonWBBracketModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    372|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    372|  static_assert(N > 0, "Passed zero length printTag");
  183|    372|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 262]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    262|  return os << "(" << value << ")";
  186|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    372|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    372|  static_assert(N > 0, "Passed zero length printTag");
  195|    372|  return printTag<N, array>(os, value.toInt64(), data);
  196|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonFilterEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    372|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    372|  static_assert(N > 0, "Passed zero length printTag");
  183|    372|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 92, False: 280]
  ------------------
  184|     92|    return os << _(td->label_);
  ------------------
  |  |   40|     92|#define _(String) (String)
  ------------------
  185|    280|  return os << "(" << value << ")";
  186|    372|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    356|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    356|  static_assert(N > 0, "Passed zero length printTag");
  195|    356|  return printTag<N, array>(os, value.toInt64(), data);
  196|    356|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonToningEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    356|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    356|  static_assert(N > 0, "Passed zero length printTag");
  183|    356|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 96, False: 260]
  ------------------
  184|     96|    return os << _(td->label_);
  ------------------
  |  |   40|     96|#define _(String) (String)
  ------------------
  185|    260|  return os << "(" << value << ")";
  186|    356|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    186|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    186|  static_assert(N > 0, "Passed zero length printTag");
  195|    186|  return printTag<N, array>(os, value.toInt64(), data);
  196|    186|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15canonRFLensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    186|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    186|  static_assert(N > 0, "Passed zero length printTag");
  183|    186|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 148]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|    148|  return os << "(" << value << ")";
  186|    186|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14canonToneCurveEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     42|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     42|  static_assert(N > 0, "Passed zero length printTag");
  183|     42|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 28]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     42|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23canonSharpnessFrequencyEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     42|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     42|  static_assert(N > 0, "Passed zero length printTag");
  183|     42|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 14, False: 28]
  ------------------
  184|     14|    return os << _(td->label_);
  ------------------
  |  |   40|     14|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     42|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
canonmn_int.cpp:_ZN5Exiv28Internal8printTagILm35ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17canonTimeZoneCityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    270|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    270|  static_assert(N > 0, "Passed zero length printTag");
  183|    270|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 186]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|    186|  return os << "(" << value << ")";
  186|    270|}
canonmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm3ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L18canonSiAFPointUsedEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    314|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    314|  static_assert(N > 0, "Passed zero length printTag");
  208|    314|  const auto val = value.toUint32();
  209|    314|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 0, False: 314]
  ------------------
  210|      0|    auto [mask, label] = *array;
  211|      0|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 0]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|      0|  }
  214|    314|  bool sep = false;
  215|    942|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 942, False: 314]
  ------------------
  216|    942|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 420, False: 522]
  ------------------
  217|    420|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 202, False: 218]
  ------------------
  218|    202|        os << ", " << _(label);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  219|    218|      } else {
  220|    218|        os << _(label);
  ------------------
  |  |   40|    218|#define _(String) (String)
  ------------------
  221|    218|        sep = true;
  222|    218|      }
  223|    420|    }
  224|    942|  }
  225|    314|  return os;
  226|    314|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    620|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    620|  static_assert(N > 0, "Passed zero length printTag");
  195|    620|  return printTag<N, array>(os, value.toInt64(), data);
  196|    620|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casioRecordingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    620|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    620|  static_assert(N > 0, "Passed zero length printTag");
  183|    620|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 436, False: 184]
  ------------------
  184|    436|    return os << _(td->label_);
  ------------------
  |  |   40|    436|#define _(String) (String)
  ------------------
  185|    184|  return os << "(" << value << ")";
  186|    620|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    240|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    240|  static_assert(N > 0, "Passed zero length printTag");
  195|    240|  return printTag<N, array>(os, value.toInt64(), data);
  196|    240|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casioQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    240|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    240|  static_assert(N > 0, "Passed zero length printTag");
  183|    240|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 154]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    240|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    228|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    228|  static_assert(N > 0, "Passed zero length printTag");
  195|    228|  return printTag<N, array>(os, value.toInt64(), data);
  196|    228|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    228|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    228|  static_assert(N > 0, "Passed zero length printTag");
  183|    228|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 120]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    228|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    446|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    446|  static_assert(N > 0, "Passed zero length printTag");
  195|    446|  return printTag<N, array>(os, value.toInt64(), data);
  196|    446|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    446|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    446|  static_assert(N > 0, "Passed zero length printTag");
  183|    446|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 288, False: 158]
  ------------------
  184|    288|    return os << _(td->label_);
  ------------------
  |  |   40|    288|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    446|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    694|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    694|  static_assert(N > 0, "Passed zero length printTag");
  195|    694|  return printTag<N, array>(os, value.toInt64(), data);
  196|    694|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioFlashIntensityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    694|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    694|  static_assert(N > 0, "Passed zero length printTag");
  183|    694|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 234, False: 460]
  ------------------
  184|    234|    return os << _(td->label_);
  ------------------
  |  |   40|    234|#define _(String) (String)
  ------------------
  185|    460|  return os << "(" << value << ")";
  186|    694|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    788|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    788|  static_assert(N > 0, "Passed zero length printTag");
  195|    788|  return printTag<N, array>(os, value.toInt64(), data);
  196|    788|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casioWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    788|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    788|  static_assert(N > 0, "Passed zero length printTag");
  183|    788|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 480, False: 308]
  ------------------
  184|    480|    return os << _(td->label_);
  ------------------
  |  |   40|    480|#define _(String) (String)
  ------------------
  185|    308|  return os << "(" << value << ")";
  186|    788|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    160|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    160|  static_assert(N > 0, "Passed zero length printTag");
  195|    160|  return printTag<N, array>(os, value.toInt64(), data);
  196|    160|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioDigitalZoomEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    160|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    160|  static_assert(N > 0, "Passed zero length printTag");
  183|    160|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 54]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|    160|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casioSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 56]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    162|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    286|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    286|  static_assert(N > 0, "Passed zero length printTag");
  195|    286|  return printTag<N, array>(os, value.toInt64(), data);
  196|    286|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casioContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    286|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    286|  static_assert(N > 0, "Passed zero length printTag");
  183|    286|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 222, False: 64]
  ------------------
  184|    222|    return os << _(td->label_);
  ------------------
  |  |   40|    222|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    286|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    716|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    716|  static_assert(N > 0, "Passed zero length printTag");
  195|    716|  return printTag<N, array>(os, value.toInt64(), data);
  196|    716|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casioSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    716|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    716|  static_assert(N > 0, "Passed zero length printTag");
  183|    716|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 372, False: 344]
  ------------------
  184|    372|    return os << _(td->label_);
  ------------------
  |  |   40|    372|#define _(String) (String)
  ------------------
  185|    344|  return os << "(" << value << ")";
  186|    716|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    322|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    322|  static_assert(N > 0, "Passed zero length printTag");
  195|    322|  return printTag<N, array>(os, value.toInt64(), data);
  196|    322|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioEnhancementEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    322|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    322|  static_assert(N > 0, "Passed zero length printTag");
  183|    322|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 154, False: 168]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|    168|  return os << "(" << value << ")";
  186|    322|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    324|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    324|  static_assert(N > 0, "Passed zero length printTag");
  195|    324|  return printTag<N, array>(os, value.toInt64(), data);
  196|    324|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casioColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    324|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    324|  static_assert(N > 0, "Passed zero length printTag");
  183|    324|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 212, False: 112]
  ------------------
  184|    212|    return os << _(td->label_);
  ------------------
  |  |   40|    212|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    324|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    268|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    268|  static_assert(N > 0, "Passed zero length printTag");
  195|    268|  return printTag<N, array>(os, value.toInt64(), data);
  196|    268|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20casioFlashIntensity2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    268|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    268|  static_assert(N > 0, "Passed zero length printTag");
  183|    268|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 172, False: 96]
  ------------------
  184|    172|    return os << _(td->label_);
  ------------------
  |  |   40|    172|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    268|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    164|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    164|  static_assert(N > 0, "Passed zero length printTag");
  195|    164|  return printTag<N, array>(os, value.toInt64(), data);
  196|    164|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casioCCDSensitivityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    164|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    164|  static_assert(N > 0, "Passed zero length printTag");
  183|    164|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 44]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|    164|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    192|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    192|  static_assert(N > 0, "Passed zero length printTag");
  195|    192|  return printTag<N, array>(os, value.toInt64(), data);
  196|    192|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2QualityModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    192|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    192|  static_assert(N > 0, "Passed zero length printTag");
  183|    192|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 90, False: 102]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    192|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    398|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    398|  static_assert(N > 0, "Passed zero length printTag");
  195|    398|  return printTag<N, array>(os, value.toInt64(), data);
  196|    398|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    398|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    398|  static_assert(N > 0, "Passed zero length printTag");
  183|    398|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 342, False: 56]
  ------------------
  184|    342|    return os << _(td->label_);
  ------------------
  |  |   40|    342|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    398|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2FocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 46]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    144|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    248|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    248|  static_assert(N > 0, "Passed zero length printTag");
  195|    248|  return printTag<N, array>(os, value.toInt64(), data);
  196|    248|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2IsoSpeedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    248|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    248|  static_assert(N > 0, "Passed zero length printTag");
  183|    248|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 154]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    248|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    310|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    310|  static_assert(N > 0, "Passed zero length printTag");
  195|    310|  return printTag<N, array>(os, value.toInt64(), data);
  196|    310|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    310|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    310|  static_assert(N > 0, "Passed zero length printTag");
  183|    310|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 238, False: 72]
  ------------------
  184|    238|    return os << _(td->label_);
  ------------------
  |  |   40|    238|#define _(String) (String)
  ------------------
  185|     72|  return os << "(" << value << ")";
  186|    310|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    288|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    288|  static_assert(N > 0, "Passed zero length printTag");
  195|    288|  return printTag<N, array>(os, value.toInt64(), data);
  196|    288|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2SaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    288|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    288|  static_assert(N > 0, "Passed zero length printTag");
  183|    288|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 172, False: 116]
  ------------------
  184|    172|    return os << _(td->label_);
  ------------------
  |  |   40|    172|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    288|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    184|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    184|  static_assert(N > 0, "Passed zero length printTag");
  195|    184|  return printTag<N, array>(os, value.toInt64(), data);
  196|    184|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14casio2ContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    184|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    184|  static_assert(N > 0, "Passed zero length printTag");
  183|    184|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 146, False: 38]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    184|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    242|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    242|  static_assert(N > 0, "Passed zero length printTag");
  195|    242|  return printTag<N, array>(os, value.toInt64(), data);
  196|    242|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2SharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    242|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    242|  static_assert(N > 0, "Passed zero length printTag");
  183|    242|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 182, False: 60]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    242|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    386|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    386|  static_assert(N > 0, "Passed zero length printTag");
  195|    386|  return printTag<N, array>(os, value.toInt64(), data);
  196|    386|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19casio2WhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    386|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    386|  static_assert(N > 0, "Passed zero length printTag");
  183|    386|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 290, False: 96]
  ------------------
  184|    290|    return os << _(td->label_);
  ------------------
  |  |   40|    290|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    386|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    188|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    188|  static_assert(N > 0, "Passed zero length printTag");
  195|    188|  return printTag<N, array>(os, value.toInt64(), data);
  196|    188|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    188|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    188|  static_assert(N > 0, "Passed zero length printTag");
  183|    188|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 126, False: 62]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    188|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2QualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 78]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    162|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    208|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    208|  static_assert(N > 0, "Passed zero length printTag");
  195|    208|  return printTag<N, array>(os, value.toInt64(), data);
  196|    208|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16casio2FocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    208|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    208|  static_assert(N > 0, "Passed zero length printTag");
  183|    208|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 158, False: 50]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    208|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2AutoISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 76, False: 70]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    146|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    238|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    238|  static_assert(N > 0, "Passed zero length printTag");
  195|    238|  return printTag<N, array>(os, value.toInt64(), data);
  196|    238|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12casio2AFModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    238|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    238|  static_assert(N > 0, "Passed zero length printTag");
  183|    238|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 196, False: 42]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    238|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     66|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     66|  static_assert(N > 0, "Passed zero length printTag");
  195|     66|  return printTag<N, array>(os, value.toInt64(), data);
  196|     66|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2ColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     66|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     66|  static_assert(N > 0, "Passed zero length printTag");
  183|     66|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 16]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|     66|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2EnhancementEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 14]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     96|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17casio2ColorFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 20]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     90|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    622|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    622|  static_assert(N > 0, "Passed zero length printTag");
  195|    622|  return printTag<N, array>(os, value.toInt64(), data);
  196|    622|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13casio2ArtModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    622|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    622|  static_assert(N > 0, "Passed zero length printTag");
  183|    622|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 556, False: 66]
  ------------------
  184|    556|    return os << _(td->label_);
  ------------------
  |  |   40|    556|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    622|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2LightingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 78]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    124|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    212|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    212|  static_assert(N > 0, "Passed zero length printTag");
  195|    212|  return printTag<N, array>(os, value.toInt64(), data);
  196|    212|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21casio2PortraitRefinerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    212|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    212|  static_assert(N > 0, "Passed zero length printTag");
  183|    212|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 142, False: 70]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    212|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    190|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    190|  static_assert(N > 0, "Passed zero length printTag");
  195|    190|  return printTag<N, array>(os, value.toInt64(), data);
  196|    190|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26casio2SpecialEffectSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    190|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    190|  static_assert(N > 0, "Passed zero length printTag");
  183|    190|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 158, False: 32]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|    190|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    390|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    390|  static_assert(N > 0, "Passed zero length printTag");
  195|    390|  return printTag<N, array>(os, value.toInt64(), data);
  196|    390|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15casio2DriveModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    390|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    390|  static_assert(N > 0, "Passed zero length printTag");
  183|    390|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 360, False: 30]
  ------------------
  184|    360|    return os << _(td->label_);
  ------------------
  |  |   40|    360|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    390|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
casiomn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18casio2VideoQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 34]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     90|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    230|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    230|  static_assert(N > 0, "Passed zero length printTag");
  195|    230|  return printTag<N, array>(os, value.toInt64(), data);
  196|    230|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    230|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    230|  static_assert(N > 0, "Passed zero length printTag");
  183|    230|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 102]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    102|  return os << "(" << value << ")";
  186|    230|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    934|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    934|  static_assert(N > 0, "Passed zero length printTag");
  195|    934|  return printTag<N, array>(os, value.toInt64(), data);
  196|    934|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    934|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    934|  static_assert(N > 0, "Passed zero length printTag");
  183|    934|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 494, False: 440]
  ------------------
  184|    494|    return os << _(td->label_);
  ------------------
  |  |   40|    494|#define _(String) (String)
  ------------------
  185|    440|  return os << "(" << value << ")";
  186|    934|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    530|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    530|  static_assert(N > 0, "Passed zero length printTag");
  195|    530|  return printTag<N, array>(os, value.toInt64(), data);
  196|    530|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    530|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    530|  static_assert(N > 0, "Passed zero length printTag");
  183|    530|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 192, False: 338]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|    338|  return os << "(" << value << ")";
  186|    530|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    360|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    360|  static_assert(N > 0, "Passed zero length printTag");
  195|    360|  return printTag<N, array>(os, value.toInt64(), data);
  196|    360|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L8fujiToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    360|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    360|  static_assert(N > 0, "Passed zero length printTag");
  183|    360|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 260]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    260|  return os << "(" << value << ")";
  186|    360|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    302|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    302|  static_assert(N > 0, "Passed zero length printTag");
  195|    302|  return printTag<N, array>(os, value.toInt64(), data);
  196|    302|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    302|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    302|  static_assert(N > 0, "Passed zero length printTag");
  183|    302|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 204]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    204|  return os << "(" << value << ")";
  186|    302|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    252|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    252|  static_assert(N > 0, "Passed zero length printTag");
  195|    252|  return printTag<N, array>(os, value.toInt64(), data);
  196|    252|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    252|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    252|  static_assert(N > 0, "Passed zero length printTag");
  183|    252|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 206]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    252|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    286|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    286|  static_assert(N > 0, "Passed zero length printTag");
  195|    286|  return printTag<N, array>(os, value.toInt64(), data);
  196|    286|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiHighIsoNREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    286|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    286|  static_assert(N > 0, "Passed zero length printTag");
  183|    286|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 112, False: 174]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|    286|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    358|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    358|  static_assert(N > 0, "Passed zero length printTag");
  195|    358|  return printTag<N, array>(os, value.toInt64(), data);
  196|    358|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiClarityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    358|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    358|  static_assert(N > 0, "Passed zero length printTag");
  183|    358|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 312]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    312|  return os << "(" << value << ")";
  186|    358|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    290|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    290|  static_assert(N > 0, "Passed zero length printTag");
  195|    290|  return printTag<N, array>(os, value.toInt64(), data);
  196|    290|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    290|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    290|  static_assert(N > 0, "Passed zero length printTag");
  183|    290|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 162]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    162|  return os << "(" << value << ")";
  186|    290|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    254|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    254|  static_assert(N > 0, "Passed zero length printTag");
  195|    254|  return printTag<N, array>(os, value.toInt64(), data);
  196|    254|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9fujiOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    254|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    254|  static_assert(N > 0, "Passed zero length printTag");
  183|    254|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 176]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    176|  return os << "(" << value << ")";
  186|    254|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    128|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    128|  static_assert(N > 0, "Passed zero length printTag");
  183|    128|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 74]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    128|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13fujiFocusAreaEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    276|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    276|  static_assert(N > 0, "Passed zero length printTag");
  183|    276|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 88, False: 188]
  ------------------
  184|     88|    return os << _(td->label_);
  ------------------
  |  |   40|     88|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    276|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.06k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.06k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.06k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.06k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.06k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.06k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.06k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.69k, False: 370]
  ------------------
  184|  1.69k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.69k|#define _(String) (String)
  ------------------
  185|    370|  return os << "(" << value << ")";
  186|  2.06k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11fujiExrModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 100]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    142|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    544|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    544|  static_assert(N > 0, "Passed zero length printTag");
  195|    544|  return printTag<N, array>(os, value.toInt64(), data);
  196|    544|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10fujiSHToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    544|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    544|  static_assert(N > 0, "Passed zero length printTag");
  183|    544|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 338, False: 206]
  ------------------
  184|    338|    return os << _(td->label_);
  ------------------
  |  |   40|    338|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    544|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    354|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    354|  static_assert(N > 0, "Passed zero length printTag");
  195|    354|  return printTag<N, array>(os, value.toInt64(), data);
  196|    354|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiOff0Weak32Strong64EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    354|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    354|  static_assert(N > 0, "Passed zero length printTag");
  183|    354|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 232]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    232|  return os << "(" << value << ")";
  186|    354|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    194|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    194|  static_assert(N > 0, "Passed zero length printTag");
  195|    194|  return printTag<N, array>(os, value.toInt64(), data);
  196|    194|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiCropModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    194|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    194|  static_assert(N > 0, "Passed zero length printTag");
  183|    194|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 138, False: 56]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    194|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    364|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    364|  static_assert(N > 0, "Passed zero length printTag");
  195|    364|  return printTag<N, array>(os, value.toInt64(), data);
  196|    364|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15fujiShutterTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    364|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    364|  static_assert(N > 0, "Passed zero length printTag");
  183|    364|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 294, False: 70]
  ------------------
  184|    294|    return os << _(td->label_);
  ------------------
  |  |   40|    294|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    364|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    272|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    272|  static_assert(N > 0, "Passed zero length printTag");
  195|    272|  return printTag<N, array>(os, value.toInt64(), data);
  196|    272|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14fujiContinuousEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    272|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    272|  static_assert(N > 0, "Passed zero length printTag");
  183|    272|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 220, False: 52]
  ------------------
  184|    220|    return os << _(td->label_);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    272|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    198|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    198|  static_assert(N > 0, "Passed zero length printTag");
  195|    198|  return printTag<N, array>(os, value.toInt64(), data);
  196|    198|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21fujiPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    198|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    198|  static_assert(N > 0, "Passed zero length printTag");
  183|    198|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 98]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    198|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    758|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    758|  static_assert(N > 0, "Passed zero length printTag");
  195|    758|  return printTag<N, array>(os, value.toInt64(), data);
  196|    758|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiAdvancedFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    758|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    758|  static_assert(N > 0, "Passed zero length printTag");
  183|    758|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 198, False: 560]
  ------------------
  184|    198|    return os << _(td->label_);
  ------------------
  |  |   40|    198|#define _(String) (String)
  ------------------
  185|    560|  return os << "(" << value << ")";
  186|    758|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     92|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     92|  static_assert(N > 0, "Passed zero length printTag");
  195|     92|  return printTag<N, array>(os, value.toInt64(), data);
  196|     92|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiFinePixColorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     92|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     92|  static_assert(N > 0, "Passed zero length printTag");
  183|     92|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 48]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     92|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    318|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    318|  static_assert(N > 0, "Passed zero length printTag");
  195|    318|  return printTag<N, array>(os, value.toInt64(), data);
  196|    318|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16fujiDynamicRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    318|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    318|  static_assert(N > 0, "Passed zero length printTag");
  183|    318|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 292]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    292|  return os << "(" << value << ")";
  186|    318|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.29k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.29k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.29k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.29k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm16ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12fujiFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.29k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.29k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.29k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 810, False: 482]
  ------------------
  184|    810|    return os << _(td->label_);
  ------------------
  |  |   40|    810|#define _(String) (String)
  ------------------
  185|    482|  return os << "(" << value << ")";
  186|  1.29k|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    346|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    346|  static_assert(N > 0, "Passed zero length printTag");
  195|    346|  return printTag<N, array>(os, value.toInt64(), data);
  196|    346|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDynamicRangeSettingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    346|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    346|  static_assert(N > 0, "Passed zero length printTag");
  183|    346|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 158, False: 188]
  ------------------
  184|    158|    return os << _(td->label_);
  ------------------
  |  |   40|    158|#define _(String) (String)
  ------------------
  185|    188|  return os << "(" << value << ")";
  186|    346|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    680|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    680|  static_assert(N > 0, "Passed zero length printTag");
  195|    680|  return printTag<N, array>(os, value.toInt64(), data);
  196|    680|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20fujiSceneRecognitionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    680|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    680|  static_assert(N > 0, "Passed zero length printTag");
  183|    680|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 248, False: 432]
  ------------------
  184|    248|    return os << _(td->label_);
  ------------------
  |  |   40|    248|#define _(String) (String)
  ------------------
  185|    432|  return os << "(" << value << ")";
  186|    680|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19fujiImageGenerationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 28]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|     62|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     80|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     80|  static_assert(N > 0, "Passed zero length printTag");
  195|     80|  return printTag<N, array>(os, value.toInt64(), data);
  196|     80|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18fujiDRangePriorityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     80|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     80|  static_assert(N > 0, "Passed zero length printTag");
  183|     80|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 6]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     80|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    148|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    148|  static_assert(N > 0, "Passed zero length printTag");
  195|    148|  return printTag<N, array>(os, value.toInt64(), data);
  196|    148|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23fujiDRangePriorityFixedEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    148|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    148|  static_assert(N > 0, "Passed zero length printTag");
  183|    148|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 114]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    148|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     48|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     48|  static_assert(N > 0, "Passed zero length printTag");
  195|     48|  return printTag<N, array>(os, value.toInt64(), data);
  196|     48|}
fujimn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22fujiDRangePriorityAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     48|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     48|  static_assert(N > 0, "Passed zero length printTag");
  183|     48|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 18]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     48|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    594|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    594|  static_assert(N > 0, "Passed zero length printTag");
  195|    594|  return printTag<N, array>(os, value.toInt64(), data);
  196|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16minoltaColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    594|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    594|  static_assert(N > 0, "Passed zero length printTag");
  183|    594|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 428, False: 166]
  ------------------
  184|    428|    return os << _(td->label_);
  ------------------
  |  |   40|    428|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    594|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    622|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    622|  static_assert(N > 0, "Passed zero length printTag");
  195|    622|  return printTag<N, array>(os, value.toInt64(), data);
  196|    622|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    622|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    622|  static_assert(N > 0, "Passed zero length printTag");
  183|    622|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 470, False: 152]
  ------------------
  184|    470|    return os << _(td->label_);
  ------------------
  |  |   40|    470|#define _(String) (String)
  ------------------
  185|    152|  return os << "(" << value << ")";
  186|    622|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     80|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     80|  static_assert(N > 0, "Passed zero length printTag");
  195|     80|  return printTag<N, array>(os, value.toInt64(), data);
  196|     80|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25minoltaImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     80|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     80|  static_assert(N > 0, "Passed zero length printTag");
  183|     80|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 40]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     80|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    630|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    630|  static_assert(N > 0, "Passed zero length printTag");
  195|    630|  return printTag<N, array>(os, value.toInt64(), data);
  196|    630|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28minoltaWhiteBalanceStd0x0115EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    630|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    630|  static_assert(N > 0, "Passed zero length printTag");
  183|    630|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 516, False: 114]
  ------------------
  184|    516|    return os << _(td->label_);
  ------------------
  |  |   40|    516|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    630|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaExposureModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 614]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    614|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFlashModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 520]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    520|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 564]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    564|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaImageSizeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 576]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    576|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaImageQualityStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 170, False: 472]
  ------------------
  184|    170|    return os << _(td->label_);
  ------------------
  |  |   40|    170|#define _(String) (String)
  ------------------
  185|    472|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 64, False: 578]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    578|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    642|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    642|  static_assert(N > 0, "Passed zero length printTag");
  195|    642|  return printTag<N, array>(os, value.toInt64(), data);
  196|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaMeteringModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    642|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    642|  static_assert(N > 0, "Passed zero length printTag");
  183|    642|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 588]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|    588|  return os << "(" << value << ")";
  186|    642|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    602|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    602|  static_assert(N > 0, "Passed zero length printTag");
  195|    602|  return printTag<N, array>(os, value.toInt64(), data);
  196|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDigitalZoomStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    602|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    602|  static_assert(N > 0, "Passed zero length printTag");
  183|    602|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 64, False: 538]
  ------------------
  184|     64|    return os << _(td->label_);
  ------------------
  |  |   40|     64|#define _(String) (String)
  ------------------
  185|    538|  return os << "(" << value << ")";
  186|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    602|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    602|  static_assert(N > 0, "Passed zero length printTag");
  195|    602|  return printTag<N, array>(os, value.toInt64(), data);
  196|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaBracketStepStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    602|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    602|  static_assert(N > 0, "Passed zero length printTag");
  183|    602|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 48, False: 554]
  ------------------
  184|     48|    return os << _(td->label_);
  ------------------
  |  |   40|     48|#define _(String) (String)
  ------------------
  185|    554|  return os << "(" << value << ")";
  186|    602|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.40k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.40k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.40k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.40k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.40k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.40k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.40k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 188, False: 1.21k]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|  1.21k|  return os << "(" << value << ")";
  186|  1.40k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    578|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    578|  static_assert(N > 0, "Passed zero length printTag");
  195|    578|  return printTag<N, array>(os, value.toInt64(), data);
  196|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSharpnessStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    578|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    578|  static_assert(N > 0, "Passed zero length printTag");
  183|    578|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 504]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    504|  return os << "(" << value << ")";
  186|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    578|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    578|  static_assert(N > 0, "Passed zero length printTag");
  195|    578|  return printTag<N, array>(os, value.toInt64(), data);
  196|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24minoltaSubjectProgramStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    578|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    578|  static_assert(N > 0, "Passed zero length printTag");
  183|    578|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 504]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    504|  return os << "(" << value << ")";
  186|    578|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    568|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    568|  static_assert(N > 0, "Passed zero length printTag");
  195|    568|  return printTag<N, array>(os, value.toInt64(), data);
  196|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaISOSettingStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    568|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    568|  static_assert(N > 0, "Passed zero length printTag");
  183|    568|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 68, False: 500]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|    500|  return os << "(" << value << ")";
  186|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    568|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    568|  static_assert(N > 0, "Passed zero length printTag");
  195|    568|  return printTag<N, array>(os, value.toInt64(), data);
  196|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaModelStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    568|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    568|  static_assert(N > 0, "Passed zero length printTag");
  183|    568|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 490]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    490|  return os << "(" << value << ")";
  186|    568|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    564|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    564|  static_assert(N > 0, "Passed zero length printTag");
  195|    564|  return printTag<N, array>(os, value.toInt64(), data);
  196|    564|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaIntervalModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    564|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    564|  static_assert(N > 0, "Passed zero length printTag");
  183|    564|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 504]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|    504|  return os << "(" << value << ")";
  186|    564|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    564|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    564|  static_assert(N > 0, "Passed zero length printTag");
  195|    564|  return printTag<N, array>(os, value.toInt64(), data);
  196|    564|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaFolderNameStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    564|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    564|  static_assert(N > 0, "Passed zero length printTag");
  183|    564|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 530]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    530|  return os << "(" << value << ")";
  186|    564|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    564|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    564|  static_assert(N > 0, "Passed zero length printTag");
  195|    564|  return printTag<N, array>(os, value.toInt64(), data);
  196|    564|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    564|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    564|  static_assert(N > 0, "Passed zero length printTag");
  183|    564|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 480]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|    480|  return os << "(" << value << ")";
  186|    564|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    560|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    560|  static_assert(N > 0, "Passed zero length printTag");
  195|    560|  return printTag<N, array>(os, value.toInt64(), data);
  196|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaWideFocusZoneStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    560|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    560|  static_assert(N > 0, "Passed zero length printTag");
  183|    560|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 504]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|    504|  return os << "(" << value << ")";
  186|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    624|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    624|  static_assert(N > 0, "Passed zero length printTag");
  195|    624|  return printTag<N, array>(os, value.toInt64(), data);
  196|    624|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    624|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    624|  static_assert(N > 0, "Passed zero length printTag");
  183|    624|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 578]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    578|  return os << "(" << value << ")";
  186|    624|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    560|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    560|  static_assert(N > 0, "Passed zero length printTag");
  195|    560|  return printTag<N, array>(os, value.toInt64(), data);
  196|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaFocusAreaStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    560|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    560|  static_assert(N > 0, "Passed zero length printTag");
  183|    560|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 42, False: 518]
  ------------------
  184|     42|    return os << _(td->label_);
  ------------------
  |  |   40|     42|#define _(String) (String)
  ------------------
  185|    518|  return os << "(" << value << ")";
  186|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    560|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    560|  static_assert(N > 0, "Passed zero length printTag");
  195|    560|  return printTag<N, array>(os, value.toInt64(), data);
  196|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDECPositionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    560|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    560|  static_assert(N > 0, "Passed zero length printTag");
  183|    560|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 476]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|    476|  return os << "(" << value << ")";
  186|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    560|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    560|  static_assert(N > 0, "Passed zero length printTag");
  195|    560|  return printTag<N, array>(os, value.toInt64(), data);
  196|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaColorProfileStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    560|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    560|  static_assert(N > 0, "Passed zero length printTag");
  183|    560|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 66, False: 494]
  ------------------
  184|     66|    return os << _(td->label_);
  ------------------
  |  |   40|     66|#define _(String) (String)
  ------------------
  185|    494|  return os << "(" << value << ")";
  186|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    560|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    560|  static_assert(N > 0, "Passed zero length printTag");
  195|    560|  return printTag<N, array>(os, value.toInt64(), data);
  196|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaDataImprintStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    560|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    560|  static_assert(N > 0, "Passed zero length printTag");
  183|    560|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 90, False: 470]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    470|  return os << "(" << value << ")";
  186|    560|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    616|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    616|  static_assert(N > 0, "Passed zero length printTag");
  195|    616|  return printTag<N, array>(os, value.toInt64(), data);
  196|    616|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaFlashMeteringStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    616|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    616|  static_assert(N > 0, "Passed zero length printTag");
  183|    616|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 510]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|    510|  return os << "(" << value << ")";
  186|    616|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    128|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    128|  static_assert(N > 0, "Passed zero length printTag");
  195|    128|  return printTag<N, array>(os, value.toInt64(), data);
  196|    128|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    128|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    128|  static_assert(N > 0, "Passed zero length printTag");
  183|    128|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 92]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    128|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 88]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 90]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 70]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     70|  return os << "(" << value << ")";
  186|    122|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusMode7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 88]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    122|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    120|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    120|  static_assert(N > 0, "Passed zero length printTag");
  195|    120|  return printTag<N, array>(os, value.toInt64(), data);
  196|    120|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaAFPoints7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    120|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    120|  static_assert(N > 0, "Passed zero length printTag");
  183|    120|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 96]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    120|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 56]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|     90|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     78|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     78|  static_assert(N > 0, "Passed zero length printTag");
  195|     78|  return printTag<N, array>(os, value.toInt64(), data);
  196|     78|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     78|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     78|  static_assert(N > 0, "Passed zero length printTag");
  183|     78|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 50]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     78|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation7DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 50]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    278|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    278|  static_assert(N > 0, "Passed zero length printTag");
  195|    278|  return printTag<N, array>(os, value.toInt64(), data);
  196|    278|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaExposureMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    278|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    278|  static_assert(N > 0, "Passed zero length printTag");
  183|    278|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 62, False: 216]
  ------------------
  184|     62|    return os << _(td->label_);
  ------------------
  |  |   40|     62|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    278|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    130|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    130|  static_assert(N > 0, "Passed zero length printTag");
  195|    130|  return printTag<N, array>(os, value.toInt64(), data);
  196|    130|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaImageSize5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    130|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    130|  static_assert(N > 0, "Passed zero length printTag");
  183|    130|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 84]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    130|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    130|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    130|  static_assert(N > 0, "Passed zero length printTag");
  195|    130|  return printTag<N, array>(os, value.toInt64(), data);
  196|    130|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaImageQuality5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    130|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    130|  static_assert(N > 0, "Passed zero length printTag");
  183|    130|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 94]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    130|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaWhiteBalance5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    276|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    276|  static_assert(N > 0, "Passed zero length printTag");
  183|    276|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 98, False: 178]
  ------------------
  184|     98|    return os << _(td->label_);
  ------------------
  |  |   40|     98|#define _(String) (String)
  ------------------
  185|    178|  return os << "(" << value << ")";
  186|    276|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaFocusPosition5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 92]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18minoltaFocusArea5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 90]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaMeteringMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 94]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaISOSetting5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 86]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     86|  return os << "(" << value << ")";
  186|    124|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     92|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     92|  static_assert(N > 0, "Passed zero length printTag");
  195|     92|  return printTag<N, array>(os, value.toInt64(), data);
  196|     92|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaColorSpace5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     92|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     92|  static_assert(N > 0, "Passed zero length printTag");
  183|     92|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 64]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     92|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     64|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     64|  static_assert(N > 0, "Passed zero length printTag");
  195|     64|  return printTag<N, array>(os, value.toInt64(), data);
  196|     64|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaRotation5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     64|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     64|  static_assert(N > 0, "Passed zero length printTag");
  183|     64|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 54]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     54|  return os << "(" << value << ")";
  186|     64|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     64|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     64|  static_assert(N > 0, "Passed zero length printTag");
  195|     64|  return printTag<N, array>(os, value.toInt64(), data);
  196|     64|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22minoltaPictureFinish5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     64|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     64|  static_assert(N > 0, "Passed zero length printTag");
  183|     64|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 32]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     32|  return os << "(" << value << ")";
  186|     64|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     52|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     52|  static_assert(N > 0, "Passed zero length printTag");
  195|     52|  return printTag<N, array>(os, value.toInt64(), data);
  196|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15minoltaAFMode5DEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     52|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     52|  static_assert(N > 0, "Passed zero length printTag");
  183|     52|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 40]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     52|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyDriveMode2A100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 106]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFocusModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 126]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 114]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyMeteringModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 122]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyZoneMatchingModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 118]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyColorSpaceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 118]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyDriveModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 100]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonySelfTimerTimeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 118]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    118|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyContinuousBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8, False: 136]
  ------------------
  184|      8|    return os << _(td->label_);
  ------------------
  |  |   40|      8|#define _(String) (String)
  ------------------
  185|    136|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29sonySingleFrameBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 4, False: 140]
  ------------------
  184|      4|    return os << _(td->label_);
  ------------------
  |  |   40|      4|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyWhiteBalanceBracketingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 138]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|    138|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyWhiteBalanceSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 98]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyPresetWhiteBalanceA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 134]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|    134|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31sonyColorTemperatureSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 110]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyCustomWBSettingA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 116]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyCustomWBErrorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 110]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    144|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyImageSizeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 114]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|    114|  return os << "(" << value << ")";
  186|    142|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    142|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    142|  static_assert(N > 0, "Passed zero length printTag");
  195|    142|  return printTag<N, array>(os, value.toInt64(), data);
  196|    142|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyInstantPlaybackSetupA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    142|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    142|  static_assert(N > 0, "Passed zero length printTag");
  183|    142|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 110]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    142|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyFlashDefaultA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 78]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyAutoBracketOrderA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 80]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusHoldButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 84]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAELButtonA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 76]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyControlDialSetA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 76]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyExposureCompensationModeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 78]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyAFAreaIlluminationA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 76]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMonitorDisplayOffA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 76]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|     76|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21sonyRecordDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 82]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyPlayDisplayA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 80]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     80|  return os << "(" << value << ")";
  186|    102|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    432|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    432|  static_assert(N > 0, "Passed zero length printTag");
  195|    432|  return printTag<N, array>(os, value.toInt64(), data);
  196|    432|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyExposureIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    432|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    432|  static_assert(N > 0, "Passed zero length printTag");
  183|    432|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 114, False: 318]
  ------------------
  184|    114|    return os << _(td->label_);
  ------------------
  |  |   40|    114|#define _(String) (String)
  ------------------
  185|    318|  return os << "(" << value << ")";
  186|    432|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L33sonyMeteringOffScaleIndicatorA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 38]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyFocusModeSwitchA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 46]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyFlashTypeA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 18, False: 44]
  ------------------
  184|     18|    return os << _(td->label_);
  ------------------
  |  |   40|     18|#define _(String) (String)
  ------------------
  185|     44|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyBatteryLevelA100EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 10, False: 52]
  ------------------
  184|     10|    return os << _(td->label_);
  ------------------
  |  |   40|     10|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|     62|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.61k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.61k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.61k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.61k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm205ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17minoltaSonyLensIDEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.61k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.61k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.61k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.92k, False: 692]
  ------------------
  184|  2.92k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.92k|#define _(String) (String)
  ------------------
  185|    692|  return os << "(" << value << ")";
  186|  3.61k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    146|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    146|  static_assert(N > 0, "Passed zero length printTag");
  195|    146|  return printTag<N, array>(os, value.toInt64(), data);
  196|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    146|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    146|  static_assert(N > 0, "Passed zero length printTag");
  183|    146|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 58, False: 88]
  ------------------
  184|     58|    return os << _(td->label_);
  ------------------
  |  |   40|     58|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    146|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.77k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.77k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.77k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.77k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyBoolFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.77k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.77k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.77k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 660, False: 2.11k]
  ------------------
  184|    660|    return os << _(td->label_);
  ------------------
  |  |   40|    660|#define _(String) (String)
  ------------------
  185|  2.11k|  return os << "(" << value << ")";
  186|  2.77k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    748|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    748|  static_assert(N > 0, "Passed zero length printTag");
  195|    748|  return printTag<N, array>(os, value.toInt64(), data);
  196|    748|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30minoltaSonyBoolInverseFunctionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    748|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    748|  static_assert(N > 0, "Passed zero length printTag");
  183|    748|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 182, False: 566]
  ------------------
  184|    182|    return os << _(td->label_);
  ------------------
  |  |   40|    182|#define _(String) (String)
  ------------------
  185|    566|  return os << "(" << value << ")";
  186|    748|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    562|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    562|  static_assert(N > 0, "Passed zero length printTag");
  195|    562|  return printTag<N, array>(os, value.toInt64(), data);
  196|    562|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21minoltaSonyAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    562|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    562|  static_assert(N > 0, "Passed zero length printTag");
  183|    562|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 130, False: 432]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|    432|  return os << "(" << value << ")";
  186|    562|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    562|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    562|  static_assert(N > 0, "Passed zero length printTag");
  195|    562|  return printTag<N, array>(os, value.toInt64(), data);
  196|    562|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27minoltaSonyLocalAFAreaPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    562|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    562|  static_assert(N > 0, "Passed zero length printTag");
  183|    562|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 484]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    484|  return os << "(" << value << ")";
  186|    562|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    706|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    706|  static_assert(N > 0, "Passed zero length printTag");
  195|    706|  return printTag<N, array>(os, value.toInt64(), data);
  196|    706|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L36minoltaSonyDynamicRangeOptimizerModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    706|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    706|  static_assert(N > 0, "Passed zero length printTag");
  183|    706|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 190, False: 516]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|    516|  return os << "(" << value << ")";
  186|    706|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L38minoltaSonyPrioritySetupShutterReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    486|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    486|  static_assert(N > 0, "Passed zero length printTag");
  195|    486|  return printTag<N, array>(os, value.toInt64(), data);
  196|    486|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L38minoltaSonyPrioritySetupShutterReleaseEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    486|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    486|  static_assert(N > 0, "Passed zero length printTag");
  183|    486|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 142, False: 344]
  ------------------
  184|    142|    return os << _(td->label_);
  ------------------
  |  |   40|    142|#define _(String) (String)
  ------------------
  185|    344|  return os << "(" << value << ")";
  186|    486|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    418|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    418|  static_assert(N > 0, "Passed zero length printTag");
  195|    418|  return printTag<N, array>(os, value.toInt64(), data);
  196|    418|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonyQualityCsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    418|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    418|  static_assert(N > 0, "Passed zero length printTag");
  183|    418|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 308]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    308|  return os << "(" << value << ")";
  186|    418|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    474|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    474|  static_assert(N > 0, "Passed zero length printTag");
  195|    474|  return printTag<N, array>(os, value.toInt64(), data);
  196|    474|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19minoltaSonyRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    474|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    474|  static_assert(N > 0, "Passed zero length printTag");
  183|    474|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 400]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|    400|  return os << "(" << value << ")";
  186|    474|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.34k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.34k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.34k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.34k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm25ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20minoltaSonySceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.34k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.34k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.34k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.93k, False: 412]
  ------------------
  184|  1.93k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.93k|#define _(String) (String)
  ------------------
  185|    412|  return os << "(" << value << ")";
  186|  2.34k|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    424|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    424|  static_assert(N > 0, "Passed zero length printTag");
  195|    424|  return printTag<N, array>(os, value.toInt64(), data);
  196|    424|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29minoltaSonyTeleconverterModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    424|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    424|  static_assert(N > 0, "Passed zero length printTag");
  183|    424|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 314, False: 110]
  ------------------
  184|    314|    return os << _(td->label_);
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    424|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    150|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    150|  static_assert(N > 0, "Passed zero length printTag");
  195|    150|  return printTag<N, array>(os, value.toInt64(), data);
  196|    150|}
minoltamn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23minoltaSonyZoneMatchingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    150|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    150|  static_assert(N > 0, "Passed zero length printTag");
  183|    150|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 72, False: 78]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    150|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    520|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    520|  static_assert(N > 0, "Passed zero length printTag");
  195|    520|  return printTag<N, array>(os, value.toInt64(), data);
  196|    520|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14olympusQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    520|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    520|  static_assert(N > 0, "Passed zero length printTag");
  183|    520|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 314, False: 206]
  ------------------
  184|    314|    return os << _(td->label_);
  ------------------
  |  |   40|    314|#define _(String) (String)
  ------------------
  185|    206|  return os << "(" << value << ")";
  186|    520|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    628|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    628|  static_assert(N > 0, "Passed zero length printTag");
  195|    628|  return printTag<N, array>(os, value.toInt64(), data);
  196|    628|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    628|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    628|  static_assert(N > 0, "Passed zero length printTag");
  183|    628|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 354, False: 274]
  ------------------
  184|    354|    return os << _(td->label_);
  ------------------
  |  |   40|    354|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    628|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    328|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    328|  static_assert(N > 0, "Passed zero length printTag");
  195|    328|  return printTag<N, array>(os, value.toInt64(), data);
  196|    328|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    328|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    328|  static_assert(N > 0, "Passed zero length printTag");
  183|    328|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 250, False: 78]
  ------------------
  184|    250|    return os << _(td->label_);
  ------------------
  |  |   40|    250|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    328|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    292|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    292|  static_assert(N > 0, "Passed zero length printTag");
  195|    292|  return printTag<N, array>(os, value.toInt64(), data);
  196|    292|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusOneTouchWbEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    292|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    292|  static_assert(N > 0, "Passed zero length printTag");
  183|    292|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 218, False: 74]
  ------------------
  184|    218|    return os << _(td->label_);
  ------------------
  |  |   40|    218|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    292|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.03k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.03k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.03k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.03k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm45ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSceneModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.03k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.03k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.03k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.63k, False: 402]
  ------------------
  184|  2.63k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.63k|#define _(String) (String)
  ------------------
  185|    402|  return os << "(" << value << ")";
  186|  3.03k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusFlashDeviceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 80, False: 10]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     90|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     64|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     64|  static_assert(N > 0, "Passed zero length printTag");
  195|     64|  return printTag<N, array>(os, value.toInt64(), data);
  196|     64|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusFocusRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     64|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     64|  static_assert(N > 0, "Passed zero length printTag");
  183|     64|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 30]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|     64|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     72|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     72|  static_assert(N > 0, "Passed zero length printTag");
  195|     72|  return printTag<N, array>(os, value.toInt64(), data);
  196|     72|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     72|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     72|  static_assert(N > 0, "Passed zero length printTag");
  183|     72|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 38, False: 34]
  ------------------
  184|     38|    return os << _(td->label_);
  ------------------
  |  |   40|     38|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     72|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     28|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     28|  static_assert(N > 0, "Passed zero length printTag");
  195|     28|  return printTag<N, array>(os, value.toInt64(), data);
  196|     28|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     28|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     28|  static_assert(N > 0, "Passed zero length printTag");
  183|     28|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 20, False: 8]
  ------------------
  184|     20|    return os << _(td->label_);
  ------------------
  |  |   40|     20|#define _(String) (String)
  ------------------
  185|      8|  return os << "(" << value << ")";
  186|     28|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    172|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    172|  static_assert(N > 0, "Passed zero length printTag");
  183|    172|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 66]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    172|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     34|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     34|  static_assert(N > 0, "Passed zero length printTag");
  195|     34|  return printTag<N, array>(os, value.toInt64(), data);
  196|     34|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusCCDScanModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 28, False: 6]
  ------------------
  184|     28|    return os << _(td->label_);
  ------------------
  |  |   40|     28|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     34|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    200|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    200|  static_assert(N > 0, "Passed zero length printTag");
  195|    200|  return printTag<N, array>(os, value.toInt64(), data);
  196|    200|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12olympusNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    200|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    200|  static_assert(N > 0, "Passed zero length printTag");
  183|    200|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 78]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    200|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    384|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    384|  static_assert(N > 0, "Passed zero length printTag");
  195|    384|  return printTag<N, array>(os, value.toInt64(), data);
  196|    384|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    384|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    384|  static_assert(N > 0, "Passed zero length printTag");
  183|    384|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 274]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    274|  return os << "(" << value << ")";
  186|    384|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    242|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    242|  static_assert(N > 0, "Passed zero length printTag");
  195|    242|  return printTag<N, array>(os, value.toInt64(), data);
  196|    242|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    242|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    242|  static_assert(N > 0, "Passed zero length printTag");
  183|    242|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 100, False: 142]
  ------------------
  184|    100|    return os << _(td->label_);
  ------------------
  |  |   40|    100|#define _(String) (String)
  ------------------
  185|    142|  return os << "(" << value << ")";
  186|    242|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    240|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    240|  static_assert(N > 0, "Passed zero length printTag");
  195|    240|  return printTag<N, array>(os, value.toInt64(), data);
  196|    240|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusMacroModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    240|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    240|  static_assert(N > 0, "Passed zero length printTag");
  183|    240|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 132, False: 108]
  ------------------
  184|    132|    return os << _(td->label_);
  ------------------
  |  |   40|    132|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    240|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    172|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    172|  static_assert(N > 0, "Passed zero length printTag");
  195|    172|  return printTag<N, array>(os, value.toInt64(), data);
  196|    172|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusFocusProcessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    172|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    172|  static_assert(N > 0, "Passed zero length printTag");
  183|    172|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 138, False: 34]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    172|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusAFSearchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 72, False: 38]
  ------------------
  184|     72|    return os << _(td->label_);
  ------------------
  |  |   40|     72|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    110|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm7ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L16olympusFlashModeEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    970|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    970|  static_assert(N > 0, "Passed zero length printTag");
  208|    970|  const auto val = value.toUint32();
  209|    970|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 258, False: 712]
  ------------------
  210|    258|    auto [mask, label] = *array;
  211|    258|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 258, False: 0]
  ------------------
  212|    258|      return os << _(label);
  ------------------
  |  |   40|    258|#define _(String) (String)
  ------------------
  213|    258|  }
  214|    712|  bool sep = false;
  215|  4.98k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 4.98k, False: 712]
  ------------------
  216|  4.98k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 1.66k, False: 3.31k]
  ------------------
  217|  1.66k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 958, False: 710]
  ------------------
  218|    958|        os << ", " << _(label);
  ------------------
  |  |   40|    958|#define _(String) (String)
  ------------------
  219|    958|      } else {
  220|    710|        os << _(label);
  ------------------
  |  |   40|    710|#define _(String) (String)
  ------------------
  221|    710|        sep = true;
  222|    710|      }
  223|  1.66k|    }
  224|  4.98k|  }
  225|    712|  return os;
  226|    970|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    944|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    944|  static_assert(N > 0, "Passed zero length printTag");
  195|    944|  return printTag<N, array>(os, value.toInt64(), data);
  196|    944|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusFlashRemoteControlEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    944|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    944|  static_assert(N > 0, "Passed zero length printTag");
  183|    944|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 672, False: 272]
  ------------------
  184|    672|    return os << _(td->label_);
  ------------------
  |  |   40|    672|#define _(String) (String)
  ------------------
  185|    272|  return os << "(" << value << ")";
  186|    944|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    122|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    122|  static_assert(N > 0, "Passed zero length printTag");
  195|    122|  return printTag<N, array>(os, value.toInt64(), data);
  196|    122|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusFlashControlModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    122|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    122|  static_assert(N > 0, "Passed zero length printTag");
  183|    122|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 84, False: 38]
  ------------------
  184|     84|    return os << _(td->label_);
  ------------------
  |  |   40|     84|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|    122|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.11k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.11k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.11k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.11k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.11k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.11k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.11k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 550, False: 560]
  ------------------
  184|    550|    return os << _(td->label_);
  ------------------
  |  |   40|    550|#define _(String) (String)
  ------------------
  185|    560|  return os << "(" << value << ")";
  186|  1.11k|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    246|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    246|  static_assert(N > 0, "Passed zero length printTag");
  195|    246|  return printTag<N, array>(os, value.toInt64(), data);
  196|    246|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusModifiedSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    246|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    246|  static_assert(N > 0, "Passed zero length printTag");
  183|    246|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 164, False: 82]
  ------------------
  184|    164|    return os << _(td->label_);
  ------------------
  |  |   40|    164|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    246|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    110|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    110|  static_assert(N > 0, "Passed zero length printTag");
  195|    110|  return printTag<N, array>(os, value.toInt64(), data);
  196|    110|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17olympusColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    110|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    110|  static_assert(N > 0, "Passed zero length printTag");
  183|    110|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 76, False: 34]
  ------------------
  184|     76|    return os << _(td->label_);
  ------------------
  |  |   40|     76|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    110|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm4ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L21olympusNoiseReductionEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    226|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    226|  static_assert(N > 0, "Passed zero length printTag");
  208|    226|  const auto val = value.toUint32();
  209|    226|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 20, False: 206]
  ------------------
  210|     20|    auto [mask, label] = *array;
  211|     20|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 20]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     20|  }
  214|    226|  bool sep = false;
  215|    904|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 904, False: 226]
  ------------------
  216|    904|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 338, False: 566]
  ------------------
  217|    338|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 136, False: 202]
  ------------------
  218|    136|        os << ", " << _(label);
  ------------------
  |  |   40|    136|#define _(String) (String)
  ------------------
  219|    202|      } else {
  220|    202|        os << _(label);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  221|    202|        sep = true;
  222|    202|      }
  223|    338|    }
  224|    904|  }
  225|    226|  return os;
  226|    226|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    892|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    892|  static_assert(N > 0, "Passed zero length printTag");
  195|    892|  return printTag<N, array>(os, value.toInt64(), data);
  196|    892|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusPictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    892|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    892|  static_assert(N > 0, "Passed zero length printTag");
  183|    892|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 636, False: 256]
  ------------------
  184|    636|    return os << _(td->label_);
  ------------------
  |  |   40|    636|#define _(String) (String)
  ------------------
  185|    256|  return os << "(" << value << ")";
  186|    892|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    236|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    236|  static_assert(N > 0, "Passed zero length printTag");
  195|    236|  return printTag<N, array>(os, value.toInt64(), data);
  196|    236|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26olympusPictureModeBWFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    236|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    236|  static_assert(N > 0, "Passed zero length printTag");
  183|    236|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 176, False: 60]
  ------------------
  184|    176|    return os << _(td->label_);
  ------------------
  |  |   40|    176|#define _(String) (String)
  ------------------
  185|     60|  return os << "(" << value << ")";
  186|    236|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    216|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    216|  static_assert(N > 0, "Passed zero length printTag");
  195|    216|  return printTag<N, array>(os, value.toInt64(), data);
  196|    216|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusPictureModeToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    216|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    216|  static_assert(N > 0, "Passed zero length printTag");
  183|    216|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 152, False: 64]
  ------------------
  184|    152|    return os << _(td->label_);
  ------------------
  |  |   40|    152|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|    216|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusCsQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 10]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     10|  return os << "(" << value << ")";
  186|     62|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    124|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    124|  static_assert(N > 0, "Passed zero length printTag");
  195|    124|  return printTag<N, array>(os, value.toInt64(), data);
  196|    124|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25olympusImageStabilizationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    124|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    124|  static_assert(N > 0, "Passed zero length printTag");
  183|    124|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 94, False: 30]
  ------------------
  184|     94|    return os << _(td->label_);
  ------------------
  |  |   40|     94|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    124|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    706|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    706|  static_assert(N > 0, "Passed zero length printTag");
  195|    706|  return printTag<N, array>(os, value.toInt64(), data);
  196|    706|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18olympusEqFlashTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    706|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    706|  static_assert(N > 0, "Passed zero length printTag");
  183|    706|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 320, False: 386]
  ------------------
  184|    320|    return os << _(td->label_);
  ------------------
  |  |   40|    320|#define _(String) (String)
  ------------------
  185|    386|  return os << "(" << value << ")";
  186|    706|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    220|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    220|  static_assert(N > 0, "Passed zero length printTag");
  195|    220|  return printTag<N, array>(os, value.toInt64(), data);
  196|    220|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusEqFlashModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    220|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    220|  static_assert(N > 0, "Passed zero length printTag");
  183|    220|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 190, False: 30]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|     30|  return os << "(" << value << ")";
  186|    220|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    262|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    262|  static_assert(N > 0, "Passed zero length printTag");
  195|    262|  return printTag<N, array>(os, value.toInt64(), data);
  196|    262|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    262|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    262|  static_assert(N > 0, "Passed zero length printTag");
  183|    262|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 174, False: 88]
  ------------------
  184|    174|    return os << _(td->label_);
  ------------------
  |  |   40|    174|#define _(String) (String)
  ------------------
  185|     88|  return os << "(" << value << ")";
  186|    262|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    288|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    288|  static_assert(N > 0, "Passed zero length printTag");
  195|    288|  return printTag<N, array>(os, value.toInt64(), data);
  196|    288|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15olympusRdEngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    288|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    288|  static_assert(N > 0, "Passed zero length printTag");
  183|    288|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 192, False: 96]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    288|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    152|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    152|  static_assert(N > 0, "Passed zero length printTag");
  195|    152|  return printTag<N, array>(os, value.toInt64(), data);
  196|    152|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19olympusRdEditStatusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    152|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    152|  static_assert(N > 0, "Passed zero length printTag");
  183|    152|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 74]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    152|}
olympusmn_int.cpp:_ZN5Exiv28Internal15printTagBitmaskILm8ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L17olympusRdSettingsEEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  206|    908|std::ostream& printTagBitmask(std::ostream& os, const Value& value, const ExifData*) {
  207|    908|  static_assert(N > 0, "Passed zero length printTag");
  208|    908|  const auto val = value.toUint32();
  209|    908|  if (val == 0) {
  ------------------
  |  Branch (209:7): [True: 36, False: 872]
  ------------------
  210|     36|    auto [mask, label] = *array;
  211|     36|    if (mask == 0)
  ------------------
  |  Branch (211:9): [True: 0, False: 36]
  ------------------
  212|      0|      return os << _(label);
  ------------------
  |  |   40|      0|#define _(String) (String)
  ------------------
  213|     36|  }
  214|    908|  bool sep = false;
  215|  7.26k|  for (auto [mask, label] : array) {
  ------------------
  |  Branch (215:27): [True: 7.26k, False: 908]
  ------------------
  216|  7.26k|    if (val & mask) {
  ------------------
  |  Branch (216:9): [True: 2.50k, False: 4.75k]
  ------------------
  217|  2.50k|      if (sep) {
  ------------------
  |  Branch (217:11): [True: 1.71k, False: 796]
  ------------------
  218|  1.71k|        os << ", " << _(label);
  ------------------
  |  |   40|  1.71k|#define _(String) (String)
  ------------------
  219|  1.71k|      } else {
  220|    796|        os << _(label);
  ------------------
  |  |   40|    796|#define _(String) (String)
  ------------------
  221|    796|        sep = true;
  222|    796|      }
  223|  2.50k|    }
  224|  7.26k|  }
  225|    908|  return os;
  226|    908|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22olympusRd2WhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     42|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     42|  static_assert(N > 0, "Passed zero length printTag");
  183|     42|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 22, False: 20]
  ------------------
  184|     22|    return os << _(td->label_);
  ------------------
  |  |   40|     22|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     42|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    284|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    284|  static_assert(N > 0, "Passed zero length printTag");
  195|    284|  return printTag<N, array>(os, value.toInt64(), data);
  196|    284|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRd2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    284|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    284|  static_assert(N > 0, "Passed zero length printTag");
  183|    284|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 188, False: 96]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|     96|  return os << "(" << value << ")";
  186|    284|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    100|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    100|  static_assert(N > 0, "Passed zero length printTag");
  195|    100|  return printTag<N, array>(os, value.toInt64(), data);
  196|    100|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16olympusRd2EngineEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    100|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    100|  static_assert(N > 0, "Passed zero length printTag");
  183|    100|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 46]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    100|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    474|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    474|  static_assert(N > 0, "Passed zero length printTag");
  195|    474|  return printTag<N, array>(os, value.toInt64(), data);
  196|    474|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PictureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    474|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    474|  static_assert(N > 0, "Passed zero length printTag");
  183|    474|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 220, False: 254]
  ------------------
  184|    220|    return os << _(td->label_);
  ------------------
  |  |   40|    220|#define _(String) (String)
  ------------------
  185|    254|  return os << "(" << value << ")";
  186|    474|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    170|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    170|  static_assert(N > 0, "Passed zero length printTag");
  195|    170|  return printTag<N, array>(os, value.toInt64(), data);
  196|    170|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21olympusRd2PM_BWFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    170|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    170|  static_assert(N > 0, "Passed zero length printTag");
  183|    170|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 134, False: 36]
  ------------------
  184|    134|    return os << _(td->label_);
  ------------------
  |  |   40|    134|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|    170|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    114|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    114|  static_assert(N > 0, "Passed zero length printTag");
  195|    114|  return printTag<N, array>(os, value.toInt64(), data);
  196|    114|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23olympusRd2PMPictureToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    114|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    114|  static_assert(N > 0, "Passed zero length printTag");
  183|    114|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 86, False: 28]
  ------------------
  184|     86|    return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  185|     28|  return os << "(" << value << ")";
  186|    114|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     42|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     42|  static_assert(N > 0, "Passed zero length printTag");
  195|     42|  return printTag<N, array>(os, value.toInt64(), data);
  196|     42|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L29olympusIpMultipleExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     42|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     42|  static_assert(N > 0, "Passed zero length printTag");
  183|     42|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 6]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     42|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     50|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     50|  static_assert(N > 0, "Passed zero length printTag");
  195|     50|  return printTag<N, array>(os, value.toInt64(), data);
  196|     50|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusIpAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     50|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     50|  static_assert(N > 0, "Passed zero length printTag");
  183|     50|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 14]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     50|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     18|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     18|  static_assert(N > 0, "Passed zero length printTag");
  195|     18|  return printTag<N, array>(os, value.toInt64(), data);
  196|     18|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28olympusFiExternalFlashBounceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     18|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     18|  static_assert(N > 0, "Passed zero length printTag");
  183|     18|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 6]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|      6|  return os << "(" << value << ")";
  186|     18|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    346|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    346|  static_assert(N > 0, "Passed zero length printTag");
  195|    346|  return printTag<N, array>(os, value.toInt64(), data);
  196|    346|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20olympusRiLightSourceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    346|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    346|  static_assert(N > 0, "Passed zero length printTag");
  183|    346|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 280, False: 66]
  ------------------
  184|    280|    return os << _(td->label_);
  ------------------
  |  |   40|    280|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    346|}
olympusmn_int.cpp:_ZN5Exiv28Internal8printTagILm38ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10artFiltersEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    824|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    824|  static_assert(N > 0, "Passed zero length printTag");
  183|    824|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 632, False: 192]
  ------------------
  184|    632|    return os << _(td->label_);
  ------------------
  |  |   40|    632|#define _(String) (String)
  ------------------
  185|    192|  return os << "(" << value << ")";
  186|    824|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    930|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    930|  static_assert(N > 0, "Passed zero length printTag");
  195|    930|  return printTag<N, array>(os, value.toInt64(), data);
  196|    930|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    930|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    930|  static_assert(N > 0, "Passed zero length printTag");
  183|    930|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 390, False: 540]
  ------------------
  184|    390|    return os << _(td->label_);
  ------------------
  |  |   40|    390|#define _(String) (String)
  ------------------
  185|    540|  return os << "(" << value << ")";
  186|    930|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    484|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    484|  static_assert(N > 0, "Passed zero length printTag");
  195|    484|  return printTag<N, array>(os, value.toInt64(), data);
  196|    484|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    484|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    484|  static_assert(N > 0, "Passed zero length printTag");
  183|    484|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 272, False: 212]
  ------------------
  184|    272|    return os << _(td->label_);
  ------------------
  |  |   40|    272|#define _(String) (String)
  ------------------
  185|    212|  return os << "(" << value << ")";
  186|    484|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    684|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    684|  static_assert(N > 0, "Passed zero length printTag");
  195|    684|  return printTag<N, array>(os, value.toInt64(), data);
  196|    684|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    684|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    684|  static_assert(N > 0, "Passed zero length printTag");
  183|    684|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 372, False: 312]
  ------------------
  184|    372|    return os << _(td->label_);
  ------------------
  |  |   40|    372|#define _(String) (String)
  ------------------
  185|    312|  return os << "(" << value << ")";
  186|    684|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicImageStabilizerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    276|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    276|  static_assert(N > 0, "Passed zero length printTag");
  183|    276|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 156]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    276|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    454|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    454|  static_assert(N > 0, "Passed zero length printTag");
  195|    454|  return printTag<N, array>(os, value.toInt64(), data);
  196|    454|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    454|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    454|  static_assert(N > 0, "Passed zero length printTag");
  183|    454|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 124, False: 330]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    330|  return os << "(" << value << ")";
  186|    454|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    328|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    328|  static_assert(N > 0, "Passed zero length printTag");
  195|    328|  return printTag<N, array>(os, value.toInt64(), data);
  196|    328|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm77ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    328|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    328|  static_assert(N > 0, "Passed zero length printTag");
  183|    328|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 204, False: 124]
  ------------------
  184|    204|    return os << _(td->label_);
  ------------------
  |  |   40|    204|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    328|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    182|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    182|  static_assert(N > 0, "Passed zero length printTag");
  195|    182|  return printTag<N, array>(os, value.toInt64(), data);
  196|    182|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14panasonicAudioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    182|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    182|  static_assert(N > 0, "Passed zero length printTag");
  183|    182|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 74]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    182|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    302|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    302|  static_assert(N > 0, "Passed zero length printTag");
  195|    302|  return printTag<N, array>(os, value.toInt64(), data);
  196|    302|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicColorEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    302|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    302|  static_assert(N > 0, "Passed zero length printTag");
  183|    302|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 90, False: 212]
  ------------------
  184|     90|    return os << _(td->label_);
  ------------------
  |  |   40|     90|#define _(String) (String)
  ------------------
  185|    212|  return os << "(" << value << ")";
  186|    302|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    254|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    254|  static_assert(N > 0, "Passed zero length printTag");
  195|    254|  return printTag<N, array>(os, value.toInt64(), data);
  196|    254|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicBurstModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    254|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    254|  static_assert(N > 0, "Passed zero length printTag");
  183|    254|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 150, False: 104]
  ------------------
  184|    150|    return os << _(td->label_);
  ------------------
  |  |   40|    150|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    254|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    424|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    424|  static_assert(N > 0, "Passed zero length printTag");
  195|    424|  return printTag<N, array>(os, value.toInt64(), data);
  196|    424|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    424|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    424|  static_assert(N > 0, "Passed zero length printTag");
  183|    424|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 234, False: 190]
  ------------------
  184|    234|    return os << _(td->label_);
  ------------------
  |  |   40|    234|#define _(String) (String)
  ------------------
  185|    190|  return os << "(" << value << ")";
  186|    424|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    408|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    408|  static_assert(N > 0, "Passed zero length printTag");
  195|    408|  return printTag<N, array>(os, value.toInt64(), data);
  196|    408|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    408|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    408|  static_assert(N > 0, "Passed zero length printTag");
  183|    408|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 260, False: 148]
  ------------------
  184|    260|    return os << _(td->label_);
  ------------------
  |  |   40|    260|#define _(String) (String)
  ------------------
  185|    148|  return os << "(" << value << ")";
  186|    408|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    162|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    162|  static_assert(N > 0, "Passed zero length printTag");
  195|    162|  return printTag<N, array>(os, value.toInt64(), data);
  196|    162|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicSelfTimerEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    162|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    162|  static_assert(N > 0, "Passed zero length printTag");
  183|    162|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 42]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|    162|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    286|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    286|  static_assert(N > 0, "Passed zero length printTag");
  195|    286|  return printTag<N, array>(os, value.toInt64(), data);
  196|    286|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicRotationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    286|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    286|  static_assert(N > 0, "Passed zero length printTag");
  183|    286|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 146, False: 140]
  ------------------
  184|    146|    return os << _(td->label_);
  ------------------
  |  |   40|    146|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    286|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    196|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    196|  static_assert(N > 0, "Passed zero length printTag");
  195|    196|  return printTag<N, array>(os, value.toInt64(), data);
  196|    196|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicAFAssistLampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    196|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    196|  static_assert(N > 0, "Passed zero length printTag");
  183|    196|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 80, False: 116]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    196|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    368|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    368|  static_assert(N > 0, "Passed zero length printTag");
  195|    368|  return printTag<N, array>(os, value.toInt64(), data);
  196|    368|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    368|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    368|  static_assert(N > 0, "Passed zero length printTag");
  183|    368|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 228, False: 140]
  ------------------
  184|    228|    return os << _(td->label_);
  ------------------
  |  |   40|    228|#define _(String) (String)
  ------------------
  185|    140|  return os << "(" << value << ")";
  186|    368|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    218|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    218|  static_assert(N > 0, "Passed zero length printTag");
  195|    218|  return printTag<N, array>(os, value.toInt64(), data);
  196|    218|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicOpticalZoomModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    218|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    218|  static_assert(N > 0, "Passed zero length printTag");
  183|    218|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 108, False: 110]
  ------------------
  184|    108|    return os << _(td->label_);
  ------------------
  |  |   40|    108|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    218|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    202|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    202|  static_assert(N > 0, "Passed zero length printTag");
  195|    202|  return printTag<N, array>(os, value.toInt64(), data);
  196|    202|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicConversionLensEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    202|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    202|  static_assert(N > 0, "Passed zero length printTag");
  183|    202|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 82, False: 120]
  ------------------
  184|     82|    return os << _(td->label_);
  ------------------
  |  |   40|     82|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    202|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     94|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     94|  static_assert(N > 0, "Passed zero length printTag");
  195|     94|  return printTag<N, array>(os, value.toInt64(), data);
  196|     94|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicWorldTimeLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     94|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     94|  static_assert(N > 0, "Passed zero length printTag");
  183|     94|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 48]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|     94|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     92|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     92|  static_assert(N > 0, "Passed zero length printTag");
  195|     92|  return printTag<N, array>(os, value.toInt64(), data);
  196|     92|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18panasonicTextStampEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     92|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     92|  static_assert(N > 0, "Passed zero length printTag");
  183|     92|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 42]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     42|  return os << "(" << value << ")";
  186|     92|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    370|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    370|  static_assert(N > 0, "Passed zero length printTag");
  195|    370|  return printTag<N, array>(os, value.toInt64(), data);
  196|    370|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17panasonicFilmModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    370|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    370|  static_assert(N > 0, "Passed zero length printTag");
  183|    370|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 246, False: 124]
  ------------------
  184|    246|    return os << _(td->label_);
  ------------------
  |  |   40|    246|#define _(String) (String)
  ------------------
  185|    124|  return os << "(" << value << ")";
  186|    370|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    244|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    244|  static_assert(N > 0, "Passed zero length printTag");
  195|    244|  return printTag<N, array>(os, value.toInt64(), data);
  196|    244|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24panasonicBracketSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    244|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    244|  static_assert(N > 0, "Passed zero length printTag");
  183|    244|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 124, False: 120]
  ------------------
  184|    124|    return os << _(td->label_);
  ------------------
  |  |   40|    124|#define _(String) (String)
  ------------------
  185|    120|  return os << "(" << value << ")";
  186|    244|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    280|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    280|  static_assert(N > 0, "Passed zero length printTag");
  195|    280|  return printTag<N, array>(os, value.toInt64(), data);
  196|    280|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashCurtainEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    280|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    280|  static_assert(N > 0, "Passed zero length printTag");
  183|    280|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 122, False: 158]
  ------------------
  184|    122|    return os << _(td->label_);
  ------------------
  |  |   40|    122|#define _(String) (String)
  ------------------
  185|    158|  return os << "(" << value << ")";
  186|    280|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L34panasonicLongShutterNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 24, False: 64]
  ------------------
  184|     24|    return os << _(td->label_);
  ------------------
  |  |   40|     24|#define _(String) (String)
  ------------------
  185|     64|  return os << "(" << value << ")";
  186|     88|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    292|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    292|  static_assert(N > 0, "Passed zero length printTag");
  195|    292|  return printTag<N, array>(os, value.toInt64(), data);
  196|    292|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicIntelligentExposureEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    292|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    292|  static_assert(N > 0, "Passed zero length printTag");
  183|    292|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 186, False: 106]
  ------------------
  184|    186|    return os << _(td->label_);
  ------------------
  |  |   40|    186|#define _(String) (String)
  ------------------
  185|    106|  return os << "(" << value << ")";
  186|    292|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     98|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     98|  static_assert(N > 0, "Passed zero length printTag");
  195|     98|  return printTag<N, array>(os, value.toInt64(), data);
  196|     98|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicFlashWarningEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     98|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     98|  static_assert(N > 0, "Passed zero length printTag");
  183|     98|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 24]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|     98|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    188|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    188|  static_assert(N > 0, "Passed zero length printTag");
  195|    188|  return printTag<N, array>(os, value.toInt64(), data);
  196|    188|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30panasonicIntelligentResolutionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    188|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    188|  static_assert(N > 0, "Passed zero length printTag");
  183|    188|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 126, False: 62]
  ------------------
  184|    126|    return os << _(td->label_);
  ------------------
  |  |   40|    126|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    188|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    292|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    292|  static_assert(N > 0, "Passed zero length printTag");
  195|    292|  return printTag<N, array>(os, value.toInt64(), data);
  196|    292|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicIntelligentDRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    292|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    292|  static_assert(N > 0, "Passed zero length printTag");
  183|    292|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 208, False: 84]
  ------------------
  184|    208|    return os << _(td->label_);
  ------------------
  |  |   40|    208|#define _(String) (String)
  ------------------
  185|     84|  return os << "(" << value << ")";
  186|    292|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     62|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     62|  static_assert(N > 0, "Passed zero length printTag");
  195|     62|  return printTag<N, array>(os, value.toInt64(), data);
  196|     62|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L21panasonicClearRetouchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     62|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     62|  static_assert(N > 0, "Passed zero length printTag");
  183|     62|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 26]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     62|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    244|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    244|  static_assert(N > 0, "Passed zero length printTag");
  195|    244|  return printTag<N, array>(os, value.toInt64(), data);
  196|    244|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicPhotoStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    244|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    244|  static_assert(N > 0, "Passed zero length printTag");
  183|    244|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 118, False: 126]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|    244|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     80|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     80|  static_assert(N > 0, "Passed zero length printTag");
  195|     80|  return printTag<N, array>(os, value.toInt64(), data);
  196|     80|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28panasonicShadingCompensationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     80|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     80|  static_assert(N > 0, "Passed zero length printTag");
  183|     80|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 26]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|     26|  return os << "(" << value << ")";
  186|     80|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    474|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    474|  static_assert(N > 0, "Passed zero length printTag");
  195|    474|  return printTag<N, array>(os, value.toInt64(), data);
  196|    474|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26panasonicCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    474|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    474|  static_assert(N > 0, "Passed zero length printTag");
  183|    474|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 380, False: 94]
  ------------------
  184|    380|    return os << _(td->label_);
  ------------------
  |  |   40|    380|#define _(String) (String)
  ------------------
  185|     94|  return os << "(" << value << ")";
  186|    474|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    360|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    360|  static_assert(N > 0, "Passed zero length printTag");
  195|    360|  return printTag<N, array>(os, value.toInt64(), data);
  196|    360|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L31panasonicSweepPanoramaDirectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    360|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    360|  static_assert(N > 0, "Passed zero length printTag");
  183|    360|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 278, False: 82]
  ------------------
  184|    278|    return os << _(td->label_);
  ------------------
  |  |   40|    278|#define _(String) (String)
  ------------------
  185|     82|  return os << "(" << value << ")";
  186|    360|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    212|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    212|  static_assert(N > 0, "Passed zero length printTag");
  195|    212|  return printTag<N, array>(os, value.toInt64(), data);
  196|    212|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23panasonicTimerRecordingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    212|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    212|  static_assert(N > 0, "Passed zero length printTag");
  183|    212|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 196, False: 16]
  ------------------
  184|    196|    return os << _(td->label_);
  ------------------
  |  |   40|    196|#define _(String) (String)
  ------------------
  185|     16|  return os << "(" << value << ")";
  186|    212|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12panasonicHDREEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    270|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    270|  static_assert(N > 0, "Passed zero length printTag");
  183|    270|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 138, False: 132]
  ------------------
  184|    138|    return os << _(td->label_);
  ------------------
  |  |   40|    138|#define _(String) (String)
  ------------------
  185|    132|  return os << "(" << value << ")";
  186|    270|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20panasonicShutterTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 60, False: 36]
  ------------------
  184|     60|    return os << _(td->label_);
  ------------------
  |  |   40|     60|#define _(String) (String)
  ------------------
  185|     36|  return os << "(" << value << ")";
  186|     96|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     34|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     34|  static_assert(N > 0, "Passed zero length printTag");
  195|     34|  return printTag<N, array>(os, value.toInt64(), data);
  196|     34|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16panasonicTouchAEEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     34|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     34|  static_assert(N > 0, "Passed zero length printTag");
  183|     34|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 18]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|     18|  return os << "(" << value << ")";
  186|     34|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    102|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    102|  static_assert(N > 0, "Passed zero length printTag");
  195|    102|  return printTag<N, array>(os, value.toInt64(), data);
  196|    102|}
panasonicmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19panasonicFlashFiredEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    102|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    102|  static_assert(N > 0, "Passed zero length printTag");
  183|    102|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 44, False: 58]
  ------------------
  184|     44|    return os << _(td->label_);
  ------------------
  |  |   40|     44|#define _(String) (String)
  ------------------
  185|     58|  return os << "(" << value << ")";
  186|    102|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    404|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    404|  static_assert(N > 0, "Passed zero length printTag");
  195|    404|  return printTag<N, array>(os, value.toInt64(), data);
  196|    404|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxShootingModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    404|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    404|  static_assert(N > 0, "Passed zero length printTag");
  183|    404|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 312, False: 92]
  ------------------
  184|    312|    return os << _(td->label_);
  ------------------
  |  |   40|    312|#define _(String) (String)
  ------------------
  185|     92|  return os << "(" << value << ")";
  186|    404|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    242|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    242|  static_assert(N > 0, "Passed zero length printTag");
  195|    242|  return printTag<N, array>(os, value.toInt64(), data);
  196|    242|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm147ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxModelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    242|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    242|  static_assert(N > 0, "Passed zero length printTag");
  183|    242|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 16, False: 226]
  ------------------
  184|     16|    return os << _(td->label_);
  ------------------
  |  |   40|     16|#define _(String) (String)
  ------------------
  185|    226|  return os << "(" << value << ")";
  186|    242|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    694|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    694|  static_assert(N > 0, "Passed zero length printTag");
  195|    694|  return printTag<N, array>(os, value.toInt64(), data);
  196|    694|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    694|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    694|  static_assert(N > 0, "Passed zero length printTag");
  183|    694|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 412, False: 282]
  ------------------
  184|    412|    return os << _(td->label_);
  ------------------
  |  |   40|    412|#define _(String) (String)
  ------------------
  185|    282|  return os << "(" << value << ")";
  186|    694|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    874|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    874|  static_assert(N > 0, "Passed zero length printTag");
  195|    874|  return printTag<N, array>(os, value.toInt64(), data);
  196|    874|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L10pentaxSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    874|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    874|  static_assert(N > 0, "Passed zero length printTag");
  183|    874|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 718, False: 156]
  ------------------
  184|    718|    return os << _(td->label_);
  ------------------
  |  |   40|    718|#define _(String) (String)
  ------------------
  185|    156|  return os << "(" << value << ")";
  186|    874|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.02k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.02k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.02k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.02k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFlashEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.02k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.02k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.02k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 902, False: 126]
  ------------------
  184|    902|    return os << _(td->label_);
  ------------------
  |  |   40|    902|#define _(String) (String)
  ------------------
  185|    126|  return os << "(" << value << ")";
  186|  1.02k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    920|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    920|  static_assert(N > 0, "Passed zero length printTag");
  195|    920|  return printTag<N, array>(os, value.toInt64(), data);
  196|    920|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    920|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    920|  static_assert(N > 0, "Passed zero length printTag");
  183|    920|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 666, False: 254]
  ------------------
  184|    666|    return os << _(td->label_);
  ------------------
  |  |   40|    666|#define _(String) (String)
  ------------------
  185|    254|  return os << "(" << value << ")";
  186|    920|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    948|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    948|  static_assert(N > 0, "Passed zero length printTag");
  195|    948|  return printTag<N, array>(os, value.toInt64(), data);
  196|    948|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm17ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13pentaxAFPointEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    948|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    948|  static_assert(N > 0, "Passed zero length printTag");
  183|    948|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 636, False: 312]
  ------------------
  184|    636|    return os << _(td->label_);
  ------------------
  |  |   40|    636|#define _(String) (String)
  ------------------
  185|    312|  return os << "(" << value << ")";
  186|    948|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.05k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.05k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.05k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.05k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxAFPointFocusEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.05k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.05k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.05k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 856, False: 200]
  ------------------
  184|    856|    return os << _(td->label_);
  ------------------
  |  |   40|    856|#define _(String) (String)
  ------------------
  185|    200|  return os << "(" << value << ")";
  186|  1.05k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    318|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    318|  static_assert(N > 0, "Passed zero length printTag");
  195|    318|  return printTag<N, array>(os, value.toInt64(), data);
  196|    318|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm79ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9pentaxISOEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    318|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    318|  static_assert(N > 0, "Passed zero length printTag");
  183|    318|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 188, False: 130]
  ------------------
  184|    188|    return os << _(td->label_);
  ------------------
  |  |   40|    188|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    318|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    112|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    112|  static_assert(N > 0, "Passed zero length printTag");
  195|    112|  return printTag<N, array>(os, value.toInt64(), data);
  196|    112|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    112|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    112|  static_assert(N > 0, "Passed zero length printTag");
  183|    112|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 56]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     56|  return os << "(" << value << ")";
  186|    112|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    924|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    924|  static_assert(N > 0, "Passed zero length printTag");
  195|    924|  return printTag<N, array>(os, value.toInt64(), data);
  196|    924|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18pentaxWhiteBalanceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    924|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    924|  static_assert(N > 0, "Passed zero length printTag");
  183|    924|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 758, False: 166]
  ------------------
  184|    758|    return os << _(td->label_);
  ------------------
  |  |   40|    758|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    924|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    506|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    506|  static_assert(N > 0, "Passed zero length printTag");
  195|    506|  return printTag<N, array>(os, value.toInt64(), data);
  196|    506|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22pentaxWhiteBalanceModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    506|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    506|  static_assert(N > 0, "Passed zero length printTag");
  183|    506|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 242, False: 264]
  ------------------
  184|    242|    return os << _(td->label_);
  ------------------
  |  |   40|    242|#define _(String) (String)
  ------------------
  185|    264|  return os << "(" << value << ")";
  186|    506|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    630|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    630|  static_assert(N > 0, "Passed zero length printTag");
  195|    630|  return printTag<N, array>(os, value.toInt64(), data);
  196|    630|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxSaturationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    630|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    630|  static_assert(N > 0, "Passed zero length printTag");
  183|    630|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 518, False: 112]
  ------------------
  184|    518|    return os << _(td->label_);
  ------------------
  |  |   40|    518|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    630|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    612|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    612|  static_assert(N > 0, "Passed zero length printTag");
  195|    612|  return printTag<N, array>(os, value.toInt64(), data);
  196|    612|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxContrastEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    612|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    612|  static_assert(N > 0, "Passed zero length printTag");
  183|    612|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 458, False: 154]
  ------------------
  184|    458|    return os << _(td->label_);
  ------------------
  |  |   40|    458|#define _(String) (String)
  ------------------
  185|    154|  return os << "(" << value << ")";
  186|    612|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    862|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    862|  static_assert(N > 0, "Passed zero length printTag");
  195|    862|  return printTag<N, array>(os, value.toInt64(), data);
  196|    862|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxSharpnessEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    862|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    862|  static_assert(N > 0, "Passed zero length printTag");
  183|    862|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 652, False: 210]
  ------------------
  184|    652|    return os << _(td->label_);
  ------------------
  |  |   40|    652|#define _(String) (String)
  ------------------
  185|    210|  return os << "(" << value << ")";
  186|    862|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    144|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    144|  static_assert(N > 0, "Passed zero length printTag");
  195|    144|  return printTag<N, array>(os, value.toInt64(), data);
  196|    144|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14pentaxLocationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    144|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    144|  static_assert(N > 0, "Passed zero length printTag");
  183|    144|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 74]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     74|  return os << "(" << value << ")";
  186|    144|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.32k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.32k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.32k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.32k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm75ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12pentaxCitiesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.32k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.32k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.32k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.65k, False: 670]
  ------------------
  184|  1.65k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.65k|#define _(String) (String)
  ------------------
  185|    670|  return os << "(" << value << ")";
  186|  2.32k|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    106|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    106|  static_assert(N > 0, "Passed zero length printTag");
  195|    106|  return printTag<N, array>(os, value.toInt64(), data);
  196|    106|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxYesNoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    106|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    106|  static_assert(N > 0, "Passed zero length printTag");
  183|    106|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 54, False: 52]
  ------------------
  184|     54|    return os << _(td->label_);
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  185|     52|  return os << "(" << value << ")";
  186|    106|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    208|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    208|  static_assert(N > 0, "Passed zero length printTag");
  195|    208|  return printTag<N, array>(os, value.toInt64(), data);
  196|    208|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16pentaxColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    208|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    208|  static_assert(N > 0, "Passed zero length printTag");
  183|    208|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 118, False: 90]
  ------------------
  184|    118|    return os << _(td->label_);
  ------------------
  |  |   40|    118|#define _(String) (String)
  ------------------
  185|     90|  return os << "(" << value << ")";
  186|    208|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    148|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    148|  static_assert(N > 0, "Passed zero length printTag");
  195|    148|  return printTag<N, array>(os, value.toInt64(), data);
  196|    148|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11pentaxOffOnEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    148|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    148|  static_assert(N > 0, "Passed zero length printTag");
  183|    148|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 50, False: 98]
  ------------------
  184|     50|    return os << _(td->label_);
  ------------------
  |  |   40|     50|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    148|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    826|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    826|  static_assert(N > 0, "Passed zero length printTag");
  195|    826|  return printTag<N, array>(os, value.toInt64(), data);
  196|    826|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15pentaxImageToneEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    826|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    826|  static_assert(N > 0, "Passed zero length printTag");
  183|    826|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 626, False: 200]
  ------------------
  184|    626|    return os << _(td->label_);
  ------------------
  |  |   40|    626|#define _(String) (String)
  ------------------
  185|    200|  return os << "(" << value << ")";
  186|    826|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    858|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    858|  static_assert(N > 0, "Passed zero length printTag");
  195|    858|  return printTag<N, array>(os, value.toInt64(), data);
  196|    858|}
pentaxmn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27pentaxHighISONoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    858|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    858|  static_assert(N > 0, "Passed zero length printTag");
  183|    858|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 484, False: 374]
  ------------------
  184|    484|    return os << _(td->label_);
  ------------------
  |  |   40|    484|#define _(String) (String)
  ------------------
  185|    374|  return os << "(" << value << ")";
  186|    858|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  2.19k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  2.19k|  static_assert(N > 0, "Passed zero length printTag");
  195|  2.19k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  2.19k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm18ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16samsung2LensTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  2.19k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  2.19k|  static_assert(N > 0, "Passed zero length printTag");
  183|  2.19k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.76k, False: 432]
  ------------------
  184|  1.76k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.76k|#define _(String) (String)
  ------------------
  185|    432|  return os << "(" << value << ")";
  186|  2.19k|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     76|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     76|  static_assert(N > 0, "Passed zero length printTag");
  195|     76|  return printTag<N, array>(os, value.toInt64(), data);
  196|     76|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2ColorSpaceEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     76|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     76|  static_assert(N > 0, "Passed zero length printTag");
  183|     76|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 24]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     24|  return os << "(" << value << ")";
  186|     76|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2SmartRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     46|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     46|  static_assert(N > 0, "Passed zero length printTag");
  195|     46|  return printTag<N, array>(os, value.toInt64(), data);
  196|     46|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18samsung2SmartRangeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     46|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     46|  static_assert(N > 0, "Passed zero length printTag");
  183|     46|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 34, False: 12]
  ------------------
  184|     34|    return os << _(td->label_);
  ------------------
  |  |   40|     34|#define _(String) (String)
  ------------------
  185|     12|  return os << "(" << value << ")";
  186|     46|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     66|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     66|  static_assert(N > 0, "Passed zero length printTag");
  195|     66|  return printTag<N, array>(os, value.toInt64(), data);
  196|     66|}
samsungmn_int.cpp:_ZN5Exiv28Internal8printTagILm12ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13samsungPwModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     66|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     66|  static_assert(N > 0, "Passed zero length printTag");
  183|     66|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 32, False: 34]
  ------------------
  184|     32|    return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|     66|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    326|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    326|  static_assert(N > 0, "Passed zero length printTag");
  183|    326|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 312, False: 14]
  ------------------
  184|    312|    return os << _(td->label_);
  ------------------
  |  |   40|    312|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|    326|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyHDRStdPart2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    326|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    326|  static_assert(N > 0, "Passed zero length printTag");
  183|    326|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 110, False: 216]
  ------------------
  184|    110|    return os << _(td->label_);
  ------------------
  |  |   40|    110|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    326|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    646|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    646|  static_assert(N > 0, "Passed zero length printTag");
  183|    646|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 200, False: 446]
  ------------------
  184|    200|    return os << _(td->label_);
  ------------------
  |  |   40|    200|#define _(String) (String)
  ------------------
  185|    446|  return os << "(" << value << ")";
  186|    646|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    499|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    499|  static_assert(N > 0, "Passed zero length printTag");
  183|    499|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 387, False: 112]
  ------------------
  184|    387|    return os << _(td->label_);
  ------------------
  |  |   40|    387|#define _(String) (String)
  ------------------
  185|    112|  return os << "(" << value << ")";
  186|    499|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm7ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.11k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.11k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.11k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 893, False: 222]
  ------------------
  184|    893|    return os << _(td->label_);
  ------------------
  |  |   40|    893|#define _(String) (String)
  ------------------
  185|    222|  return os << "(" << value << ")";
  186|  1.11k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyAFAreaModeSettingSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.47k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.47k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.47k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 786, False: 686]
  ------------------
  184|    786|    return os << _(td->label_);
  ------------------
  |  |   40|    786|#define _(String) (String)
  ------------------
  185|    686|  return os << "(" << value << ")";
  186|  1.47k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm20ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    814|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    814|  static_assert(N > 0, "Passed zero length printTag");
  183|    814|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 721, False: 93]
  ------------------
  184|    721|    return os << _(td->label_);
  ------------------
  |  |   40|    721|#define _(String) (String)
  ------------------
  185|     93|  return os << "(" << value << ")";
  186|    814|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    791|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    791|  static_assert(N > 0, "Passed zero length printTag");
  195|    791|  return printTag<N, array>(os, value.toInt64(), data);
  196|    791|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    791|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    791|  static_assert(N > 0, "Passed zero length printTag");
  183|    791|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 515, False: 276]
  ------------------
  184|    515|    return os << _(td->label_);
  ------------------
  |  |   40|    515|#define _(String) (String)
  ------------------
  185|    276|  return os << "(" << value << ")";
  186|    791|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    282|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    282|  static_assert(N > 0, "Passed zero length printTag");
  195|    282|  return printTag<N, array>(os, value.toInt64(), data);
  196|    282|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm80ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    282|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    282|  static_assert(N > 0, "Passed zero length printTag");
  183|    282|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 112, False: 170]
  ------------------
  184|    112|    return os << _(td->label_);
  ------------------
  |  |   40|    112|#define _(String) (String)
  ------------------
  185|    170|  return os << "(" << value << ")";
  186|    282|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet4EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    293|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    293|  static_assert(N > 0, "Passed zero length printTag");
  183|    293|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 177, False: 116]
  ------------------
  184|    177|    return os << _(td->label_);
  ------------------
  |  |   40|    177|#define _(String) (String)
  ------------------
  185|    116|  return os << "(" << value << ")";
  186|    293|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L23sonyAFPointSelectedSet5EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    778|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    778|  static_assert(N > 0, "Passed zero length printTag");
  183|    778|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 510, False: 268]
  ------------------
  184|    510|    return os << _(td->label_);
  ------------------
  |  |   40|    510|#define _(String) (String)
  ------------------
  185|    268|  return os << "(" << value << ")";
  186|    778|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm19ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet1EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    212|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    212|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    212|  uint32_t vN = 0;
  242|    212|  uint32_t currentVNBit = 0;
  243|    212|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    212|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    212|  auto allVNZero = true;
  246|    212|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  4.17k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 3.95k, False: 212]
  ------------------
  250|  3.95k|    vN = value.toUint32(i);
  251|  3.95k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 1.24k, False: 2.71k]
  ------------------
  252|  1.24k|      currentVNBit += 8;
  253|  1.24k|      continue;
  254|  1.24k|    }
  255|  2.71k|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  24.4k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 21.7k, False: 2.71k]
  ------------------
  258|  21.7k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 9.57k, False: 12.1k]
  ------------------
  259|  9.57k|        continue;
  260|  9.57k|      }
  261|  12.1k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 10.5k, False: 1.59k]
  ------------------
  262|  10.5k|        os << ", [" << currentVNBit << "]";
  263|  10.5k|        continue;
  264|  10.5k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  3.58k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 3.58k, False: 0]
  ------------------
  268|  3.58k|        auto [bit, label] = *(array + k);
  269|       |
  270|  3.58k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 1.59k, False: 1.99k]
  ------------------
  271|  1.59k|          lastArrayPos = k;
  272|  1.59k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 1.44k, False: 151]
  ------------------
  273|  1.44k|            os << ", " << _(label);
  ------------------
  |  |   40|  1.44k|#define _(String) (String)
  ------------------
  274|  1.44k|          } else {
  275|    151|            os << _(label);
  ------------------
  |  |   40|    151|#define _(String) (String)
  ------------------
  276|    151|            useSep = true;
  277|    151|          }
  278|  1.59k|          break;
  279|  1.59k|        }
  280|  3.58k|      }
  281|  1.59k|    }
  282|  2.71k|  }
  283|    212|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 54, False: 158]
  ------------------
  284|     54|    os << _("None");
  ------------------
  |  |   40|     54|#define _(String) (String)
  ------------------
  285|    212|  return os;
  286|    212|}
sonymn_int.cpp:_ZN5Exiv28Internal20printTagBitlistAllLEILm80ETnRAT__KNSt3__14pairIjPKcEEL_ZNS0_L20sonyAFPointsUsedSet2EEEERNS2_13basic_ostreamIcNS2_11char_traitsIcEEEESE_RKNS_5ValueEPKNS_8ExifDataE:
  238|    106|std::ostream& printTagBitlistAllLE(std::ostream& os, const Value& value, const ExifData*) {
  239|    106|  static_assert(N > 0, "Passed zero length TagDetailsBitlistSorted");
  240|       |
  241|    106|  uint32_t vN = 0;
  242|    106|  uint32_t currentVNBit = 0;
  243|    106|  size_t lastArrayPos = 0;  // Prevents unneeded searching of array
  244|    106|  constexpr auto maxArrayBit = (array + N - 1)->first;
  245|    106|  auto allVNZero = true;
  246|    106|  auto useSep = false;
  247|       |
  248|       |  // For each value
  249|  1.93k|  for (size_t i = 0; i < value.count(); i++) {
  ------------------
  |  Branch (249:22): [True: 1.83k, False: 106]
  ------------------
  250|  1.83k|    vN = value.toUint32(i);
  251|  1.83k|    if (vN == 0) {  // If all bits zero, then nothing to process
  ------------------
  |  Branch (251:9): [True: 759, False: 1.07k]
  ------------------
  252|    759|      currentVNBit += 8;
  253|    759|      continue;
  254|    759|    }
  255|  1.07k|    allVNZero = false;
  256|       |    // Cycle through every bit in that byte
  257|  9.64k|    for (auto j = 0; j < 8; j++, currentVNBit++) {
  ------------------
  |  Branch (257:22): [True: 8.57k, False: 1.07k]
  ------------------
  258|  8.57k|      if ((vN >> j & 0x01) == 0) {  // If bit not set, then nothing to process
  ------------------
  |  Branch (258:11): [True: 3.90k, False: 4.66k]
  ------------------
  259|  3.90k|        continue;
  260|  3.90k|      }
  261|  4.66k|      if (currentVNBit > maxArrayBit) {  // If beyond array values, output unknown index
  ------------------
  |  Branch (261:11): [True: 1.99k, False: 2.67k]
  ------------------
  262|  1.99k|        os << ", [" << currentVNBit << "]";
  263|  1.99k|        continue;
  264|  1.99k|      }
  265|       |
  266|       |      // Check to see if the numbered bit is found in the array
  267|  10.8k|      for (size_t k = lastArrayPos; k < N; ++k) {
  ------------------
  |  Branch (267:37): [True: 10.0k, False: 802]
  ------------------
  268|  10.0k|        auto [bit, label] = *(array + k);
  269|       |
  270|  10.0k|        if (currentVNBit == bit) {
  ------------------
  |  Branch (270:13): [True: 1.86k, False: 8.22k]
  ------------------
  271|  1.86k|          lastArrayPos = k;
  272|  1.86k|          if (useSep) {
  ------------------
  |  Branch (272:15): [True: 1.79k, False: 70]
  ------------------
  273|  1.79k|            os << ", " << _(label);
  ------------------
  |  |   40|  1.79k|#define _(String) (String)
  ------------------
  274|  1.79k|          } else {
  275|     70|            os << _(label);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  276|     70|            useSep = true;
  277|     70|          }
  278|  1.86k|          break;
  279|  1.86k|        }
  280|  10.0k|      }
  281|  2.67k|    }
  282|  1.07k|  }
  283|    106|  if (allVNZero)
  ------------------
  |  Branch (283:7): [True: 33, False: 73]
  ------------------
  284|     33|    os << _("None");
  ------------------
  |  |   40|     33|#define _(String) (String)
  ------------------
  285|    106|  return os;
  286|    106|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFTrackingEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    523|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    523|  static_assert(N > 0, "Passed zero length printTag");
  183|    523|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 452, False: 71]
  ------------------
  184|    452|    return os << _(td->label_);
  ------------------
  |  |   40|    452|#define _(String) (String)
  ------------------
  185|     71|  return os << "(" << value << ")";
  186|    523|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 52, False: 38]
  ------------------
  184|     52|    return os << _(td->label_);
  ------------------
  |  |   40|     52|#define _(String) (String)
  ------------------
  185|     38|  return os << "(" << value << ")";
  186|     90|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm9ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    217|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    217|  static_assert(N > 0, "Passed zero length printTag");
  183|    217|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 190, False: 27]
  ------------------
  184|    190|    return os << _(td->label_);
  ------------------
  |  |   40|    190|#define _(String) (String)
  ------------------
  185|     27|  return os << "(" << value << ")";
  186|    217|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyAFModeSet2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 20]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     90|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFocusMode3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     40|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     40|  static_assert(N > 0, "Passed zero length printTag");
  183|     40|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 33, False: 7]
  ------------------
  184|     33|    return os << _(td->label_);
  ------------------
  |  |   40|     33|#define _(String) (String)
  ------------------
  185|      7|  return os << "(" << value << ")";
  186|     40|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L26sonyHighISONoiseReduction2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    185|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    185|  static_assert(N > 0, "Passed zero length printTag");
  183|    185|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 137, False: 48]
  ------------------
  184|    137|    return os << _(td->label_);
  ------------------
  |  |   40|    137|#define _(String) (String)
  ------------------
  185|     48|  return os << "(" << value << ")";
  186|    185|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.31k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.31k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.31k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.31k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyImageQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.31k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.31k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.31k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.10k, False: 204]
  ------------------
  184|  1.10k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.10k|#define _(String) (String)
  ------------------
  185|    204|  return os << "(" << value << ")";
  186|  1.31k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    610|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    610|  static_assert(N > 0, "Passed zero length printTag");
  195|    610|  return printTag<N, array>(os, value.toInt64(), data);
  196|    610|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm10ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyWhiteBalanceStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    610|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    610|  static_assert(N > 0, "Passed zero length printTag");
  183|    610|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 502, False: 108]
  ------------------
  184|    502|    return os << _(td->label_);
  ------------------
  |  |   40|    502|#define _(String) (String)
  ------------------
  185|    108|  return os << "(" << value << ")";
  186|    610|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    428|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    428|  static_assert(N > 0, "Passed zero length printTag");
  195|    428|  return printTag<N, array>(os, value.toInt64(), data);
  196|    428|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLongExposureNoiseReductionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    428|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    428|  static_assert(N > 0, "Passed zero length printTag");
  183|    428|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 324, False: 104]
  ------------------
  184|    324|    return os << _(td->label_);
  ------------------
  |  |   40|    324|#define _(String) (String)
  ------------------
  185|    104|  return os << "(" << value << ")";
  186|    428|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    760|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    760|  static_assert(N > 0, "Passed zero length printTag");
  195|    760|  return printTag<N, array>(os, value.toInt64(), data);
  196|    760|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L28sonyHighISONoiseReductionStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    760|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    760|  static_assert(N > 0, "Passed zero length printTag");
  183|    760|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 444, False: 316]
  ------------------
  184|    444|    return os << _(td->label_);
  ------------------
  |  |   40|    444|#define _(String) (String)
  ------------------
  185|    316|  return os << "(" << value << ")";
  186|    760|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    222|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    222|  static_assert(N > 0, "Passed zero length printTag");
  195|    222|  return printTag<N, array>(os, value.toInt64(), data);
  196|    222|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    222|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    222|  static_assert(N > 0, "Passed zero length printTag");
  183|    222|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 154, False: 68]
  ------------------
  184|    154|    return os << _(td->label_);
  ------------------
  |  |   40|    154|#define _(String) (String)
  ------------------
  185|     68|  return os << "(" << value << ")";
  186|    222|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.36k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.36k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.36k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.36k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm36ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyPictureEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.36k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.36k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.36k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 1.19k, False: 174]
  ------------------
  184|  1.19k|    return os << _(td->label_);
  ------------------
  |  |   40|  1.19k|#define _(String) (String)
  ------------------
  185|    174|  return os << "(" << value << ")";
  186|  1.36k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     96|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     96|  static_assert(N > 0, "Passed zero length printTag");
  195|     96|  return printTag<N, array>(os, value.toInt64(), data);
  196|     96|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySoftSkinEffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     96|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     96|  static_assert(N > 0, "Passed zero length printTag");
  183|     96|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 40]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|     96|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L24sonyVignettingCorrectionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    270|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    270|  static_assert(N > 0, "Passed zero length printTag");
  183|    270|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 140, False: 130]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|    130|  return os << "(" << value << ")";
  186|    270|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    438|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    438|  static_assert(N > 0, "Passed zero length printTag");
  195|    438|  return printTag<N, array>(os, value.toInt64(), data);
  196|    438|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L30sonyLateralChromaticAberrationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    438|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    438|  static_assert(N > 0, "Passed zero length printTag");
  183|    438|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 240, False: 198]
  ------------------
  184|    240|    return os << _(td->label_);
  ------------------
  |  |   40|    240|#define _(String) (String)
  ------------------
  185|    198|  return os << "(" << value << ")";
  186|    438|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    218|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    218|  static_assert(N > 0, "Passed zero length printTag");
  195|    218|  return printTag<N, array>(os, value.toInt64(), data);
  196|    218|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L32sonyDistortionCorrectionSettingsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    218|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    218|  static_assert(N > 0, "Passed zero length printTag");
  183|    218|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 178, False: 40]
  ------------------
  184|    178|    return os << _(td->label_);
  ------------------
  |  |   40|    178|#define _(String) (String)
  ------------------
  185|     40|  return os << "(" << value << ")";
  186|    218|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    140|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    140|  static_assert(N > 0, "Passed zero length printTag");
  195|    140|  return printTag<N, array>(os, value.toInt64(), data);
  196|    140|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyNoYesEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    140|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    140|  static_assert(N > 0, "Passed zero length printTag");
  183|    140|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 74, False: 66]
  ------------------
  184|     74|    return os << _(td->label_);
  ------------------
  |  |   40|     74|#define _(String) (String)
  ------------------
  185|     66|  return os << "(" << value << ")";
  186|    140|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    164|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    164|  static_assert(N > 0, "Passed zero length printTag");
  195|    164|  return printTag<N, array>(os, value.toInt64(), data);
  196|    164|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyFlashActionEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    164|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    164|  static_assert(N > 0, "Passed zero length printTag");
  183|    164|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 130, False: 34]
  ------------------
  184|    130|    return os << _(td->label_);
  ------------------
  |  |   40|    130|#define _(String) (String)
  ------------------
  185|     34|  return os << "(" << value << ")";
  186|    164|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     50|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     50|  static_assert(N > 0, "Passed zero length printTag");
  195|     50|  return printTag<N, array>(os, value.toInt64(), data);
  196|     50|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L22sonyMultiFrameNREffectEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     50|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     50|  static_assert(N > 0, "Passed zero length printTag");
  183|     50|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 36, False: 14]
  ------------------
  184|     36|    return os << _(td->label_);
  ------------------
  |  |   40|     36|#define _(String) (String)
  ------------------
  185|     14|  return os << "(" << value << ")";
  186|     50|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    944|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    944|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    944|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 20, False: 924]
  ------------------
  131|     20|    return os << "(" << value << ")";
  132|    924|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    924|  return printTagString<N, array>(os, temp, data);
  134|    944|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm5ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L25sonyVariableLowPassFilterEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    924|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    924|  static_assert(N > 0, "Passed zero length printTagString");
  109|       |  if constexpr (std::is_same_v<T, Value>) {
  110|       |    if (auto td = Exiv2::find(array, value.toString(0)))
  111|       |      return os << _(td->label_);
  112|       |    return os << "(" << value << ")";
  113|    924|  } else {
  114|    924|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 388, False: 536]
  ------------------
  115|    388|      return os << _(td->label_);
  ------------------
  |  |   40|    388|#define _(String) (String)
  ------------------
  116|    536|    return os << "(" << value << ")";
  117|    924|  }
  118|    924|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    318|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    318|  static_assert(N > 0, "Passed zero length printTag");
  195|    318|  return printTag<N, array>(os, value.toInt64(), data);
  196|    318|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyRAWFileTypeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    318|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    318|  static_assert(N > 0, "Passed zero length printTag");
  183|    318|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 272, False: 46]
  ------------------
  184|    272|    return os << _(td->label_);
  ------------------
  |  |   40|    272|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|    318|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    476|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    476|  static_assert(N > 0, "Passed zero length printTag");
  195|    476|  return printTag<N, array>(os, value.toInt64(), data);
  196|    476|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyPrioritySetInAWBEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    476|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    476|  static_assert(N > 0, "Passed zero length printTag");
  183|    476|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 298, False: 178]
  ------------------
  184|    298|    return os << _(td->label_);
  ------------------
  |  |   40|    298|#define _(String) (String)
  ------------------
  185|    178|  return os << "(" << value << ")";
  186|    476|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     90|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     90|  static_assert(N > 0, "Passed zero length printTag");
  195|     90|  return printTag<N, array>(os, value.toInt64(), data);
  196|     90|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyMeteringMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     90|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     90|  static_assert(N > 0, "Passed zero length printTag");
  183|     90|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 40, False: 50]
  ------------------
  184|     40|    return os << _(td->label_);
  ------------------
  |  |   40|     40|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|     90|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString2ILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  128|    528|std::ostream& printTagString2(std::ostream& os, const Value& value, const ExifData* data) {
  129|    528|  static_assert(N > 0, "Passed zero length printTagString2");
  130|    528|  if (value.count() < 2)
  ------------------
  |  Branch (130:7): [True: 20, False: 508]
  ------------------
  131|     20|    return os << "(" << value << ")";
  132|    508|  std::string temp = value.toString(0) + " " + value.toString(1);
  133|    508|  return printTagString<N, array>(os, temp, data);
  134|    528|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm30ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L15sonyQuality2StdEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    508|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    508|  static_assert(N > 0, "Passed zero length printTagString");
  109|       |  if constexpr (std::is_same_v<T, Value>) {
  110|       |    if (auto td = Exiv2::find(array, value.toString(0)))
  111|       |      return os << _(td->label_);
  112|       |    return os << "(" << value << ")";
  113|    508|  } else {
  114|    508|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 86, False: 422]
  ------------------
  115|     86|      return os << _(td->label_);
  ------------------
  |  |   40|     86|#define _(String) (String)
  ------------------
  116|    422|    return os << "(" << value << ")";
  117|    508|  }
  118|    508|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    168|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    168|  static_assert(N > 0, "Passed zero length printTag");
  195|    168|  return printTag<N, array>(os, value.toInt64(), data);
  196|    168|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonyJPEGHEIFSwitchEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    168|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    168|  static_assert(N > 0, "Passed zero length printTag");
  183|    168|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 70, False: 98]
  ------------------
  184|     70|    return os << _(td->label_);
  ------------------
  |  |   40|     70|#define _(String) (String)
  ------------------
  185|     98|  return os << "(" << value << ")";
  186|    168|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagString4ILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  144|    638|std::ostream& printTagString4(std::ostream& os, const Value& value, const ExifData* data) {
  145|    638|  static_assert(N > 0, "Passed zero length printTagString4");
  146|    638|  if (value.count() < 4)
  ------------------
  |  Branch (146:7): [True: 50, False: 588]
  ------------------
  147|     50|    return os << "(" << value << ")";
  148|    588|  std::string temp = value.toString(0) + " " + value.toString(1) + " " + value.toString(2) + " " + value.toString(3);
  149|    588|  return printTagString<N, array>(os, temp, data);
  150|    638|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm16ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L14sonyFileFormatEENSt3__112basic_stringIcNS6_11char_traitsIcEENS6_9allocatorIcEEEEEERNS6_13basic_ostreamIcS9_EESF_RKT1_PKNS_8ExifDataE:
  107|    588|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    588|  static_assert(N > 0, "Passed zero length printTagString");
  109|       |  if constexpr (std::is_same_v<T, Value>) {
  110|       |    if (auto td = Exiv2::find(array, value.toString(0)))
  111|       |      return os << _(td->label_);
  112|       |    return os << "(" << value << ")";
  113|    588|  } else {
  114|    588|    if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (114:14): [True: 278, False: 310]
  ------------------
  115|    278|      return os << _(td->label_);
  ------------------
  |  |   40|    278|#define _(String) (String)
  ------------------
  116|    310|    return os << "(" << value << ")";
  117|    588|  }
  118|    588|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  9.21k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  9.21k|  static_assert(N > 0, "Passed zero length printTag");
  195|  9.21k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  9.21k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm113ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11sonyModelIdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  9.21k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  9.21k|  static_assert(N > 0, "Passed zero length printTag");
  183|  9.21k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 8.18k, False: 1.03k]
  ------------------
  184|  8.18k|    return os << _(td->label_);
  ------------------
  |  |   40|  8.18k|#define _(String) (String)
  ------------------
  185|  1.03k|  return os << "(" << value << ")";
  186|  9.21k|}
sonymn_int.cpp:_ZN5Exiv28Internal14printTagStringILm19ETnRAT__KNS0_16StringTagDetailsEL_ZNS0_L20sonyCreativeStyleStdEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  107|    290|std::ostream& printTagString(std::ostream& os, const T& value, const ExifData*) {
  108|    290|  static_assert(N > 0, "Passed zero length printTagString");
  109|    290|  if constexpr (std::is_same_v<T, Value>) {
  110|    290|    if (auto td = Exiv2::find(array, value.toString(0)))
  ------------------
  |  Branch (110:14): [True: 32, False: 258]
  ------------------
  111|     32|      return os << _(td->label_);
  ------------------
  |  |   40|     32|#define _(String) (String)
  ------------------
  112|    258|    return os << "(" << value << ")";
  113|       |  } else {
  114|       |    if (auto td = Exiv2::find(array, value))
  115|       |      return os << _(td->label_);
  116|       |    return os << "(" << value << ")";
  117|       |  }
  118|    290|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    778|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    778|  static_assert(N > 0, "Passed zero length printTag");
  195|    778|  return printTag<N, array>(os, value.toInt64(), data);
  196|    778|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb025EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    778|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    778|  static_assert(N > 0, "Passed zero length printTag");
  183|    778|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 656, False: 122]
  ------------------
  184|    656|    return os << _(td->label_);
  ------------------
  |  |   40|    656|#define _(String) (String)
  ------------------
  185|    122|  return os << "(" << value << ")";
  186|    778|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    490|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    490|  static_assert(N > 0, "Passed zero length printTag");
  195|    490|  return printTag<N, array>(os, value.toInt64(), data);
  196|    490|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyOffOnNA2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    490|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    490|  static_assert(N > 0, "Passed zero length printTag");
  183|    490|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 184, False: 306]
  ------------------
  184|    184|    return os << _(td->label_);
  ------------------
  |  |   40|    184|#define _(String) (String)
  ------------------
  185|    306|  return os << "(" << value << ")";
  186|    490|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  3.04k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  3.04k|  static_assert(N > 0, "Passed zero length printTag");
  195|  3.04k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  3.04k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm26ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyColorModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  3.04k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  3.04k|  static_assert(N > 0, "Passed zero length printTag");
  183|  3.04k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 2.39k, False: 648]
  ------------------
  184|  2.39k|    return os << _(td->label_);
  ------------------
  |  |   40|  2.39k|#define _(String) (String)
  ------------------
  185|    648|  return os << "(" << value << ")";
  186|  3.04k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    270|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    270|  static_assert(N > 0, "Passed zero length printTag");
  195|    270|  return printTag<N, array>(os, value.toInt64(), data);
  196|    270|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L9sonyMacroEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    270|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    270|  static_assert(N > 0, "Passed zero length printTag");
  183|    270|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 192, False: 78]
  ------------------
  184|    192|    return os << _(td->label_);
  ------------------
  |  |   40|    192|#define _(String) (String)
  ------------------
  185|     78|  return os << "(" << value << ")";
  186|    270|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  4.50k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  4.50k|  static_assert(N > 0, "Passed zero length printTag");
  195|  4.50k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  4.50k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm31ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyExposureModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  4.50k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  4.50k|  static_assert(N > 0, "Passed zero length printTag");
  183|  4.50k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 3.54k, False: 954]
  ------------------
  184|  3.54k|    return os << _(td->label_);
  ------------------
  |  |   40|  3.54k|#define _(String) (String)
  ------------------
  185|    954|  return os << "(" << value << ")";
  186|  4.50k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     88|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     88|  static_assert(N > 0, "Passed zero length printTag");
  195|     88|  return printTag<N, array>(os, value.toInt64(), data);
  196|     88|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyAFIlluminatorEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     88|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     88|  static_assert(N > 0, "Passed zero length printTag");
  183|     88|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 68, False: 20]
  ------------------
  184|     68|    return os << _(td->label_);
  ------------------
  |  |   40|     68|#define _(String) (String)
  ------------------
  185|     20|  return os << "(" << value << ")";
  186|     88|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    302|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    302|  static_assert(N > 0, "Passed zero length printTag");
  195|    302|  return printTag<N, array>(os, value.toInt64(), data);
  196|    302|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyJPEGQualityEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    302|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    302|  static_assert(N > 0, "Passed zero length printTag");
  183|    302|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 202, False: 100]
  ------------------
  184|    202|    return os << _(td->label_);
  ------------------
  |  |   40|    202|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    302|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    754|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    754|  static_assert(N > 0, "Passed zero length printTag");
  195|    754|  return printTag<N, array>(os, value.toInt64(), data);
  196|    754|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm22ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyFlashLevelEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    754|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    754|  static_assert(N > 0, "Passed zero length printTag");
  183|    754|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 604, False: 150]
  ------------------
  184|    604|    return os << _(td->label_);
  ------------------
  |  |   40|    604|#define _(String) (String)
  ------------------
  185|    150|  return os << "(" << value << ")";
  186|    754|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|  1.28k|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|  1.28k|  static_assert(N > 0, "Passed zero length printTag");
  195|  1.28k|  return printTag<N, array>(os, value.toInt64(), data);
  196|  1.28k|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm6ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyReleaseModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|  1.28k|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|  1.28k|  static_assert(N > 0, "Passed zero length printTag");
  183|  1.28k|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 742, False: 546]
  ------------------
  184|    742|    return os << _(td->label_);
  ------------------
  |  |   40|    742|#define _(String) (String)
  ------------------
  185|    546|  return os << "(" << value << ")";
  186|  1.28k|}
sonymn_int.cpp:_ZN5Exiv28Internal15printTagNoErrorILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L18sonySequenceNumberEENS_5ValueEEERNSt3__113basic_ostreamIcNS7_11char_traitsIcEEEESC_RKT1_PKNS_8ExifDataE:
  160|    144|std::ostream& printTagNoError(std::ostream& os, const T& value, const ExifData*) {
  161|    144|  static_assert(N > 0, "Passed zero length printTagNoError");
  162|    144|  if constexpr (std::is_same_v<T, Value>) {
  163|    144|    if (auto td = Exiv2::find(array, value.toInt64()))
  ------------------
  |  Branch (163:14): [True: 80, False: 64]
  ------------------
  164|     80|      return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  165|     64|    return os << value;
  166|       |  } else {
  167|       |    if (auto td = Exiv2::find(array, value))
  168|       |      return os << _(td->label_);
  169|       |    return os << value;
  170|       |  }
  171|    144|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    532|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    532|  static_assert(N > 0, "Passed zero length printTag");
  195|    532|  return printTag<N, array>(os, value.toInt64(), data);
  196|    532|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L12sonyAntiBlurEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    532|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    532|  static_assert(N > 0, "Passed zero length printTag");
  183|    532|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 216, False: 316]
  ------------------
  184|    216|    return os << _(td->label_);
  ------------------
  |  |   40|    216|#define _(String) (String)
  ------------------
  185|    316|  return os << "(" << value << ")";
  186|    532|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    606|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    606|  static_assert(N > 0, "Passed zero length printTag");
  195|    606|  return printTag<N, array>(os, value.toInt64(), data);
  196|    606|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L11print0xb04fEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    606|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    606|  static_assert(N > 0, "Passed zero length printTag");
  183|    606|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 362, False: 244]
  ------------------
  184|    362|    return os << _(td->label_);
  ------------------
  |  |   40|    362|#define _(String) (String)
  ------------------
  185|    244|  return os << "(" << value << ")";
  186|    606|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    118|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    118|  static_assert(N > 0, "Passed zero length printTag");
  195|    118|  return printTag<N, array>(os, value.toInt64(), data);
  196|    118|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyIntelligentAutoEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    118|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    118|  static_assert(N > 0, "Passed zero length printTag");
  183|    118|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 56, False: 62]
  ------------------
  184|     56|    return os << _(td->label_);
  ------------------
  |  |   40|     56|#define _(String) (String)
  ------------------
  185|     62|  return os << "(" << value << ")";
  186|    118|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    992|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    992|  static_assert(N > 0, "Passed zero length printTag");
  195|    992|  return printTag<N, array>(os, value.toInt64(), data);
  196|    992|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyWhiteBalance2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    992|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    992|  static_assert(N > 0, "Passed zero length printTag");
  183|    992|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 776, False: 216]
  ------------------
  184|    776|    return os << _(td->label_);
  ------------------
  |  |   40|    776|#define _(String) (String)
  ------------------
  185|    216|  return os << "(" << value << ")";
  186|    992|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    430|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    430|  static_assert(N > 0, "Passed zero length printTag");
  195|    430|  return printTag<N, array>(os, value.toInt64(), data);
  196|    430|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm13ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyDriveModeStdEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    430|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    430|  static_assert(N > 0, "Passed zero length printTag");
  183|    430|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 80, False: 350]
  ------------------
  184|     80|    return os << _(td->label_);
  ------------------
  |  |   40|     80|#define _(String) (String)
  ------------------
  185|    350|  return os << "(" << value << ")";
  186|    430|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyCSFocusModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 296]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    296|  return os << "(" << value << ")";
  186|    416|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyMeteringModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 26, False: 390]
  ------------------
  184|     26|    return os << _(td->label_);
  ------------------
  |  |   40|     26|#define _(String) (String)
  ------------------
  185|    390|  return os << "(" << value << ")";
  186|    416|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    416|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    416|  static_assert(N > 0, "Passed zero length printTag");
  195|    416|  return printTag<N, array>(os, value.toInt64(), data);
  196|    416|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sonyCreativeStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    416|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    416|  static_assert(N > 0, "Passed zero length printTag");
  183|    416|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 102, False: 314]
  ------------------
  184|    102|    return os << _(td->label_);
  ------------------
  |  |   40|    102|#define _(String) (String)
  ------------------
  185|    314|  return os << "(" << value << ")";
  186|    416|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    348|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    348|  static_assert(N > 0, "Passed zero length printTag");
  195|    348|  return printTag<N, array>(os, value.toInt64(), data);
  196|    348|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyFlashModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    348|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    348|  static_assert(N > 0, "Passed zero length printTag");
  183|    348|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 78, False: 270]
  ------------------
  184|     78|    return os << _(td->label_);
  ------------------
  |  |   40|     78|#define _(String) (String)
  ------------------
  185|    270|  return os << "(" << value << ")";
  186|    348|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    340|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    340|  static_assert(N > 0, "Passed zero length printTag");
  195|    340|  return printTag<N, array>(os, value.toInt64(), data);
  196|    340|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyAFIlluminatorCSEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    340|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    340|  static_assert(N > 0, "Passed zero length printTag");
  183|    340|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 234]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|    234|  return os << "(" << value << ")";
  186|    340|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    340|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    340|  static_assert(N > 0, "Passed zero length printTag");
  195|    340|  return printTag<N, array>(os, value.toInt64(), data);
  196|    340|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm15ETnRAT__KNS0_10TagDetailsEL_ZNS0_L14sonyImageStyleEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    340|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    340|  static_assert(N > 0, "Passed zero length printTag");
  183|    340|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 120, False: 220]
  ------------------
  184|    120|    return os << _(td->label_);
  ------------------
  |  |   40|    120|#define _(String) (String)
  ------------------
  185|    220|  return os << "(" << value << ")";
  186|    340|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    348|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    348|  static_assert(N > 0, "Passed zero length printTag");
  195|    348|  return printTag<N, array>(os, value.toInt64(), data);
  196|    348|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyExposureProgramEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    348|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    348|  static_assert(N > 0, "Passed zero length printTag");
  183|    348|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 106, False: 242]
  ------------------
  184|    106|    return os << _(td->label_);
  ------------------
  |  |   40|    106|#define _(String) (String)
  ------------------
  185|    242|  return os << "(" << value << ")";
  186|    348|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    284|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    284|  static_assert(N > 0, "Passed zero length printTag");
  195|    284|  return printTag<N, array>(os, value.toInt64(), data);
  196|    284|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm3ETnRAT__KNS0_10TagDetailsEL_ZNS0_L13sonyImageSizeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    284|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    284|  static_assert(N > 0, "Passed zero length printTag");
  183|    284|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 30, False: 254]
  ------------------
  184|     30|    return os << _(td->label_);
  ------------------
  |  |   40|     30|#define _(String) (String)
  ------------------
  185|    254|  return os << "(" << value << ")";
  186|    284|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L15sonyAspectRatioEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    276|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    276|  static_assert(N > 0, "Passed zero length printTag");
  183|    276|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 264]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    264|  return os << "(" << value << ")";
  186|    276|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    276|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    276|  static_assert(N > 0, "Passed zero length printTag");
  195|    276|  return printTag<N, array>(os, value.toInt64(), data);
  196|    276|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm2ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyExposureLevelIncrementsEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    276|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    276|  static_assert(N > 0, "Passed zero length printTag");
  183|    276|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 12, False: 264]
  ------------------
  184|     12|    return os << _(td->label_);
  ------------------
  |  |   40|     12|#define _(String) (String)
  ------------------
  185|    264|  return os << "(" << value << ")";
  186|    276|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    190|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    190|  static_assert(N > 0, "Passed zero length printTag");
  195|    190|  return printTag<N, array>(os, value.toInt64(), data);
  196|    190|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm11ETnRAT__KNS0_10TagDetailsEL_ZNS0_L17sony2FpAFAreaModeEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    190|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    190|  static_assert(N > 0, "Passed zero length printTag");
  183|    190|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 140, False: 50]
  ------------------
  184|    140|    return os << _(td->label_);
  ------------------
  |  |   40|    140|#define _(String) (String)
  ------------------
  185|     50|  return os << "(" << value << ")";
  186|    190|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|     52|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|     52|  static_assert(N > 0, "Passed zero length printTag");
  195|     52|  return printTag<N, array>(os, value.toInt64(), data);
  196|     52|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm33ETnRAT__KNS0_10TagDetailsEL_ZNS0_L20sonyExposureProgram3EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     52|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     52|  static_assert(N > 0, "Passed zero length printTag");
  183|     52|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 6, False: 46]
  ------------------
  184|      6|    return os << _(td->label_);
  ------------------
  |  |   40|      6|#define _(String) (String)
  ------------------
  185|     46|  return os << "(" << value << ")";
  186|     52|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    294|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    294|  static_assert(N > 0, "Passed zero length printTag");
  195|    294|  return printTag<N, array>(os, value.toInt64(), data);
  196|    294|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm23ETnRAT__KNS0_10TagDetailsEL_ZNS0_L16sonyReleaseMode2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    294|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    294|  static_assert(N > 0, "Passed zero length printTag");
  183|    294|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 128, False: 166]
  ------------------
  184|    128|    return os << _(td->label_);
  ------------------
  |  |   40|    128|#define _(String) (String)
  ------------------
  185|    166|  return os << "(" << value << ")";
  186|    294|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    294|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    294|  static_assert(N > 0, "Passed zero length printTag");
  195|    294|  return printTag<N, array>(os, value.toInt64(), data);
  196|    294|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm14ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength1EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    294|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    294|  static_assert(N > 0, "Passed zero length printTag");
  183|    294|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 194, False: 100]
  ------------------
  184|    194|    return os << _(td->label_);
  ------------------
  |  |   40|    194|#define _(String) (String)
  ------------------
  185|    100|  return os << "(" << value << ")";
  186|    294|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    284|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    284|  static_assert(N > 0, "Passed zero length printTag");
  195|    284|  return printTag<N, array>(os, value.toInt64(), data);
  196|    284|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm8ETnRAT__KNS0_10TagDetailsEL_ZNS0_L25sonyMisc3cSequenceLength2EEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    284|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    284|  static_assert(N > 0, "Passed zero length printTag");
  183|    284|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 174, False: 110]
  ------------------
  184|    174|    return os << _(td->label_);
  ------------------
  |  |   40|    174|#define _(String) (String)
  ------------------
  185|    110|  return os << "(" << value << ")";
  186|    284|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_RKNS_5ValueEPKNS_8ExifDataE:
  193|    284|std::ostream& printTag(std::ostream& os, const Value& value, const ExifData* data) {
  194|    284|  static_assert(N > 0, "Passed zero length printTag");
  195|    284|  return printTag<N, array>(os, value.toInt64(), data);
  196|    284|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L27sonyMisc3cCameraOrientationEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|    284|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|    284|  static_assert(N > 0, "Passed zero length printTag");
  183|    284|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 46, False: 238]
  ------------------
  184|     46|    return os << _(td->label_);
  ------------------
  |  |   40|     46|#define _(String) (String)
  ------------------
  185|    238|  return os << "(" << value << ")";
  186|    284|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm5ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2aEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     21|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     21|  static_assert(N > 0, "Passed zero length printTag");
  183|     21|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 9, False: 12]
  ------------------
  184|      9|    return os << _(td->label_);
  ------------------
  |  |   40|      9|#define _(String) (String)
  ------------------
  185|     12|  return os << "(" << value << ")";
  186|     21|}
sonymn_int.cpp:_ZN5Exiv28Internal8printTagILm4ETnRAT__KNS0_10TagDetailsEL_ZNS0_L19sonyMisc3cQuality2bEEEERNSt3__113basic_ostreamIcNS6_11char_traitsIcEEEESB_lPKNS_8ExifDataE:
  181|     78|std::ostream& printTag(std::ostream& os, int64_t value, const ExifData*) {
  182|     78|  static_assert(N > 0, "Passed zero length printTag");
  183|     78|  if (auto td = Exiv2::find(array, value))
  ------------------
  |  Branch (183:12): [True: 39, False: 39]
  ------------------
  184|     39|    return os << _(td->label_);
  ------------------
  |  |   40|     39|#define _(String) (String)
  ------------------
  185|     39|  return os << "(" << value << ")";
  186|     78|}

_ZN5Exiv29isTgaTypeERNS_7BasicIoEb:
  103|  10.1k|bool isTgaType(BasicIo& iIo, bool /*advance*/) {
  104|       |  // not all TARGA files have a signature string, so first just try to match the file name extension
  105|  10.1k|  const std::string& path = iIo.path();
  106|  10.1k|  if (path.ends_with(".tga") || path.ends_with(".TGA")) {
  ------------------
  |  Branch (106:7): [True: 0, False: 10.1k]
  |  Branch (106:33): [True: 0, False: 10.1k]
  ------------------
  107|      0|    return true;
  108|      0|  }
  109|  10.1k|  byte buf[26];
  110|  10.1k|  const size_t curPos = iIo.tell();
  111|  10.1k|  if (curPos < 26)
  ------------------
  |  Branch (111:7): [True: 10.0k, False: 81]
  ------------------
  112|  10.0k|    return false;
  113|       |
  114|     81|  iIo.seek(-26, BasicIo::end);
  115|     81|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (115:7): [True: 0, False: 81]
  |  Branch (115:22): [True: 0, False: 81]
  ------------------
  116|      0|    return false;
  117|      0|  }
  118|     81|  iIo.read(buf, sizeof(buf));
  119|     81|  if (iIo.error()) {
  ------------------
  |  Branch (119:7): [True: 0, False: 81]
  ------------------
  120|      0|    return false;
  121|      0|  }
  122|       |  // some TARGA files, but not all, have a signature string at the end
  123|     81|  bool matched = (memcmp(buf + 8, "TRUEVISION-XFILE", 16) == 0);
  124|     81|  iIo.seek(curPos, BasicIo::beg);
  125|     81|  return matched;
  126|     81|}

_ZNK5Exiv28Internal15TiffMappingInfoeqERKNS1_3KeyE:
   41|  98.6M|bool TiffMappingInfo::operator==(const TiffMappingInfo::Key& key) const {
   42|  98.6M|  return (make_ == "*" || key.m_.starts_with(make_)) && (Tag::all == extendedTag_ || key.e_ == extendedTag_) &&
  ------------------
  |  Branch (42:11): [True: 98.6M, False: 0]
  |  Branch (42:27): [True: 0, False: 0]
  |  Branch (42:58): [True: 19.7M, False: 78.9M]
  |  Branch (42:86): [True: 24.1k, False: 78.9M]
  ------------------
   43|  19.7M|         key.g_ == group_;
  ------------------
  |  Branch (43:10): [True: 7.30k, False: 19.7M]
  ------------------
   44|  98.6M|}
_ZN5Exiv28Internal9IoWrapperC2ERNS_7BasicIoEPKhmPNS0_12OffsetWriterE:
   47|  13.3k|    io_(io), pHeader_(pHeader), size_(size), pow_(pow) {
   48|  13.3k|  if (!pHeader_ || size_ == 0)
  ------------------
  |  Branch (48:7): [True: 5.04k, False: 8.34k]
  |  Branch (48:20): [True: 0, False: 8.34k]
  ------------------
   49|  5.04k|    wroteHeader_ = true;
   50|  13.3k|}
_ZN5Exiv28Internal9IoWrapper5writeEPKhm:
   52|  3.82M|size_t IoWrapper::write(const byte* pData, size_t wcount) {
   53|  3.82M|  if (!wroteHeader_ && wcount > 0) {
  ------------------
  |  Branch (53:7): [True: 8.30k, False: 3.81M]
  |  Branch (53:24): [True: 8.30k, False: 0]
  ------------------
   54|  8.30k|    io_.write(pHeader_, size_);
   55|  8.30k|    wroteHeader_ = true;
   56|  8.30k|  }
   57|  3.82M|  return io_.write(pData, wcount);
   58|  3.82M|}
_ZN5Exiv28Internal9IoWrapper4putbEh:
   60|  18.7k|int IoWrapper::putb(byte data) {
   61|  18.7k|  if (!wroteHeader_) {
  ------------------
  |  Branch (61:7): [True: 0, False: 18.7k]
  ------------------
   62|      0|    io_.write(pHeader_, size_);
   63|      0|    wroteHeader_ = true;
   64|      0|  }
   65|  18.7k|  return io_.putb(data);
   66|  18.7k|}
_ZN5Exiv28Internal13TiffDirectoryC2EtNS_5IfdIdEb:
   76|   150k|TiffDirectory::TiffDirectory(uint16_t tag, IfdId group, bool hasNext) : TiffComponent(tag, group), hasNext_(hasNext) {
   77|   150k|}
_ZN5Exiv28Internal10TiffSubIfdC2EtNS_5IfdIdES2_:
   80|  49.6k|    TiffEntryBase(tag, group, ttUnsignedLong), newGroup_(newGroup) {
   81|  49.6k|}
_ZN5Exiv28Internal16TiffIfdMakernoteC2EtNS_5IfdIdES2_NSt3__110unique_ptrINS0_8MnHeaderENS3_14default_deleteIS5_EEEEb:
   85|  36.0k|    TiffComponent(tag, group), pHeader_(std::move(pHeader)), ifd_(tag, mnGroup, hasNext) {
   86|  36.0k|}
_ZN5Exiv28Internal16TiffIfdMakernoteD2Ev:
   88|  36.0k|TiffIfdMakernote::~TiffIfdMakernote() = default;
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdERKNS0_8ArrayCfgEPKNS0_8ArrayDefEm:
   92|  65.2k|    TiffEntryBase(tag, group, arrayCfg.elTiffType_), arrayCfg_(&arrayCfg), arrayDef_(arrayDef), defSize_(defSize) {
   93|  65.2k|}
_ZN5Exiv28Internal15TiffBinaryArrayC2EtNS_5IfdIdEPKNS0_8ArraySetEmPFitPKhmPNS0_13TiffComponentEE:
   97|  3.89k|    TiffEntryBase(tag, group),  // Todo: Does it make a difference that there is no type?
   98|  3.89k|    cfgSelFct_(cfgSelFct),
   99|  3.89k|    arraySet_(arraySet),
  100|  3.89k|    setSize_(setSize) {
  101|       |  // We'll figure out the correct cfg later
  102|  3.89k|}
_ZN5Exiv28Internal13TiffEntryBaseC2EtNS_5IfdIdENS0_8TiffTypeE:
  118|  23.1M|    TiffComponent(tag, group), tiffType_(tiffType) {
  119|  23.1M|}
_ZN5Exiv28Internal13TiffEntryBaseD2Ev:
  121|  23.1M|TiffEntryBase::~TiffEntryBase() = default;
_ZN5Exiv28Internal17TiffDataEntryBaseC2EtNS_5IfdIdEtS2_:
  142|  55.3k|    TiffEntryBase(tag, group), szTag_(szTag), szGroup_(szGroup) {
  143|  55.3k|}
_ZN5Exiv28Internal13TiffSizeEntryC2EtNS_5IfdIdEtS2_:
  148|  77.2k|    TiffEntryBase(tag, group), dtTag_(dtTag), dtGroup_(dtGroup) {
  149|  77.2k|}
_ZN5Exiv28Internal11TiffMnEntryC2EtNS_5IfdIdES2_:
  152|  50.4k|    TiffEntryBase(tag, group, ttUndefined), mnGroup_(mnGroup) {
  153|  50.4k|}
_ZN5Exiv28Internal11TiffMnEntryD2Ev:
  155|  50.4k|TiffMnEntry::~TiffMnEntry() = default;
_ZNK5Exiv28Internal13TiffEntryBase3idxEv:
  205|  25.8M|int TiffEntryBase::idx() const {
  206|  25.8M|  return idx_;
  207|  25.8M|}
_ZN5Exiv28Internal13TiffEntryBase7setDataENSt3__110shared_ptrINS_7DataBufEEE:
  209|   131k|void TiffEntryBase::setData(std::shared_ptr<DataBuf> buf) {
  210|   131k|  storage_ = std::move(buf);
  211|   131k|  pData_ = storage_->data();
  212|   131k|  size_ = storage_->size();
  213|   131k|}
_ZN5Exiv28Internal13TiffEntryBase7setDataEPhmNSt3__110shared_ptrINS_7DataBufEEE:
  215|  17.1M|void TiffEntryBase::setData(byte* pData, size_t size, std::shared_ptr<DataBuf> storage) {
  216|  17.1M|  pData_ = pData;
  217|  17.1M|  size_ = size;
  218|  17.1M|  storage_ = std::move(storage);
  219|  17.1M|  if (!pData_)
  ------------------
  |  Branch (219:7): [True: 0, False: 17.1M]
  ------------------
  220|      0|    size_ = 0;
  221|  17.1M|}
_ZN5Exiv28Internal13TiffEntryBase11updateValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEENS_9ByteOrderE:
  223|  2.53M|void TiffEntryBase::updateValue(Value::UniquePtr value, ByteOrder byteOrder) {
  224|  2.53M|  if (!value)
  ------------------
  |  Branch (224:7): [True: 0, False: 2.53M]
  ------------------
  225|      0|    return;
  226|  2.53M|  if (size_t newSize = value->size(); newSize > size_) {
  ------------------
  |  Branch (226:39): [True: 130k, False: 2.40M]
  ------------------
  227|   130k|    auto d = std::make_shared<DataBuf>(newSize);
  228|   130k|    setData(std::move(d));
  229|   130k|  }
  230|  2.53M|  if (pData_) {
  ------------------
  |  Branch (230:7): [True: 134k, False: 2.40M]
  ------------------
  231|   134k|    memset(pData_, 0x0, size_);
  232|   134k|  }
  233|  2.53M|  size_ = value->copy(pData_, byteOrder);
  234|  2.53M|  setValue(std::move(value));
  235|  2.53M|}
_ZN5Exiv28Internal13TiffEntryBase8setValueENSt3__110unique_ptrINS_5ValueENS2_14default_deleteIS4_EEEE:
  237|  19.8M|void TiffEntryBase::setValue(Value::UniquePtr value) {
  238|  19.8M|  if (!value)
  ------------------
  |  Branch (238:7): [True: 0, False: 19.8M]
  ------------------
  239|      0|    return;
  240|  19.8M|  tiffType_ = toTiffType(value->typeId());
  241|  19.8M|  count_ = value->count();
  242|  19.8M|  pValue_ = std::move(value);
  243|  19.8M|}
_ZN5Exiv28Internal13TiffDataEntry9setStripsEPKNS_5ValueEPKhmm:
  245|  8.99k|void TiffDataEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  246|  8.99k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (246:7): [True: 418, False: 8.57k]
  |  Branch (246:20): [True: 499, False: 8.07k]
  ------------------
  247|    917|#ifndef SUPPRESS_WARNINGS
  248|    917|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|    917|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 917]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    917|  LogMsg(LogMsg::warn).os()
  ------------------
  249|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  250|    917|#endif
  251|    917|    return;
  252|    917|  }
  253|  8.07k|  if (pValue()->count() == 0) {
  ------------------
  |  Branch (253:7): [True: 1.61k, False: 6.45k]
  ------------------
  254|  1.61k|#ifndef SUPPRESS_WARNINGS
  255|  1.61k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  1.61k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.61k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.61k|  LogMsg(LogMsg::warn).os()
  ------------------
  256|      0|                << tag() << ": Data offset entry value is empty, ignoring it.\n";
  257|  1.61k|#endif
  258|  1.61k|    return;
  259|  1.61k|  }
  260|  6.45k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (260:7): [True: 2.29k, False: 4.16k]
  ------------------
  261|  2.29k|#ifndef SUPPRESS_WARNINGS
  262|  2.29k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  2.29k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2.29k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  2.29k|  LogMsg(LogMsg::warn).os()
  ------------------
  263|      0|                << tag() << ": Size and data offset entries have different"
  264|      0|                << " number of components, ignoring them.\n";
  265|  2.29k|#endif
  266|  2.29k|    return;
  267|  2.29k|  }
  268|  4.16k|  size_t size = 0;
  269|  8.72k|  for (size_t i = 0; i < pSize->count(); ++i) {
  ------------------
  |  Branch (269:22): [True: 4.55k, False: 4.16k]
  ------------------
  270|  4.55k|    size = Safe::add<size_t>(size, pSize->toUint32(i));
  271|  4.55k|  }
  272|  4.16k|  const size_t offset = pValue()->toUint32(0);
  273|  4.16k|  if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (273:7): [True: 140, False: 4.02k]
  |  Branch (273:26): [True: 149, False: 3.87k]
  |  Branch (273:54): [True: 88, False: 3.78k]
  ------------------
  274|    377|#ifndef SUPPRESS_WARNINGS
  275|    377|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|    377|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 377]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    377|  LogMsg(LogMsg::warn).os()
  ------------------
  276|      0|                << tag() << ": Data area exceeds data buffer, ignoring it.\n";
  277|    377|#endif
  278|    377|    return;
  279|    377|  }
  280|       |  // Todo: Remove limitation of JPEG writer: strips must be contiguous
  281|       |  // Until then we check: last offset + last size - first offset == size?
  282|  3.78k|  if (pValue()->toUint32(pValue()->count() - 1) + pSize->toUint32(pSize->count() - 1) != size + offset) {
  ------------------
  |  Branch (282:7): [True: 26, False: 3.76k]
  ------------------
  283|     26|#ifndef SUPPRESS_WARNINGS
  284|     26|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|     26|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 26]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     26|  LogMsg(LogMsg::warn).os()
  ------------------
  285|      0|                << tag() << ": Data area is not contiguous, ignoring it.\n";
  286|     26|#endif
  287|     26|    return;
  288|     26|  }
  289|  3.76k|  pDataArea_ = const_cast<byte*>(pData) + baseOffset + offset;
  290|  3.76k|  sizeDataArea_ = size;
  291|  3.76k|  const_cast<Value*>(pValue())->setDataArea(pDataArea_, sizeDataArea_);
  292|  3.76k|}  // TiffDataEntry::setStrips
_ZN5Exiv28Internal14TiffImageEntry9setStripsEPKNS_5ValueEPKhmm:
  294|  25.1k|void TiffImageEntry::setStrips(const Value* pSize, const byte* pData, size_t sizeData, size_t baseOffset) {
  295|  25.1k|  if (!pValue() || !pSize) {
  ------------------
  |  Branch (295:7): [True: 1.76k, False: 23.3k]
  |  Branch (295:20): [True: 2.04k, False: 21.3k]
  ------------------
  296|  3.80k|#ifndef SUPPRESS_WARNINGS
  297|  3.80k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  3.80k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3.80k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  3.80k|  LogMsg(LogMsg::warn).os()
  ------------------
  298|      0|                << tag() << ": Size or data offset value not set, ignoring them.\n";
  299|  3.80k|#endif
  300|  3.80k|    return;
  301|  3.80k|  }
  302|  21.3k|  if (pValue()->count() != pSize->count()) {
  ------------------
  |  Branch (302:7): [True: 4.56k, False: 16.7k]
  ------------------
  303|  4.56k|#ifndef SUPPRESS_WARNINGS
  304|  4.56k|    EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  4.56k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 4.56k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  4.56k|  LogMsg(LogMsg::warn).os()
  ------------------
  305|      0|                << tag() << ": Size and data offset entries have different"
  306|      0|                << " number of components, ignoring them.\n";
  307|  4.56k|#endif
  308|  4.56k|    return;
  309|  4.56k|  }
  310|  33.5k|  for (size_t i = 0; i < pValue()->count(); ++i) {
  ------------------
  |  Branch (310:22): [True: 16.8k, False: 16.7k]
  ------------------
  311|  16.8k|    const size_t offset = pValue()->toUint32(i);
  312|  16.8k|    const size_t size = pSize->toUint32(i);
  313|       |
  314|  16.8k|    if (size > sizeData || offset > sizeData - size || baseOffset > sizeData - size - offset) {
  ------------------
  |  Branch (314:9): [True: 4.11k, False: 12.7k]
  |  Branch (314:28): [True: 3.12k, False: 9.58k]
  |  Branch (314:56): [True: 28, False: 9.55k]
  ------------------
  315|  7.26k|#ifndef SUPPRESS_WARNINGS
  316|  7.26k|      EXV_WARNING << "Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  7.26k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 7.26k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  7.26k|  LogMsg(LogMsg::warn).os()
  ------------------
  317|      0|                  << tag() << ": Strip " << std::dec << i << " is outside of the data area; ignored.\n";
  318|  7.26k|#endif
  319|  9.55k|    } else if (size != 0) {
  ------------------
  |  Branch (319:16): [True: 7.77k, False: 1.77k]
  ------------------
  320|  7.77k|      const byte* pStrip = pData + baseOffset + offset;
  321|  7.77k|      strips_.emplace_back(pStrip, size);
  322|  7.77k|    }
  323|  16.8k|  }
  324|  16.7k|}  // TiffImageEntry::setStrips
_ZNK5Exiv28Internal16TiffIfdMakernote9ifdOffsetEv:
  326|  29.2k|size_t TiffIfdMakernote::ifdOffset() const {
  327|  29.2k|  if (!pHeader_)
  ------------------
  |  Branch (327:7): [True: 13.8k, False: 15.3k]
  ------------------
  328|  13.8k|    return 0;
  329|  15.3k|  return pHeader_->ifdOffset();
  330|  29.2k|}
_ZNK5Exiv28Internal16TiffIfdMakernote9byteOrderEv:
  332|  70.8k|ByteOrder TiffIfdMakernote::byteOrder() const {
  333|  70.8k|  if (!pHeader_ || pHeader_->byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (333:7): [True: 28.7k, False: 42.1k]
  |  Branch (333:20): [True: 32.3k, False: 9.73k]
  ------------------
  334|  61.1k|    return imageByteOrder_;
  335|  61.1k|  }
  336|  9.73k|  return pHeader_->byteOrder();
  337|  70.8k|}
_ZNK5Exiv28Internal16TiffIfdMakernote8mnOffsetEv:
  339|  28.7k|size_t TiffIfdMakernote::mnOffset() const {
  340|  28.7k|  return mnOffset_;
  341|  28.7k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10baseOffsetEv:
  343|  35.5k|size_t TiffIfdMakernote::baseOffset() const {
  344|  35.5k|  if (!pHeader_)
  ------------------
  |  Branch (344:7): [True: 14.3k, False: 21.1k]
  ------------------
  345|  14.3k|    return 0;
  346|  21.1k|  return pHeader_->baseOffset(mnOffset_);
  347|  35.5k|}
_ZN5Exiv28Internal16TiffIfdMakernote10readHeaderEPKhmNS_9ByteOrderE:
  349|  29.6k|bool TiffIfdMakernote::readHeader(const byte* pData, size_t size, ByteOrder byteOrder) {
  350|  29.6k|  if (!pHeader_)
  ------------------
  |  Branch (350:7): [True: 13.8k, False: 15.8k]
  ------------------
  351|  13.8k|    return true;
  352|  15.8k|  return pHeader_->read(pData, size, byteOrder);
  353|  29.6k|}
_ZN5Exiv28Internal16TiffIfdMakernote12setByteOrderENS_9ByteOrderE:
  355|  5.09k|void TiffIfdMakernote::setByteOrder(ByteOrder byteOrder) {
  356|  5.09k|  if (pHeader_)
  ------------------
  |  Branch (356:7): [True: 4.61k, False: 482]
  ------------------
  357|  4.61k|    pHeader_->setByteOrder(byteOrder);
  358|  5.09k|}
_ZNK5Exiv28Internal16TiffIfdMakernote10sizeHeaderEv:
  360|  51.9k|size_t TiffIfdMakernote::sizeHeader() const {
  361|  51.9k|  if (!pHeader_)
  ------------------
  |  Branch (361:7): [True: 4.36k, False: 47.6k]
  ------------------
  362|  4.36k|    return 0;
  363|  47.6k|  return pHeader_->size();
  364|  51.9k|}
_ZNK5Exiv28Internal16TiffIfdMakernote11writeHeaderERNS0_9IoWrapperENS_9ByteOrderE:
  366|  6.32k|size_t TiffIfdMakernote::writeHeader(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
  367|  6.32k|  if (!pHeader_)
  ------------------
  |  Branch (367:7): [True: 481, False: 5.84k]
  ------------------
  368|    481|    return 0;
  369|  5.84k|  return pHeader_->write(ioWrapper, byteOrder);
  370|  6.32k|}
_ZNK5Exiv28Internal8ArrayDef4sizeEtNS_5IfdIdE:
  372|  29.9M|size_t ArrayDef::size(uint16_t tag, IfdId group) const {
  373|  29.9M|  TypeId typeId = toTypeId(tiffType_, tag, group);
  374|  29.9M|  return count_ * TypeInfo::typeSize(typeId);
  375|  29.9M|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeENS_5IfdIdE:
  377|   995k|bool TiffBinaryArray::initialize(IfdId group) {
  378|   995k|  if (arrayCfg_)
  ------------------
  |  Branch (378:7): [True: 995k, False: 22]
  ------------------
  379|   995k|    return true;  // Not a complex array or already initialized
  380|       |
  381|     59|  for (size_t idx = 0; idx < setSize_; ++idx) {
  ------------------
  |  Branch (381:24): [True: 59, False: 0]
  ------------------
  382|     59|    if (arraySet_[idx].cfg_.group_ == group) {
  ------------------
  |  Branch (382:9): [True: 22, False: 37]
  ------------------
  383|     22|      arrayCfg_ = &arraySet_[idx].cfg_;
  384|     22|      arrayDef_ = arraySet_[idx].def_;
  385|     22|      defSize_ = arraySet_[idx].defSize_;
  386|     22|      return true;
  387|     22|    }
  388|     59|  }
  389|      0|  return false;
  390|     22|}
_ZN5Exiv28Internal15TiffBinaryArray10initializeEPNS0_13TiffComponentE:
  392|  13.8k|bool TiffBinaryArray::initialize(TiffComponent* pRoot) {
  393|  13.8k|  if (!cfgSelFct_)
  ------------------
  |  Branch (393:7): [True: 11.9k, False: 1.86k]
  ------------------
  394|  11.9k|    return true;  // Not a complex array
  395|       |
  396|  1.86k|  int idx = cfgSelFct_(tag(), pData(), TiffEntryBase::doSize(), pRoot);
  397|  1.86k|  if (idx > -1) {
  ------------------
  |  Branch (397:7): [True: 1.51k, False: 351]
  ------------------
  398|  1.51k|    arrayCfg_ = &arraySet_[idx].cfg_;
  399|  1.51k|    arrayDef_ = arraySet_[idx].def_;
  400|  1.51k|    defSize_ = arraySet_[idx].defSize_;
  401|  1.51k|  }
  402|  1.86k|  return idx > -1;
  403|  13.8k|}
_ZN5Exiv28Internal15TiffBinaryArray14iniOrigDataBufEv:
  405|  52.4k|void TiffBinaryArray::iniOrigDataBuf() {
  406|  52.4k|  origData_ = const_cast<byte*>(pData());
  407|  52.4k|  origSize_ = TiffEntryBase::doSize();
  408|  52.4k|}
_ZN5Exiv28Internal15TiffBinaryArray10addElementEmRKNS0_8ArrayDefE:
  419|  14.3M|size_t TiffBinaryArray::addElement(size_t idx, const ArrayDef& def) {
  420|  14.3M|  auto tag = static_cast<uint16_t>(idx / cfg()->tagStep());
  421|  14.3M|  auto sz = std::min<size_t>(def.size(tag, cfg()->group_), TiffEntryBase::doSize() - idx);
  422|  14.3M|  auto tc = TiffCreator::create(tag, cfg()->group_);
  423|  14.3M|  auto tp = dynamic_cast<TiffBinaryElement*>(tc.get());
  424|  14.3M|  if (!tp)
  ------------------
  |  Branch (424:7): [True: 0, False: 14.3M]
  ------------------
  425|      0|    return 0;
  426|       |  // The assertion typically fails if a component is not configured in
  427|       |  // the TIFF structure table (TiffCreator::tiffTreeStruct_)
  428|  14.3M|  tp->setStart(pData() + idx);
  429|  14.3M|  auto s = storage();
  430|  14.3M|  tp->setData(const_cast<byte*>(pData() + idx), sz, std::move(s));
  431|  14.3M|  tp->setElDef(def);
  432|  14.3M|  tp->setElByteOrder(cfg()->byteOrder_);
  433|  14.3M|  addChild(std::move(tc));
  434|  14.3M|  return sz;
  435|  14.3M|}  // TiffBinaryArray::addElement
_ZN5Exiv28Internal13TiffComponent7addPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPS1_NS2_10unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  438|  15.6M|                                      TiffComponent::UniquePtr object) {
  439|  15.6M|  return doAddPath(tag, tiffPath, pRoot, std::move(object));
  440|  15.6M|}  // TiffComponent::addPath
_ZN5Exiv28Internal13TiffComponent9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPS1_NS2_10unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  443|  2.53M|                                        TiffComponent::UniquePtr /*object*/) {
  444|  2.53M|  return this;
  445|  2.53M|}  // TiffComponent::doAddPath
_ZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  448|  6.37M|                                        TiffComponent::UniquePtr object) {
  449|  6.37M|  tiffPath.pop();
  450|  6.37M|  const TiffPathItem tpi = tiffPath.top();
  451|       |
  452|  6.37M|  TiffComponent* tc = nullptr;
  453|       |  // Try to use an existing component if there is still at least one
  454|       |  // composite tag on the stack or the tag to add is the MakerNote tag.
  455|       |  // This is used to prevent duplicate entries. Sub-IFDs also, but the > 1
  456|       |  // condition takes care of them, see below.
  457|  6.37M|  if (tiffPath.size() > 1 || (tpi.extendedTag() == 0x927c && tpi.group() == IfdId::exifId)) {
  ------------------
  |  Branch (457:7): [True: 4.80M, False: 1.57M]
  |  Branch (457:31): [True: 899, False: 1.57M]
  |  Branch (457:62): [True: 451, False: 448]
  ------------------
  458|  4.80M|    if (tpi.extendedTag() == Tag::next) {
  ------------------
  |  Branch (458:9): [True: 5.04k, False: 4.79M]
  ------------------
  459|  5.04k|      tc = pNext_.get();
  460|  4.79M|    } else {
  461|  39.2M|      for (auto&& component : components_) {
  ------------------
  |  Branch (461:29): [True: 39.2M, False: 17.8k]
  ------------------
  462|  39.2M|        if (component->tag() == tpi.tag() && component->group() == tpi.group()) {
  ------------------
  |  Branch (462:13): [True: 4.83M, False: 34.4M]
  |  Branch (462:46): [True: 4.77M, False: 53.9k]
  ------------------
  463|  4.77M|          tc = component.get();
  464|  4.77M|          break;
  465|  4.77M|        }
  466|  39.2M|      }
  467|  4.79M|    }
  468|  4.80M|  }
  469|       |
  470|  6.37M|  if (tc)
  ------------------
  |  Branch (470:7): [True: 4.78M, False: 1.59M]
  ------------------
  471|  4.78M|    return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  472|       |
  473|  1.59M|  auto atc = [&] {
  474|  1.59M|    if (tiffPath.size() == 1 && object) {
  475|  1.59M|      return std::move(object);
  476|  1.59M|    }
  477|  1.59M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.59M|  }();
  479|       |
  480|       |  // Prevent dangling sub-IFD tags: Do not add a sub-IFD component without children.
  481|       |  // Todo: How to check before creating the component?
  482|  1.59M|  if (tiffPath.size() == 1 && dynamic_cast<const TiffSubIfd*>(atc.get()))
  ------------------
  |  Branch (482:7): [True: 1.57M, False: 17.9k]
  |  Branch (482:31): [True: 18.9k, False: 1.55M]
  ------------------
  483|  18.9k|    return nullptr;
  484|       |
  485|  1.57M|  tc = [&] {
  486|  1.57M|    if (tpi.extendedTag() == Tag::next)
  487|  1.57M|      return this->addNext(std::move(atc));
  488|  1.57M|    return this->addChild(std::move(atc));
  489|  1.57M|  }();
  490|  1.57M|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  491|  1.59M|}  // TiffDirectory::doAddPath
_ZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  494|  1.91M|                                     TiffComponent::UniquePtr object) {
  495|  1.91M|  const TiffPathItem tpi1 = tiffPath.top();
  496|  1.91M|  tiffPath.pop();
  497|  1.91M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (497:7): [True: 0, False: 1.91M]
  ------------------
  498|       |    // If the last element in the path is the sub-IFD tag itself we're done.
  499|       |    // But that shouldn't happen - see TiffDirectory::doAddPath
  500|      0|    return this;
  501|      0|  }
  502|  1.91M|  const TiffPathItem tpi2 = tiffPath.top();
  503|  1.91M|  tiffPath.push(tpi1);
  504|  1.91M|  for (const auto& ifd : ifds_)
  ------------------
  |  Branch (504:24): [True: 1.90M, False: 8.01k]
  ------------------
  505|  1.90M|    if (ifd->group() == tpi2.group())
  ------------------
  |  Branch (505:9): [True: 1.90M, False: 0]
  ------------------
  506|  1.90M|      return ifd->addPath(tag, tiffPath, pRoot, std::move(object));
  507|       |
  508|  8.01k|  auto tc = [&] {
  509|  8.01k|    if (tiffPath.size() == 1 && object) {
  510|  8.01k|      return addChild(std::move(object));
  511|  8.01k|    }
  512|  8.01k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  8.01k|  }();
  514|  8.01k|  setCount(ifds_.size());
  515|  8.01k|  return tc->addPath(tag, tiffPath, pRoot, nullptr);
  516|  1.91M|}  // TiffSubIfd::doAddPath
_ZN5Exiv28Internal11TiffMnEntry9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  519|  1.89M|                                      TiffComponent::UniquePtr object) {
  520|  1.89M|  const TiffPathItem tpi1 = tiffPath.top();
  521|  1.89M|  tiffPath.pop();
  522|  1.89M|  if (tiffPath.empty()) {
  ------------------
  |  Branch (522:7): [True: 8.18k, False: 1.88M]
  ------------------
  523|       |    // If the last element in the path is the makernote tag itself we're done
  524|  8.18k|    return this;
  525|  8.18k|  }
  526|  1.88M|  const TiffPathItem tpi2 = tiffPath.top();
  527|  1.88M|  tiffPath.push(tpi1);
  528|  1.88M|  if (!mn_) {
  ------------------
  |  Branch (528:7): [True: 6.36k, False: 1.88M]
  ------------------
  529|  6.36k|    mnGroup_ = tpi2.group();
  530|  6.36k|    mn_ = TiffMnCreator::create(tpi1.tag(), tpi1.group(), mnGroup_);
  531|  6.36k|  }
  532|  1.88M|  return mn_->addPath(tag, tiffPath, pRoot, std::move(object));
  533|  1.89M|}  // TiffMnEntry::doAddPath
_ZN5Exiv28Internal16TiffIfdMakernote9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  536|  1.88M|                                           TiffComponent::UniquePtr object) {
  537|  1.88M|  return ifd_.addPath(tag, tiffPath, pRoot, std::move(object));
  538|  1.88M|}
_ZN5Exiv28Internal15TiffBinaryArray9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEE:
  541|  1.00M|                                          TiffComponent::UniquePtr object) {
  542|  1.00M|  pRoot_ = pRoot;
  543|  1.00M|  if (tiffPath.size() == 1) {
  ------------------
  |  Branch (543:7): [True: 12.0k, False: 995k]
  ------------------
  544|       |    // An unknown complex binary array has no children and acts like a standard TIFF entry
  545|  12.0k|    return this;
  546|  12.0k|  }
  547|   995k|  tiffPath.pop();
  548|   995k|  const TiffPathItem tpi = tiffPath.top();
  549|       |  // Initialize the binary array (if it is a complex array)
  550|   995k|  initialize(tpi.group());
  551|       |  // Todo: Duplicates are not allowed!
  552|       |  // To allow duplicate entries, we only check if the new component already
  553|       |  // exists if there is still at least one composite tag on the stack
  554|   995k|  if (tiffPath.size() > 1) {
  ------------------
  |  Branch (554:7): [True: 0, False: 995k]
  ------------------
  555|      0|    for (const auto& element : elements_)
  ------------------
  |  Branch (555:30): [True: 0, False: 0]
  ------------------
  556|      0|      if (element->tag() == tpi.tag() && element->group() == tpi.group())
  ------------------
  |  Branch (556:11): [True: 0, False: 0]
  |  Branch (556:42): [True: 0, False: 0]
  ------------------
  557|      0|        return element->addPath(tag, tiffPath, pRoot, std::move(object));
  558|      0|  }
  559|       |
  560|   995k|  if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (560:7): [True: 995k, False: 0]
  |  Branch (560:31): [True: 0, False: 995k]
  ------------------
  561|      0|    auto tc = addChild(std::move(object));
  562|      0|    setCount(elements_.size());
  563|      0|    return tc->addPath(tag, tiffPath, pRoot, nullptr);
  564|      0|  }
  565|       |
  566|   995k|  auto tc = addChild(TiffCreator::create(tpi.extendedTag(), tpi.group()));
  567|   995k|  setCount(elements_.size());
  568|   995k|  return tc->addPath(tag, tiffPath, pRoot, std::move(object));
  569|   995k|}  // TiffBinaryArray::doAddPath
_ZN5Exiv28Internal13TiffComponent8addChildENSt3__110shared_ptrIS1_EE:
  571|  23.1M|TiffComponent* TiffComponent::addChild(TiffComponent::SharedPtr tiffComponent) {
  572|  23.1M|  return doAddChild(std::move(tiffComponent));
  573|  23.1M|}  // TiffComponent::addChild
_ZN5Exiv28Internal13TiffDirectory10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  579|  7.81M|TiffComponent* TiffDirectory::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  580|  7.81M|  return components_.emplace_back(std::move(tiffComponent)).get();
  581|  7.81M|}  // TiffDirectory::doAddChild
_ZN5Exiv28Internal10TiffSubIfd10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  583|  54.2k|TiffComponent* TiffSubIfd::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  584|  54.2k|  auto d = std::dynamic_pointer_cast<TiffDirectory>(std::move(tiffComponent));
  585|  54.2k|  if (!d)
  ------------------
  |  Branch (585:7): [True: 0, False: 54.2k]
  ------------------
  586|      0|    throw Error(ErrorCode::kerErrorMessage, "dynamic_pointer_cast to TiffDirectory failed");
  587|       |
  588|  54.2k|  return ifds_.emplace_back(std::move(d)).get();
  589|  54.2k|}  // TiffSubIfd::doAddChild
_ZN5Exiv28Internal15TiffBinaryArray10doAddChildENSt3__110shared_ptrINS0_13TiffComponentEEE:
  602|  15.3M|TiffComponent* TiffBinaryArray::doAddChild(TiffComponent::SharedPtr tiffComponent) {
  603|  15.3M|  setDecoded(true);
  604|  15.3M|  return elements_.emplace_back(std::move(tiffComponent)).get();
  605|  15.3M|}  // TiffBinaryArray::doAddChild
_ZN5Exiv28Internal13TiffComponent7addNextENSt3__110unique_ptrIS1_NS2_14default_deleteIS1_EEEE:
  607|  2.11k|TiffComponent* TiffComponent::addNext(TiffComponent::UniquePtr tiffComponent) {
  608|  2.11k|  return doAddNext(std::move(tiffComponent));
  609|  2.11k|}  // TiffComponent::addNext
_ZN5Exiv28Internal13TiffDirectory9doAddNextENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
  615|  2.11k|TiffComponent* TiffDirectory::doAddNext(TiffComponent::UniquePtr tiffComponent) {
  616|  2.11k|  if (hasNext_) {
  ------------------
  |  Branch (616:7): [True: 2.11k, False: 0]
  ------------------
  617|  2.11k|    pNext_ = std::move(tiffComponent);
  618|  2.11k|    return pNext_.get();
  619|  2.11k|  }
  620|      0|  return nullptr;
  621|  2.11k|}  // TiffDirectory::doAddNext
_ZN5Exiv28Internal13TiffComponent6acceptERNS0_11TiffVisitorE:
  634|   119M|void TiffComponent::accept(TiffVisitor& visitor) {
  635|   119M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (635:7): [True: 119M, False: 9.16k]
  ------------------
  636|   119M|    doAccept(visitor);  // one for NVI :)
  637|   119M|}  // TiffComponent::accept
_ZN5Exiv28Internal9TiffEntry8doAcceptERNS0_11TiffVisitorE:
  639|  43.4M|void TiffEntry::doAccept(TiffVisitor& visitor) {
  640|  43.4M|  visitor.visitEntry(this);
  641|  43.4M|}  // TiffEntry::doAccept
_ZN5Exiv28Internal13TiffDataEntry8doAcceptERNS0_11TiffVisitorE:
  643|   127k|void TiffDataEntry::doAccept(TiffVisitor& visitor) {
  644|   127k|  visitor.visitDataEntry(this);
  645|   127k|}  // TiffDataEntry::doAccept
_ZN5Exiv28Internal14TiffImageEntry8doAcceptERNS0_11TiffVisitorE:
  647|  1.48M|void TiffImageEntry::doAccept(TiffVisitor& visitor) {
  648|  1.48M|  visitor.visitImageEntry(this);
  649|  1.48M|}  // TiffImageEntry::doAccept
_ZN5Exiv28Internal13TiffSizeEntry8doAcceptERNS0_11TiffVisitorE:
  651|  2.34M|void TiffSizeEntry::doAccept(TiffVisitor& visitor) {
  652|  2.34M|  visitor.visitSizeEntry(this);
  653|  2.34M|}  // TiffSizeEntry::doAccept
_ZN5Exiv28Internal13TiffDirectory8doAcceptERNS0_11TiffVisitorE:
  655|  1.23M|void TiffDirectory::doAccept(TiffVisitor& visitor) {
  656|  1.23M|  visitor.visitDirectory(this);
  657|  49.1M|  for (auto&& component : components_) {
  ------------------
  |  Branch (657:25): [True: 49.1M, False: 977k]
  ------------------
  658|  49.1M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (658:9): [True: 257k, False: 48.8M]
  ------------------
  659|   257k|      break;
  660|  48.8M|    component->accept(visitor);
  661|  48.8M|  }
  662|  1.23M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (662:7): [True: 970k, False: 264k]
  ------------------
  663|   970k|    visitor.visitDirectoryNext(this);
  664|  1.23M|  if (pNext_)
  ------------------
  |  Branch (664:7): [True: 24.8k, False: 1.20M]
  ------------------
  665|  24.8k|    pNext_->accept(visitor);
  666|  1.23M|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (666:7): [True: 962k, False: 271k]
  ------------------
  667|   962k|    visitor.visitDirectoryEnd(this);
  668|  1.23M|}  // TiffDirectory::doAccept
_ZN5Exiv28Internal10TiffSubIfd8doAcceptERNS0_11TiffVisitorE:
  670|   216k|void TiffSubIfd::doAccept(TiffVisitor& visitor) {
  671|   216k|  visitor.visitSubIfd(this);
  672|   769k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (672:19): [True: 769k, False: 186k]
  ------------------
  673|   769k|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (673:9): [True: 29.8k, False: 739k]
  ------------------
  674|  29.8k|      break;
  675|   739k|    ifd->accept(visitor);
  676|   739k|  }
  677|   216k|}  // TiffSubIfd::doAccept
_ZN5Exiv28Internal11TiffMnEntry8doAcceptERNS0_11TiffVisitorE:
  679|   189k|void TiffMnEntry::doAccept(TiffVisitor& visitor) {
  680|   189k|  visitor.visitMnEntry(this);
  681|   189k|  if (mn_)
  ------------------
  |  Branch (681:7): [True: 140k, False: 48.8k]
  ------------------
  682|   140k|    mn_->accept(visitor);
  683|   189k|  if (!visitor.go(TiffVisitor::geKnownMakernote)) {
  ------------------
  |  Branch (683:7): [True: 680, False: 188k]
  ------------------
  684|    680|    mn_ = nullptr;
  685|    680|  }
  686|       |
  687|   189k|}  // TiffMnEntry::doAccept
_ZN5Exiv28Internal16TiffIfdMakernote8doAcceptERNS0_11TiffVisitorE:
  689|   135k|void TiffIfdMakernote::doAccept(TiffVisitor& visitor) {
  690|   135k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (690:7): [True: 135k, False: 0]
  ------------------
  691|   135k|    visitor.visitIfdMakernote(this);
  692|   135k|  if (visitor.go(TiffVisitor::geKnownMakernote))
  ------------------
  |  Branch (692:7): [True: 134k, False: 496]
  ------------------
  693|   134k|    ifd_.accept(visitor);
  694|   135k|  if (visitor.go(TiffVisitor::geKnownMakernote) && visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (694:7): [True: 134k, False: 496]
  |  Branch (694:52): [True: 93.7k, False: 40.8k]
  ------------------
  695|  93.7k|    visitor.visitIfdMakernoteEnd(this);
  696|   135k|}
_ZN5Exiv28Internal15TiffBinaryArray8doAcceptERNS0_11TiffVisitorE:
  698|   334k|void TiffBinaryArray::doAccept(TiffVisitor& visitor) {
  699|   334k|  visitor.visitBinaryArray(this);
  700|  68.7M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (700:23): [True: 68.7M, False: 328k]
  ------------------
  701|  68.7M|    if (!visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (701:9): [True: 6.10k, False: 68.7M]
  ------------------
  702|  6.10k|      break;
  703|  68.7M|    element->accept(visitor);
  704|  68.7M|  }
  705|   334k|  if (visitor.go(TiffVisitor::geTraverse))
  ------------------
  |  Branch (705:7): [True: 281k, False: 52.6k]
  ------------------
  706|   281k|    visitor.visitBinaryArrayEnd(this);
  707|   334k|}
_ZN5Exiv28Internal17TiffBinaryElement8doAcceptERNS0_11TiffVisitorE:
  709|  69.5M|void TiffBinaryElement::doAccept(TiffVisitor& visitor) {
  710|  69.5M|  visitor.visitBinaryElement(this);
  711|  69.5M|}
_ZN5Exiv28Internal13TiffEntryBase6encodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  713|  2.55M|void TiffEntryBase::encode(TiffEncoder& encoder, const Exifdatum* datum) {
  714|  2.55M|  doEncode(encoder, datum);
  715|  2.55M|}
_ZN5Exiv28Internal17TiffBinaryElement8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  717|   995k|void TiffBinaryElement::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  718|   995k|  encoder.encodeBinaryElement(this, datum);
  719|   995k|}
_ZN5Exiv28Internal15TiffBinaryArray8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  721|  12.0k|void TiffBinaryArray::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  722|  12.0k|  encoder.encodeBinaryArray(this, datum);
  723|  12.0k|}
_ZN5Exiv28Internal13TiffDataEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  725|  3.83k|void TiffDataEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  726|  3.83k|  encoder.encodeDataEntry(this, datum);
  727|  3.83k|}
_ZN5Exiv28Internal9TiffEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  729|  1.51M|void TiffEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  730|  1.51M|  encoder.encodeTiffEntry(this, datum);
  731|  1.51M|}
_ZN5Exiv28Internal14TiffImageEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  733|  8.44k|void TiffImageEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  734|  8.44k|  encoder.encodeImageEntry(this, datum);
  735|  8.44k|}
_ZN5Exiv28Internal11TiffMnEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  737|  8.24k|void TiffMnEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  738|  8.24k|  encoder.encodeMnEntry(this, datum);
  739|  8.24k|}
_ZN5Exiv28Internal13TiffSizeEntry8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  741|  16.2k|void TiffSizeEntry::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  742|  16.2k|  encoder.encodeSizeEntry(this, datum);
  743|  16.2k|}
_ZN5Exiv28Internal10TiffSubIfd8doEncodeERNS0_11TiffEncoderEPKNS_9ExifdatumE:
  745|    114|void TiffSubIfd::doEncode(TiffEncoder& encoder, const Exifdatum* datum) {
  746|    114|  encoder.encodeSubIfd(this, datum);
  747|    114|}
_ZNK5Exiv28Internal13TiffComponent5countEv:
  749|  1.77M|size_t TiffComponent::count() const {
  750|  1.77M|  return doCount();
  751|  1.77M|}
_ZNK5Exiv28Internal13TiffDirectory7doCountEv:
  753|   128k|size_t TiffDirectory::doCount() const {
  754|   128k|  return components_.size();
  755|   128k|}
_ZNK5Exiv28Internal13TiffEntryBase7doCountEv:
  757|  1.63M|size_t TiffEntryBase::doCount() const {
  758|  1.63M|  return count_;
  759|  1.63M|}
_ZNK5Exiv28Internal11TiffMnEntry7doCountEv:
  761|  12.8k|size_t TiffMnEntry::doCount() const {
  762|  12.8k|  if (!mn_) {
  ------------------
  |  Branch (762:7): [True: 6.53k, False: 6.34k]
  ------------------
  763|  6.53k|    return TiffEntryBase::doCount();
  764|  6.53k|  }
  765|  6.34k|#ifndef SUPPRESS_WARNINGS
  766|       |  // Count of IFD makernote in tag Exif.Photo.MakerNote is the size of the
  767|       |  // Makernote in bytes
  768|  6.34k|  if (tiffType() != ttUndefined && tiffType() != ttUnsignedByte && tiffType() != ttSignedByte) {
  ------------------
  |  Branch (768:7): [True: 1.37k, False: 4.97k]
  |  Branch (768:36): [True: 1.36k, False: 14]
  |  Branch (768:68): [True: 1.29k, False: 62]
  ------------------
  769|  1.29k|    EXV_ERROR << stringFormat(
  ------------------
  |  |  142|  1.29k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 1.29k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  1.29k|  LogMsg(LogMsg::error).os()
  ------------------
                  EXV_ERROR << stringFormat(
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
  770|      0|        "Makernote entry 0x{:04x} has incorrect Exif (TIFF) type {}. (Expected signed or unsigned byte.)\n", tag(),
  771|      0|        static_cast<uint16_t>(tiffType()));
  772|  1.29k|  }
  773|  6.34k|#endif
  774|  6.34k|  return mn_->size();
  775|  12.8k|}
_ZNK5Exiv28Internal15TiffBinaryArray7doCountEv:
  781|  16.6k|size_t TiffBinaryArray::doCount() const {
  782|  16.6k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (782:7): [True: 52, False: 16.6k]
  |  Branch (782:17): [True: 11.5k, False: 5.04k]
  ------------------
  783|  11.6k|    return TiffEntryBase::doCount();
  784|       |
  785|  5.04k|  if (elements_.empty())
  ------------------
  |  Branch (785:7): [True: 0, False: 5.04k]
  ------------------
  786|      0|    return 0;
  787|       |
  788|  5.04k|  TypeId typeId = toTypeId(tiffType(), tag(), group());
  789|  5.04k|  size_t typeSize = TypeInfo::typeSize(typeId);
  790|  5.04k|  if (0 == typeSize) {
  ------------------
  |  Branch (790:7): [True: 331, False: 4.71k]
  ------------------
  791|    331|#ifndef SUPPRESS_WARNINGS
  792|    331|    EXV_WARNING << stringFormat("Directory {}, entry 0x{:04x} has unknown Exif (TIFF) type {}; setting type size 1.\n",
  ------------------
  |  |  138|    331|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 331]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    331|  LogMsg(LogMsg::warn).os()
  ------------------
                  EXV_WARNING << stringFormat("Directory {}, entry 0x{:04x} has unknown Exif (TIFF) type {}; setting type size 1.\n",
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
  793|      0|                                groupName(group()), tag(), static_cast<uint16_t>(tiffType()));
  794|    331|#endif
  795|    331|    typeSize = 1;
  796|    331|  }
  797|       |
  798|  5.04k|  return size() / typeSize;
  799|  5.04k|}
_ZN5Exiv28Internal13TiffComponent5writeERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  806|  2.59M|                            size_t& imageIdx) {
  807|  2.59M|  return doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  808|  2.59M|}  // TiffComponent::write
_ZN5Exiv28Internal13TiffDirectory7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  811|  22.8k|                              size_t& imageIdx) {
  812|  22.8k|  bool isRootDir = (imageIdx == std::string::npos);
  813|       |
  814|       |  // Number of components to write
  815|  22.8k|  const size_t compCount = count();
  816|  22.8k|  if (compCount > 0xffff)
  ------------------
  |  Branch (816:7): [True: 0, False: 22.8k]
  ------------------
  817|      0|    throw Error(ErrorCode::kerTooManyTiffDirectoryEntries, groupName(group()));
  818|       |
  819|       |  // Size of next IFD, if any
  820|  22.8k|  size_t sizeNext = 0;
  821|  22.8k|  if (pNext_)
  ------------------
  |  Branch (821:7): [True: 253, False: 22.6k]
  ------------------
  822|    253|    sizeNext = pNext_->size();
  823|       |
  824|       |  // Nothing to do if there are no entries and the size of the next IFD is 0
  825|  22.8k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (825:7): [True: 153, False: 22.7k]
  |  Branch (825:25): [True: 40, False: 113]
  ------------------
  826|     40|    return 0;
  827|       |
  828|       |  // Remember the offset of the CR2 RAW IFD
  829|  22.8k|  if (group() == IfdId::ifd3Id) {
  ------------------
  |  Branch (829:7): [True: 0, False: 22.8k]
  ------------------
  830|       |#ifdef EXIV2_DEBUG_MESSAGES
  831|       |    std::cerr << "Directory " << groupName(group()) << " offset is 0x" << std::setw(8) << std::setfill('0') << std::hex
  832|       |              << offset << std::dec << "\n";
  833|       |#endif
  834|      0|    ioWrapper.setTarget(OffsetWriter::cr2RawIfdOffset, offset);
  835|      0|  }
  836|       |  // Size of all directory entries, without values and additional data
  837|  22.8k|  const size_t sizeDir = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (837:50): [True: 22.8k, False: 36]
  ------------------
  838|       |
  839|       |  // TIFF standard requires IFD entries to be sorted in ascending order by tag.
  840|       |  // Not sorting makernote directories sometimes preserves them better.
  841|  22.8k|  if (group() < IfdId::mnId) {
  ------------------
  |  Branch (841:7): [True: 13.7k, False: 9.05k]
  ------------------
  842|  13.7k|    std::sort(components_.begin(), components_.end(), cmpTagLt);
  843|  13.7k|  }
  844|       |  // Size of IFD values and additional data
  845|  22.8k|  size_t sizeValue = 0;
  846|  22.8k|  size_t sizeData = 0;
  847|  1.57M|  for (auto&& component : components_) {
  ------------------
  |  Branch (847:25): [True: 1.57M, False: 22.8k]
  ------------------
  848|  1.57M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (848:40): [True: 75.9k, False: 1.49M]
  ------------------
  849|  75.9k|      sv += sv & 1;  // Align value to word boundary
  850|  75.9k|      sizeValue += sv;
  851|  75.9k|    }
  852|       |    // Also add the size of data, but only if needed
  853|  1.57M|    if (isRootDir) {
  ------------------
  |  Branch (853:9): [True: 666k, False: 905k]
  ------------------
  854|   666k|      auto sd = component->sizeData();
  855|   666k|      sd += sd & 1;  // Align data to word boundary
  856|   666k|      sizeData += sd;
  857|   666k|    }
  858|  1.57M|  }
  859|       |
  860|  22.8k|  size_t idx = 0;                 // Current IFD index / bytes written
  861|  22.8k|  valueIdx = sizeDir;             // Offset to the current IFD value
  862|  22.8k|  dataIdx = sizeDir + sizeValue;  // Offset to the entry's data area
  863|  22.8k|  if (isRootDir) {                // Absolute offset to the image data
  ------------------
  |  Branch (863:7): [True: 8.30k, False: 14.5k]
  ------------------
  864|  8.30k|    imageIdx = offset + dataIdx + sizeData + sizeNext;
  865|  8.30k|    imageIdx += imageIdx & 1;  // Align image data to word boundary
  866|  8.30k|  }
  867|       |
  868|       |  // 1st: Write the IFD, a) Number of directory entries
  869|  22.8k|  byte buf[4];
  870|  22.8k|  us2Data(buf, static_cast<uint16_t>(compCount), byteOrder);
  871|  22.8k|  ioWrapper.write(buf, 2);
  872|  22.8k|  idx += 2;
  873|       |  // b) Directory entries - may contain pointers to the value or data
  874|  1.57M|  for (auto&& component : components_) {
  ------------------
  |  Branch (874:25): [True: 1.57M, False: 22.8k]
  ------------------
  875|  1.57M|    idx += writeDirEntry(ioWrapper, byteOrder, offset, component.get(), valueIdx, dataIdx, imageIdx);
  876|  1.57M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (876:40): [True: 75.9k, False: 1.49M]
  ------------------
  877|  75.9k|      sv += sv & 1;  // Align value to word boundary
  878|  75.9k|      valueIdx += sv;
  879|  75.9k|    }
  880|  1.57M|    auto sd = component->sizeData();
  881|  1.57M|    sd += sd & 1;  // Align data to word boundary
  882|  1.57M|    dataIdx += sd;
  883|  1.57M|  }
  884|       |  // c) Pointer to the next IFD
  885|  22.8k|  if (hasNext_) {
  ------------------
  |  Branch (885:7): [True: 22.7k, False: 71]
  ------------------
  886|  22.7k|    memset(buf, 0x0, 4);
  887|  22.7k|    if (pNext_ && sizeNext) {
  ------------------
  |  Branch (887:9): [True: 253, False: 22.5k]
  |  Branch (887:19): [True: 251, False: 2]
  ------------------
  888|    251|      l2Data(buf, static_cast<uint32_t>(offset + dataIdx), byteOrder);
  889|    251|    }
  890|  22.7k|    ioWrapper.write(buf, 4);
  891|  22.7k|    idx += 4;
  892|  22.7k|  }
  893|       |
  894|       |  // 2nd: Write IFD values - may contain pointers to additional data
  895|  22.8k|  valueIdx = sizeDir;
  896|  22.8k|  dataIdx = sizeDir + sizeValue;
  897|  1.57M|  for (auto&& component : components_) {
  ------------------
  |  Branch (897:25): [True: 1.57M, False: 22.8k]
  ------------------
  898|  1.57M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (898:40): [True: 75.8k, False: 1.49M]
  ------------------
  899|  75.8k|      size_t d = component->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  900|  75.8k|      enforce(sv == d, ErrorCode::kerImageWriteFailed);
  901|  75.8k|      if ((sv & 1) == 1) {
  ------------------
  |  Branch (901:11): [True: 18.5k, False: 57.2k]
  ------------------
  902|  18.5k|        ioWrapper.putb(0x0);  // Align value to word boundary
  903|  18.5k|        sv += 1;
  904|  18.5k|      }
  905|  75.8k|      idx += sv;
  906|  75.8k|      valueIdx += sv;
  907|  75.8k|    }
  908|  1.57M|    auto sd = component->sizeData();
  909|  1.57M|    sd += sd & 1;  // Align data to word boundary
  910|  1.57M|    dataIdx += sd;
  911|  1.57M|  }
  912|       |
  913|       |  // 3rd: Write data - may contain offsets too (eg sub-IFD)
  914|  22.8k|  dataIdx = sizeDir + sizeValue;
  915|  22.8k|  idx += writeData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
  916|       |
  917|       |  // 4th: Write next-IFD
  918|  22.8k|  if (pNext_ && sizeNext) {
  ------------------
  |  Branch (918:7): [True: 253, False: 22.5k]
  |  Branch (918:17): [True: 251, False: 2]
  ------------------
  919|    251|    idx += pNext_->write(ioWrapper, byteOrder, offset + idx, std::string::npos, std::string::npos, imageIdx);
  920|    251|  }
  921|       |
  922|       |  // 5th, at the root directory level only: write image data
  923|  22.8k|  if (isRootDir) {
  ------------------
  |  Branch (923:7): [True: 8.22k, False: 14.6k]
  ------------------
  924|  8.22k|    idx += writeImage(ioWrapper, byteOrder);
  925|  8.22k|  }
  926|       |
  927|  22.8k|  return idx;
  928|  22.8k|}
_ZN5Exiv28Internal13TiffDirectory13writeDirEntryERNS0_9IoWrapperENS_9ByteOrderEmPNS0_13TiffComponentEmmRm:
  931|  1.57M|                                    TiffComponent* pTiffComponent, size_t valueIdx, size_t dataIdx, size_t& imageIdx) {
  932|  1.57M|  auto pDirEntry = dynamic_cast<TiffEntryBase*>(pTiffComponent);
  933|  1.57M|  if (!pDirEntry)
  ------------------
  |  Branch (933:7): [True: 0, False: 1.57M]
  ------------------
  934|      0|    return 0;
  935|  1.57M|  byte buf[8];
  936|  1.57M|  us2Data(buf, pDirEntry->tag(), byteOrder);
  937|  1.57M|  us2Data(buf + 2, pDirEntry->tiffType(), byteOrder);
  938|  1.57M|  ul2Data(buf + 4, static_cast<uint32_t>(pDirEntry->count()), byteOrder);
  939|  1.57M|  ioWrapper.write(buf, 8);
  940|  1.57M|  if (pDirEntry->size() > 4) {
  ------------------
  |  Branch (940:7): [True: 75.9k, False: 1.49M]
  ------------------
  941|  75.9k|    pDirEntry->setOffset(Safe::add<size_t>(offset, valueIdx));
  942|  75.9k|    ul2Data(buf, static_cast<uint32_t>(pDirEntry->offset()), byteOrder);
  943|  75.9k|    ioWrapper.write(buf, 4);
  944|  1.49M|  } else {
  945|  1.49M|    const size_t len = pDirEntry->write(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
  946|  1.49M|#ifndef SUPPRESS_WARNINGS
  947|  1.49M|    if (len > 4) {
  ------------------
  |  Branch (947:9): [True: 5, False: 1.49M]
  ------------------
  948|      5|      EXV_ERROR << "Unexpected length in TiffDirectory::writeDirEntry(): len == " << len << ".\n";
  ------------------
  |  |  142|      5|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 5]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      5|  LogMsg(LogMsg::error).os()
  ------------------
  949|      5|    }
  950|  1.49M|#endif
  951|  1.49M|    if (len < 4) {
  ------------------
  |  Branch (951:9): [True: 1.47M, False: 16.9k]
  ------------------
  952|  1.47M|      memset(buf, 0x0, 4);
  953|  1.47M|      ioWrapper.write(buf, 4 - len);
  954|  1.47M|    }
  955|  1.49M|  }
  956|  1.57M|  return 12;
  957|  1.57M|}  // TiffDirectory::writeDirEntry
_ZN5Exiv28Internal13TiffEntryBase7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  960|  1.54M|                              size_t /*dataIdx*/, size_t& /*imageIdx*/) {
  961|  1.54M|  if (!pValue_ || pValue_->size() == 0)
  ------------------
  |  Branch (961:7): [True: 0, False: 1.54M]
  |  Branch (961:19): [True: 1.43M, False: 101k]
  ------------------
  962|  1.43M|    return 0;
  963|       |
  964|   101k|  DataBuf buf(pValue_->size());
  965|   101k|  pValue_->copy(buf.data(), byteOrder);
  966|   101k|  ioWrapper.write(buf.c_data(), buf.size());
  967|   101k|  return buf.size();
  968|  1.54M|}  // TiffEntryBase::doWrite
_ZN5Exiv28Internal13TiffEntryBase11writeOffsetEPhmNS0_8TiffTypeENS_9ByteOrderE:
  970|  10.6k|size_t TiffEntryBase::writeOffset(byte* buf, size_t offset, TiffType tiffType, ByteOrder byteOrder) {
  971|  10.6k|  size_t rc = 0;
  972|  10.6k|  switch (tiffType) {
  973|    378|    case ttUnsignedShort:
  ------------------
  |  Branch (973:5): [True: 378, False: 10.3k]
  ------------------
  974|    798|    case ttSignedShort:
  ------------------
  |  Branch (974:5): [True: 420, False: 10.2k]
  ------------------
  975|    798|      if (offset > std::numeric_limits<uint16_t>::max())
  ------------------
  |  Branch (975:11): [True: 7, False: 791]
  ------------------
  976|      7|        throw Error(ErrorCode::kerOffsetOutOfRange);
  977|    791|      rc = us2Data(buf, static_cast<uint16_t>(offset), byteOrder);
  978|    791|      break;
  979|  9.18k|    case ttUnsignedLong:
  ------------------
  |  Branch (979:5): [True: 9.18k, False: 1.49k]
  ------------------
  980|  9.82k|    case ttSignedLong:
  ------------------
  |  Branch (980:5): [True: 638, False: 10.0k]
  ------------------
  981|  9.82k|      rc = l2Data(buf, static_cast<uint32_t>(offset), byteOrder);
  982|  9.82k|      break;
  983|     62|    default:
  ------------------
  |  Branch (983:5): [True: 62, False: 10.6k]
  ------------------
  984|     62|      throw Error(ErrorCode::kerUnsupportedDataAreaOffsetType);
  985|  10.6k|  }
  986|  10.6k|  return rc;
  987|  10.6k|}  // TiffEntryBase::writeOffset
_ZN5Exiv28Internal13TiffDataEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
  990|  3.75k|                              size_t dataIdx, size_t& /*imageIdx*/) {
  991|  3.75k|  if (!pValue() || pValue()->count() == 0)
  ------------------
  |  Branch (991:7): [True: 0, False: 3.75k]
  |  Branch (991:20): [True: 3.69k, False: 63]
  ------------------
  992|  3.69k|    return 0;
  993|       |
  994|     63|  DataBuf buf(pValue()->size());
  995|     63|  size_t idx = 0;
  996|     63|  const size_t prevOffset = pValue()->toUint32(0);
  997|  1.70k|  for (size_t i = 0; i < count(); ++i) {
  ------------------
  |  Branch (997:22): [True: 1.64k, False: 63]
  ------------------
  998|  1.64k|    const size_t iOffset = pValue()->toUint32(i);
  999|  1.64k|    enforce(prevOffset <= iOffset, ErrorCode::kerOffsetOutOfRange);
 1000|  1.64k|    const auto newDataIdx = Safe::add<size_t>(iOffset - prevOffset, dataIdx);
 1001|  1.64k|    idx += writeOffset(buf.data(idx), Safe::add(offset, newDataIdx), tiffType(), byteOrder);
 1002|  1.64k|  }
 1003|     63|  ioWrapper.write(buf.c_data(), buf.size());
 1004|     63|  return buf.size();
 1005|  3.75k|}
_ZN5Exiv28Internal14TiffImageEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1008|  8.31k|                               size_t dataIdx, size_t& imageIdx) {
 1009|  8.31k|  size_t o2 = imageIdx;
 1010|       |  // For makernotes, write TIFF image data to the data area
 1011|  8.31k|  if (group() > IfdId::mnId)
  ------------------
  |  Branch (1011:7): [True: 87, False: 8.23k]
  ------------------
 1012|     87|    o2 = Safe::add<size_t>(offset, dataIdx);
 1013|       |#ifdef EXIV2_DEBUG_MESSAGES
 1014|       |  std::cerr << "TiffImageEntry, Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
 1015|       |            << std::hex << tag() << std::dec << ": Writing offset " << o2 << "\n";
 1016|       |#endif
 1017|  8.31k|  DataBuf buf(strips_.size() * 4);
 1018|  8.31k|  size_t idx = 0;
 1019|  8.31k|  for (const auto& [_, off] : strips_) {
  ------------------
  |  Branch (1019:29): [True: 1.07k, False: 8.31k]
  ------------------
 1020|  1.07k|    idx += writeOffset(buf.data(idx), o2, tiffType(), byteOrder);
 1021|       |    // Align strip data to word boundary
 1022|  1.07k|    const auto sz = Safe::add(off, off & 1);
 1023|  1.07k|    o2 = Safe::add(o2, sz);
 1024|  1.07k|    if (group() <= IfdId::mnId)
  ------------------
  |  Branch (1024:9): [True: 1.01k, False: 60]
  ------------------
 1025|  1.01k|      imageIdx = Safe::add(imageIdx, sz);
 1026|  1.07k|  }
 1027|  8.31k|  ioWrapper.write(buf.c_data(), buf.size());
 1028|  8.31k|  return buf.size();
 1029|  8.31k|}  // TiffImageEntry::doWrite
_ZN5Exiv28Internal10TiffSubIfd7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1032|  7.97k|                           size_t dataIdx, size_t& /*imageIdx*/) {
 1033|  7.97k|  DataBuf buf(ifds_.size() * 4);
 1034|  7.97k|  size_t idx = 0;
 1035|       |  // Sort IFDs by group, needed if image data tags were copied first
 1036|  7.97k|  std::sort(ifds_.begin(), ifds_.end(), [](const auto& lhs, const auto& rhs) { return lhs->group() < rhs->group(); });
 1037|  7.97k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1037:19): [True: 7.97k, False: 7.97k]
  ------------------
 1038|  7.97k|    idx += writeOffset(buf.data(idx), offset + dataIdx, tiffType(), byteOrder);
 1039|  7.97k|    dataIdx += ifd->size();
 1040|  7.97k|  }
 1041|  7.97k|  ioWrapper.write(buf.c_data(), buf.size());
 1042|  7.97k|  return buf.size();
 1043|  7.97k|}  // TiffSubIfd::doWrite
_ZN5Exiv28Internal11TiffMnEntry7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1046|  12.8k|                            size_t& imageIdx) {
 1047|  12.8k|  if (!mn_) {
  ------------------
  |  Branch (1047:7): [True: 6.50k, False: 6.32k]
  ------------------
 1048|  6.50k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1049|  6.50k|  }
 1050|  6.32k|  return mn_->write(ioWrapper, byteOrder, offset + valueIdx, std::string::npos, std::string::npos, imageIdx);
 1051|  12.8k|}  // TiffMnEntry::doWrite
_ZN5Exiv28Internal16TiffIfdMakernote7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1054|  6.32k|                                 size_t /*dataIdx*/, size_t& imageIdx) {
 1055|  6.32k|  mnOffset_ = offset;
 1056|  6.32k|  setImageByteOrder(byteOrder);
 1057|  6.32k|  auto len = writeHeader(ioWrapper, this->byteOrder());
 1058|  6.32k|  len += ifd_.write(ioWrapper, this->byteOrder(), offset - baseOffset() + len, std::string::npos, std::string::npos,
 1059|  6.32k|                    imageIdx);
 1060|  6.32k|  return len;
 1061|  6.32k|}  // TiffIfdMakernote::doWrite
_ZN5Exiv28Internal15TiffBinaryArray7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1064|  16.6k|                                size_t dataIdx, size_t& imageIdx) {
 1065|  16.6k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1065:7): [True: 52, False: 16.6k]
  |  Branch (1065:17): [True: 11.5k, False: 5.04k]
  ------------------
 1066|  11.6k|    return TiffEntryBase::doWrite(ioWrapper, byteOrder, offset, valueIdx, dataIdx, imageIdx);
 1067|  5.04k|  if (cfg()->byteOrder_ != invalidByteOrder)
  ------------------
  |  Branch (1067:7): [True: 560, False: 4.48k]
  ------------------
 1068|    560|    byteOrder = cfg()->byteOrder_;
 1069|       |  // Tags must be sorted in ascending order
 1070|  5.04k|  std::sort(elements_.begin(), elements_.end(), cmpTagLt);
 1071|  5.04k|  size_t idx = 0;
 1072|  5.04k|  MemIo mio;  // memory stream in which to store data
 1073|  5.04k|  IoWrapper mioWrapper(mio, nullptr, 0, nullptr);
 1074|       |  // Some array entries need to have the size in the first element
 1075|  5.04k|  if (cfg()->hasSize_) {
  ------------------
  |  Branch (1075:7): [True: 82, False: 4.96k]
  ------------------
 1076|     82|    byte buf[4];
 1077|     82|    size_t elSize = TypeInfo::typeSize(toTypeId(cfg()->elTiffType_, 0, cfg()->group_));
 1078|     82|    switch (elSize) {
 1079|     79|      case 2:
  ------------------
  |  Branch (1079:7): [True: 79, False: 3]
  ------------------
 1080|     79|        idx += us2Data(buf, static_cast<uint16_t>(size()), byteOrder);
 1081|     79|        break;
 1082|      3|      case 4:
  ------------------
  |  Branch (1082:7): [True: 3, False: 79]
  ------------------
 1083|      3|        idx += ul2Data(buf, static_cast<uint32_t>(size()), byteOrder);
 1084|      3|        break;
 1085|      0|      default:
  ------------------
  |  Branch (1085:7): [True: 0, False: 82]
  ------------------
 1086|      0|        break;
 1087|     82|    }
 1088|     82|    mioWrapper.write(buf, elSize);
 1089|     82|  }
 1090|       |  // write all tags of the array (Todo: assumes that there are no duplicates, need check)
 1091|   994k|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1091:23): [True: 994k, False: 5.04k]
  ------------------
 1092|       |    // Skip the manufactured tag, if it exists
 1093|   994k|    if (cfg()->hasSize_ && element->tag() == 0)
  ------------------
  |  Branch (1093:9): [True: 7.08k, False: 987k]
  |  Branch (1093:28): [True: 82, False: 6.99k]
  ------------------
 1094|     82|      continue;
 1095|   994k|    size_t newIdx = element->tag() * cfg()->tagStep();
 1096|   994k|    idx += fillGap(mioWrapper, idx, newIdx);
 1097|   994k|    idx += element->write(mioWrapper, byteOrder, offset + newIdx, valueIdx, dataIdx, imageIdx);
 1098|   994k|  }
 1099|  5.04k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1099:7): [True: 4.39k, False: 653]
  |  Branch (1099:29): [True: 4.39k, False: 0]
  ------------------
 1100|  4.39k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1101|  4.39k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1102|  4.39k|    idx += fillGap(mioWrapper, idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1103|  4.39k|  }
 1104|       |
 1105|  5.04k|  if (cfg()->cryptFct_) {
  ------------------
  |  Branch (1105:7): [True: 52, False: 4.99k]
  ------------------
 1106|       |    // Select sonyTagEncipher
 1107|     52|    CryptFct cryptFct = cfg()->cryptFct_;
 1108|     52|    if (cryptFct == &sonyTagDecipher) {
  ------------------
  |  Branch (1108:9): [True: 35, False: 17]
  ------------------
 1109|     35|      cryptFct = sonyTagEncipher;
 1110|     35|    }
 1111|     52|    DataBuf buf = cryptFct(tag(), mio.mmap(), mio.size(), pRoot_);
 1112|     52|    if (!buf.empty()) {
  ------------------
  |  Branch (1112:9): [True: 35, False: 17]
  ------------------
 1113|     35|      mio.seek(0, Exiv2::BasicIo::beg);
 1114|     35|      mio.write(buf.c_data(), buf.size());
 1115|     35|    }
 1116|     52|  }
 1117|  5.04k|  ioWrapper.write(mio.mmap(), mio.size());
 1118|       |
 1119|  5.04k|  return idx;
 1120|  5.04k|}  // TiffBinaryArray::doWrite
_ZN5Exiv28Internal17TiffBinaryElement7doWriteERNS0_9IoWrapperENS_9ByteOrderEmmmRm:
 1123|   994k|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) {
 1124|   994k|  auto pv = pValue();
 1125|   994k|  if (!pv || pv->count() == 0)
  ------------------
  |  Branch (1125:7): [True: 0, False: 994k]
  |  Branch (1125:14): [True: 971k, False: 23.4k]
  ------------------
 1126|   971k|    return 0;
 1127|  23.4k|  DataBuf buf(pv->size());
 1128|  23.4k|  pv->copy(buf.data(), byteOrder);
 1129|  23.4k|  ioWrapper.write(buf.c_data(), buf.size());
 1130|  23.4k|  return buf.size();
 1131|   994k|}  // TiffBinaryElement::doWrite
_ZNK5Exiv28Internal13TiffComponent9writeDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1134|  1.59M|                                size_t& imageIdx) const {
 1135|  1.59M|  return doWriteData(ioWrapper, byteOrder, offset, dataIdx, imageIdx);
 1136|  1.59M|}  // TiffComponent::writeData
_ZNK5Exiv28Internal13TiffDirectory11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1139|  22.7k|                                  size_t& imageIdx) const {
 1140|  22.7k|  size_t len = 0;
 1141|  1.56M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1141:25): [True: 1.56M, False: 22.7k]
  ------------------
 1142|  1.56M|    len += component->writeData(ioWrapper, byteOrder, offset, dataIdx + len, imageIdx);
 1143|  1.56M|  }
 1144|  22.7k|  return len;
 1145|  22.7k|}  // TiffDirectory::doWriteData
_ZNK5Exiv28Internal13TiffEntryBase11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1148|  1.54M|                                  size_t /*dataIdx*/, size_t& /*imageIdx*/) const {
 1149|  1.54M|  return 0;
 1150|  1.54M|}  // TiffEntryBase::doWriteData
_ZNK5Exiv28Internal14TiffImageEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1153|  8.26k|                                   size_t& /*imageIdx*/) const {
 1154|  8.26k|  size_t len = 0;
 1155|       |  // For makernotes, write TIFF image data to the data area
 1156|  8.26k|  if (group() > IfdId::mnId) {  // Todo: FIX THIS HACK!!!
  ------------------
  |  Branch (1156:7): [True: 81, False: 8.18k]
  ------------------
 1157|     81|    len = writeImage(ioWrapper, byteOrder);
 1158|     81|  }
 1159|  8.26k|  return len;
 1160|  8.26k|}  // TiffImageEntry::doWriteData
_ZNK5Exiv28Internal13TiffDataEntry11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1163|  3.71k|                                  size_t& /*imageIdx*/) const {
 1164|  3.71k|  if (!pValue())
  ------------------
  |  Branch (1164:7): [True: 0, False: 3.71k]
  ------------------
 1165|      0|    return 0;
 1166|       |
 1167|  3.71k|  DataBuf buf = pValue()->dataArea();
 1168|  3.71k|  if (!buf.empty())
  ------------------
  |  Branch (1168:7): [True: 11, False: 3.70k]
  ------------------
 1169|     11|    ioWrapper.write(buf.c_data(), buf.size());
 1170|       |  // Align data to word boundary
 1171|  3.71k|  size_t align = (buf.size() & 1);
 1172|  3.71k|  if (align)
  ------------------
  |  Branch (1172:7): [True: 10, False: 3.70k]
  ------------------
 1173|     10|    ioWrapper.putb(0x0);
 1174|       |
 1175|  3.71k|  return buf.size() + align;
 1176|  3.71k|}  // TiffDataEntry::doWriteData
_ZNK5Exiv28Internal10TiffSubIfd11doWriteDataERNS0_9IoWrapperENS_9ByteOrderEmmRm:
 1179|  7.96k|                               size_t& imageIdx) const {
 1180|  7.96k|  size_t len = 0;
 1181|  7.96k|  for (auto&& ifd : ifds_) {
  ------------------
  |  Branch (1181:19): [True: 7.96k, False: 7.96k]
  ------------------
 1182|  7.96k|    len += ifd->write(ioWrapper, byteOrder, offset + dataIdx + len, std::string::npos, std::string::npos, imageIdx);
 1183|  7.96k|  }
 1184|       |  // Align data to word boundary
 1185|  7.96k|  size_t align = (len & 1);
 1186|  7.96k|  if (align)
  ------------------
  |  Branch (1186:7): [True: 0, False: 7.96k]
  ------------------
 1187|      0|    ioWrapper.putb(0x0);
 1188|       |
 1189|  7.96k|  return len + align;
 1190|  7.96k|}  // TiffSubIfd::doWriteData
_ZNK5Exiv28Internal13TiffComponent10writeImageERNS0_9IoWrapperENS_9ByteOrderE:
 1197|   704k|size_t TiffComponent::writeImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1198|   704k|  return doWriteImage(ioWrapper, byteOrder);
 1199|   704k|}  // TiffComponent::writeImage
_ZNK5Exiv28Internal13TiffDirectory12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1201|  13.6k|size_t TiffDirectory::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1202|  13.6k|  size_t len = 0;
 1203|  13.6k|  const TiffComponent* pSubIfd = nullptr;
 1204|   690k|  for (const auto& component : components_) {
  ------------------
  |  Branch (1204:30): [True: 690k, False: 13.6k]
  ------------------
 1205|   690k|    if (component->tag() == 0x014a) {
  ------------------
  |  Branch (1205:9): [True: 21, False: 690k]
  ------------------
 1206|       |      // Hack: delay writing of sub-IFD image data to get the order correct
 1207|     21|#ifndef SUPPRESS_WARNINGS
 1208|     21|      if (pSubIfd) {
  ------------------
  |  Branch (1208:11): [True: 10, False: 11]
  ------------------
 1209|     10|        EXV_ERROR << "Multiple sub-IFD image data tags found\n";
  ------------------
  |  |  142|     10|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 10]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|     10|  LogMsg(LogMsg::error).os()
  ------------------
 1210|     10|      }
 1211|     21|#endif
 1212|     21|      pSubIfd = component.get();
 1213|     21|      continue;
 1214|     21|    }
 1215|   690k|    len += component->writeImage(ioWrapper, byteOrder);
 1216|   690k|  }
 1217|  13.6k|  if (pSubIfd) {
  ------------------
  |  Branch (1217:7): [True: 11, False: 13.6k]
  ------------------
 1218|     11|    len += pSubIfd->writeImage(ioWrapper, byteOrder);
 1219|     11|  }
 1220|  13.6k|  if (pNext_) {
  ------------------
  |  Branch (1220:7): [True: 235, False: 13.4k]
  ------------------
 1221|    235|    len += pNext_->writeImage(ioWrapper, byteOrder);
 1222|    235|  }
 1223|  13.6k|  return len;
 1224|  13.6k|}  // TiffDirectory::doWriteImage
_ZNK5Exiv28Internal13TiffEntryBase12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1226|   676k|size_t TiffEntryBase::doWriteImage(IoWrapper& /*ioWrapper*/, ByteOrder /*byteOrder*/) const {
 1227|   676k|  return 0;
 1228|   676k|}  // TiffEntryBase::doWriteImage
_ZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1230|  5.22k|size_t TiffSubIfd::doWriteImage(IoWrapper& ioWrapper, ByteOrder byteOrder) const {
 1231|  5.22k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(),
 1232|  5.22k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
 1233|  5.22k|}  // TiffSubIfd::doWriteImage
_ZNK5Exiv28Internal14TiffImageEntry12doWriteImageERNS0_9IoWrapperENS_9ByteOrderE:
 1243|  8.25k|size_t TiffImageEntry::doWriteImage(IoWrapper& ioWrapper, ByteOrder /*byteOrder*/) const {
 1244|  8.25k|  if (!pValue())
  ------------------
  |  Branch (1244:7): [True: 0, False: 8.25k]
  ------------------
 1245|      0|    throw Error(ErrorCode::kerImageWriteFailed);  // #1296
 1246|       |
 1247|  8.25k|  size_t len = pValue()->sizeDataArea();
 1248|  8.25k|  if (len > 0) {
  ------------------
  |  Branch (1248:7): [True: 76, False: 8.18k]
  ------------------
 1249|       |#ifdef EXIV2_DEBUG_MESSAGES
 1250|       |    std::cerr << "TiffImageEntry, Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
 1251|       |              << std::hex << tag() << std::dec << ": Writing data area, size = " << len;
 1252|       |#endif
 1253|     76|    DataBuf buf = pValue()->dataArea();
 1254|     76|    ioWrapper.write(buf.c_data(), buf.size());
 1255|     76|    size_t align = len & 1;  // Align image data to word boundary
 1256|     76|    if (align)
  ------------------
  |  Branch (1256:9): [True: 31, False: 45]
  ------------------
 1257|     31|      ioWrapper.putb(0x0);
 1258|     76|    len += align;
 1259|  8.18k|  } else {
 1260|       |#ifdef EXIV2_DEBUG_MESSAGES
 1261|       |    std::cerr << "TiffImageEntry, Directory " << groupName(group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
 1262|       |              << std::hex << tag() << std::dec << ": Writing " << strips_.size() << " strips";
 1263|       |#endif
 1264|  8.18k|    len = 0;
 1265|  8.18k|    for (auto&& [f, s] : strips_) {
  ------------------
  |  Branch (1265:24): [True: 163, False: 8.18k]
  ------------------
 1266|    163|      ioWrapper.write(f, s);
 1267|    163|      len += s;
 1268|    163|      size_t align = s & 1;  // Align strip data to word boundary
 1269|    163|      if (align)
  ------------------
  |  Branch (1269:11): [True: 101, False: 62]
  ------------------
 1270|    101|        ioWrapper.putb(0x0);
 1271|    163|      len += align;
 1272|    163|    }
 1273|  8.18k|  }
 1274|       |#ifdef EXIV2_DEBUG_MESSAGES
 1275|       |  std::cerr << ", len = " << len << " bytes\n";
 1276|       |#endif
 1277|  8.25k|  return len;
 1278|  8.25k|}  // TiffImageEntry::doWriteImage
_ZNK5Exiv28Internal13TiffComponent4sizeEv:
 1280|  14.9M|size_t TiffComponent::size() const {
 1281|  14.9M|  return doSize();
 1282|  14.9M|}
_ZNK5Exiv28Internal13TiffDirectory6doSizeEv:
 1284|   106k|size_t TiffDirectory::doSize() const {
 1285|   106k|  size_t compCount = count();
 1286|       |  // Size of the directory, without values and additional data
 1287|   106k|  size_t len = 2 + (12 * compCount) + (hasNext_ ? 4 : 0);
  ------------------
  |  Branch (1287:40): [True: 105k, False: 324]
  ------------------
 1288|       |  // Size of IFD values and data
 1289|  7.93M|  for (auto&& component : components_) {
  ------------------
  |  Branch (1289:25): [True: 7.93M, False: 106k]
  ------------------
 1290|  7.93M|    if (size_t sv = component->size(); sv > 4) {
  ------------------
  |  Branch (1290:40): [True: 358k, False: 7.57M]
  ------------------
 1291|   358k|      sv += sv & 1;  // Align value to word boundary
 1292|   358k|      len += sv;
 1293|   358k|    }
 1294|  7.93M|    auto sd = component->sizeData();
 1295|  7.93M|    sd += sd & 1;  // Align data to word boundary
 1296|  7.93M|    len += sd;
 1297|  7.93M|  }
 1298|       |  // Size of next-IFD, if any
 1299|   106k|  size_t sizeNext = 0;
 1300|   106k|  if (pNext_) {
  ------------------
  |  Branch (1300:7): [True: 0, False: 106k]
  ------------------
 1301|      0|    sizeNext = pNext_->size();
 1302|      0|    len += sizeNext;
 1303|      0|  }
 1304|       |  // Reset size of IFD if it has no entries and no or empty next IFD.
 1305|   106k|  if (compCount == 0 && sizeNext == 0)
  ------------------
  |  Branch (1305:7): [True: 38, False: 106k]
  |  Branch (1305:25): [True: 38, False: 0]
  ------------------
 1306|     38|    len = 0;
 1307|   106k|  return len;
 1308|   106k|}
_ZNK5Exiv28Internal13TiffEntryBase6doSizeEv:
 1310|  57.1M|size_t TiffEntryBase::doSize() const {
 1311|  57.1M|  return size_;
 1312|  57.1M|}
_ZNK5Exiv28Internal14TiffImageEntry6doSizeEv:
 1314|  34.4k|size_t TiffImageEntry::doSize() const {
 1315|  34.4k|  return strips_.size() * 4;
 1316|  34.4k|}
_ZNK5Exiv28Internal10TiffSubIfd6doSizeEv:
 1318|  56.5k|size_t TiffSubIfd::doSize() const {
 1319|  56.5k|  return ifds_.size() * 4;
 1320|  56.5k|}
_ZNK5Exiv28Internal11TiffMnEntry6doSizeEv:
 1322|  72.0k|size_t TiffMnEntry::doSize() const {
 1323|  72.0k|  if (!mn_) {
  ------------------
  |  Branch (1323:7): [True: 26.3k, False: 45.6k]
  ------------------
 1324|  26.3k|    return TiffEntryBase::doSize();
 1325|  26.3k|  }
 1326|  45.6k|  return mn_->size();
 1327|  72.0k|}
_ZNK5Exiv28Internal16TiffIfdMakernote6doSizeEv:
 1329|  51.9k|size_t TiffIfdMakernote::doSize() const {
 1330|  51.9k|  return sizeHeader() + ifd_.size();
 1331|  51.9k|}
_ZNK5Exiv28Internal15TiffBinaryArray6doSizeEv:
 1333|   221k|size_t TiffBinaryArray::doSize() const {
 1334|   221k|  if (!cfg() || !decoded())
  ------------------
  |  Branch (1334:7): [True: 680, False: 221k]
  |  Branch (1334:17): [True: 150k, False: 70.7k]
  ------------------
 1335|   151k|    return TiffEntryBase::doSize();
 1336|       |
 1337|  70.7k|  if (elements_.empty())
  ------------------
  |  Branch (1337:7): [True: 0, False: 70.7k]
  ------------------
 1338|      0|    return 0;
 1339|       |
 1340|       |  // Remaining assumptions:
 1341|       |  // - array elements don't "overlap"
 1342|       |  // - no duplicate tags in the array
 1343|  70.7k|  size_t idx = 0;
 1344|  70.7k|  size_t sz = cfg()->tagStep();
 1345|  13.9M|  for (auto&& element : elements_) {
  ------------------
  |  Branch (1345:23): [True: 13.9M, False: 70.7k]
  ------------------
 1346|  13.9M|    if (element->tag() > idx) {
  ------------------
  |  Branch (1346:9): [True: 545k, False: 13.3M]
  ------------------
 1347|   545k|      idx = element->tag();
 1348|   545k|      sz = element->size();
 1349|   545k|    }
 1350|  13.9M|  }
 1351|  70.7k|  idx *= cfg()->tagStep();
 1352|  70.7k|  idx += sz;
 1353|       |
 1354|  70.7k|  if (cfg()->hasFillers_ && def()) {
  ------------------
  |  Branch (1354:7): [True: 61.5k, False: 9.22k]
  |  Branch (1354:29): [True: 61.5k, False: 0]
  ------------------
 1355|  61.5k|    const ArrayDef* lastDef = def() + defSize() - 1;
 1356|  61.5k|    auto lastTag = static_cast<uint16_t>(lastDef->idx_ / cfg()->tagStep());
 1357|  61.5k|    idx = std::max<size_t>(idx, lastDef->idx_ + lastDef->size(lastTag, cfg()->group_));
 1358|  61.5k|  }
 1359|  70.7k|  return idx;
 1360|       |
 1361|  70.7k|}  // TiffBinaryArray::doSize
_ZNK5Exiv28Internal17TiffBinaryElement6doSizeEv:
 1363|   545k|size_t TiffBinaryElement::doSize() const {
 1364|   545k|  if (!pValue())
  ------------------
  |  Branch (1364:7): [True: 0, False: 545k]
  ------------------
 1365|      0|    return 0;
 1366|   545k|  return pValue()->size();
 1367|   545k|}
_ZNK5Exiv28Internal13TiffComponent8sizeDataEv:
 1369|  11.7M|size_t TiffComponent::sizeData() const {
 1370|  11.7M|  return doSizeData();
 1371|  11.7M|}
_ZNK5Exiv28Internal13TiffEntryBase10doSizeDataEv:
 1377|  11.6M|size_t TiffEntryBase::doSizeData() const {
 1378|  11.6M|  return 0;
 1379|  11.6M|}
_ZNK5Exiv28Internal14TiffImageEntry10doSizeDataEv:
 1381|  25.9k|size_t TiffImageEntry::doSizeData() const {
 1382|  25.9k|  size_t len = 0;
 1383|       |  // For makernotes, TIFF image data is written to the data area
 1384|  25.9k|  if (group() > IfdId::mnId) {  // Todo: Fix this hack!!
  ------------------
  |  Branch (1384:7): [True: 1.32k, False: 24.6k]
  ------------------
 1385|  1.32k|    len = sizeImage();
 1386|  1.32k|  }
 1387|  25.9k|  return len;
 1388|  25.9k|}
_ZNK5Exiv28Internal13TiffDataEntry10doSizeDataEv:
 1390|  33.0k|size_t TiffDataEntry::doSizeData() const {
 1391|  33.0k|  if (!pValue())
  ------------------
  |  Branch (1391:7): [True: 0, False: 33.0k]
  ------------------
 1392|      0|    return 0;
 1393|  33.0k|  return pValue()->sizeDataArea();
 1394|  33.0k|}
_ZNK5Exiv28Internal10TiffSubIfd10doSizeDataEv:
 1396|  45.8k|size_t TiffSubIfd::doSizeData() const {
 1397|  45.8k|  return std::transform_reduce(ifds_.begin(), ifds_.end(), size_t{}, std::plus(), std::mem_fn(&TiffSubIfd::size));
 1398|  45.8k|}
_ZNK5Exiv28Internal13TiffComponent9sizeImageEv:
 1404|  1.32k|size_t TiffComponent::sizeImage() const {
 1405|  1.32k|  return doSizeImage();
 1406|  1.32k|}
_ZNK5Exiv28Internal14TiffImageEntry11doSizeImageEv:
 1426|  1.32k|size_t TiffImageEntry::doSizeImage() const {
 1427|  1.32k|  if (!pValue())
  ------------------
  |  Branch (1427:7): [True: 0, False: 1.32k]
  ------------------
 1428|      0|    return 0;
 1429|  1.32k|  auto len = pValue()->sizeDataArea();
 1430|  1.32k|  if (len != 0)
  ------------------
  |  Branch (1430:7): [True: 0, False: 1.32k]
  ------------------
 1431|      0|    return len;
 1432|       |
 1433|  1.32k|  return std::transform_reduce(strips_.begin(), strips_.end(), len, std::plus(),
 1434|  1.32k|                               [](const auto& s) { return s.second; });
 1435|  1.32k|}  // TiffImageEntry::doSizeImage
_ZN5Exiv28Internal8toTypeIdENS0_8TiffTypeEtNS_5IfdIdE:
 1452|  50.4M|TypeId toTypeId(TiffType tiffType, uint16_t tag, IfdId group) {
 1453|  50.4M|  auto ti = static_cast<TypeId>(tiffType);
 1454|       |  // On the fly type conversion for Exif.Photo.UserComment, Exif.GPSProcessingMethod, GPSAreaInformation
 1455|  50.4M|  if (const TagInfo* pTag = ti == undefined ? findTagInfo(tag, group) : nullptr) {
  ------------------
  |  Branch (1455:22): [True: 4.05k, False: 50.4M]
  ------------------
 1456|  4.05k|    if (pTag->typeId_ == comment) {
  ------------------
  |  Branch (1456:9): [True: 2.61k, False: 1.43k]
  ------------------
 1457|  2.61k|      ti = comment;
 1458|  2.61k|    }
 1459|  4.05k|  }
 1460|       |  // http://dev.exiv2.org/boards/3/topics/1337 change unsignedByte to signedByte
 1461|       |  // Exif.NikonAFT.AFFineTuneAdj || Exif.Pentax.Temperature
 1462|  50.4M|  if (ti == Exiv2::unsignedByte &&
  ------------------
  |  Branch (1462:7): [True: 5.64M, False: 44.8M]
  ------------------
 1463|  5.64M|      ((tag == 0x0002 && group == IfdId::nikonAFTId) || (tag == 0x0047 && group == IfdId::pentaxId))) {
  ------------------
  |  Branch (1463:9): [True: 3.93k, False: 5.64M]
  |  Branch (1463:26): [True: 283, False: 3.64k]
  |  Branch (1463:58): [True: 712, False: 5.64M]
  |  Branch (1463:75): [True: 39, False: 673]
  ------------------
 1464|    322|    ti = Exiv2::signedByte;
 1465|    322|  }
 1466|  50.4M|  return ti;
 1467|  50.4M|}
_ZN5Exiv28Internal10toTiffTypeENS_6TypeIdE:
 1469|  19.8M|TiffType toTiffType(TypeId typeId) {
 1470|  19.8M|  if (static_cast<uint32_t>(typeId) > 0xffff) {
  ------------------
  |  Branch (1470:7): [True: 0, False: 19.8M]
  ------------------
 1471|      0|#ifndef SUPPRESS_WARNINGS
 1472|      0|    EXV_ERROR << "'" << TypeInfo::typeName(typeId) << "' is not a valid Exif (TIFF) type; using type '"
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
 1473|      0|              << TypeInfo::typeName(undefined) << "'.\n";
 1474|      0|#endif
 1475|      0|    return ttUndefined;
 1476|      0|  }
 1477|  19.8M|  return static_cast<TiffType>(typeId);
 1478|  19.8M|}
_ZN5Exiv28Internal8cmpTagLtERKNSt3__110shared_ptrINS0_13TiffComponentEEES6_:
 1480|  14.8M|bool cmpTagLt(const TiffComponent::SharedPtr& lhs, const TiffComponent::SharedPtr& rhs) {
 1481|  14.8M|  if (lhs->tag() != rhs->tag())
  ------------------
  |  Branch (1481:7): [True: 10.5M, False: 4.27M]
  ------------------
 1482|  10.5M|    return lhs->tag() < rhs->tag();
 1483|  4.27M|  return lhs->idx() < rhs->idx();
 1484|  14.8M|}
_ZN5Exiv28Internal12newTiffEntryEtNS_5IfdIdE:
 1486|  7.44M|TiffComponent::UniquePtr newTiffEntry(uint16_t tag, IfdId group) {
 1487|  7.44M|  return std::make_unique<TiffEntry>(tag, group);
 1488|  7.44M|}
_ZN5Exiv28Internal14newTiffMnEntryEtNS_5IfdIdE:
 1490|  50.4k|TiffComponent::UniquePtr newTiffMnEntry(uint16_t tag, IfdId group) {
 1491|  50.4k|  return std::make_unique<TiffMnEntry>(tag, group, IfdId::mnId);
 1492|  50.4k|}
_ZN5Exiv28Internal20newTiffBinaryElementEtNS_5IfdIdE:
 1494|  15.4M|TiffComponent::UniquePtr newTiffBinaryElement(uint16_t tag, IfdId group) {
 1495|  15.4M|  return std::make_unique<TiffBinaryElement>(tag, group);
 1496|  15.4M|}
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  473|  1.59M|  auto atc = [&] {
  474|  1.59M|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (474:9): [True: 1.57M, False: 17.9k]
  |  Branch (474:33): [True: 0, False: 1.57M]
  ------------------
  475|      0|      return std::move(object);
  476|      0|    }
  477|  1.59M|    return TiffCreator::create(tpi.extendedTag(), tpi.group());
  478|  1.59M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal13TiffDirectory9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_1clEv:
  485|  1.57M|  tc = [&] {
  486|  1.57M|    if (tpi.extendedTag() == Tag::next)
  ------------------
  |  Branch (486:9): [True: 253, False: 1.57M]
  ------------------
  487|    253|      return this->addNext(std::move(atc));
  488|  1.57M|    return this->addChild(std::move(atc));
  489|  1.57M|  }();
tiffcomposite_int.cpp:_ZZN5Exiv28Internal10TiffSubIfd9doAddPathEtRNSt3__15stackINS0_12TiffPathItemENS2_5dequeIS4_NS2_9allocatorIS4_EEEEEEPNS0_13TiffComponentENS2_10unique_ptrISB_NS2_14default_deleteISB_EEEEENK3$_0clEv:
  508|  8.01k|  auto tc = [&] {
  509|  8.01k|    if (tiffPath.size() == 1 && object) {
  ------------------
  |  Branch (509:9): [True: 0, False: 8.01k]
  |  Branch (509:33): [True: 0, False: 0]
  ------------------
  510|      0|      return addChild(std::move(object));
  511|      0|    }
  512|  8.01k|    return addChild(std::make_unique<TiffDirectory>(tpi1.tag(), tpi2.group()));
  513|  8.01k|  }();
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal10TiffSubIfd12doWriteImageERNS0_9IoWrapperENS_9ByteOrderEENK3$_0clINSt3__110shared_ptrINS0_13TiffDirectoryEEEEEDaRKT_:
 1232|  5.22k|                               [&](const auto& ifd) { return ifd->writeImage(ioWrapper, byteOrder); });
tiffcomposite_int.cpp:_ZZNK5Exiv28Internal14TiffImageEntry11doSizeImageEvENK3$_0clINSt3__14pairIPKhmEEEEDaRKT_:
 1434|    489|                               [](const auto& s) { return s.second; });
tiffcomposite_int.cpp:_ZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdE:
 1437|   113k|static const TagInfo* findTagInfo(uint16_t tag, IfdId group) {
 1438|   113k|  const TagInfo* tags = [=] {
 1439|   113k|    if (group == IfdId::gpsId)
 1440|   113k|      return Internal::gpsTagList();
 1441|   113k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
 1442|   113k|  }();
 1443|   113k|  if (tags)
  ------------------
  |  Branch (1443:7): [True: 4.68k, False: 108k]
  ------------------
 1444|   144k|    for (size_t idx = 0; tags[idx].tag_ != 0xffff; ++idx)
  ------------------
  |  Branch (1444:26): [True: 144k, False: 635]
  ------------------
 1445|   144k|      if (tags[idx].tag_ == tag)
  ------------------
  |  Branch (1445:11): [True: 4.05k, False: 140k]
  ------------------
 1446|  4.05k|        return tags + idx;
 1447|   109k|  return nullptr;
 1448|   113k|}
tiffcomposite_int.cpp:_ZZN5Exiv28InternalL11findTagInfoEtNS_5IfdIdEENK3$_0clEv:
 1438|   113k|  const TagInfo* tags = [=] {
 1439|   113k|    if (group == IfdId::gpsId)
  ------------------
  |  Branch (1439:9): [True: 3.28k, False: 110k]
  ------------------
 1440|  3.28k|      return Internal::gpsTagList();
 1441|   110k|    return group == IfdId::exifId ? Internal::exifTagList() : nullptr;
  ------------------
  |  Branch (1441:12): [True: 1.40k, False: 108k]
  ------------------
 1442|   113k|  }();
tiffcomposite_int.cpp:_ZN12_GLOBAL__N_17fillGapERN5Exiv28Internal9IoWrapperEmm:
 1503|   998k|size_t fillGap(Exiv2::Internal::IoWrapper& ioWrapper, size_t curr, size_t tobe) {
 1504|   998k|  if (curr < tobe) {
  ------------------
  |  Branch (1504:7): [True: 500k, False: 498k]
  ------------------
 1505|   500k|    Exiv2::DataBuf buf(tobe - curr);
 1506|   500k|    ioWrapper.write(buf.c_data(), buf.size());
 1507|   500k|    return tobe - curr;
 1508|   500k|  }
 1509|   498k|  return 0;
 1510|   998k|}

_ZN5Exiv28Internal12TiffPathItemC2EjNS_5IfdIdE:
   74|  9.94M|  constexpr TiffPathItem(uint32_t extendedTag, IfdId group) : extendedTag_(extendedTag), group_(group) {
   75|  9.94M|  }
_ZNK5Exiv28Internal12TiffPathItem3tagEv:
   81|  39.2M|  [[nodiscard]] uint16_t tag() const {
   82|  39.2M|    return static_cast<uint16_t>(extendedTag_);
   83|  39.2M|  }
_ZNK5Exiv28Internal12TiffPathItem11extendedTagEv:
   85|  10.5M|  [[nodiscard]] uint32_t extendedTag() const {
   86|  10.5M|    return extendedTag_;
   87|  10.5M|  }
_ZNK5Exiv28Internal12TiffPathItem5groupEv:
   89|  10.3M|  [[nodiscard]] IfdId group() const {
   90|  10.3M|    return group_;
   91|  10.3M|  }
_ZN5Exiv28Internal13TiffComponentC2EtNS_5IfdIdE:
  170|  23.3M|  constexpr TiffComponent(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  171|  23.3M|  }
_ZN5Exiv28Internal13TiffComponent8setStartEPKh:
  216|  20.7M|  void setStart(const byte* pStart) {
  217|  20.7M|    pStart_ = const_cast<byte*>(pStart);
  218|  20.7M|  }
_ZNK5Exiv28Internal13TiffComponent3tagEv:
  240|   247M|  [[nodiscard]] uint16_t tag() const {
  241|   247M|    return tag_;
  242|   247M|  }
_ZNK5Exiv28Internal13TiffComponent5groupEv:
  244|  91.5M|  [[nodiscard]] IfdId group() const {
  245|  91.5M|    return group_;
  246|  91.5M|  }
_ZNK5Exiv28Internal13TiffComponent5startEv:
  248|  20.9M|  [[nodiscard]] byte* start() const {
  249|  20.9M|    return pStart_;
  250|  20.9M|  }
_ZN5Exiv28Internal13TiffEntryBase9setOffsetEm:
  416|  17.3M|  void setOffset(size_t offset) {
  417|  17.3M|    offset_ = offset;
  418|  17.3M|  }
_ZNK5Exiv28Internal13TiffEntryBase8tiffTypeEv:
  458|  1.63M|  [[nodiscard]] TiffType tiffType() const {
  459|  1.63M|    return tiffType_;
  460|  1.63M|  }
_ZNK5Exiv28Internal13TiffEntryBase6offsetEv:
  465|  75.9k|  [[nodiscard]] size_t offset() const {
  466|  75.9k|    return offset_;
  467|  75.9k|  }
_ZNK5Exiv28Internal13TiffEntryBase5pDataEv:
  476|  28.7M|  [[nodiscard]] const byte* pData() const {
  477|  28.7M|    return pData_;
  478|  28.7M|  }
_ZNK5Exiv28Internal13TiffEntryBase6pValueEv:
  480|  40.2M|  [[nodiscard]] const Value* pValue() const {
  481|  40.2M|    return pValue_.get();
  482|  40.2M|  }
_ZN5Exiv28Internal13TiffEntryBase8setCountEm:
  497|  1.00M|  void setCount(size_t count) {
  498|  1.00M|    count_ = count;
  499|  1.00M|  }
_ZN5Exiv28Internal13TiffEntryBase6setIdxEi:
  501|  17.2M|  void setIdx(int idx) {
  502|  17.2M|    idx_ = idx;
  503|  17.2M|  }
_ZNK5Exiv28Internal13TiffEntryBase7storageEv:
  540|  14.3M|  [[nodiscard]] std::shared_ptr<DataBuf> storage() const {
  541|  14.3M|    return storage_;
  542|  14.3M|  }
_ZNK5Exiv28Internal17TiffDataEntryBase5szTagEv:
  623|  43.2k|  [[nodiscard]] uint16_t szTag() const {
  624|  43.2k|    return szTag_;
  625|  43.2k|  }
_ZNK5Exiv28Internal17TiffDataEntryBase7szGroupEv:
  627|  43.2k|  [[nodiscard]] IfdId szGroup() const {
  628|  43.2k|    return szGroup_;
  629|  43.2k|  }
_ZNK5Exiv28Internal13TiffSizeEntry5dtTagEv:
  789|  61.0k|  [[nodiscard]] uint16_t dtTag() const {
  790|  61.0k|    return dtTag_;
  791|  61.0k|  }
_ZNK5Exiv28Internal13TiffSizeEntry7dtGroupEv:
  793|  61.0k|  [[nodiscard]] IfdId dtGroup() const {
  794|  61.0k|    return dtGroup_;
  795|  61.0k|  }
_ZNK5Exiv28Internal13TiffDirectory7hasNextEv:
  842|  23.8k|  [[nodiscard]] bool hasNext() const {
  843|  23.8k|    return hasNext_;
  844|  23.8k|  }
_ZN5Exiv28Internal16TiffIfdMakernote17setImageByteOrderENS_9ByteOrderE:
 1106|  36.0k|  void setImageByteOrder(ByteOrder byteOrder) {
 1107|  36.0k|    imageByteOrder_ = byteOrder;
 1108|  36.0k|  }
_ZNK5Exiv28Internal8ArrayDefeqEm:
 1217|  27.4M|  bool operator==(size_t idx) const {
 1218|  27.4M|    return idx_ == idx;
 1219|  27.4M|  }
_ZNK5Exiv28Internal8ArrayCfg7tagStepEv:
 1234|  15.5M|  [[nodiscard]] size_t tagStep() const {
 1235|  15.5M|    return elDefaultDef_.size(0, group_);
 1236|  15.5M|  }
_ZN5Exiv28Internal15TiffBinaryArray10setDecodedEb:
 1310|  15.3M|  void setDecoded(bool decoded) {
 1311|  15.3M|    decoded_ = decoded;
 1312|  15.3M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3cfgEv:
 1318|  59.9M|  [[nodiscard]] const ArrayCfg* cfg() const {
 1319|  59.9M|    return arrayCfg_;
 1320|  59.9M|  }
_ZNK5Exiv28Internal15TiffBinaryArray3defEv:
 1322|   145k|  [[nodiscard]] const ArrayDef* def() const {
 1323|   145k|    return arrayDef_;
 1324|   145k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7defSizeEv:
 1326|  79.3k|  [[nodiscard]] size_t defSize() const {
 1327|  79.3k|    return defSize_;
 1328|  79.3k|  }
_ZNK5Exiv28Internal15TiffBinaryArray7decodedEv:
 1330|   304k|  [[nodiscard]] bool decoded() const {
 1331|   304k|    return decoded_;
 1332|   304k|  }
_ZN5Exiv28Internal17TiffBinaryElement8setElDefERKNS0_8ArrayDefE:
 1404|  14.3M|  void setElDef(const ArrayDef& def) {
 1405|  14.3M|    elDef_ = def;
 1406|  14.3M|  }
_ZN5Exiv28Internal17TiffBinaryElement14setElByteOrderENS_9ByteOrderE:
 1410|  14.3M|  void setElByteOrder(ByteOrder byteOrder) {
 1411|  14.3M|    elByteOrder_ = byteOrder;
 1412|  14.3M|  }
_ZNK5Exiv28Internal17TiffBinaryElement5elDefEv:
 1420|  14.4M|  [[nodiscard]] const ArrayDef* elDef() const {
 1421|  14.4M|    return &elDef_;
 1422|  14.4M|  }
_ZNK5Exiv28Internal17TiffBinaryElement11elByteOrderEv:
 1426|  14.4M|  [[nodiscard]] ByteOrder elByteOrder() const {
 1427|  14.4M|    return elByteOrder_;
 1428|  14.4M|  }
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  34.9k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  34.9k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  34.9k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE56EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|     97|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|     97|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|     97|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    284|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    284|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    284|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE21EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  14.0k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  14.0k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  14.0k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  1.05k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  1.05k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  1.05k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE5EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  10.3k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  10.3k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  10.3k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE6EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    133|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    133|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    133|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.77k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.77k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.77k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.12k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.12k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.12k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    645|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    645|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    645|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    963|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    963|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    963|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  9.30k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  9.30k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  9.30k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE1EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  25.0k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  25.0k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  25.0k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.69k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.69k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.69k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  6.49k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  6.49k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  6.49k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.10k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.10k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.10k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.27k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.27k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.27k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    384|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    384|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    384|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    376|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    376|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    376|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.76k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.76k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.76k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE9EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.77k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.77k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.77k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.21k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.21k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.21k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    904|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    904|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    904|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    483|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    483|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    483|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    459|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    459|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    459|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  3.09k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  3.09k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  3.09k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE10EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.54k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.54k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.54k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.31k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.31k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.31k|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.24k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.24k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.24k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    637|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    637|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    637|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    738|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    738|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    738|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  2.79k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  2.79k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  2.79k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE11EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  3.90k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  3.90k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  3.90k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    941|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    941|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    941|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.00k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.00k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.00k|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    335|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    335|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    335|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    306|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    306|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    306|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  2.65k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  2.65k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  2.65k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE12EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  4.10k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  4.10k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  4.10k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    360|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    360|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    360|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    468|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    468|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    468|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    614|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    614|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    614|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    699|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    699|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    699|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.13k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.13k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.13k|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE13EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.28k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.28k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.28k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    534|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    534|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    534|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    450|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    450|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    450|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    482|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    482|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    482|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    592|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    592|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    592|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    723|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    723|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    723|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE14EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    850|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    850|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    850|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    243|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    243|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    243|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    499|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    499|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    499|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    501|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    501|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    501|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    872|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    872|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    872|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    778|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    778|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    778|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE15EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|  1.15k|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|  1.15k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|  1.15k|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    379|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    379|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    379|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    464|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    464|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    464|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    598|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    598|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    598|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    347|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    347|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    347|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    716|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    716|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    716|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE16EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    786|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    786|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    786|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    446|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    446|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    446|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    483|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    483|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    483|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    593|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    593|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    593|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    348|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    348|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    348|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    712|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    712|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    712|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE17EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    889|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    889|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    889|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE7EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    765|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    765|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    765|}
_ZN5Exiv28Internal16newTiffThumbDataILt279ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    103|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    103|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    103|}
_ZN5Exiv28Internal16newTiffThumbSizeILt273ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|    414|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|    414|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|    414|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    400|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    400|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    400|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    716|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    716|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    716|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    158|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    158|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    158|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  1.55k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  1.55k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  1.55k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE2EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.10k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.10k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.10k|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    528|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    528|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    528|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     70|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     70|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     70|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    471|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    471|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    471|}
_ZN5Exiv28Internal16newTiffImageDataILt325ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    334|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    334|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    334|}
_ZN5Exiv28Internal16newTiffImageSizeILt324ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    135|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    135|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    135|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    325|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    325|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    325|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE18EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    536|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    536|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    536|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     20|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     20|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     20|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    209|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    209|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    209|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    259|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    259|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    259|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE3EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    193|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    193|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    193|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|    102|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|    102|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|    102|}
_ZN5Exiv28Internal16newTiffImageDataILt279ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|     61|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|     61|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|     61|}
_ZN5Exiv28Internal16newTiffImageSizeILt273ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    206|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    206|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    206|}
_ZN5Exiv28Internal16newTiffImageDataILt514ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|    304|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|    304|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|    304|}
_ZN5Exiv28Internal16newTiffImageSizeILt513ELNS_5IfdIdE4EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    303|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    303|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    303|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  22.4k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  22.4k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  22.4k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10minoCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  4.38k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  4.38k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  4.38k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE100EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    314|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    314|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    314|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  12.6k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  12.6k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  12.6k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE101EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.19k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.19k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.19k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE102EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|     85|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|     85|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|     85|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE103EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    643|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    643|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    643|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE104EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    187|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    187|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    187|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE105EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.98k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.98k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.98k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE106EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    195|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    195|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    195|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE107EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    516|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    516|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    516|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE108EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    532|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    532|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    532|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE109EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  1.89k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  1.89k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  1.89k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE110EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    191|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    191|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    191|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE111EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    242|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    242|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    242|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE112EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  4.74k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  4.74k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  4.74k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE113EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  6.74k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  6.74k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  6.74k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE114EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|  3.53k|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|  3.53k|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|  3.53k|}
_ZN5Exiv28Internal16newTiffImageDataILt258ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1531|  1.67k|TiffComponent::UniquePtr newTiffImageData(uint16_t tag, IfdId group) {
 1532|  1.67k|  return std::make_unique<TiffImageEntry>(tag, group, szTag, szGroup);
 1533|  1.67k|}
_ZN5Exiv28Internal16newTiffImageSizeILt257ELNS_5IfdIdE99EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1537|    441|TiffComponent::UniquePtr newTiffImageSize(uint16_t tag, IfdId group) {
 1538|       |  // Todo: Same as newTiffThumbSize - consolidate (rename)?
 1539|    441|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1540|    441|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonCsCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonCsDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  18.0k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  18.0k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  18.0k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  18.0k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonSiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  2.54k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  2.54k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  2.54k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPaCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|  1.29k|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|  1.29k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|  1.29k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonCfCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    582|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    582|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    582|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    647|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    647|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    647|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonTiCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    553|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    553|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    553|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonFiCfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    836|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    836|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    836|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    836|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonPrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    188|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    188|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    188|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonAfMiAdjCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     59|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     59|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     59|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L15canonVigCor2CfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     56|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     56|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     56|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonLiOpCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    236|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    236|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    236|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10canonLeCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10canonLeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    161|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    161|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    161|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    161|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonAmCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    227|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    227|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    227|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L10canonMeCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    382|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    382|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    382|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonFilCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    100|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    100|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    100|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonHdrCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    177|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    177|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    177|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L11canonAfCCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    749|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    749|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    749|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12canonRawBCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|     48|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|     48|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|     48|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    171|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    171|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    171|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonVrCfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonVrDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     84|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     84|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     84|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     84|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonPcCfgEELm13ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonPcDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    163|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    163|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    163|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    163|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonWtCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonWtDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    236|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    236|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    236|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    236|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonIiCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonIiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    194|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    194|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    194|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    194|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonAfCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonAfDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    183|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    183|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    183|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    183|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonSiSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    162|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    162|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    162|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    162|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm6ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonCbSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    172|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    172|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    172|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    172|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm4ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonLdSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    217|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    217|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    217|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    217|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm5ETnRAT__KNS0_8ArraySetEL_ZNS0_L10nikonFlSetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    127|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    127|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    127|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    127|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonMeCfgEELm4ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonMeDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|     54|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|     54|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|     54|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|     54|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L11nikonAf2SetEEXadL_ZNS0_13nikonSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|     94|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|     94|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|     94|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|     94|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10nikonFiCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10nikonFiDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    313|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    313|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    313|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    313|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L11nikonAFTCfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L11nikonAFTDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    197|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    197|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    197|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    197|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|     66|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|     66|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|     66|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE65EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     66|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     66|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     66|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  2.48k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  2.48k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  2.48k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE117EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  3.29k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  3.29k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  3.29k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt4ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  1.57k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  1.57k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  1.57k|}
_ZN5Exiv28Internal16newTiffThumbDataILt3ELNS_5IfdIdE116EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.45k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.45k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.45k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12samsungPwCfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12samsungPwDefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  5.61k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  5.61k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  5.61k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  5.61k|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    328|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    328|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    328|}
_ZN5Exiv28Internal16newTiffThumbDataILt514ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|  2.74k|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|  2.74k|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|  2.74k|}
_ZN5Exiv28Internal16newTiffThumbSizeILt513ELNS_5IfdIdE119EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|  4.33k|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|  4.33k|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|  4.33k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L12sony2010eSetEEXadL_ZNS0_17sony2010eSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    120|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    120|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    120|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    120|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2FpSetEEXadL_ZNS0_15sony2FpSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    795|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    795|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    795|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    795|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc2bSetEEXadL_ZNS0_18sonyMisc2bSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    127|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    127|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    127|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    127|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm1ETnRAT__KNS0_8ArraySetEL_ZNS0_L13sonyMisc3cSetEEXadL_ZNS0_18sonyMisc3cSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    425|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    425|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    425|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    425|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sonyMisc1CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L12sonyMisc1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    133|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    133|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    133|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    133|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L13sonySInfo1CfgEELm5ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L13sonySInfo1DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.23k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.23k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.23k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.23k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony1CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|    624|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|    624|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|    624|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|    624|}
_ZN5Exiv28Internal13newTiffSubIfdILNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1493|    286|TiffComponent::UniquePtr newTiffSubIfd(uint16_t tag, IfdId group) {
 1494|    286|  return std::make_unique<TiffSubIfd>(tag, group, newGroup);
 1495|    286|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray2ILm2ETnRAT__KNS0_8ArraySetEL_ZNS0_L10sony2CsSetEEXadL_ZNS0_14sonyCsSelectorEtPKhmPNS0_13TiffComponentEEEEENSt3__110unique_ptrIS8_NSA_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1512|  1.03k|TiffComponent::UniquePtr newTiffBinaryArray2(uint16_t tag, IfdId group) {
 1513|  1.03k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray2");
 1514|  1.03k|  return std::make_unique<TiffBinaryArray>(tag, group, arraySet, N, cfgSelFct);
 1515|  1.03k|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsoCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    675|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    675|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    675|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray1IL_ZNS0_L12sony1MCsnCfgEEEENSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEEtNS_5IfdIdE:
 1506|    399|TiffComponent::UniquePtr newTiffBinaryArray1(uint16_t tag, IfdId group) {
 1507|    399|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, nullptr, 0);
 1508|    399|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L12sony1MCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    354|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    354|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    354|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    354|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|    319|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|    319|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|    319|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE124EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     14|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     14|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     14|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L15sony1MCsA100CfgEELm3ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L15sony1MCsA100DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    267|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    267|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    267|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    267|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs7CfgEELm2ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs7DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|  1.11k|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|  1.11k|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|  1.11k|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|  1.11k|}
_ZN5Exiv28Internal16newTiffThumbDataILt137ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1519|     92|TiffComponent::UniquePtr newTiffThumbData(uint16_t tag, IfdId group) {
 1520|     92|  return std::make_unique<TiffDataEntry>(tag, group, szTag, szGroup);
 1521|     92|}
_ZN5Exiv28Internal16newTiffThumbSizeILt136ELNS_5IfdIdE57EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1525|     99|TiffComponent::UniquePtr newTiffThumbSize(uint16_t tag, IfdId group) {
 1526|     99|  return std::make_unique<TiffSizeEntry>(tag, group, dtTag, dtGroup);
 1527|     99|}
tiffimage_int.cpp:_ZN5Exiv28Internal19newTiffBinaryArray0IL_ZNS0_L10minoCs5CfgEELm1ETnRAT0__KNS0_8ArrayDefEL_ZNS0_L10minoCs5DefEEEENSt3__110unique_ptrINS0_13TiffComponentENS6_14default_deleteIS8_EEEEtNS_5IfdIdE:
 1499|    255|TiffComponent::UniquePtr newTiffBinaryArray0(uint16_t tag, IfdId group) {
 1500|    255|  static_assert(N > 0, "Passed zero length newTiffBinaryArray0");
 1501|    255|  return std::make_unique<TiffBinaryArray>(tag, group, arrayCfg, arrayDef, N);
 1502|    255|}
_ZN5Exiv28Internal16newTiffDirectoryILNS_5IfdIdE19EEENSt3__110unique_ptrINS0_13TiffComponentENS3_14default_deleteIS5_EEEEtS2_:
 1487|  2.28k|TiffComponent::UniquePtr newTiffDirectory(uint16_t tag, IfdId /*group*/) {
 1488|  2.28k|  return std::make_unique<TiffDirectory>(tag, newGroup);
 1489|  2.28k|}
_ZN5Exiv28Internal13TiffComponentD2Ev:
  173|  23.3M|  virtual ~TiffComponent() = default;
_ZN5Exiv28Internal13TiffDirectoryD2Ev:
  830|   150k|  ~TiffDirectory() override = default;
_ZN5Exiv28Internal10TiffSubIfdD2Ev:
  937|  49.6k|  ~TiffSubIfd() override = default;
_ZN5Exiv28Internal15TiffBinaryArrayD2Ev:
 1269|  69.1k|  ~TiffBinaryArray() override = default;

_ZN5Exiv29TiffImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   44|  13.7k|    Image(ImageType::tiff, mdExif | mdIptc | mdXmp, std::move(io)) {
   45|  13.7k|}  // TiffImage::TiffImage
_ZNK5Exiv29TiffImage12primaryGroupEv:
   76|    210|std::string TiffImage::primaryGroup() const {
   77|    210|  if (!primaryGroup_.empty())
  ------------------
  |  Branch (77:7): [True: 105, False: 105]
  ------------------
   78|    105|    return primaryGroup_;
   79|       |
   80|    105|  static constexpr auto keys = std::array{
   81|    105|      "Exif.Image.NewSubfileType",     "Exif.SubImage1.NewSubfileType", "Exif.SubImage2.NewSubfileType",
   82|    105|      "Exif.SubImage3.NewSubfileType", "Exif.SubImage4.NewSubfileType", "Exif.SubImage5.NewSubfileType",
   83|    105|      "Exif.SubImage6.NewSubfileType", "Exif.SubImage7.NewSubfileType", "Exif.SubImage8.NewSubfileType",
   84|    105|      "Exif.SubImage9.NewSubfileType",
   85|    105|  };
   86|       |  // Find the group of the primary image, default to "Image"
   87|    105|  primaryGroup_ = std::string("Image");
   88|    941|  for (auto i : keys) {
  ------------------
  |  Branch (88:15): [True: 941, False: 92]
  ------------------
   89|    941|    auto md = exifData_.findKey(ExifKey(i));
   90|       |    // Is it the primary image?
   91|    941|    if (md != exifData_.end() && md->count() > 0 && md->toInt64() == 0) {
  ------------------
  |  Branch (91:9): [True: 57, False: 884]
  |  Branch (91:9): [True: 24, False: 917]
  |  Branch (91:34): [True: 34, False: 23]
  |  Branch (91:53): [True: 24, False: 10]
  ------------------
   92|       |      // Sometimes there is a JPEG primary image; that's not our first choice
   93|     24|      primaryGroup_ = md->groupName();
   94|     24|      std::string key = "Exif." + primaryGroup_ + ".JPEGInterchangeFormat";
   95|     24|      if (exifData_.findKey(ExifKey(key)) == exifData_.end())
  ------------------
  |  Branch (95:11): [True: 13, False: 11]
  ------------------
   96|     13|        break;
   97|     24|    }
   98|    941|  }
   99|    105|  return primaryGroup_;
  100|    210|}
_ZNK5Exiv29TiffImage10pixelWidthEv:
  102|    105|uint32_t TiffImage::pixelWidth() const {
  103|    105|  if (pixelWidthPrimary_ != 0) {
  ------------------
  |  Branch (103:7): [True: 0, False: 105]
  ------------------
  104|      0|    return pixelWidthPrimary_;
  105|      0|  }
  106|       |
  107|    105|  ExifKey key(std::string("Exif.") + primaryGroup() + std::string(".ImageWidth"));
  108|    105|  auto imageWidth = exifData_.findKey(key);
  109|    105|  if (imageWidth != exifData_.end() && imageWidth->count() > 0) {
  ------------------
  |  Branch (109:7): [True: 77, False: 28]
  |  Branch (109:7): [True: 29, False: 76]
  |  Branch (109:40): [True: 29, False: 48]
  ------------------
  110|     29|    pixelWidthPrimary_ = imageWidth->toUint32();
  111|     29|  }
  112|    105|  return pixelWidthPrimary_;
  113|    105|}
_ZNK5Exiv29TiffImage11pixelHeightEv:
  115|    105|uint32_t TiffImage::pixelHeight() const {
  116|    105|  if (pixelHeightPrimary_ != 0) {
  ------------------
  |  Branch (116:7): [True: 0, False: 105]
  ------------------
  117|      0|    return pixelHeightPrimary_;
  118|      0|  }
  119|       |
  120|    105|  ExifKey key(std::string("Exif.") + primaryGroup() + std::string(".ImageLength"));
  121|    105|  auto imageHeight = exifData_.findKey(key);
  122|    105|  if (imageHeight != exifData_.end() && imageHeight->count() > 0) {
  ------------------
  |  Branch (122:7): [True: 35, False: 70]
  |  Branch (122:7): [True: 12, False: 93]
  |  Branch (122:41): [True: 12, False: 23]
  ------------------
  123|     12|    pixelHeightPrimary_ = imageHeight->toUint32();
  124|     12|  }
  125|    105|  return pixelHeightPrimary_;
  126|    105|}
_ZN5Exiv29TiffImage12readMetadataEv:
  133|  13.6k|void TiffImage::readMetadata() {
  134|       |#ifdef EXIV2_DEBUG_MESSAGES
  135|       |  std::cerr << "Reading TIFF file " << io_->path() << "\n";
  136|       |#endif
  137|  13.6k|  if (io_->open() != 0) {
  ------------------
  |  Branch (137:7): [True: 0, False: 13.6k]
  ------------------
  138|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  139|      0|  }
  140|       |
  141|  13.6k|  IoCloser closer(*io_);
  142|       |  // Ensure that this is the correct image type
  143|  13.6k|  if (!isTiffType(*io_, false)) {
  ------------------
  |  Branch (143:7): [True: 0, False: 13.6k]
  ------------------
  144|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (144:9): [True: 0, False: 0]
  |  Branch (144:25): [True: 0, False: 0]
  ------------------
  145|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  146|      0|    throw Error(ErrorCode::kerNotAnImage, "TIFF");
  147|      0|  }
  148|  13.6k|  clearMetadata();
  149|       |
  150|  13.6k|  ByteOrder bo = TiffParser::decode(exifData_, iptcData_, xmpData_, io_->mmap(), io_->size());
  151|  13.6k|  setByteOrder(bo);
  152|       |
  153|       |  // read profile from the metadata
  154|  13.6k|  Exiv2::ExifKey key("Exif.Image.InterColorProfile");
  155|  13.6k|  auto pos = exifData_.findKey(key);
  156|  13.6k|  if (pos != exifData_.end()) {
  ------------------
  |  Branch (156:7): [True: 55, False: 13.5k]
  ------------------
  157|     55|    size_t size = pos->count() * pos->typeSize();
  158|     55|    if (size == 0) {
  ------------------
  |  Branch (158:9): [True: 34, False: 21]
  ------------------
  159|     34|      throw Error(ErrorCode::kerFailedToReadImageData);
  160|     34|    }
  161|     21|    iccProfile_.alloc(size);
  162|     21|    pos->copy(iccProfile_.data(), bo);
  163|     21|  }
  164|  13.6k|}
_ZN5Exiv210TiffParser6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhm:
  209|  14.8k|ByteOrder TiffParser::decode(ExifData& exifData, IptcData& iptcData, XmpData& xmpData, const byte* pData, size_t size) {
  210|  14.8k|  uint32_t root = Tag::root;
  211|       |
  212|       |  // #1402  Fujifilm RAF. Change root when parsing embedded tiff
  213|  14.8k|  Exiv2::ExifKey key("Exif.Image.Make");
  214|  14.8k|  if (exifData.findKey(key) != exifData.end() && exifData.findKey(key)->toString() == "FUJIFILM") {
  ------------------
  |  Branch (214:7): [True: 40, False: 14.7k]
  |  Branch (214:7): [True: 0, False: 14.8k]
  |  Branch (214:50): [True: 0, False: 40]
  ------------------
  215|      0|    root = Tag::fuji;
  216|      0|  }
  217|       |
  218|  14.8k|  return TiffParserWorker::decode(exifData, iptcData, xmpData, pData, size, root, TiffMapping::findDecoder);
  219|  14.8k|}  // TiffParser::decode
_ZN5Exiv210TiffParser6encodeERNS_7BasicIoEPKhmNS_9ByteOrderERNS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataE:
  222|  2.46k|                               const IptcData& iptcData, const XmpData& xmpData) {
  223|       |  // Delete IFDs which do not occur in TIFF images
  224|  2.46k|  static constexpr auto filteredIfds = std::array{
  225|  2.46k|      IfdId::panaRawId,
  226|  2.46k|  };
  227|  2.46k|  for (auto filteredIfd : filteredIfds) {
  ------------------
  |  Branch (227:25): [True: 2.46k, False: 2.46k]
  ------------------
  228|       |#ifdef EXIV2_DEBUG_MESSAGES
  229|       |    std::cerr << "Warning: Exif IFD " << filteredIfd << " not encoded\n";
  230|       |#endif
  231|  2.46k|    exifData.erase(std::remove_if(exifData.begin(), exifData.end(), FindExifdatum(filteredIfd)), exifData.end());
  232|  2.46k|  }
  233|       |
  234|  2.46k|  TiffHeader header(byteOrder);
  235|  2.46k|  return TiffParserWorker::encode(io, pData, size, exifData, iptcData, xmpData, Tag::root, TiffMapping::findEncoder,
  236|  2.46k|                                  &header, nullptr);
  237|  2.46k|}  // TiffParser::encode
_ZN5Exiv215newTiffInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  241|  13.6k|Image::UniquePtr newTiffInstance(BasicIo::UniquePtr io, bool create) {
  242|  13.6k|  auto image = std::make_unique<TiffImage>(std::move(io), create);
  243|  13.6k|  if (!image->good()) {
  ------------------
  |  Branch (243:7): [True: 0, False: 13.6k]
  ------------------
  244|      0|    return nullptr;
  245|      0|  }
  246|  13.6k|  return image;
  247|  13.6k|}
_ZN5Exiv210isTiffTypeERNS_7BasicIoEb:
  249|   147k|bool isTiffType(BasicIo& iIo, bool advance) {
  250|   147k|  const int32_t len = 8;
  251|   147k|  byte buf[len];
  252|   147k|  iIo.read(buf, len);
  253|   147k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (253:7): [True: 0, False: 147k]
  |  Branch (253:22): [True: 660, False: 146k]
  ------------------
  254|    660|    return false;
  255|    660|  }
  256|   146k|  TiffHeader tiffHeader;
  257|   146k|  bool rc = tiffHeader.read(buf, len);
  258|   146k|  if (!advance || !rc) {
  ------------------
  |  Branch (258:7): [True: 146k, False: 0]
  |  Branch (258:19): [True: 0, False: 0]
  ------------------
  259|   146k|    iIo.seek(-len, BasicIo::cur);
  260|   146k|  }
  261|   146k|  return rc;
  262|   147k|}
_ZN5Exiv29TiffImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  264|  26.5k|void TiffImage::printStructure(std::ostream& out, Exiv2::PrintStructureOption option, size_t depth) {
  265|  26.5k|  if (io_->open() != 0)
  ------------------
  |  Branch (265:7): [True: 0, False: 26.5k]
  ------------------
  266|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  267|       |  // Ensure that this is the correct image type
  268|  26.5k|  if (imageType() == ImageType::none && !isTiffType(*io_, false)) {
  ------------------
  |  Branch (268:7): [True: 0, False: 26.5k]
  |  Branch (268:41): [True: 0, False: 0]
  ------------------
  269|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (269:9): [True: 0, False: 0]
  |  Branch (269:25): [True: 0, False: 0]
  ------------------
  270|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  271|      0|    throw Error(ErrorCode::kerNotAJpeg);
  272|      0|  }
  273|       |
  274|  26.5k|  io_->seek(0, BasicIo::beg);
  275|       |
  276|  26.5k|  printTiffStructure(io(), out, option, depth);
  277|  26.5k|}

_ZNK5Exiv28Internal13FindExifdatumclERKNS_9ExifdatumE:
   29|  17.6M|bool FindExifdatum::operator()(const Exiv2::Exifdatum& md) const {
   30|  17.6M|  return ifdId_ == md.ifdId();
   31|  17.6M|}
_ZN5Exiv28Internal11TiffMapping11findDecoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 1991|  17.1M|DecoderFct TiffMapping::findDecoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 1992|  17.1M|  DecoderFct decoderFct = &TiffDecoder::decodeStdTiffEntry;
 1993|  17.1M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (1993:12): [True: 6.82k, False: 17.1M]
  ------------------
 1994|       |    // This may set decoderFct to 0, meaning that the tag should not be decoded
 1995|  6.82k|    decoderFct = td->decoderFct_;
 1996|  6.82k|  }
 1997|  17.1M|  return decoderFct;
 1998|  17.1M|}
_ZN5Exiv28Internal11TiffMapping11findEncoderENSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEjNS_5IfdIdE:
 2000|  2.55M|EncoderFct TiffMapping::findEncoder(std::string_view make, uint32_t extendedTag, IfdId group) {
 2001|  2.55M|  EncoderFct encoderFct = nullptr;
 2002|  2.55M|  if (auto td = Exiv2::find(tiffMappingInfo_, TiffMappingInfo::Key{make, extendedTag, group})) {
  ------------------
  |  Branch (2002:12): [True: 483, False: 2.55M]
  ------------------
 2003|       |    // Returns 0 if no special encoder function is found
 2004|    483|    encoderFct = td->encoderFct_;
 2005|    483|  }
 2006|  2.55M|  return encoderFct;
 2007|  2.55M|}
_ZN5Exiv28Internal11TiffCreator6createEjNS_5IfdIdE:
 2009|  23.3M|TiffComponent::UniquePtr TiffCreator::create(uint32_t extendedTag, IfdId group) {
 2010|  23.3M|  auto tag = static_cast<uint16_t>(extendedTag);
 2011|  23.3M|  auto i = tiffGroupTable_.find(TiffGroupKey(extendedTag, group));
 2012|       |  // If the lookup failed then try again with Tag::all.
 2013|  23.3M|  if (i == tiffGroupTable_.end()) {
  ------------------
  |  Branch (2013:7): [True: 22.9M, False: 373k]
  ------------------
 2014|  22.9M|    i = tiffGroupTable_.find(TiffGroupKey(Tag::all, group));
 2015|  22.9M|  }
 2016|  23.3M|  if (i != tiffGroupTable_.end() && i->second) {
  ------------------
  |  Branch (2016:7): [True: 23.2M, False: 75.9k]
  |  Branch (2016:7): [True: 23.2M, False: 87.6k]
  |  Branch (2016:37): [True: 23.2M, False: 11.7k]
  ------------------
 2017|  23.2M|    return i->second(tag, group);
 2018|  23.2M|  }
 2019|       |#ifdef EXIV2_DEBUG_MESSAGES
 2020|       |  if (i == tiffGroupTable_.end())
 2021|       |    std::cerr << "Warning: No TIFF structure entry found for ";
 2022|       |  else
 2023|       |    std::cerr << "Warning: No TIFF component creator found for ";
 2024|       |  std::cerr << "extended tag 0x" << std::setw(4) << std::setfill('0') << std::hex << std::right << extendedTag
 2025|       |            << ", group " << groupName(group) << "\n";
 2026|       |#endif
 2027|  87.6k|  return nullptr;
 2028|  23.3M|}  // TiffCreator::create
_ZN5Exiv28Internal11TiffCreator7getPathEjNS_5IfdIdEj:
 2030|  2.57M|TiffPath TiffCreator::getPath(uint32_t extendedTag, IfdId group, uint32_t root) {
 2031|  2.57M|  TiffPath ret;
 2032|  9.94M|  while (true) {
  ------------------
  |  Branch (2032:10): [True: 9.94M, Folded]
  ------------------
 2033|  9.94M|    ret.emplace(extendedTag, group);
 2034|  9.94M|    const auto ts = tiffTreeTable_.find(TiffGroupKey(root, group));
 2035|  9.94M|    assert(ts != tiffTreeTable_.end());
 2036|  9.94M|    extendedTag = ts->second.second;
 2037|  9.94M|    group = ts->second.first;
 2038|  9.94M|    if (ts->first == TiffGroupKey(root, IfdId::ifdIdNotSet)) {
  ------------------
  |  Branch (2038:9): [True: 2.57M, False: 7.37M]
  ------------------
 2039|  2.57M|      break;
 2040|  2.57M|    }
 2041|  9.94M|  }
 2042|  2.57M|  return ret;
 2043|  2.57M|}
_ZN5Exiv28Internal16TiffParserWorker6decodeERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPKhmjPFMNS0_11TiffDecoderEFvPKNS0_13TiffEntryBaseEENSt3__117basic_string_viewIcNSG_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseE:
 2046|  43.7k|                                   size_t size, uint32_t root, FindDecoderFct findDecoderFct, TiffHeaderBase* pHeader) {
 2047|       |  // Create standard TIFF header if necessary
 2048|  43.7k|  std::unique_ptr<TiffHeaderBase> ph;
 2049|  43.7k|  if (!pHeader) {
  ------------------
  |  Branch (2049:7): [True: 40.6k, False: 3.11k]
  ------------------
 2050|  40.6k|    ph = std::make_unique<TiffHeader>();
 2051|  40.6k|    pHeader = ph.get();
 2052|  40.6k|  }
 2053|       |
 2054|  43.7k|  if (auto rootDir = parse(pData, size, root, pHeader)) {
  ------------------
  |  Branch (2054:12): [True: 43.5k, False: 153]
  ------------------
 2055|  43.5k|    auto decoder = TiffDecoder(exifData, iptcData, xmpData, rootDir.get(), findDecoderFct);
 2056|  43.5k|    rootDir->accept(decoder);
 2057|  43.5k|  }
 2058|  43.7k|  return pHeader->byteOrder();
 2059|       |
 2060|  43.7k|}  // TiffParserWorker::decode
_ZN5Exiv28Internal16TiffParserWorker6encodeERNS_7BasicIoEPKhmRKNS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataEjPFMNS0_11TiffEncoderEFvPNS0_13TiffEntryBaseEPKNS_9ExifdatumEENSt3__117basic_string_viewIcNSN_11char_traitsIcEEEEjNS_5IfdIdEEPNS0_14TiffHeaderBaseEPNS0_12OffsetWriterE:
 2065|  8.38k|                                     OffsetWriter* pOffsetWriter) {
 2066|       |  /*
 2067|       |     1) parse the binary image, if one is provided, and
 2068|       |     2) attempt updating the parsed tree in-place ("non-intrusive writing")
 2069|       |     3) else, create a new tree and write a new TIFF structure ("intrusive
 2070|       |        writing"). If there is a parsed tree, it is only used to access the
 2071|       |        image data in this case.
 2072|       |   */
 2073|  8.38k|  WriteMethod writeMethod = wmIntrusive;
 2074|  8.38k|  auto parsedTree = parse(pData, size, root, pHeader);
 2075|  8.38k|  auto primaryGroups = findPrimaryGroups(parsedTree);
 2076|  8.38k|  if (parsedTree) {
  ------------------
  |  Branch (2076:7): [True: 680, False: 7.70k]
  ------------------
 2077|       |    // Attempt to update existing TIFF components based on metadata entries
 2078|    680|    TiffEncoder encoder(exifData, iptcData, xmpData, parsedTree.get(), false, primaryGroups, pHeader, findEncoderFct);
 2079|    680|    parsedTree->accept(encoder);
 2080|    680|    if (!encoder.dirty())
  ------------------
  |  Branch (2080:9): [True: 35, False: 645]
  ------------------
 2081|     35|      writeMethod = wmNonIntrusive;
 2082|    680|  }
 2083|  8.38k|  if (writeMethod == wmIntrusive) {
  ------------------
  |  Branch (2083:7): [True: 8.34k, False: 35]
  ------------------
 2084|  8.34k|    auto createdTree = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2085|  8.34k|    if (parsedTree) {
  ------------------
  |  Branch (2085:9): [True: 645, False: 7.70k]
  ------------------
 2086|       |      // Copy image tags from the original image to the composite
 2087|    645|      TiffCopier copier(createdTree.get(), root, pHeader, primaryGroups);
 2088|    645|      parsedTree->accept(copier);
 2089|    645|    }
 2090|       |    // Add entries from metadata to composite
 2091|  8.34k|    TiffEncoder encoder(exifData, iptcData, xmpData, createdTree.get(), !parsedTree, std::move(primaryGroups), pHeader,
 2092|  8.34k|                        findEncoderFct);
 2093|  8.34k|    encoder.add(createdTree.get(), std::move(parsedTree), root);
 2094|       |    // Write binary representation from the composite tree
 2095|  8.34k|    DataBuf header = pHeader->write();
 2096|  8.34k|    auto tempIo = MemIo();
 2097|  8.34k|    IoWrapper ioWrapper(tempIo, header.c_data(), header.size(), pOffsetWriter);
 2098|  8.34k|    auto imageIdx(std::string::npos);
 2099|  8.34k|    createdTree->write(ioWrapper, pHeader->byteOrder(), header.size(), std::string::npos, std::string::npos, imageIdx);
 2100|  8.34k|    if (pOffsetWriter)
  ------------------
  |  Branch (2100:9): [True: 0, False: 8.34k]
  ------------------
 2101|      0|      pOffsetWriter->writeOffsets(tempIo);
 2102|  8.34k|    io.transfer(tempIo);  // may throw
 2103|  8.34k|#ifndef SUPPRESS_WARNINGS
 2104|  8.34k|    EXV_INFO << "Write strategy: Intrusive\n";
  ------------------
  |  |  134|  8.34k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 8.34k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  8.34k|  LogMsg(LogMsg::info).os()
  ------------------
 2105|  8.34k|#endif
 2106|  8.34k|  }
 2107|     35|#ifndef SUPPRESS_WARNINGS
 2108|     35|  else {
 2109|     35|    EXV_INFO << "Write strategy: Non-intrusive\n";
  ------------------
  |  |  134|     35|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 35]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|     35|  LogMsg(LogMsg::info).os()
  ------------------
 2110|     35|  }
 2111|  8.38k|#endif
 2112|  8.38k|  return writeMethod;
 2113|  8.38k|}  // TiffParserWorker::encode
_ZN5Exiv28Internal16TiffParserWorker5parseEPKhmjPNS0_14TiffHeaderBaseE:
 2116|  52.1k|                                                 TiffHeaderBase* pHeader) {
 2117|  52.1k|  TiffComponent::UniquePtr rootDir;
 2118|  52.1k|  if (!pData || size == 0)
  ------------------
  |  Branch (2118:7): [True: 7.74k, False: 44.3k]
  |  Branch (2118:17): [True: 0, False: 44.3k]
  ------------------
 2119|  7.74k|    return rootDir;
 2120|  44.3k|  if (!pHeader->read(pData, size) || pHeader->offset() >= size) {
  ------------------
  |  Branch (2120:7): [True: 56, False: 44.3k]
  |  Branch (2120:38): [True: 54, False: 44.2k]
  ------------------
 2121|    110|    throw Error(ErrorCode::kerNotAnImage, "TIFF");
 2122|    110|  }
 2123|  44.2k|  rootDir = TiffCreator::create(root, IfdId::ifdIdNotSet);
 2124|  44.2k|  if (rootDir) {
  ------------------
  |  Branch (2124:7): [True: 44.2k, False: 0]
  ------------------
 2125|  44.2k|    rootDir->setStart(pData + pHeader->offset());
 2126|  44.2k|    auto state = TiffRwState{pHeader->byteOrder(), 0};
 2127|  44.2k|    auto reader = TiffReader{pData, size, rootDir.get(), state};
 2128|  44.2k|    rootDir->accept(reader);
 2129|  44.2k|    reader.postProcess();
 2130|  44.2k|  }
 2131|  44.2k|  return rootDir;
 2132|       |
 2133|  44.3k|}  // TiffParserWorker::parse
_ZN5Exiv28Internal16TiffParserWorker17findPrimaryGroupsERKNSt3__110unique_ptrINS0_13TiffComponentENS2_14default_deleteIS4_EEEE:
 2135|  8.38k|PrimaryGroups TiffParserWorker::findPrimaryGroups(const TiffComponent::UniquePtr& pSourceDir) {
 2136|  8.38k|  PrimaryGroups ret;
 2137|  8.38k|  if (!pSourceDir)
  ------------------
  |  Branch (2137:7): [True: 7.70k, False: 680]
  ------------------
 2138|  7.70k|    return ret;
 2139|       |
 2140|    680|  static constexpr auto imageGroups = std::array{
 2141|    680|      IfdId::ifd0Id,      IfdId::ifd1Id,      IfdId::ifd2Id,      IfdId::ifd3Id,      IfdId::subImage1Id,
 2142|    680|      IfdId::subImage2Id, IfdId::subImage3Id, IfdId::subImage4Id, IfdId::subImage5Id, IfdId::subImage6Id,
 2143|    680|      IfdId::subImage7Id, IfdId::subImage8Id, IfdId::subImage9Id,
 2144|    680|  };
 2145|       |
 2146|  8.84k|  for (auto imageGroup : imageGroups) {
  ------------------
  |  Branch (2146:24): [True: 8.84k, False: 680]
  ------------------
 2147|  8.84k|    TiffFinder finder(0x00fe, imageGroup);
 2148|  8.84k|    pSourceDir->accept(finder);
 2149|  8.84k|    auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
 2150|  8.84k|    if (!te)
  ------------------
  |  Branch (2150:9): [True: 8.77k, False: 65]
  ------------------
 2151|  8.77k|      continue;
 2152|     65|    const Value* pV = te->pValue();
 2153|     65|    if (pV && pV->typeId() == unsignedLong && pV->count() == 1 && (pV->toInt64() & 1) == 0) {
  ------------------
  |  Branch (2153:9): [True: 50, False: 15]
  |  Branch (2153:15): [True: 32, False: 18]
  |  Branch (2153:47): [True: 22, False: 10]
  |  Branch (2153:67): [True: 12, False: 10]
  ------------------
 2154|     12|      ret.push_back(te->group());
 2155|     12|    }
 2156|     65|  }
 2157|    680|  return ret;
 2158|  8.38k|}  // TiffParserWorker::findPrimaryGroups
_ZN5Exiv28Internal14TiffHeaderBaseC2EtjNS_9ByteOrderEj:
 2161|   266k|    tag_(tag), size_(size), byteOrder_(byteOrder), offset_(offset) {
 2162|   266k|}
_ZN5Exiv28Internal14TiffHeaderBase4readEPKhm:
 2164|   214k|bool TiffHeaderBase::read(const byte* pData, size_t size) {
 2165|   214k|  if (!pData || size < 8)
  ------------------
  |  Branch (2165:7): [True: 0, False: 214k]
  |  Branch (2165:17): [True: 14, False: 214k]
  ------------------
 2166|     14|    return false;
 2167|       |
 2168|   214k|  if (pData[0] == 'I' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2168:7): [True: 7.40k, False: 207k]
  |  Branch (2168:26): [True: 7.25k, False: 150]
  ------------------
 2169|  7.25k|    byteOrder_ = littleEndian;
 2170|   207k|  } else if (pData[0] == 'M' && pData[0] == pData[1]) {
  ------------------
  |  Branch (2170:14): [True: 100k, False: 106k]
  |  Branch (2170:33): [True: 100k, False: 290]
  ------------------
 2171|   100k|    byteOrder_ = bigEndian;
 2172|   107k|  } else {
 2173|   107k|    return false;
 2174|   107k|  }
 2175|   107k|  uint16_t t = getUShort(pData + 2, byteOrder_);
 2176|   107k|  if (t != 444 && t != 17234 && tag_ != t)
  ------------------
  |  Branch (2176:7): [True: 107k, False: 53]
  |  Branch (2176:19): [True: 107k, False: 103]
  |  Branch (2176:33): [True: 12.3k, False: 95.1k]
  ------------------
 2177|  12.3k|    return false;  // 444 is for the JPEG-XR; 17234 is for DCP
 2178|  95.2k|  tag_ = t;
 2179|  95.2k|  offset_ = getULong(pData + 4, byteOrder_);
 2180|       |
 2181|  95.2k|  return true;
 2182|   107k|}
_ZNK5Exiv28Internal14TiffHeaderBase5writeEv:
 2184|  8.40k|DataBuf TiffHeaderBase::write() const {
 2185|  8.40k|  DataBuf buf(8);
 2186|  8.40k|  switch (byteOrder_) {
  ------------------
  |  Branch (2186:11): [True: 8.40k, False: 0]
  ------------------
 2187|  7.76k|    case littleEndian:
  ------------------
  |  Branch (2187:5): [True: 7.76k, False: 637]
  ------------------
 2188|  7.76k|      buf.write_uint8(0, 'I');
 2189|  7.76k|      break;
 2190|    637|    case bigEndian:
  ------------------
  |  Branch (2190:5): [True: 637, False: 7.76k]
  ------------------
 2191|    637|      buf.write_uint8(0, 'M');
 2192|    637|      break;
 2193|      0|    case invalidByteOrder:
  ------------------
  |  Branch (2193:5): [True: 0, False: 8.40k]
  ------------------
 2194|      0|      break;
 2195|  8.40k|  }
 2196|  8.40k|  buf.write_uint8(1, buf.read_uint8(0));
 2197|  8.40k|  buf.write_uint16(2, tag_, byteOrder_);
 2198|  8.40k|  buf.write_uint32(4, 0x00000008, byteOrder_);
 2199|  8.40k|  return buf;
 2200|  8.40k|}
_ZNK5Exiv28Internal14TiffHeaderBase9byteOrderEv:
 2218|   146k|ByteOrder TiffHeaderBase::byteOrder() const {
 2219|   146k|  return byteOrder_;
 2220|   146k|}
_ZN5Exiv28Internal14TiffHeaderBase12setByteOrderENS_9ByteOrderE:
 2222|  19.6k|void TiffHeaderBase::setByteOrder(ByteOrder byteOrder) {
 2223|  19.6k|  byteOrder_ = byteOrder;
 2224|  19.6k|}
_ZNK5Exiv28Internal14TiffHeaderBase6offsetEv:
 2226|  90.5k|uint32_t TiffHeaderBase::offset() const {
 2227|  90.5k|  return offset_;
 2228|  90.5k|}
_ZN5Exiv28Internal14TiffHeaderBase9setOffsetEj:
 2230|  16.9k|void TiffHeaderBase::setOffset(uint32_t offset) {
 2231|  16.9k|  offset_ = offset;
 2232|  16.9k|}
_ZNK5Exiv28Internal14TiffHeaderBase3tagEv:
 2238|  21.6k|uint16_t TiffHeaderBase::tag() const {
 2239|  21.6k|  return tag_;
 2240|  21.6k|}
_ZN5Exiv28Internal14isTiffImageTagEtNS_5IfdIdE:
 2324|   144k|bool isTiffImageTag(uint16_t tag, IfdId group) {
 2325|   144k|  const bool result = isTiffImageTagLookup(tag, group);
 2326|       |#ifdef EXIV2_DEBUG_MESSAGES
 2327|       |  if (result) {
 2328|       |    ExifKey key(tag, groupName(group));
 2329|       |    std::cerr << "Image tag: " << key << " (3)\n";
 2330|       |  } else {
 2331|       |    std::cerr << "Not an image tag: " << tag << " (4)\n";
 2332|       |  }
 2333|       |#endif
 2334|   144k|  return result;
 2335|   144k|}
_ZN5Exiv28Internal10TiffHeaderC2ENS_9ByteOrderEjb:
 2338|   197k|    TiffHeaderBase(42, 8, byteOrder, offset), hasImageTags_(hasImageTags) {
 2339|   197k|}
_ZNK5Exiv28Internal10TiffHeader10isImageTagEtNS_5IfdIdERKNSt3__16vectorIS2_NS3_9allocatorIS2_EEEE:
 2341|   263k|bool TiffHeader::isImageTag(uint16_t tag, IfdId group, const PrimaryGroups& pPrimaryGroups) const {
 2342|   263k|  if (!hasImageTags_) {
  ------------------
  |  Branch (2342:7): [True: 263k, False: 0]
  ------------------
 2343|       |#ifdef EXIV2_DEBUG_MESSAGES
 2344|       |    std::cerr << "No image tags in this image\n";
 2345|       |#endif
 2346|   263k|    return false;
 2347|   263k|  }
 2348|       |#ifdef EXIV2_DEBUG_MESSAGES
 2349|       |  ExifKey key(tag, groupName(group));
 2350|       |#endif
 2351|       |  // If there are primary groups and none matches group, we're done
 2352|      0|  if (!pPrimaryGroups.empty() &&
  ------------------
  |  Branch (2352:7): [True: 0, False: 0]
  |  Branch (2352:7): [True: 0, False: 0]
  ------------------
 2353|      0|      std::find(pPrimaryGroups.begin(), pPrimaryGroups.end(), group) == pPrimaryGroups.end()) {
  ------------------
  |  Branch (2353:7): [True: 0, False: 0]
  ------------------
 2354|       |#ifdef EXIV2_DEBUG_MESSAGES
 2355|       |    std::cerr << "Not an image tag: " << key << " (1)\n";
 2356|       |#endif
 2357|      0|    return false;
 2358|      0|  }
 2359|       |  // All tags of marked primary groups other than IFD0 are considered
 2360|       |  // image tags. That should take care of NEFs until we know better.
 2361|      0|  if (!pPrimaryGroups.empty() && group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2361:7): [True: 0, False: 0]
  |  Branch (2361:34): [True: 0, False: 0]
  ------------------
 2362|       |#ifdef EXIV2_DEBUG_MESSAGES
 2363|       |    ExifKey key(tag, groupName(group));
 2364|       |    std::cerr << "Image tag: " << key << " (2)\n";
 2365|       |#endif
 2366|      0|    return true;
 2367|      0|  }
 2368|       |  // Finally, if tag, group is one of the TIFF image tags -> bingo!
 2369|      0|  return isTiffImageTag(tag, group);
 2370|      0|}  // TiffHeader::isImageTag
tiffimage_int.cpp:_ZN5Exiv28InternalL20isTiffImageTagLookupEtNS_5IfdIdE:
 2246|   144k|static bool isTiffImageTagLookup(uint16_t tag, IfdId group) {
 2247|   144k|  if (group != IfdId::ifd0Id) {
  ------------------
  |  Branch (2247:7): [True: 0, False: 144k]
  ------------------
 2248|      0|    return false;
 2249|      0|  }
 2250|       |  //! List of TIFF image tags
 2251|   144k|  switch (tag) {
 2252|      0|    case 0x00fe:  // Exif.Image.NewSubfileType
  ------------------
  |  Branch (2252:5): [True: 0, False: 144k]
  ------------------
 2253|      0|    case 0x00ff:  // Exif.Image.SubfileType
  ------------------
  |  Branch (2253:5): [True: 0, False: 144k]
  ------------------
 2254|  4.33k|    case 0x0100:  // Exif.Image.ImageWidth
  ------------------
  |  Branch (2254:5): [True: 4.33k, False: 140k]
  ------------------
 2255|  52.7k|    case 0x0101:  // Exif.Image.ImageLength
  ------------------
  |  Branch (2255:5): [True: 48.3k, False: 96.1k]
  ------------------
 2256|  55.3k|    case 0x0102:  // Exif.Image.BitsPerSample
  ------------------
  |  Branch (2256:5): [True: 2.64k, False: 141k]
  ------------------
 2257|  55.4k|    case 0x0103:  // Exif.Image.Compression
  ------------------
  |  Branch (2257:5): [True: 95, False: 144k]
  ------------------
 2258|  55.5k|    case 0x0106:  // Exif.Image.PhotometricInterpretation
  ------------------
  |  Branch (2258:5): [True: 103, False: 144k]
  ------------------
 2259|  55.5k|    case 0x010a:  // Exif.Image.FillOrder
  ------------------
  |  Branch (2259:5): [True: 36, False: 144k]
  ------------------
 2260|  58.4k|    case 0x0111:  // Exif.Image.StripOffsets
  ------------------
  |  Branch (2260:5): [True: 2.84k, False: 141k]
  ------------------
 2261|  58.6k|    case 0x0115:  // Exif.Image.SamplesPerPixel
  ------------------
  |  Branch (2261:5): [True: 163, False: 144k]
  ------------------
 2262|  58.6k|    case 0x0116:  // Exif.Image.RowsPerStrip
  ------------------
  |  Branch (2262:5): [True: 44, False: 144k]
  ------------------
 2263|  61.2k|    case 0x0117:  // Exif.Image.StripByteCounts
  ------------------
  |  Branch (2263:5): [True: 2.54k, False: 142k]
  ------------------
 2264|  61.9k|    case 0x011a:  // Exif.Image.XResolution
  ------------------
  |  Branch (2264:5): [True: 786, False: 143k]
  ------------------
 2265|  62.1k|    case 0x011b:  // Exif.Image.YResolution
  ------------------
  |  Branch (2265:5): [True: 149, False: 144k]
  ------------------
 2266|  62.2k|    case 0x011c:  // Exif.Image.PlanarConfiguration
  ------------------
  |  Branch (2266:5): [True: 67, False: 144k]
  ------------------
 2267|  62.2k|    case 0x0122:  // Exif.Image.GrayResponseUnit
  ------------------
  |  Branch (2267:5): [True: 68, False: 144k]
  ------------------
 2268|  62.3k|    case 0x0123:  // Exif.Image.GrayResponseCurve
  ------------------
  |  Branch (2268:5): [True: 96, False: 144k]
  ------------------
 2269|  62.4k|    case 0x0124:  // Exif.Image.T4Options
  ------------------
  |  Branch (2269:5): [True: 41, False: 144k]
  ------------------
 2270|  62.4k|    case 0x0125:  // Exif.Image.T6Options
  ------------------
  |  Branch (2270:5): [True: 75, False: 144k]
  ------------------
 2271|  62.5k|    case 0x0128:  // Exif.Image.ResolutionUnit
  ------------------
  |  Branch (2271:5): [True: 79, False: 144k]
  ------------------
 2272|  62.6k|    case 0x0129:  // Exif.Image.PageNumber
  ------------------
  |  Branch (2272:5): [True: 62, False: 144k]
  ------------------
 2273|  62.7k|    case 0x012d:  // Exif.Image.TransferFunction
  ------------------
  |  Branch (2273:5): [True: 89, False: 144k]
  ------------------
 2274|  62.8k|    case 0x013d:  // Exif.Image.Predictor
  ------------------
  |  Branch (2274:5): [True: 90, False: 144k]
  ------------------
 2275|  62.8k|    case 0x013e:  // Exif.Image.WhitePoint
  ------------------
  |  Branch (2275:5): [True: 22, False: 144k]
  ------------------
 2276|  62.9k|    case 0x013f:  // Exif.Image.PrimaryChromaticities
  ------------------
  |  Branch (2276:5): [True: 89, False: 144k]
  ------------------
 2277|  63.0k|    case 0x0140:  // Exif.Image.ColorMap
  ------------------
  |  Branch (2277:5): [True: 135, False: 144k]
  ------------------
 2278|  63.2k|    case 0x0141:  // Exif.Image.HalftoneHints
  ------------------
  |  Branch (2278:5): [True: 165, False: 144k]
  ------------------
 2279|  63.2k|    case 0x0142:  // Exif.Image.TileWidth
  ------------------
  |  Branch (2279:5): [True: 41, False: 144k]
  ------------------
 2280|  63.2k|    case 0x0143:  // Exif.Image.TileLength
  ------------------
  |  Branch (2280:5): [True: 23, False: 144k]
  ------------------
 2281|  63.4k|    case 0x0144:  // Exif.Image.TileOffsets
  ------------------
  |  Branch (2281:5): [True: 144, False: 144k]
  ------------------
 2282|  63.5k|    case 0x0145:  // Exif.Image.TileByteCounts
  ------------------
  |  Branch (2282:5): [True: 168, False: 144k]
  ------------------
 2283|  63.7k|    case 0x014c:  // Exif.Image.InkSet
  ------------------
  |  Branch (2283:5): [True: 141, False: 144k]
  ------------------
 2284|  63.7k|    case 0x014d:  // Exif.Image.InkNames
  ------------------
  |  Branch (2284:5): [True: 33, False: 144k]
  ------------------
 2285|  63.8k|    case 0x014e:  // Exif.Image.NumberOfInks
  ------------------
  |  Branch (2285:5): [True: 56, False: 144k]
  ------------------
 2286|  63.8k|    case 0x0150:  // Exif.Image.DotRange
  ------------------
  |  Branch (2286:5): [True: 46, False: 144k]
  ------------------
 2287|  63.9k|    case 0x0151:  // Exif.Image.TargetPrinter
  ------------------
  |  Branch (2287:5): [True: 109, False: 144k]
  ------------------
 2288|  64.0k|    case 0x0152:  // Exif.Image.ExtraSamples
  ------------------
  |  Branch (2288:5): [True: 42, False: 144k]
  ------------------
 2289|  64.0k|    case 0x0153:  // Exif.Image.SampleFormat
  ------------------
  |  Branch (2289:5): [True: 35, False: 144k]
  ------------------
 2290|  64.1k|    case 0x0154:  // Exif.Image.SMinSampleValue
  ------------------
  |  Branch (2290:5): [True: 92, False: 144k]
  ------------------
 2291|  64.1k|    case 0x0155:  // Exif.Image.SMaxSampleValue
  ------------------
  |  Branch (2291:5): [True: 10, False: 144k]
  ------------------
 2292|  64.1k|    case 0x0156:  // Exif.Image.TransferRange
  ------------------
  |  Branch (2292:5): [True: 30, False: 144k]
  ------------------
 2293|  64.1k|    case 0x0157:  // Exif.Image.ClipPath
  ------------------
  |  Branch (2293:5): [True: 10, False: 144k]
  ------------------
 2294|  64.2k|    case 0x0158:  // Exif.Image.XClipPathUnits
  ------------------
  |  Branch (2294:5): [True: 93, False: 144k]
  ------------------
 2295|  64.3k|    case 0x0159:  // Exif.Image.YClipPathUnits
  ------------------
  |  Branch (2295:5): [True: 54, False: 144k]
  ------------------
 2296|  64.3k|    case 0x015a:  // Exif.Image.Indexed
  ------------------
  |  Branch (2296:5): [True: 20, False: 144k]
  ------------------
 2297|  64.4k|    case 0x015b:  // Exif.Image.JPEGTables
  ------------------
  |  Branch (2297:5): [True: 91, False: 144k]
  ------------------
 2298|  65.8k|    case 0x0200:  // Exif.Image.JPEGProc
  ------------------
  |  Branch (2298:5): [True: 1.38k, False: 143k]
  ------------------
 2299|  70.1k|    case 0x0201:  // Exif.Image.JPEGInterchangeFormat
  ------------------
  |  Branch (2299:5): [True: 4.29k, False: 140k]
  ------------------
 2300|  75.9k|    case 0x0202:  // Exif.Image.JPEGInterchangeFormatLength
  ------------------
  |  Branch (2300:5): [True: 5.80k, False: 138k]
  ------------------
 2301|  76.0k|    case 0x0203:  // Exif.Image.JPEGRestartInterval
  ------------------
  |  Branch (2301:5): [True: 158, False: 144k]
  ------------------
 2302|  76.1k|    case 0x0205:  // Exif.Image.JPEGLosslessPredictors
  ------------------
  |  Branch (2302:5): [True: 60, False: 144k]
  ------------------
 2303|  76.2k|    case 0x0206:  // Exif.Image.JPEGPointTransforms
  ------------------
  |  Branch (2303:5): [True: 80, False: 144k]
  ------------------
 2304|  76.2k|    case 0x0207:  // Exif.Image.JPEGQTables
  ------------------
  |  Branch (2304:5): [True: 44, False: 144k]
  ------------------
 2305|  76.4k|    case 0x0208:  // Exif.Image.JPEGDCTables
  ------------------
  |  Branch (2305:5): [True: 157, False: 144k]
  ------------------
 2306|  76.4k|    case 0x0209:  // Exif.Image.JPEGACTables
  ------------------
  |  Branch (2306:5): [True: 31, False: 144k]
  ------------------
 2307|  76.5k|    case 0x0211:  // Exif.Image.YCbCrCoefficients
  ------------------
  |  Branch (2307:5): [True: 118, False: 144k]
  ------------------
 2308|  76.6k|    case 0x0212:  // Exif.Image.YCbCrSubSampling
  ------------------
  |  Branch (2308:5): [True: 66, False: 144k]
  ------------------
 2309|  76.7k|    case 0x0213:  // Exif.Image.YCbCrPositioning
  ------------------
  |  Branch (2309:5): [True: 102, False: 144k]
  ------------------
 2310|  76.8k|    case 0x0214:  // Exif.Image.ReferenceBlackWhite
  ------------------
  |  Branch (2310:5): [True: 58, False: 144k]
  ------------------
 2311|  76.8k|    case 0x828d:  // Exif.Image.CFARepeatPatternDim
  ------------------
  |  Branch (2311:5): [True: 18, False: 144k]
  ------------------
 2312|  76.8k|    case 0x828e:  // Exif.Image.CFAPattern
  ------------------
  |  Branch (2312:5): [True: 26, False: 144k]
  ------------------
 2313|       |    // case 0x8773:  // Exif.Image.InterColorProfile
 2314|  76.8k|    case 0x8824:  // Exif.Image.SpectralSensitivity
  ------------------
  |  Branch (2314:5): [True: 10, False: 144k]
  ------------------
 2315|  76.8k|    case 0x8828:  // Exif.Image.OECF
  ------------------
  |  Branch (2315:5): [True: 18, False: 144k]
  ------------------
 2316|  76.9k|    case 0x9102:  // Exif.Image.CompressedBitsPerPixel
  ------------------
  |  Branch (2316:5): [True: 34, False: 144k]
  ------------------
 2317|  76.9k|    case 0x9217:  // Exif.Image.SensingMethod
  ------------------
  |  Branch (2317:5): [True: 37, False: 144k]
  ------------------
 2318|  76.9k|      return true;
 2319|  67.5k|    default:
  ------------------
  |  Branch (2319:5): [True: 67.5k, False: 76.9k]
  ------------------
 2320|  67.5k|      return false;
 2321|   144k|  }
 2322|   144k|}

_ZN5Exiv28Internal13FindExifdatumC2ENS_5IfdIdE:
  358|  51.1k|  explicit FindExifdatum(Exiv2::IfdId ifdId) : ifdId_(ifdId) {
  359|  51.1k|  }
_ZNK5Exiv28Internal17TiffGroupKey_hashclENSt3__14pairIjNS_5IfdIdEEE:
  151|  56.1M|  std::size_t operator()(TiffGroupKey pair) const noexcept {
  152|  56.1M|    return std::hash<uint64_t>{}(static_cast<uint64_t>(pair.first) << 32 | static_cast<uint64_t>(pair.second));
  153|  56.1M|  }
_ZN5Exiv28Internal14TiffHeaderBaseD2Ev:
   49|  40.6k|  virtual ~TiffHeaderBase() = default;

_ZN5Exiv28Internal11TiffVisitor5setGoENS1_7GoEventEb:
   61|   301k|void TiffVisitor::setGo(GoEvent event, bool go) {
   62|   301k|  go_[event] = go;
   63|   301k|}
_ZNK5Exiv28Internal11TiffVisitor2goENS1_7GoEventE:
   65|   241M|bool TiffVisitor::go(GoEvent event) const {
   66|   241M|  return go_[event];
   67|   241M|}
_ZN5Exiv28Internal11TiffVisitor18visitDirectoryNextEPNS0_13TiffDirectoryE:
   69|   969k|void TiffVisitor::visitDirectoryNext(TiffDirectory* /*object*/) {
   70|   969k|}
_ZN5Exiv28Internal11TiffVisitor17visitDirectoryEndEPNS0_13TiffDirectoryE:
   72|   962k|void TiffVisitor::visitDirectoryEnd(TiffDirectory* /*object*/) {
   73|   962k|}
_ZN5Exiv28Internal11TiffVisitor20visitIfdMakernoteEndEPNS0_16TiffIfdMakernoteE:
   75|  64.5k|void TiffVisitor::visitIfdMakernoteEnd(TiffIfdMakernote* /*object*/) {
   76|  64.5k|}
_ZN5Exiv28Internal11TiffVisitor19visitBinaryArrayEndEPNS0_15TiffBinaryArrayE:
   78|   281k|void TiffVisitor::visitBinaryArrayEnd(TiffBinaryArray* /*object*/) {
   79|   281k|}
_ZN5Exiv28Internal10TiffFinder4initEtNS_5IfdIdE:
   81|     66|void TiffFinder::init(uint16_t tag, IfdId group) {
   82|     66|  tag_ = tag;
   83|     66|  group_ = group;
   84|     66|  tiffComponent_ = nullptr;
   85|     66|  setGo(geTraverse, true);
   86|     66|}
_ZN5Exiv28Internal10TiffFinder10findObjectEPNS0_13TiffComponentE:
   88|  77.5M|void TiffFinder::findObject(TiffComponent* object) {
   89|  77.5M|  if (object->tag() == tag_ && object->group() == group_) {
  ------------------
  |  Branch (89:7): [True: 756k, False: 76.7M]
  |  Branch (89:32): [True: 169k, False: 587k]
  ------------------
   90|   169k|    tiffComponent_ = object;
   91|   169k|    setGo(geTraverse, false);
   92|   169k|  }
   93|  77.5M|}
_ZN5Exiv28Internal10TiffFinder10visitEntryEPNS0_9TiffEntryE:
   95|  31.5M|void TiffFinder::visitEntry(TiffEntry* object) {
   96|  31.5M|  findObject(object);
   97|  31.5M|}
_ZN5Exiv28Internal10TiffFinder14visitDataEntryEPNS0_13TiffDataEntryE:
   99|   113k|void TiffFinder::visitDataEntry(TiffDataEntry* object) {
  100|   113k|  findObject(object);
  101|   113k|}
_ZN5Exiv28Internal10TiffFinder15visitImageEntryEPNS0_14TiffImageEntryE:
  103|  1.40M|void TiffFinder::visitImageEntry(TiffImageEntry* object) {
  104|  1.40M|  findObject(object);
  105|  1.40M|}
_ZN5Exiv28Internal10TiffFinder14visitSizeEntryEPNS0_13TiffSizeEntryE:
  107|  2.21M|void TiffFinder::visitSizeEntry(TiffSizeEntry* object) {
  108|  2.21M|  findObject(object);
  109|  2.21M|}
_ZN5Exiv28Internal10TiffFinder14visitDirectoryEPNS0_13TiffDirectoryE:
  111|   991k|void TiffFinder::visitDirectory(TiffDirectory* object) {
  112|   991k|  findObject(object);
  113|   991k|}
_ZN5Exiv28Internal10TiffFinder11visitSubIfdEPNS0_10TiffSubIfdE:
  115|   170k|void TiffFinder::visitSubIfd(TiffSubIfd* object) {
  116|   170k|  findObject(object);
  117|   170k|}
_ZN5Exiv28Internal10TiffFinder12visitMnEntryEPNS0_11TiffMnEntryE:
  119|   113k|void TiffFinder::visitMnEntry(TiffMnEntry* object) {
  120|   113k|  findObject(object);
  121|   113k|}
_ZN5Exiv28Internal10TiffFinder17visitIfdMakernoteEPNS0_16TiffIfdMakernoteE:
  123|  76.1k|void TiffFinder::visitIfdMakernote(TiffIfdMakernote* object) {
  124|  76.1k|  findObject(object);
  125|  76.1k|}
_ZN5Exiv28Internal10TiffFinder16visitBinaryArrayEPNS0_15TiffBinaryArrayE:
  127|   177k|void TiffFinder::visitBinaryArray(TiffBinaryArray* object) {
  128|   177k|  findObject(object);
  129|   177k|}
_ZN5Exiv28Internal10TiffFinder18visitBinaryElementEPNS0_17TiffBinaryElementE:
  131|  40.7M|void TiffFinder::visitBinaryElement(TiffBinaryElement* object) {
  132|  40.7M|  findObject(object);
  133|  40.7M|}
_ZN5Exiv28Internal10TiffCopierC2EPNS0_13TiffComponentEjPKNS0_14TiffHeaderBaseENSt3__16vectorINS_5IfdIdENS7_9allocatorIS9_EEEE:
  137|    645|    pRoot_(pRoot), root_(root), pHeader_(pHeader), pPrimaryGroups_(std::move(pPrimaryGroups)) {
  138|    645|}
_ZN5Exiv28Internal10TiffCopier10copyObjectEPKNS0_13TiffComponentE:
  140|   124k|void TiffCopier::copyObject(const TiffComponent* object) {
  141|   124k|  if (pHeader_->isImageTag(object->tag(), object->group(), pPrimaryGroups_)) {
  ------------------
  |  Branch (141:7): [True: 0, False: 124k]
  ------------------
  142|      0|    auto clone = object->clone();
  143|       |    // Assumption is that the corresponding TIFF entry doesn't exist
  144|      0|    auto tiffPath = TiffCreator::getPath(object->tag(), object->group(), root_);
  145|      0|    pRoot_->addPath(object->tag(), tiffPath, pRoot_, std::move(clone));
  146|       |#ifdef EXIV2_DEBUG_MESSAGES
  147|       |    ExifKey key(object->tag(), groupName(object->group()));
  148|       |    std::cerr << "Copied " << key << "\n";
  149|       |#endif
  150|      0|  }
  151|   124k|}
_ZN5Exiv28Internal10TiffCopier10visitEntryEPNS0_9TiffEntryE:
  153|   107k|void TiffCopier::visitEntry(TiffEntry* object) {
  154|   107k|  copyObject(object);
  155|   107k|}
_ZN5Exiv28Internal10TiffCopier14visitDataEntryEPNS0_13TiffDataEntryE:
  157|    407|void TiffCopier::visitDataEntry(TiffDataEntry* object) {
  158|    407|  copyObject(object);
  159|    407|}
_ZN5Exiv28Internal10TiffCopier15visitImageEntryEPNS0_14TiffImageEntryE:
  161|    627|void TiffCopier::visitImageEntry(TiffImageEntry* object) {
  162|    627|  copyObject(object);
  163|    627|}
_ZN5Exiv28Internal10TiffCopier14visitSizeEntryEPNS0_13TiffSizeEntryE:
  165|    903|void TiffCopier::visitSizeEntry(TiffSizeEntry* object) {
  166|    903|  copyObject(object);
  167|    903|}
_ZN5Exiv28Internal10TiffCopier14visitDirectoryEPNS0_13TiffDirectoryE:
  169|  3.04k|void TiffCopier::visitDirectory(TiffDirectory* /*object*/) {
  170|       |  // Do not copy directories (avoids problems with SubIfds)
  171|  3.04k|}
_ZN5Exiv28Internal10TiffCopier11visitSubIfdEPNS0_10TiffSubIfdE:
  173|    912|void TiffCopier::visitSubIfd(TiffSubIfd* object) {
  174|    912|  copyObject(object);
  175|    912|}
_ZN5Exiv28Internal10TiffCopier12visitMnEntryEPNS0_11TiffMnEntryE:
  177|    550|void TiffCopier::visitMnEntry(TiffMnEntry* object) {
  178|    550|  copyObject(object);
  179|    550|}
_ZN5Exiv28Internal10TiffCopier17visitIfdMakernoteEPNS0_16TiffIfdMakernoteE:
  181|    374|void TiffCopier::visitIfdMakernote(TiffIfdMakernote* object) {
  182|    374|  copyObject(object);
  183|    374|}
_ZN5Exiv28Internal10TiffCopier16visitBinaryArrayEPNS0_15TiffBinaryArrayE:
  185|    696|void TiffCopier::visitBinaryArray(TiffBinaryArray* object) {
  186|    696|  copyObject(object);
  187|    696|}
_ZN5Exiv28Internal10TiffCopier18visitBinaryElementEPNS0_17TiffBinaryElementE:
  189|  12.9k|void TiffCopier::visitBinaryElement(TiffBinaryElement* object) {
  190|  12.9k|  copyObject(object);
  191|  12.9k|}
_ZN5Exiv28Internal11TiffDecoderC2ERNS_8ExifDataERNS_8IptcDataERNS_7XmpDataEPNS0_13TiffComponentEPFMS1_FvPKNS0_13TiffEntryBaseEENSt3__117basic_string_viewIcNSF_11char_traitsIcEEEEjNS_5IfdIdEE:
  195|  43.5k|    exifData_(exifData), iptcData_(iptcData), xmpData_(xmpData), pRoot_(pRoot), findDecoderFct_(findDecoderFct) {
  196|       |  // #1402 Fujifilm RAF. Search for the make
  197|       |  // Find camera make in existing metadata (read from the JPEG)
  198|  43.5k|  ExifKey key("Exif.Image.Make");
  199|  43.5k|  if (exifData_.findKey(key) != exifData_.end()) {
  ------------------
  |  Branch (199:7): [True: 5.08k, False: 38.5k]
  ------------------
  200|  5.08k|    make_ = exifData_.findKey(key)->toString();
  201|  38.5k|  } else {
  202|       |    // Find camera make by looking for tag 0x010f in IFD0
  203|  38.5k|    TiffFinder finder(0x010f, IfdId::ifd0Id);
  204|  38.5k|    pRoot_->accept(finder);
  205|  38.5k|    auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
  206|  38.5k|    if (te && te->pValue()) {
  ------------------
  |  Branch (206:9): [True: 14.5k, False: 23.9k]
  |  Branch (206:15): [True: 14.4k, False: 99]
  ------------------
  207|  14.4k|      make_ = te->pValue()->toString();
  208|  14.4k|    }
  209|  38.5k|  }
  210|  43.5k|}
_ZN5Exiv28Internal11TiffDecoder10visitEntryEPNS0_9TiffEntryE:
  212|  5.82M|void TiffDecoder::visitEntry(TiffEntry* object) {
  213|  5.82M|  decodeTiffEntry(object);
  214|  5.82M|}
_ZN5Exiv28Internal11TiffDecoder14visitDataEntryEPNS0_13TiffDataEntryE:
  216|  6.42k|void TiffDecoder::visitDataEntry(TiffDataEntry* object) {
  217|  6.42k|  decodeTiffEntry(object);
  218|  6.42k|}
_ZN5Exiv28Internal11TiffDecoder15visitImageEntryEPNS0_14TiffImageEntryE:
  220|  35.7k|void TiffDecoder::visitImageEntry(TiffImageEntry* object) {
  221|  35.7k|  decodeTiffEntry(object);
  222|  35.7k|}
_ZN5Exiv28Internal11TiffDecoder14visitSizeEntryEPNS0_13TiffSizeEntryE:
  224|  60.1k|void TiffDecoder::visitSizeEntry(TiffSizeEntry* object) {
  225|  60.1k|  decodeTiffEntry(object);
  226|  60.1k|}
_ZN5Exiv28Internal11TiffDecoder14visitDirectoryEPNS0_13TiffDirectoryE:
  228|   118k|void TiffDecoder::visitDirectory(TiffDirectory* /* object */) {
  229|       |  // Nothing to do
  230|   118k|}
_ZN5Exiv28Internal11TiffDecoder11visitSubIfdEPNS0_10TiffSubIfdE:
  232|  21.6k|void TiffDecoder::visitSubIfd(TiffSubIfd* object) {
  233|  21.6k|  decodeTiffEntry(object);
  234|  21.6k|}
_ZN5Exiv28Internal11TiffDecoder12visitMnEntryEPNS0_11TiffMnEntryE:
  236|  36.9k|void TiffDecoder::visitMnEntry(TiffMnEntry* object) {
  237|       |  // Always decode binary makernote tag
  238|  36.9k|  decodeTiffEntry(object);
  239|  36.9k|}
_ZN5Exiv28Internal11TiffDecoder17visitIfdMakernoteEPNS0_16TiffIfdMakernoteE:
  241|  28.7k|void TiffDecoder::visitIfdMakernote(TiffIfdMakernote* object) {
  242|  28.7k|  exifData_["Exif.MakerNote.Offset"] = static_cast<uint32_t>(object->mnOffset());
  243|  28.7k|  switch (object->byteOrder()) {
  ------------------
  |  Branch (243:11): [True: 28.7k, False: 0]
  ------------------
  244|  2.27k|    case littleEndian:
  ------------------
  |  Branch (244:5): [True: 2.27k, False: 26.5k]
  ------------------
  245|  2.27k|      exifData_["Exif.MakerNote.ByteOrder"] = "II";
  246|  2.27k|      break;
  247|  26.5k|    case bigEndian:
  ------------------
  |  Branch (247:5): [True: 26.5k, False: 2.27k]
  ------------------
  248|  26.5k|      exifData_["Exif.MakerNote.ByteOrder"] = "MM";
  249|  26.5k|      break;
  250|      0|    case invalidByteOrder:
  ------------------
  |  Branch (250:5): [True: 0, False: 28.7k]
  ------------------
  251|      0|      break;
  252|  28.7k|  }
  253|  28.7k|}
_ZN5Exiv28Internal11TiffDecoder10getObjDataERPKhRmtNS_5IfdIdEPKNS0_13TiffEntryBaseE:
  255|  4.57k|void TiffDecoder::getObjData(const byte*& pData, size_t& size, uint16_t tag, IfdId group, const TiffEntryBase* object) {
  256|  4.57k|  if (object && object->tag() == tag && object->group() == group) {
  ------------------
  |  Branch (256:7): [True: 4.57k, False: 0]
  |  Branch (256:17): [True: 4.37k, False: 202]
  |  Branch (256:41): [True: 4.37k, False: 0]
  ------------------
  257|  4.37k|    pData = object->pData();
  258|  4.37k|    size = object->size();
  259|  4.37k|    return;
  260|  4.37k|  }
  261|    202|  TiffFinder finder(tag, group);
  262|    202|  pRoot_->accept(finder);
  263|    202|  if (auto te = dynamic_cast<const TiffEntryBase*>(finder.result())) {
  ------------------
  |  Branch (263:12): [True: 7, False: 195]
  ------------------
  264|      7|    pData = te->pData();
  265|      7|    size = te->size();
  266|      7|    return;
  267|      7|  }
  268|    202|}
_ZN5Exiv28Internal11TiffDecoder9decodeXmpEPKNS0_13TiffEntryBaseE:
  270|  3.76k|void TiffDecoder::decodeXmp(const TiffEntryBase* object) {
  271|       |  // add Exif tag anyway
  272|  3.76k|  decodeStdTiffEntry(object);
  273|       |
  274|  3.76k|  const byte* pData = nullptr;
  275|  3.76k|  size_t size = 0;
  276|  3.76k|  getObjData(pData, size, 0x02bc, IfdId::ifd0Id, object);
  277|  3.76k|  if (pData) {
  ------------------
  |  Branch (277:7): [True: 3.76k, False: 0]
  ------------------
  278|  3.76k|    std::string xmpPacket;
  279|  3.76k|    xmpPacket.assign(reinterpret_cast<const char*>(pData), size);
  280|  3.76k|    std::string::size_type idx = xmpPacket.find_first_of('<');
  281|  3.76k|    if (idx != std::string::npos && idx > 0) {
  ------------------
  |  Branch (281:9): [True: 3.01k, False: 751]
  |  Branch (281:37): [True: 2.96k, False: 46]
  ------------------
  282|  2.96k|#ifndef SUPPRESS_WARNINGS
  283|  2.96k|      EXV_WARNING << "Removing " << idx << " characters from the beginning of the XMP packet\n";
  ------------------
  |  |  138|  2.96k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 2.96k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  2.96k|  LogMsg(LogMsg::warn).os()
  ------------------
  284|  2.96k|#endif
  285|  2.96k|      xmpPacket = xmpPacket.substr(idx);
  286|  2.96k|    }
  287|  3.76k|    if (XmpParser::decode(xmpData_, xmpPacket)) {
  ------------------
  |  Branch (287:9): [True: 1.07k, False: 2.69k]
  ------------------
  288|  1.07k|#ifndef SUPPRESS_WARNINGS
  289|  1.07k|      EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|  1.07k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.07k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.07k|  LogMsg(LogMsg::warn).os()
  ------------------
  290|  1.07k|#endif
  291|  1.07k|    }
  292|  3.76k|  }
  293|  3.76k|}  // TiffDecoder::decodeXmp
_ZN5Exiv28Internal11TiffDecoder10decodeIptcEPKNS0_13TiffEntryBaseE:
  295|    785|void TiffDecoder::decodeIptc(const TiffEntryBase* object) {
  296|       |  // add Exif tag anyway
  297|    785|  decodeStdTiffEntry(object);
  298|       |
  299|       |  // All tags are read at this point, so the first time we come here,
  300|       |  // find the relevant IPTC tag and decode IPTC if found
  301|    785|  if (decodedIptc_) {
  ------------------
  |  Branch (301:7): [True: 180, False: 605]
  ------------------
  302|    180|    return;
  303|    180|  }
  304|    605|  decodedIptc_ = true;
  305|       |  // 1st choice: IPTCNAA
  306|    605|  const byte* pData = nullptr;
  307|    605|  size_t size = 0;
  308|    605|  getObjData(pData, size, 0x83bb, IfdId::ifd0Id, object);
  309|    605|  if (pData) {
  ------------------
  |  Branch (309:7): [True: 553, False: 52]
  ------------------
  310|    553|    if (0 == IptcParser::decode(iptcData_, pData, size)) {
  ------------------
  |  Branch (310:9): [True: 373, False: 180]
  ------------------
  311|    373|      return;
  312|    373|    }
  313|    180|#ifndef SUPPRESS_WARNINGS
  314|    180|    EXV_WARNING << "Failed to decode IPTC block found in " << "Directory Image, entry 0x83bb\n";
  ------------------
  |  |  138|    180|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 180]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    180|  LogMsg(LogMsg::warn).os()
  ------------------
  315|       |
  316|    180|#endif
  317|    180|  }
  318|       |
  319|       |  // 2nd choice if no IPTCNAA record found or failed to decode it:
  320|       |  // ImageResources
  321|    232|  pData = nullptr;
  322|    232|  size = 0;
  323|    232|  getObjData(pData, size, 0x8649, IfdId::ifd0Id, object);
  324|    232|  if (pData) {
  ------------------
  |  Branch (324:7): [True: 55, False: 177]
  ------------------
  325|     55|    const byte* record = nullptr;
  326|     55|    uint32_t sizeHdr = 0;
  327|     55|    uint32_t sizeData = 0;
  328|     55|    if (0 != Photoshop::locateIptcIrb(pData, size, &record, sizeHdr, sizeData)) {
  ------------------
  |  Branch (328:9): [True: 55, False: 0]
  ------------------
  329|     55|      return;
  330|     55|    }
  331|      0|    if (0 == IptcParser::decode(iptcData_, record + sizeHdr, sizeData)) {
  ------------------
  |  Branch (331:9): [True: 0, False: 0]
  ------------------
  332|      0|      return;
  333|      0|    }
  334|      0|#ifndef SUPPRESS_WARNINGS
  335|      0|    EXV_WARNING << "Failed to decode IPTC block found in " << "Directory Image, entry 0x8649\n";
  ------------------
  |  |  138|      0|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 0]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|      0|  LogMsg(LogMsg::warn).os()
  ------------------
  336|       |
  337|      0|#endif
  338|      0|  }
  339|    232|}  // TiffMetadataDecoder::decodeIptc
_ZN5Exiv28Internal11TiffDecoder17decodeCanonAFInfoEPKNS0_13TiffEntryBaseE:
  347|  2.27k|void TiffDecoder::decodeCanonAFInfo(const TiffEntryBase* object) {
  348|       |  // report Exif.Canon.AFInfo as usual
  349|  2.27k|  TiffDecoder::decodeStdTiffEntry(object);
  350|  2.27k|  if (object->pValue()->count() < 3 || object->pValue()->typeId() != unsignedShort)
  ------------------
  |  Branch (350:7): [True: 1.36k, False: 903]
  |  Branch (350:40): [True: 63, False: 840]
  ------------------
  351|  1.43k|    return;  // insufficient data
  352|       |
  353|       |  // create vector of signedShorts from unsignedShorts in Exif.Canon.AFInfo
  354|    840|  std::vector<int16_t> ints;
  355|    840|  std::vector<uint16_t> uint;
  356|  31.7k|  for (size_t i = 0; i < object->pValue()->count(); i++) {
  ------------------
  |  Branch (356:22): [True: 30.8k, False: 840]
  ------------------
  357|  30.8k|    ints.push_back(object->pValue()->toInt64(i));
  358|  30.8k|    uint.push_back(object->pValue()->toUint32(i));
  359|  30.8k|  }
  360|       |  // Check this is AFInfo2 (ints[0] = bytes in object)
  361|    840|  if (ints.front() != static_cast<int16_t>(object->pValue()->count()) * 2)
  ------------------
  |  Branch (361:7): [True: 137, False: 703]
  ------------------
  362|    137|    return;
  363|       |
  364|    703|  std::string familyGroup(std::string("Exif.") + groupName(object->group()) + ".");
  365|       |
  366|    703|  const uint16_t nPoints = uint.at(2);
  367|    703|  const uint16_t nMasks = (nPoints + 15) / (sizeof(uint16_t) * 8);
  368|    703|  int nStart = 0;
  369|       |
  370|    703|  const std::tuple<uint16_t, uint16_t, bool> records[] = {
  371|    703|      {0x2600, 1, true},        // AFInfoSize
  372|    703|      {0x2601, 1, true},        // AFAreaMode
  373|    703|      {0x2602, 1, true},        // AFNumPoints
  374|    703|      {0x2603, 1, true},        // AFValidPoints
  375|    703|      {0x2604, 1, true},        // AFCanonImageWidth
  376|    703|      {0x2605, 1, true},        // AFCanonImageHeight
  377|    703|      {0x2606, 1, true},        // AFImageWidth"
  378|    703|      {0x2607, 1, true},        // AFImageHeight
  379|    703|      {0x2608, nPoints, true},  // AFAreaWidths
  380|    703|      {0x2609, nPoints, true},  // AFAreaHeights
  381|    703|      {0x260a, nPoints, true},  // AFXPositions
  382|    703|      {0x260b, nPoints, true},  // AFYPositions
  383|    703|      {0x260c, nMasks, false},  // AFPointsInFocus
  384|    703|      {0x260d, nMasks, false},  // AFPointsSelected
  385|    703|      {0x260e, nMasks, false},  // AFPointsUnusable
  386|    703|  };
  387|       |  // check we have enough data!
  388|    703|  uint16_t count = 0;
  389|  9.02k|  for (const auto& [tag, size, bSigned] : records) {
  ------------------
  |  Branch (389:41): [True: 9.02k, False: 290]
  ------------------
  390|  9.02k|    count += size;
  391|  9.02k|    if (count > ints.size())
  ------------------
  |  Branch (391:9): [True: 413, False: 8.61k]
  ------------------
  392|    413|      return;
  393|  9.02k|  }
  394|       |
  395|  4.35k|  for (const auto& [tag, size, bSigned] : records) {
  ------------------
  |  Branch (395:41): [True: 4.35k, False: 290]
  ------------------
  396|  4.35k|    auto pTags = ExifTags::tagList("Canon");
  397|  4.35k|    if (auto pTag = findTag(pTags, tag)) {
  ------------------
  |  Branch (397:14): [True: 4.35k, False: 0]
  ------------------
  398|  4.35k|      auto v = Exiv2::Value::create(bSigned ? Exiv2::signedShort : Exiv2::unsignedShort);
  ------------------
  |  Branch (398:37): [True: 3.48k, False: 870]
  ------------------
  399|  4.35k|      std::string s;
  400|  4.35k|      if (bSigned) {
  ------------------
  |  Branch (400:11): [True: 3.48k, False: 870]
  ------------------
  401|  9.39k|        for (uint16_t k = 0; k < size; k++)
  ------------------
  |  Branch (401:30): [True: 5.91k, False: 3.48k]
  ------------------
  402|  5.91k|          s += stringFormat(" {}", ints.at(nStart++));
  ------------------
  |  |   18|  5.91k|#define stringFormat std::format
  ------------------
  403|  3.48k|      } else {
  404|  1.49k|        for (uint16_t k = 0; k < size; k++)
  ------------------
  |  Branch (404:30): [True: 627, False: 870]
  ------------------
  405|    627|          s += stringFormat(" {}", uint.at(nStart++));
  ------------------
  |  |   18|    627|#define stringFormat std::format
  ------------------
  406|    870|      }
  407|       |
  408|  4.35k|      v->read(s);
  409|  4.35k|      exifData_[familyGroup + pTag->name_] = *v;
  410|  4.35k|    }
  411|  4.35k|  }
  412|    290|}
_ZN5Exiv28Internal11TiffDecoder15decodeTiffEntryEPKNS0_13TiffEntryBaseE:
  414|  20.4M|void TiffDecoder::decodeTiffEntry(const TiffEntryBase* object) {
  415|       |  // Don't decode the entry if value is not set
  416|  20.4M|  if (!object->pValue())
  ------------------
  |  Branch (416:7): [True: 3.24M, False: 17.1M]
  ------------------
  417|  3.24M|    return;
  418|       |
  419|       |  // skip decoding if decoderFct == 0
  420|  17.1M|  if (auto decoderFct = findDecoderFct_(make_, object->tag(), object->group()))
  ------------------
  |  Branch (420:12): [True: 17.1M, False: 0]
  ------------------
  421|  17.1M|    std::invoke(decoderFct, *this, object);
  422|  17.1M|}  // TiffDecoder::decodeTiffEntry
_ZN5Exiv28Internal11TiffDecoder18decodeStdTiffEntryEPKNS0_13TiffEntryBaseE:
  424|  17.1M|void TiffDecoder::decodeStdTiffEntry(const TiffEntryBase* object) {
  425|  17.1M|  ExifKey key(object->tag(), groupName(object->group()));
  426|  17.1M|  key.setIdx(object->idx());
  427|  17.1M|  exifData_.add(key, object->pValue());
  428|       |
  429|  17.1M|}  // TiffDecoder::decodeTiffEntry
_ZN5Exiv28Internal11TiffDecoder16visitBinaryArrayEPNS0_15TiffBinaryArrayE:
  431|  51.7k|void TiffDecoder::visitBinaryArray(TiffBinaryArray* object) {
  432|  51.7k|  if (!object->cfg() || !object->decoded()) {
  ------------------
  |  Branch (432:7): [True: 2.28k, False: 49.4k]
  |  Branch (432:25): [True: 36.1k, False: 13.3k]
  ------------------
  433|  38.4k|    decodeTiffEntry(object);
  434|  38.4k|  }
  435|  51.7k|}
_ZN5Exiv28Internal11TiffDecoder18visitBinaryElementEPNS0_17TiffBinaryElementE:
  437|  14.4M|void TiffDecoder::visitBinaryElement(TiffBinaryElement* object) {
  438|  14.4M|  decodeTiffEntry(object);
  439|  14.4M|}
_ZN5Exiv28Internal11TiffEncoderC2ENS_8ExifDataERKNS_8IptcDataERKNS_7XmpDataEPNS0_13TiffComponentEbNSt3__16vectorINS_5IfdIdENSB_9allocatorISD_EEEEPKNS0_14TiffHeaderBaseEPFMS1_FvPNS0_13TiffEntryBaseEPKNS_9ExifdatumEENSB_17basic_string_viewIcNSB_11char_traitsIcEEEEjSD_E:
  444|  9.02k|    exifData_(std::move(exifData)),
  445|  9.02k|    iptcData_(iptcData),
  446|  9.02k|    xmpData_(xmpData),
  447|  9.02k|    pHeader_(pHeader),
  448|  9.02k|    pRoot_(pRoot),
  449|  9.02k|    isNewImage_(isNewImage),
  450|  9.02k|    pPrimaryGroups_(std::move(pPrimaryGroups)),
  451|  9.02k|    byteOrder_(pHeader->byteOrder()),
  452|  9.02k|    origByteOrder_(byteOrder_),
  453|  9.02k|    findEncoderFct_(findEncoderFct) {
  454|  9.02k|  encodeIptc();
  455|  9.02k|  encodeXmp();
  456|       |
  457|       |  // Find camera make
  458|  9.02k|  ExifKey key("Exif.Image.Make");
  459|  9.02k|  if (auto pos = exifData_.findKey(key); pos != exifData_.end()) {
  ------------------
  |  Branch (459:42): [True: 5.90k, False: 3.12k]
  ------------------
  460|  5.90k|    make_ = pos->toString();
  461|  5.90k|  }
  462|  9.02k|  if (make_.empty() && pRoot_) {
  ------------------
  |  Branch (462:7): [True: 3.23k, False: 5.79k]
  |  Branch (462:24): [True: 3.23k, False: 0]
  ------------------
  463|  3.23k|    TiffFinder finder(0x010f, IfdId::ifd0Id);
  464|  3.23k|    pRoot_->accept(finder);
  465|  3.23k|    auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
  466|  3.23k|    if (te && te->pValue()) {
  ------------------
  |  Branch (466:9): [True: 37, False: 3.19k]
  |  Branch (466:15): [True: 15, False: 22]
  ------------------
  467|     15|      make_ = te->pValue()->toString();
  468|     15|    }
  469|  3.23k|  }
  470|  9.02k|}
_ZN5Exiv28Internal11TiffEncoder10encodeIptcEv:
  472|  9.02k|void TiffEncoder::encodeIptc() {
  473|       |  // Update IPTCNAA Exif tag, if it exists. Delete the tag if there
  474|       |  // is no IPTC data anymore.
  475|       |  // If there is new IPTC data and Exif.Image.ImageResources does
  476|       |  // not exist, create a new IPTCNAA Exif tag.
  477|  9.02k|  bool del = false;
  478|  9.02k|  ExifKey iptcNaaKey("Exif.Image.IPTCNAA");
  479|  9.02k|  auto pos = exifData_.findKey(iptcNaaKey);
  480|  9.02k|  if (pos != exifData_.end()) {
  ------------------
  |  Branch (480:7): [True: 82, False: 8.94k]
  ------------------
  481|     82|    iptcNaaKey.setIdx(pos->idx());
  482|     82|    exifData_.erase(pos);
  483|     82|    del = true;
  484|     82|  }
  485|  9.02k|  DataBuf rawIptc = IptcParser::encode(iptcData_);
  486|  9.02k|  ExifKey irbKey("Exif.Image.ImageResources");
  487|  9.02k|  pos = exifData_.findKey(irbKey);
  488|  9.02k|  if (pos != exifData_.end()) {
  ------------------
  |  Branch (488:7): [True: 294, False: 8.73k]
  ------------------
  489|    294|    irbKey.setIdx(pos->idx());
  490|    294|  }
  491|  9.02k|  if (!rawIptc.empty() && (del || pos == exifData_.end())) {
  ------------------
  |  Branch (491:7): [True: 0, False: 9.02k]
  |  Branch (491:7): [True: 0, False: 9.02k]
  |  Branch (491:28): [True: 0, False: 0]
  |  Branch (491:35): [True: 0, False: 0]
  ------------------
  492|      0|    auto value = Value::create(unsignedLong);
  493|      0|    DataBuf buf;
  494|      0|    if (rawIptc.size() % 4 != 0) {
  ------------------
  |  Branch (494:9): [True: 0, False: 0]
  ------------------
  495|       |      // Pad the last unsignedLong value with 0s
  496|      0|      buf.alloc(((rawIptc.size() / 4) * 4) + 4);
  497|      0|      std::move(rawIptc.begin(), rawIptc.end(), buf.begin());
  498|      0|    } else {
  499|      0|      buf = std::move(rawIptc);  // Note: This resets rawIptc
  500|      0|    }
  501|      0|    value->read(buf.data(), buf.size(), byteOrder_);
  502|      0|    Exifdatum iptcDatum(iptcNaaKey, value.get());
  503|      0|    exifData_.add(iptcDatum);
  504|      0|    pos = exifData_.findKey(irbKey);  // needed after add()
  505|      0|  }
  506|       |  // Also update IPTC IRB in Exif.Image.ImageResources if it exists,
  507|       |  // but don't create it if not.
  508|  9.02k|  if (pos != exifData_.end()) {
  ------------------
  |  Branch (508:7): [True: 294, False: 8.73k]
  ------------------
  509|    294|    DataBuf irbBuf(pos->value().size());
  510|    294|    pos->value().copy(irbBuf.data(), invalidByteOrder);
  511|    294|    irbBuf = Photoshop::setIptcIrb(irbBuf.c_data(), irbBuf.size(), iptcData_);
  512|    294|    exifData_.erase(pos);
  513|    294|    if (!irbBuf.empty()) {
  ------------------
  |  Branch (513:9): [True: 93, False: 201]
  ------------------
  514|     93|      auto value = Value::create(unsignedByte);
  515|     93|      value->read(irbBuf.data(), irbBuf.size(), invalidByteOrder);
  516|     93|      Exifdatum iptcDatum(irbKey, value.get());
  517|     93|      exifData_.add(iptcDatum);
  518|     93|    }
  519|    294|  }
  520|  9.02k|}  // TiffEncoder::encodeIptc
_ZN5Exiv28Internal11TiffEncoder9encodeXmpEv:
  522|  9.02k|void TiffEncoder::encodeXmp() {
  523|  9.02k|#ifdef EXV_HAVE_XMP_TOOLKIT
  524|  9.02k|  ExifKey xmpKey("Exif.Image.XMLPacket");
  525|       |  // Remove any existing XMP Exif tag
  526|  9.02k|  if (auto pos = exifData_.findKey(xmpKey); pos != exifData_.end()) {
  ------------------
  |  Branch (526:45): [True: 40, False: 8.98k]
  ------------------
  527|     40|    xmpKey.setIdx(pos->idx());
  528|     40|    exifData_.erase(pos);
  529|     40|  }
  530|  9.02k|  std::string xmpPacket;
  531|  9.02k|  if (xmpData_.usePacket()) {
  ------------------
  |  Branch (531:7): [True: 0, False: 9.02k]
  ------------------
  532|      0|    xmpPacket = xmpData_.xmpPacket();
  533|  9.02k|  } else {
  534|  9.02k|    if (XmpParser::encode(xmpPacket, xmpData_) > 1) {
  ------------------
  |  Branch (534:9): [True: 0, False: 9.02k]
  ------------------
  535|      0|#ifndef SUPPRESS_WARNINGS
  536|      0|      EXV_ERROR << "Failed to encode XMP metadata.\n";
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  537|      0|#endif
  538|      0|    }
  539|  9.02k|  }
  540|  9.02k|  if (!xmpPacket.empty()) {
  ------------------
  |  Branch (540:7): [True: 0, False: 9.02k]
  ------------------
  541|       |    // Set the XMP Exif tag to the new value
  542|      0|    auto value = Value::create(unsignedByte);
  543|      0|    value->read(reinterpret_cast<const byte*>(xmpPacket.data()), xmpPacket.size(), invalidByteOrder);
  544|      0|    Exifdatum xmpDatum(xmpKey, value.get());
  545|      0|    exifData_.add(xmpDatum);
  546|      0|  }
  547|  9.02k|#endif
  548|  9.02k|}  // TiffEncoder::encodeXmp
_ZN5Exiv28Internal11TiffEncoder8setDirtyEb:
  550|   131k|void TiffEncoder::setDirty(bool flag) {
  551|   131k|  dirty_ = flag;
  552|   131k|  setGo(geTraverse, !flag);
  553|   131k|}
_ZNK5Exiv28Internal11TiffEncoder5dirtyEv:
  555|    680|bool TiffEncoder::dirty() const {
  556|    680|  return dirty_ || !exifData_.empty();
  ------------------
  |  Branch (556:10): [True: 645, False: 35]
  |  Branch (556:20): [True: 0, False: 35]
  ------------------
  557|    680|}
_ZN5Exiv28Internal11TiffEncoder10visitEntryEPNS0_9TiffEntryE:
  559|  4.24k|void TiffEncoder::visitEntry(TiffEntry* object) {
  560|  4.24k|  encodeTiffComponent(object);
  561|  4.24k|}
_ZN5Exiv28Internal11TiffEncoder14visitDataEntryEPNS0_13TiffDataEntryE:
  563|     40|void TiffEncoder::visitDataEntry(TiffDataEntry* object) {
  564|     40|  encodeTiffComponent(object);
  565|     40|}
_ZN5Exiv28Internal11TiffEncoder15visitImageEntryEPNS0_14TiffImageEntryE:
  567|     84|void TiffEncoder::visitImageEntry(TiffImageEntry* object) {
  568|     84|  encodeTiffComponent(object);
  569|     84|}
_ZN5Exiv28Internal11TiffEncoder14visitSizeEntryEPNS0_13TiffSizeEntryE:
  571|     66|void TiffEncoder::visitSizeEntry(TiffSizeEntry* object) {
  572|     66|  encodeTiffComponent(object);
  573|     66|}
_ZN5Exiv28Internal11TiffEncoder14visitDirectoryEPNS0_13TiffDirectoryE:
  575|    974|void TiffEncoder::visitDirectory(TiffDirectory* /*object*/) {
  576|       |  // Nothing to do
  577|    974|}
_ZN5Exiv28Internal11TiffEncoder18visitDirectoryNextEPNS0_13TiffDirectoryE:
  579|    215|void TiffEncoder::visitDirectoryNext(TiffDirectory* object) {
  580|       |  // Update type and count in IFD entries, in case they changed
  581|    215|  byte* p = object->start() + 2;
  582|    610|  for (const auto& component : object->components_) {
  ------------------
  |  Branch (582:30): [True: 610, False: 215]
  ------------------
  583|    610|    p += updateDirEntry(p, byteOrder(), component);
  584|    610|  }
  585|    215|}
_ZN5Exiv28Internal11TiffEncoder14updateDirEntryEPhNS_9ByteOrderERKNSt3__110shared_ptrINS0_13TiffComponentEEE:
  587|    610|uint32_t TiffEncoder::updateDirEntry(byte* buf, ByteOrder byteOrder, const TiffComponent::SharedPtr& tiffComponent) {
  588|    610|  auto pTiffEntry = std::dynamic_pointer_cast<TiffEntryBase>(tiffComponent);
  589|    610|  if (!pTiffEntry)
  ------------------
  |  Branch (589:7): [True: 0, False: 610]
  ------------------
  590|      0|    return 0;
  591|    610|  us2Data(buf + 2, pTiffEntry->tiffType(), byteOrder);
  592|    610|  ul2Data(buf + 4, static_cast<uint32_t>(pTiffEntry->count()), byteOrder);
  593|       |  // Move data to offset field, if it fits and is not yet there.
  594|    610|  if (pTiffEntry->size() <= 4 && buf + 8 != pTiffEntry->pData()) {
  ------------------
  |  Branch (594:7): [True: 491, False: 119]
  |  Branch (594:34): [True: 67, False: 424]
  ------------------
  595|       |#ifdef EXIV2_DEBUG_MESSAGES
  596|       |    std::cerr << "Copying data for tag " << pTiffEntry->tag() << " to offset area.\n";
  597|       |#endif
  598|     67|    memset(buf + 8, 0x0, 4);
  599|     67|    if (pTiffEntry->size() > 0) {
  ------------------
  |  Branch (599:9): [True: 1, False: 66]
  ------------------
  600|      1|      std::copy_n(pTiffEntry->pData(), pTiffEntry->size(), buf + 8);
  601|      1|      memset(const_cast<byte*>(pTiffEntry->pData()), 0x0, pTiffEntry->size());
  602|      1|    }
  603|     67|  }
  604|    610|  return 12;
  605|    610|}
_ZN5Exiv28Internal11TiffEncoder11visitSubIfdEPNS0_10TiffSubIfdE:
  607|    127|void TiffEncoder::visitSubIfd(TiffSubIfd* object) {
  608|    127|  encodeTiffComponent(object);
  609|    127|}
_ZN5Exiv28Internal11TiffEncoder12visitMnEntryEPNS0_11TiffMnEntryE:
  611|    165|void TiffEncoder::visitMnEntry(TiffMnEntry* object) {
  612|       |  // Test is required here as well as in the callback encoder function
  613|    165|  if (!object->mn_) {
  ------------------
  |  Branch (613:7): [True: 59, False: 106]
  ------------------
  614|     59|    encodeTiffComponent(object);
  615|    106|  } else if (del_) {
  ------------------
  |  Branch (615:14): [True: 106, False: 0]
  ------------------
  616|       |    // The makernote is made up of decoded tags, delete binary tag
  617|    106|    ExifKey key(object->tag(), groupName(object->group()));
  618|    106|    auto pos = exifData_.findKey(key);
  619|    106|    if (pos != exifData_.end())
  ------------------
  |  Branch (619:9): [True: 106, False: 0]
  ------------------
  620|    106|      exifData_.erase(pos);
  621|    106|  }
  622|    165|}
_ZN5Exiv28Internal11TiffEncoder17visitIfdMakernoteEPNS0_16TiffIfdMakernoteE:
  624|    106|void TiffEncoder::visitIfdMakernote(TiffIfdMakernote* object) {
  625|    106|  auto pos = exifData_.findKey(ExifKey("Exif.MakerNote.ByteOrder"));
  626|    106|  if (pos != exifData_.end()) {
  ------------------
  |  Branch (626:7): [True: 91, False: 15]
  ------------------
  627|       |    // Set Makernote byte order
  628|     91|    ByteOrder bo = stringToByteOrder(pos->toString());
  629|     91|    if (bo != invalidByteOrder && bo != object->byteOrder()) {
  ------------------
  |  Branch (629:9): [True: 91, False: 0]
  |  Branch (629:35): [True: 0, False: 91]
  ------------------
  630|      0|      object->setByteOrder(bo);
  631|      0|      setDirty();
  632|      0|    }
  633|     91|    if (del_)
  ------------------
  |  Branch (633:9): [True: 91, False: 0]
  ------------------
  634|     91|      exifData_.erase(pos);
  635|     91|  }
  636|    106|  if (del_) {
  ------------------
  |  Branch (636:7): [True: 106, False: 0]
  ------------------
  637|       |    // Remove remaining synthesized tags
  638|    106|    static constexpr auto synthesizedTags = std::array{
  639|    106|        "Exif.MakerNote.Offset",
  640|    106|    };
  641|    106|    for (auto synthesizedTag : synthesizedTags) {
  ------------------
  |  Branch (641:30): [True: 106, False: 106]
  ------------------
  642|    106|      pos = exifData_.findKey(ExifKey(synthesizedTag));
  643|    106|      if (pos != exifData_.end())
  ------------------
  |  Branch (643:11): [True: 91, False: 15]
  ------------------
  644|     91|        exifData_.erase(pos);
  645|    106|    }
  646|    106|  }
  647|       |  // Modify encoder for Makernote peculiarities, byte order
  648|    106|  byteOrder_ = object->byteOrder();
  649|       |
  650|    106|}  // TiffEncoder::visitIfdMakernote
_ZN5Exiv28Internal11TiffEncoder20visitIfdMakernoteEndEPNS0_16TiffIfdMakernoteE:
  652|     33|void TiffEncoder::visitIfdMakernoteEnd(TiffIfdMakernote* /*object*/) {
  653|       |  // Reset byte order back to that from the c'tor
  654|     33|  byteOrder_ = origByteOrder_;
  655|       |
  656|     33|}  // TiffEncoder::visitIfdMakernoteEnd
_ZN5Exiv28Internal11TiffEncoder16visitBinaryArrayEPNS0_15TiffBinaryArrayE:
  658|     65|void TiffEncoder::visitBinaryArray(TiffBinaryArray* object) {
  659|     65|  if (!object->cfg() || !object->decoded()) {
  ------------------
  |  Branch (659:7): [True: 9, False: 56]
  |  Branch (659:25): [True: 32, False: 24]
  ------------------
  660|     41|    encodeTiffComponent(object);
  661|     41|  }
  662|     65|}
_ZN5Exiv28Internal11TiffEncoder19visitBinaryArrayEndEPNS0_15TiffBinaryArrayE:
  664|     62|void TiffEncoder::visitBinaryArrayEnd(TiffBinaryArray* object) {
  665|     62|  if (!object->cfg() || !object->decoded())
  ------------------
  |  Branch (665:7): [True: 7, False: 55]
  |  Branch (665:25): [True: 31, False: 24]
  ------------------
  666|     38|    return;
  667|     24|  size_t size = object->TiffEntryBase::doSize();
  668|     24|  if (size == 0)
  ------------------
  |  Branch (668:7): [True: 0, False: 24]
  ------------------
  669|      0|    return;
  670|     24|  if (!object->initialize(pRoot_))
  ------------------
  |  Branch (670:7): [True: 0, False: 24]
  ------------------
  671|      0|    return;
  672|       |
  673|       |  // Re-encrypt buffer if necessary
  674|     24|  CryptFct cryptFct = object->cfg()->cryptFct_;
  675|     24|  if (cryptFct == &sonyTagDecipher) {
  ------------------
  |  Branch (675:7): [True: 0, False: 24]
  ------------------
  676|      0|    cryptFct = sonyTagEncipher;
  677|      0|  }
  678|     24|  if (cryptFct) {
  ------------------
  |  Branch (678:7): [True: 0, False: 24]
  ------------------
  679|      0|    const byte* pData = object->pData();
  680|      0|    DataBuf buf = cryptFct(object->tag(), pData, size, pRoot_);
  681|      0|    if (!buf.empty()) {
  ------------------
  |  Branch (681:9): [True: 0, False: 0]
  ------------------
  682|      0|      pData = buf.c_data();
  683|      0|      size = buf.size();
  684|      0|    }
  685|      0|    if (!object->updOrigDataBuf(pData, size)) {
  ------------------
  |  Branch (685:9): [True: 0, False: 0]
  ------------------
  686|      0|      setDirty();
  687|      0|    }
  688|      0|  }
  689|     24|}
_ZN5Exiv28Internal11TiffEncoder18visitBinaryElementEPNS0_17TiffBinaryElementE:
  691|    738|void TiffEncoder::visitBinaryElement(TiffBinaryElement* object) {
  692|       |  // Temporarily overwrite byte order according to that of the binary element
  693|    738|  ByteOrder boOrig = byteOrder_;
  694|    738|  if (object->elByteOrder() != invalidByteOrder)
  ------------------
  |  Branch (694:7): [True: 236, False: 502]
  ------------------
  695|    236|    byteOrder_ = object->elByteOrder();
  696|    738|  encodeTiffComponent(object);
  697|    738|  byteOrder_ = boOrig;
  698|    738|}
_ZNK5Exiv28Internal11TiffEncoder10isImageTagEtNS_5IfdIdE:
  700|  5.12M|bool TiffEncoder::isImageTag(uint16_t tag, IfdId group) const {
  701|  5.12M|  return !isNewImage_ && pHeader_->isImageTag(tag, group, pPrimaryGroups_);
  ------------------
  |  Branch (701:10): [True: 139k, False: 4.98M]
  |  Branch (701:26): [True: 0, False: 139k]
  ------------------
  702|  5.12M|}
_ZN5Exiv28Internal11TiffEncoder19encodeTiffComponentEPNS0_13TiffEntryBaseEPKNS_9ExifdatumE:
  704|  2.55M|void TiffEncoder::encodeTiffComponent(TiffEntryBase* object, const Exifdatum* datum) {
  705|  2.55M|  auto pos = exifData_.end();
  706|  2.55M|  const Exifdatum* ed = datum;
  707|  2.55M|  if (!ed) {
  ------------------
  |  Branch (707:7): [True: 5.40k, False: 2.55M]
  ------------------
  708|       |    // Non-intrusive writing: find matching tag
  709|  5.40k|    ExifKey key(object->tag(), groupName(object->group()));
  710|  5.40k|    pos = exifData_.findKey(key);
  711|  5.40k|    if (pos != exifData_.end()) {
  ------------------
  |  Branch (711:9): [True: 4.80k, False: 597]
  ------------------
  712|  4.80k|      ed = &(*pos);
  713|  4.80k|      if (object->idx() != pos->idx()) {
  ------------------
  |  Branch (713:11): [True: 929, False: 3.87k]
  ------------------
  714|       |        // Try to find exact match (in case of duplicate tags)
  715|    929|        auto pos2 = std::find_if(exifData_.begin(), exifData_.end(), FindExifdatum2(object->group(), object->idx()));
  716|    929|        if (pos2 != exifData_.end() && pos2->key() == key.key()) {
  ------------------
  |  Branch (716:13): [True: 0, False: 929]
  |  Branch (716:13): [True: 0, False: 929]
  |  Branch (716:40): [True: 0, False: 0]
  ------------------
  717|      0|          ed = &(*pos2);
  718|      0|          pos = pos2;  // make sure we delete the correct tag below
  719|      0|        }
  720|    929|      }
  721|  4.80k|    } else {
  722|    597|      setDirty();
  723|       |#ifdef EXIV2_DEBUG_MESSAGES
  724|       |      std::cerr << "DELETING          " << key << ", idx = " << object->idx() << "\n";
  725|       |#endif
  726|    597|    }
  727|  2.55M|  } else {
  728|       |    // For intrusive writing, the index is used to preserve the order of
  729|       |    // duplicate tags
  730|  2.55M|    object->idx_ = ed->idx();
  731|  2.55M|  }
  732|       |  // Skip encoding image tags of existing TIFF image - they were copied earlier -
  733|       |  // but encode image tags of new images (creation)
  734|  2.55M|  if (ed && !isImageTag(object->tag(), object->group())) {
  ------------------
  |  Branch (734:7): [True: 2.55M, False: 597]
  |  Branch (734:13): [True: 2.55M, False: 0]
  ------------------
  735|  2.55M|    if (auto fct = findEncoderFct_(make_, object->tag(), object->group())) {
  ------------------
  |  Branch (735:14): [True: 0, False: 2.55M]
  ------------------
  736|       |      // If an encoding function is registered for the tag, use it
  737|      0|      std::invoke(fct, *this, object, ed);
  738|  2.55M|    } else {
  739|       |      // Else use the encode function at the object (results in a double-dispatch
  740|       |      // to the appropriate encoding function of the encoder.
  741|  2.55M|      object->encode(*this, ed);
  742|  2.55M|    }
  743|  2.55M|  }
  744|  2.55M|  if (del_ && pos != exifData_.end()) {
  ------------------
  |  Branch (744:7): [True: 5.40k, False: 2.55M]
  |  Branch (744:7): [True: 4.80k, False: 2.55M]
  |  Branch (744:15): [True: 4.80k, False: 597]
  ------------------
  745|  4.80k|    exifData_.erase(pos);
  746|  4.80k|  }
  747|       |#ifdef EXIV2_DEBUG_MESSAGES
  748|       |  std::cerr << "\n";
  749|       |#endif
  750|  2.55M|}  // TiffEncoder::encodeTiffComponent
_ZN5Exiv28Internal11TiffEncoder17encodeBinaryArrayEPNS0_15TiffBinaryArrayEPKNS_9ExifdatumE:
  752|  12.0k|void TiffEncoder::encodeBinaryArray(TiffBinaryArray* object, const Exifdatum* datum) {
  753|  12.0k|  encodeOffsetEntry(object, datum);
  754|  12.0k|}  // TiffEncoder::encodeBinaryArray
_ZN5Exiv28Internal11TiffEncoder19encodeBinaryElementEPNS0_17TiffBinaryElementEPKNS_9ExifdatumE:
  756|   995k|void TiffEncoder::encodeBinaryElement(TiffBinaryElement* object, const Exifdatum* datum) {
  757|   995k|  encodeTiffEntryBase(object, datum);
  758|   995k|}  // TiffEncoder::encodeArrayElement
_ZN5Exiv28Internal11TiffEncoder15encodeDataEntryEPNS0_13TiffDataEntryEPKNS_9ExifdatumE:
  760|  3.83k|void TiffEncoder::encodeDataEntry(TiffDataEntry* object, const Exifdatum* datum) {
  761|  3.83k|  encodeOffsetEntry(object, datum);
  762|       |
  763|  3.83k|  if (!dirty_ && writeMethod() == wmNonIntrusive) {
  ------------------
  |  Branch (763:7): [True: 149, False: 3.68k]
  |  Branch (763:18): [True: 40, False: 109]
  ------------------
  764|     40|    if (object->sizeDataArea_ < object->pValue()->sizeDataArea()) {
  ------------------
  |  Branch (764:9): [True: 0, False: 40]
  ------------------
  765|       |#ifdef EXIV2_DEBUG_MESSAGES
  766|       |      ExifKey key(object->tag(), groupName(object->group()));
  767|       |      std::cerr << "DATAAREA GREW     " << key << "\n";
  768|       |#endif
  769|      0|      setDirty();
  770|     40|    } else {
  771|       |      // Write the new dataarea, fill with 0x0
  772|       |#ifdef EXIV2_DEBUG_MESSAGES
  773|       |      ExifKey key(object->tag(), groupName(object->group()));
  774|       |      std::cerr << "Writing data area for " << key << "\n";
  775|       |#endif
  776|     40|      DataBuf buf = object->pValue()->dataArea();
  777|     40|      if (!buf.empty()) {
  ------------------
  |  Branch (777:11): [True: 8, False: 32]
  ------------------
  778|      8|        std::copy(buf.begin(), buf.end(), object->pDataArea_);
  779|      8|        if (object->sizeDataArea_ > buf.size()) {
  ------------------
  |  Branch (779:13): [True: 0, False: 8]
  ------------------
  780|      0|          memset(object->pDataArea_ + buf.size(), 0x0, object->sizeDataArea_ - buf.size());
  781|      0|        }
  782|      8|      }
  783|     40|    }
  784|     40|  }
  785|       |
  786|  3.83k|}  // TiffEncoder::encodeDataEntry
_ZN5Exiv28Internal11TiffEncoder15encodeTiffEntryEPNS0_9TiffEntryEPKNS_9ExifdatumE:
  788|  1.51M|void TiffEncoder::encodeTiffEntry(TiffEntry* object, const Exifdatum* datum) {
  789|  1.51M|  encodeTiffEntryBase(object, datum);
  790|  1.51M|}  // TiffEncoder::encodeTiffEntry
_ZN5Exiv28Internal11TiffEncoder16encodeImageEntryEPNS0_14TiffImageEntryEPKNS_9ExifdatumE:
  792|  8.44k|void TiffEncoder::encodeImageEntry(TiffImageEntry* object, const Exifdatum* datum) {
  793|  8.44k|  encodeOffsetEntry(object, datum);
  794|       |
  795|  8.44k|  size_t sizeDataArea = object->pValue()->sizeDataArea();
  796|       |
  797|  8.44k|  if (sizeDataArea > 0 && writeMethod() == wmNonIntrusive) {
  ------------------
  |  Branch (797:7): [True: 89, False: 8.35k]
  |  Branch (797:27): [True: 0, False: 89]
  ------------------
  798|       |#ifdef EXIV2_DEBUG_MESSAGES
  799|       |    std::cerr << "\t DATAAREA IS SET (NON-INTRUSIVE WRITING)";
  800|       |#endif
  801|      0|    setDirty();
  802|      0|  }
  803|       |
  804|  8.44k|  if (sizeDataArea > 0 && writeMethod() == wmIntrusive) {
  ------------------
  |  Branch (804:7): [True: 89, False: 8.35k]
  |  Branch (804:27): [True: 89, False: 0]
  ------------------
  805|       |#ifdef EXIV2_DEBUG_MESSAGES
  806|       |    std::cerr << "\t DATAAREA IS SET (INTRUSIVE WRITING)";
  807|       |#endif
  808|       |    // Set pseudo strips (without a data pointer) from the size tag
  809|     89|    ExifKey key(object->szTag(), groupName(object->szGroup()));
  810|     89|    auto pos = exifData_.findKey(key);
  811|     89|    const byte* zero = nullptr;
  812|     89|    if (pos == exifData_.end()) {
  ------------------
  |  Branch (812:9): [True: 0, False: 89]
  ------------------
  813|      0|#ifndef SUPPRESS_WARNINGS
  814|      0|      EXV_ERROR << "Size tag " << key << " not found. Writing only one strip.\n";
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  815|      0|#endif
  816|      0|      object->strips_.clear();
  817|      0|      object->strips_.emplace_back(zero, sizeDataArea);
  818|     89|    } else {
  819|     89|      size_t sizeTotal = 0;
  820|     89|      object->strips_.clear();
  821|  1.06k|      for (size_t i = 0; i < pos->count(); ++i) {
  ------------------
  |  Branch (821:26): [True: 974, False: 89]
  ------------------
  822|    974|        uint32_t len = pos->toUint32(i);
  823|    974|        object->strips_.emplace_back(zero, len);
  824|    974|        sizeTotal += len;
  825|    974|      }
  826|     89|      if (sizeTotal != sizeDataArea) {
  ------------------
  |  Branch (826:11): [True: 0, False: 89]
  ------------------
  827|      0|#ifndef SUPPRESS_WARNINGS
  828|      0|        ExifKey key2(object->tag(), groupName(object->group()));
  829|      0|        EXV_ERROR << "Sum of all sizes of " << key << " != data size of " << key2 << ". "
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  830|      0|                  << "This results in an invalid image.\n";
  831|      0|#endif
  832|       |        // Todo: How to fix? Write only one strip?
  833|      0|      }
  834|     89|    }
  835|     89|  }
  836|       |
  837|  8.44k|  if (sizeDataArea == 0 && writeMethod() == wmIntrusive) {
  ------------------
  |  Branch (837:7): [True: 8.35k, False: 89]
  |  Branch (837:28): [True: 8.27k, False: 73]
  ------------------
  838|       |#ifdef EXIV2_DEBUG_MESSAGES
  839|       |    std::cerr << "\t USE STRIPS FROM SOURCE TREE IMAGE ENTRY";
  840|       |#endif
  841|       |    // Set strips from source tree
  842|  8.27k|    if (pSourceTree_) {
  ------------------
  |  Branch (842:9): [True: 357, False: 7.92k]
  ------------------
  843|    357|      TiffFinder finder(object->tag(), object->group());
  844|    357|      pSourceTree_->accept(finder);
  845|    357|      if (auto ti = dynamic_cast<const TiffImageEntry*>(finder.result())) {
  ------------------
  |  Branch (845:16): [True: 357, False: 0]
  ------------------
  846|    357|        object->strips_ = ti->strips_;
  847|    357|      }
  848|    357|    }
  849|  7.92k|#ifndef SUPPRESS_WARNINGS
  850|  7.92k|    else {
  851|  7.92k|      ExifKey key2(object->tag(), groupName(object->group()));
  852|  7.92k|      EXV_WARNING << "No image data to encode " << key2 << ".\n";
  ------------------
  |  |  138|  7.92k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 7.92k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  7.92k|  LogMsg(LogMsg::warn).os()
  ------------------
  853|  7.92k|    }
  854|  8.27k|#endif
  855|  8.27k|  }
  856|       |
  857|  8.44k|}  // TiffEncoder::encodeImageEntry
_ZN5Exiv28Internal11TiffEncoder13encodeMnEntryEPNS0_11TiffMnEntryEPKNS_9ExifdatumE:
  859|  8.24k|void TiffEncoder::encodeMnEntry(TiffMnEntry* object, const Exifdatum* datum) {
  860|       |  // Test is required here as well as in the visit function
  861|  8.24k|  if (!object->mn_)
  ------------------
  |  Branch (861:7): [True: 8.11k, False: 129]
  ------------------
  862|  8.11k|    encodeTiffEntryBase(object, datum);
  863|  8.24k|}  // TiffEncoder::encodeMnEntry
_ZN5Exiv28Internal11TiffEncoder15encodeSizeEntryEPNS0_13TiffSizeEntryEPKNS_9ExifdatumE:
  865|  16.2k|void TiffEncoder::encodeSizeEntry(TiffSizeEntry* object, const Exifdatum* datum) {
  866|  16.2k|  encodeTiffEntryBase(object, datum);
  867|  16.2k|}  // TiffEncoder::encodeSizeEntry
_ZN5Exiv28Internal11TiffEncoder12encodeSubIfdEPNS0_10TiffSubIfdEPKNS_9ExifdatumE:
  869|    114|void TiffEncoder::encodeSubIfd(TiffSubIfd* object, const Exifdatum* datum) {
  870|    114|  encodeOffsetEntry(object, datum);
  871|    114|}  // TiffEncoder::encodeSubIfd
_ZN5Exiv28Internal11TiffEncoder19encodeTiffEntryBaseEPNS0_13TiffEntryBaseEPKNS_9ExifdatumE:
  873|  2.53M|void TiffEncoder::encodeTiffEntryBase(TiffEntryBase* object, const Exifdatum* datum) {
  874|       |#ifdef EXIV2_DEBUG_MESSAGES
  875|       |  bool tooLarge = false;
  876|       |#endif
  877|  2.53M|  if (datum->size() > object->size_) {  // value doesn't fit, encode for intrusive writing
  ------------------
  |  Branch (877:7): [True: 125k, False: 2.40M]
  ------------------
  878|   125k|    setDirty();
  879|       |#ifdef EXIV2_DEBUG_MESSAGES
  880|       |    tooLarge = true;
  881|       |#endif
  882|   125k|  }
  883|  2.53M|  object->updateValue(datum->getValue(), byteOrder());  // clones the value
  884|       |#ifdef EXIV2_DEBUG_MESSAGES
  885|       |  ExifKey key(object->tag(), groupName(object->group()));
  886|       |  std::cerr << "UPDATING DATA     " << key;
  887|       |  if (tooLarge) {
  888|       |    std::cerr << "\t\t\t ALLOCATED " << std::dec << object->size_ << " BYTES";
  889|       |  }
  890|       |#endif
  891|  2.53M|}
_ZN5Exiv28Internal11TiffEncoder17encodeOffsetEntryEPNS0_13TiffEntryBaseEPKNS_9ExifdatumE:
  893|  24.4k|void TiffEncoder::encodeOffsetEntry(TiffEntryBase* object, const Exifdatum* datum) {
  894|  24.4k|  size_t newSize = datum->size();
  895|  24.4k|  if (newSize > object->size_) {  // value doesn't fit, encode for intrusive writing
  ------------------
  |  Branch (895:7): [True: 5.15k, False: 19.3k]
  ------------------
  896|  5.15k|    setDirty();
  897|  5.15k|    object->updateValue(datum->getValue(), byteOrder());  // clones the value
  898|       |#ifdef EXIV2_DEBUG_MESSAGES
  899|       |    ExifKey key(object->tag(), groupName(object->group()));
  900|       |    std::cerr << "UPDATING DATA     " << key;
  901|       |    std::cerr << "\t\t\t ALLOCATED " << object->size() << " BYTES";
  902|       |#endif
  903|  19.3k|  } else {
  904|  19.3k|    object->setValue(datum->getValue());  // clones the value
  905|       |#ifdef EXIV2_DEBUG_MESSAGES
  906|       |    ExifKey key(object->tag(), groupName(object->group()));
  907|       |    std::cerr << "NOT UPDATING      " << key;
  908|       |    std::cerr << "\t\t\t PRESERVE VALUE DATA";
  909|       |#endif
  910|  19.3k|  }
  911|  24.4k|}
_ZN5Exiv28Internal11TiffEncoder3addEPNS0_13TiffComponentENSt3__110unique_ptrIS2_NS4_14default_deleteIS2_EEEEj:
  913|  8.34k|void TiffEncoder::add(TiffComponent* pRootDir, TiffComponent::UniquePtr pSourceDir, uint32_t root) {
  914|  8.34k|  writeMethod_ = wmIntrusive;
  915|  8.34k|  pSourceTree_ = std::move(pSourceDir);
  916|       |
  917|       |  // Ensure that the exifData_ entries are not deleted, to be able to
  918|       |  // iterate over all remaining entries.
  919|  8.34k|  del_ = false;
  920|       |
  921|  8.34k|  auto posBo = exifData_.end();
  922|  2.59M|  for (auto i = exifData_.begin(); i != exifData_.end(); ++i) {
  ------------------
  |  Branch (922:36): [True: 2.58M, False: 8.34k]
  ------------------
  923|  2.58M|    IfdId group = groupId(i->groupName());
  924|       |    // Skip synthesized info tags
  925|  2.58M|    if (group == IfdId::mnId) {
  ------------------
  |  Branch (925:9): [True: 10.3k, False: 2.57M]
  ------------------
  926|  10.3k|      if (i->tag() == 0x0002) {
  ------------------
  |  Branch (926:11): [True: 5.18k, False: 5.18k]
  ------------------
  927|  5.18k|        posBo = i;
  928|  5.18k|      }
  929|  10.3k|      continue;
  930|  10.3k|    }
  931|       |
  932|       |    // Skip image tags of existing TIFF image - they were copied earlier -
  933|       |    // but add and encode image tags of new images (creation)
  934|  2.57M|    if (isImageTag(i->tag(), group))
  ------------------
  |  Branch (934:9): [True: 0, False: 2.57M]
  ------------------
  935|      0|      continue;
  936|       |
  937|       |    // Assumption is that the corresponding TIFF entry doesn't exist
  938|  2.57M|    auto tiffPath = TiffCreator::getPath(i->tag(), group, root);
  939|  2.57M|    TiffComponent* tc = pRootDir->addPath(i->tag(), tiffPath, pRootDir);
  940|  2.57M|    auto object = dynamic_cast<TiffEntryBase*>(tc);
  941|       |#ifdef EXIV2_DEBUG_MESSAGES
  942|       |    if (!object) {
  943|       |      std::cerr << "Warning: addPath() didn't add an entry for " << i->groupName() << " tag 0x" << std::setw(4)
  944|       |                << std::setfill('0') << std::hex << i->tag() << "\n";
  945|       |    }
  946|       |#endif
  947|  2.57M|    if (object) {
  ------------------
  |  Branch (947:9): [True: 2.55M, False: 18.9k]
  ------------------
  948|  2.55M|      encodeTiffComponent(object, &(*i));
  949|  2.55M|    }
  950|  2.57M|  }
  951|       |
  952|       |  /*
  953|       |    What follows is a hack. I can't think of a better way to set
  954|       |    the makernote byte order (and other properties maybe) in the
  955|       |    makernote header during intrusive writing. The thing is that
  956|       |    visit/encodeIfdMakernote is not called in this case and there
  957|       |    can't be an Exif tag which corresponds to this component.
  958|       |   */
  959|  8.34k|  if (posBo == exifData_.end())
  ------------------
  |  Branch (959:7): [True: 3.16k, False: 5.18k]
  ------------------
  960|  3.16k|    return;
  961|       |
  962|  5.18k|  TiffFinder finder(0x927c, IfdId::exifId);
  963|  5.18k|  pRootDir->accept(finder);
  964|  5.18k|  if (auto te = dynamic_cast<const TiffMnEntry*>(finder.result())) {
  ------------------
  |  Branch (964:12): [True: 5.15k, False: 33]
  ------------------
  965|  5.15k|    if (const auto& mn = te->mn_) {
  ------------------
  |  Branch (965:21): [True: 5.09k, False: 61]
  ------------------
  966|       |      // Set Makernote byte order
  967|  5.09k|      ByteOrder bo = stringToByteOrder(posBo->toString());
  968|  5.09k|      if (bo != invalidByteOrder)
  ------------------
  |  Branch (968:11): [True: 5.09k, False: 0]
  ------------------
  969|  5.09k|        mn->setByteOrder(bo);
  970|  5.09k|    }
  971|  5.15k|  }
  972|       |
  973|  5.18k|}  // TiffEncoder::add
_ZN5Exiv28Internal10TiffReaderC2EPKhmPNS0_13TiffComponentENS0_11TiffRwStateE:
  976|  44.2k|    pData_(pData), size_(size), pLast_(pData + size), pRoot_(pRoot), origState_(state), mnState_(state) {
  977|  44.2k|  pState_ = &origState_;
  978|       |
  979|  44.2k|}  // TiffReader::TiffReader
_ZN5Exiv28Internal10TiffReader12setOrigStateEv:
  981|  73.4k|void TiffReader::setOrigState() {
  982|  73.4k|  pState_ = &origState_;
  983|  73.4k|}
_ZN5Exiv28Internal10TiffReader10setMnStateEPKNS0_11TiffRwStateE:
  985|  73.4k|void TiffReader::setMnState(const TiffRwState* state) {
  986|  73.4k|  if (state) {
  ------------------
  |  Branch (986:7): [True: 29.2k, False: 44.2k]
  ------------------
  987|       |    // invalidByteOrder indicates 'no change'
  988|  29.2k|    if (state->byteOrder() == invalidByteOrder) {
  ------------------
  |  Branch (988:9): [True: 0, False: 29.2k]
  ------------------
  989|      0|      mnState_ = TiffRwState{origState_.byteOrder(), state->baseOffset()};
  990|  29.2k|    } else {
  991|  29.2k|      mnState_ = *state;
  992|  29.2k|    }
  993|  29.2k|  }
  994|  73.4k|  pState_ = &mnState_;
  995|  73.4k|}
_ZNK5Exiv28Internal10TiffReader9byteOrderEv:
  997|  34.8M|ByteOrder TiffReader::byteOrder() const {
  998|  34.8M|  return pState_->byteOrder();
  999|  34.8M|}
_ZNK5Exiv28Internal10TiffReader10baseOffsetEv:
 1001|  3.72M|size_t TiffReader::baseOffset() const {
 1002|  3.72M|  return pState_->baseOffset();
 1003|  3.72M|}
_ZN5Exiv28Internal10TiffReader17readDataEntryBaseEPNS0_17TiffDataEntryBaseE:
 1005|  43.1k|void TiffReader::readDataEntryBase(TiffDataEntryBase* object) {
 1006|  43.1k|  readTiffEntry(object);
 1007|  43.1k|  TiffFinder finder(object->szTag(), object->szGroup());
 1008|  43.1k|  pRoot_->accept(finder);
 1009|  43.1k|  auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
 1010|  43.1k|  if (te && te->pValue()) {
  ------------------
  |  Branch (1010:7): [True: 25.0k, False: 18.1k]
  |  Branch (1010:13): [True: 11.1k, False: 13.8k]
  ------------------
 1011|  11.1k|    object->setStrips(te->pValue(), pData_, size_, baseOffset());
 1012|  11.1k|  }
 1013|  43.1k|}
_ZN5Exiv28Internal10TiffReader10visitEntryEPNS0_9TiffEntryE:
 1015|  5.93M|void TiffReader::visitEntry(TiffEntry* object) {
 1016|  5.93M|  readTiffEntry(object);
 1017|  5.93M|}
_ZN5Exiv28Internal10TiffReader14visitDataEntryEPNS0_13TiffDataEntryE:
 1019|  6.83k|void TiffReader::visitDataEntry(TiffDataEntry* object) {
 1020|  6.83k|  readDataEntryBase(object);
 1021|  6.83k|}
_ZN5Exiv28Internal10TiffReader15visitImageEntryEPNS0_14TiffImageEntryE:
 1023|  36.3k|void TiffReader::visitImageEntry(TiffImageEntry* object) {
 1024|  36.3k|  readDataEntryBase(object);
 1025|  36.3k|}
_ZN5Exiv28Internal10TiffReader14visitSizeEntryEPNS0_13TiffSizeEntryE:
 1027|  61.0k|void TiffReader::visitSizeEntry(TiffSizeEntry* object) {
 1028|  61.0k|  readTiffEntry(object);
 1029|  61.0k|  TiffFinder finder(object->dtTag(), object->dtGroup());
 1030|  61.0k|  pRoot_->accept(finder);
 1031|  61.0k|  auto te = dynamic_cast<TiffDataEntryBase*>(finder.result());
 1032|  61.0k|  if (te && te->pValue()) {
  ------------------
  |  Branch (1032:7): [True: 32.9k, False: 28.0k]
  |  Branch (1032:13): [True: 22.9k, False: 10.0k]
  ------------------
 1033|  22.9k|    te->setStrips(object->pValue(), pData_, size_, baseOffset());
 1034|  22.9k|  }
 1035|  61.0k|}
_ZN5Exiv28Internal10TiffReader17circularReferenceEPKhNS_5IfdIdE:
 1037|   121k|bool TiffReader::circularReference(const byte* start, IfdId group) {
 1038|   121k|  if (auto pos = dirList_.find(start); pos != dirList_.end()) {
  ------------------
  |  Branch (1038:40): [True: 10.3k, False: 110k]
  ------------------
 1039|  10.3k|#ifndef SUPPRESS_WARNINGS
 1040|  10.3k|    EXV_ERROR << groupName(group) << " pointer references previously read " << groupName(pos->second)
  ------------------
  |  |  142|  10.3k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 10.3k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  10.3k|  LogMsg(LogMsg::error).os()
  ------------------
 1041|      0|              << " directory; ignored.\n";
 1042|  10.3k|#endif
 1043|  10.3k|    return true;
 1044|  10.3k|  }
 1045|   110k|  dirList_[start] = group;
 1046|   110k|  return false;
 1047|   121k|}
_ZN5Exiv28Internal10TiffReader7nextIdxENS_5IfdIdE:
 1049|  17.2M|int TiffReader::nextIdx(IfdId group) {
 1050|  17.2M|  return ++idxSeq_[group];
 1051|  17.2M|}
_ZN5Exiv28Internal10TiffReader11postProcessEv:
 1053|  44.2k|void TiffReader::postProcess() {
 1054|  44.2k|  setMnState();  // All components to be post-processed must be from the Makernote
 1055|  44.2k|  postProc_ = true;
 1056|  52.4k|  for (auto pos : postList_) {
  ------------------
  |  Branch (1056:17): [True: 52.4k, False: 44.2k]
  ------------------
 1057|  52.4k|    pos->accept(*this);
 1058|  52.4k|  }
 1059|  44.2k|  postProc_ = false;
 1060|  44.2k|  setOrigState();
 1061|  44.2k|}
_ZN5Exiv28Internal10TiffReader14visitDirectoryEPNS0_13TiffDirectoryE:
 1063|   121k|void TiffReader::visitDirectory(TiffDirectory* object) {
 1064|   121k|  const byte* p = object->start();
 1065|       |
 1066|   121k|  if (circularReference(object->start(), object->group()))
  ------------------
  |  Branch (1066:7): [True: 10.3k, False: 110k]
  ------------------
 1067|  10.3k|    return;
 1068|       |
 1069|   110k|  if (p + 2 > pLast_) {
  ------------------
  |  Branch (1069:7): [True: 54, False: 110k]
  ------------------
 1070|     54|#ifndef SUPPRESS_WARNINGS
 1071|     54|    EXV_ERROR << "Directory " << groupName(object->group()) << ": IFD exceeds data buffer, cannot read entry count.\n";
  ------------------
  |  |  142|     54|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 54]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|     54|  LogMsg(LogMsg::error).os()
  ------------------
 1072|     54|#endif
 1073|     54|    return;
 1074|     54|  }
 1075|   110k|  const uint16_t n = getUShort(p, byteOrder());
 1076|   110k|  p += 2;
 1077|       |  // Sanity check with an "unreasonably" large number
 1078|   110k|  if (n > 256) {
  ------------------
  |  Branch (1078:7): [True: 14.2k, False: 96.6k]
  ------------------
 1079|  14.2k|#ifndef SUPPRESS_WARNINGS
 1080|  14.2k|    EXV_ERROR << "Directory " << groupName(object->group()) << " with " << n
  ------------------
  |  |  142|  14.2k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 14.2k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  14.2k|  LogMsg(LogMsg::error).os()
  ------------------
 1081|      0|              << " entries considered invalid; not read.\n";
 1082|  14.2k|#endif
 1083|  14.2k|    return;
 1084|  14.2k|  }
 1085|  6.41M|  for (uint16_t i = 0; i < n; ++i) {
  ------------------
  |  Branch (1085:24): [True: 6.39M, False: 23.8k]
  ------------------
 1086|  6.39M|    if (p + 12 > pLast_) {
  ------------------
  |  Branch (1086:9): [True: 72.8k, False: 6.31M]
  ------------------
 1087|  72.8k|#ifndef SUPPRESS_WARNINGS
 1088|  72.8k|      EXV_ERROR << "Directory " << groupName(object->group()) << ": IFD entry " << i
  ------------------
  |  |  142|  72.8k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 72.8k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  72.8k|  LogMsg(LogMsg::error).os()
  ------------------
 1089|      0|                << " lies outside of the data buffer.\n";
 1090|  72.8k|#endif
 1091|  72.8k|      return;
 1092|  72.8k|    }
 1093|  6.31M|    uint16_t tag = getUShort(p, byteOrder());
 1094|  6.31M|    if (auto tc = TiffCreator::create(tag, object->group())) {
  ------------------
  |  Branch (1094:14): [True: 6.24M, False: 75.1k]
  ------------------
 1095|  6.24M|      tc->setStart(p);
 1096|  6.24M|      object->addChild(std::move(tc));
 1097|  6.24M|    } else {
 1098|  75.1k|#ifndef SUPPRESS_WARNINGS
 1099|  75.1k|      EXV_WARNING << "Unable to handle tag " << tag << ".\n";
  ------------------
  |  |  138|  75.1k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 75.1k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  75.1k|  LogMsg(LogMsg::warn).os()
  ------------------
 1100|  75.1k|#endif
 1101|  75.1k|    }
 1102|  6.31M|    p += 12;
 1103|  6.31M|  }
 1104|       |
 1105|  23.8k|  if (object->hasNext()) {
  ------------------
  |  Branch (1105:7): [True: 23.2k, False: 549]
  ------------------
 1106|  23.2k|    if (p + 4 > pLast_) {
  ------------------
  |  Branch (1106:9): [True: 139, False: 23.1k]
  ------------------
 1107|    139|#ifndef SUPPRESS_WARNINGS
 1108|    139|      EXV_ERROR << "Directory " << groupName(object->group())
  ------------------
  |  |  142|    139|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 139]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    139|  LogMsg(LogMsg::error).os()
  ------------------
 1109|      0|                << ": IFD exceeds data buffer, cannot read next pointer.\n";
 1110|    139|#endif
 1111|    139|      return;
 1112|    139|    }
 1113|  23.1k|    TiffComponent::UniquePtr tc;
 1114|  23.1k|    uint32_t next = getULong(p, byteOrder());
 1115|  23.1k|    if (next) {
  ------------------
  |  Branch (1115:9): [True: 21.0k, False: 2.11k]
  ------------------
 1116|  21.0k|      tc = TiffCreator::create(Tag::next, object->group());
 1117|  21.0k|#ifndef SUPPRESS_WARNINGS
 1118|  21.0k|      if (!tc) {
  ------------------
  |  Branch (1118:11): [True: 12.4k, False: 8.54k]
  ------------------
 1119|  12.4k|        EXV_WARNING << "Directory " << groupName(object->group()) << " has an unexpected next pointer; ignored.\n";
  ------------------
  |  |  138|  12.4k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 12.4k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  12.4k|  LogMsg(LogMsg::warn).os()
  ------------------
 1120|  12.4k|      }
 1121|  21.0k|#endif
 1122|  21.0k|    }
 1123|  23.1k|    if (tc) {
  ------------------
  |  Branch (1123:9): [True: 8.54k, False: 14.5k]
  ------------------
 1124|  8.54k|      if (baseOffset() + next > size_) {
  ------------------
  |  Branch (1124:11): [True: 6.68k, False: 1.86k]
  ------------------
 1125|  6.68k|#ifndef SUPPRESS_WARNINGS
 1126|  6.68k|        EXV_ERROR << "Directory " << groupName(object->group()) << ": Next pointer is out of bounds; ignored.\n";
  ------------------
  |  |  142|  6.68k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 6.68k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  6.68k|  LogMsg(LogMsg::error).os()
  ------------------
 1127|  6.68k|#endif
 1128|  6.68k|        return;
 1129|  6.68k|      }
 1130|  1.86k|      tc->setStart(pData_ + baseOffset() + next);
 1131|  1.86k|      object->addNext(std::move(tc));
 1132|  1.86k|    }
 1133|  23.1k|  }  // object->hasNext()
 1134|       |
 1135|  23.8k|}  // TiffReader::visitDirectory
_ZN5Exiv28Internal10TiffReader11visitSubIfdEPNS0_10TiffSubIfdE:
 1137|  22.6k|void TiffReader::visitSubIfd(TiffSubIfd* object) {
 1138|  22.6k|  readTiffEntry(object);
 1139|  22.6k|  if ((object->tiffType() == ttUnsignedLong || object->tiffType() == ttSignedLong || object->tiffType() == ttTiffIfd) &&
  ------------------
  |  Branch (1139:8): [True: 13.9k, False: 8.63k]
  |  Branch (1139:48): [True: 1.04k, False: 7.58k]
  |  Branch (1139:86): [True: 4.19k, False: 3.39k]
  ------------------
 1140|  19.2k|      object->count() >= 1) {
  ------------------
  |  Branch (1140:7): [True: 9.87k, False: 9.36k]
  ------------------
 1141|       |    // Todo: Fix hack
 1142|  9.87k|    uint32_t maxi = 9;
 1143|  9.87k|    if (object->group() == IfdId::ifd1Id)
  ------------------
  |  Branch (1143:9): [True: 137, False: 9.73k]
  ------------------
 1144|    137|      maxi = 1;
 1145|  56.0k|    for (uint32_t i = 0; i < object->count(); ++i) {
  ------------------
  |  Branch (1145:26): [True: 54.7k, False: 1.30k]
  ------------------
 1146|  54.7k|      uint32_t offset = getULong(object->pData() + (4 * i), byteOrder());
 1147|  54.7k|      if (baseOffset() + offset > size_) {
  ------------------
  |  Branch (1147:11): [True: 8.40k, False: 46.3k]
  ------------------
 1148|  8.40k|#ifndef SUPPRESS_WARNINGS
 1149|  8.40k|        EXV_ERROR << "Directory " << groupName(object->group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
  ------------------
  |  |  142|  8.40k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 8.40k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  8.40k|  LogMsg(LogMsg::error).os()
  ------------------
 1150|      0|                  << std::hex << object->tag() << " Sub-IFD pointer " << i << " is out of bounds; ignoring it.\n";
 1151|  8.40k|#endif
 1152|  8.40k|        return;
 1153|  8.40k|      }
 1154|  46.3k|      if (i >= maxi) {
  ------------------
  |  Branch (1154:11): [True: 166, False: 46.2k]
  ------------------
 1155|    166|#ifndef SUPPRESS_WARNINGS
 1156|    166|        EXV_WARNING << "Directory " << groupName(object->group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
  ------------------
  |  |  138|    166|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 166]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|    166|  LogMsg(LogMsg::warn).os()
  ------------------
 1157|      0|                    << std::hex << object->tag() << ": Skipping sub-IFDs beyond the first " << i << ".\n";
 1158|    166|#endif
 1159|    166|        break;
 1160|    166|      }
 1161|       |      // If there are multiple dirs, group is incremented for each
 1162|  46.2k|      auto td = std::make_unique<TiffDirectory>(object->tag(),
 1163|  46.2k|                                                static_cast<IfdId>(static_cast<uint32_t>(object->newGroup_) + i));
 1164|  46.2k|      td->setStart(pData_ + baseOffset() + offset);
 1165|  46.2k|      object->addChild(std::move(td));
 1166|  46.2k|    }
 1167|  9.87k|  }
 1168|  12.7k|#ifndef SUPPRESS_WARNINGS
 1169|  12.7k|  else {
 1170|  12.7k|    EXV_WARNING << "Directory " << groupName(object->group()) << ", entry 0x" << std::setw(4) << std::setfill('0')
  ------------------
  |  |  138|  12.7k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 12.7k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  12.7k|  LogMsg(LogMsg::warn).os()
  ------------------
 1171|      0|                << std::hex << object->tag() << " doesn't look like a sub-IFD.\n";
 1172|  12.7k|  }
 1173|  22.6k|#endif
 1174|       |
 1175|  22.6k|}  // TiffReader::visitSubIfd
_ZN5Exiv28Internal10TiffReader12visitMnEntryEPNS0_11TiffMnEntryE:
 1177|  37.5k|void TiffReader::visitMnEntry(TiffMnEntry* object) {
 1178|  37.5k|  readTiffEntry(object);
 1179|       |  // Find camera make
 1180|  37.5k|  TiffFinder finder(0x010f, IfdId::ifd0Id);
 1181|  37.5k|  pRoot_->accept(finder);
 1182|  37.5k|  auto te = dynamic_cast<const TiffEntryBase*>(finder.result());
 1183|  37.5k|  if (te && te->pValue()) {
  ------------------
  |  Branch (1183:7): [True: 37.2k, False: 375]
  |  Branch (1183:13): [True: 36.9k, False: 273]
  ------------------
 1184|  36.9k|    auto make = te->pValue()->toString();
 1185|       |    // create concrete makernote, based on make and makernote contents
 1186|  36.9k|    object->mn_ =
 1187|  36.9k|        TiffMnCreator::create(object->tag(), object->mnGroup_, make, object->pData_, object->size_, byteOrder());
 1188|  36.9k|  }
 1189|  37.5k|  if (object->mn_)
  ------------------
  |  Branch (1189:7): [True: 29.6k, False: 7.91k]
  ------------------
 1190|  29.6k|    object->mn_->setStart(object->pData());
 1191|       |
 1192|  37.5k|}  // TiffReader::visitMnEntry
_ZN5Exiv28Internal10TiffReader17visitIfdMakernoteEPNS0_16TiffIfdMakernoteE:
 1194|  29.6k|void TiffReader::visitIfdMakernote(TiffIfdMakernote* object) {
 1195|  29.6k|  object->setImageByteOrder(byteOrder());  // set the byte order for the image
 1196|       |
 1197|  29.6k|  if (!object->readHeader(object->start(), pLast_ - object->start(), byteOrder())) {
  ------------------
  |  Branch (1197:7): [True: 462, False: 29.2k]
  ------------------
 1198|    462|#ifndef SUPPRESS_WARNINGS
 1199|    462|    EXV_ERROR << "Failed to read " << groupName(object->ifd_.group()) << " IFD Makernote header.\n";
  ------------------
  |  |  142|    462|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 462]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|    462|  LogMsg(LogMsg::error).os()
  ------------------
 1200|       |#ifdef EXIV2_DEBUG_MESSAGES
 1201|       |    if (pLast_ - object->start() >= 16u) {
 1202|       |      hexdump(std::cerr, object->start(), 16u);
 1203|       |    }
 1204|       |#endif  // EXIV2_DEBUG_MESSAGES
 1205|    462|#endif  // SUPPRESS_WARNINGS
 1206|    462|    setGo(geKnownMakernote, false);
 1207|    462|    return;
 1208|    462|  }
 1209|       |
 1210|  29.2k|  object->ifd_.setStart(object->start() + object->ifdOffset());
 1211|       |
 1212|       |  // Modify reader for Makernote peculiarities, byte order and offset
 1213|  29.2k|  object->mnOffset_ = object->start() - pData_;
 1214|  29.2k|  auto state = TiffRwState{object->byteOrder(), object->baseOffset()};
 1215|  29.2k|  setMnState(&state);
 1216|       |
 1217|  29.2k|}  // TiffReader::visitIfdMakernote
_ZN5Exiv28Internal10TiffReader20visitIfdMakernoteEndEPNS0_16TiffIfdMakernoteE:
 1219|  29.1k|void TiffReader::visitIfdMakernoteEnd(TiffIfdMakernote* /*object*/) {
 1220|       |  // Reset state (byte order, create function, offset) back to that for the image
 1221|  29.1k|  setOrigState();
 1222|  29.1k|}  // TiffReader::visitIfdMakernoteEnd
_ZN5Exiv28Internal10TiffReader13readTiffEntryEPNS0_13TiffEntryBaseE:
 1224|  6.14M|void TiffReader::readTiffEntry(TiffEntryBase* object) {
 1225|  6.14M|  try {
 1226|  6.14M|    byte* p = object->start();
 1227|       |
 1228|  6.14M|    if (p + 12 > pLast_) {
  ------------------
  |  Branch (1228:9): [True: 4, False: 6.14M]
  ------------------
 1229|      4|#ifndef SUPPRESS_WARNINGS
 1230|      4|      EXV_ERROR << "Entry in directory " << groupName(object->group())
  ------------------
  |  |  142|      4|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 4]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      4|  LogMsg(LogMsg::error).os()
  ------------------
 1231|      0|                << "requests access to memory beyond the data buffer. " << "Skipping entry.\n";
 1232|      4|#endif
 1233|      4|      return;
 1234|      4|    }
 1235|       |    // Component already has tag
 1236|  6.14M|    p += 2;
 1237|  6.14M|    auto tiffType = static_cast<TiffType>(getUShort(p, byteOrder()));
 1238|  6.14M|    TypeId typeId = toTypeId(tiffType, object->tag(), object->group());
 1239|  6.14M|    size_t typeSize = TypeInfo::typeSize(typeId);
 1240|  6.14M|    if (0 == typeSize) {
  ------------------
  |  Branch (1240:9): [True: 5.59M, False: 554k]
  ------------------
 1241|  5.59M|#ifndef SUPPRESS_WARNINGS
 1242|  5.59M|      EXV_WARNING << stringFormat(
  ------------------
  |  |  138|  5.59M|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 5.59M]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  5.59M|  LogMsg(LogMsg::warn).os()
  ------------------
                    EXV_WARNING << stringFormat(
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
 1243|      0|          "Directory {}, entry 0x{:04x} has unknown Exif (TIFF) type {}; setting type size 1.\n",
 1244|      0|          groupName(object->group()), object->tag(), static_cast<uint16_t>(tiffType));
 1245|  5.59M|#endif
 1246|  5.59M|      typeSize = 1;
 1247|  5.59M|    }
 1248|  6.14M|    p += 2;
 1249|  6.14M|    uint32_t count = getULong(p, byteOrder());
 1250|  6.14M|    if (count >= 0x10000000) {
  ------------------
  |  Branch (1250:9): [True: 3.29M, False: 2.85M]
  ------------------
 1251|  3.29M|#ifndef SUPPRESS_WARNINGS
 1252|  3.29M|      EXV_ERROR << stringFormat("Directory {}, entry 0x{:04x} has invalid size {}*{}; skipping entry.\n",
  ------------------
  |  |  142|  3.29M|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 3.29M]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  3.29M|  LogMsg(LogMsg::error).os()
  ------------------
                    EXV_ERROR << stringFormat("Directory {}, entry 0x{:04x} has invalid size {}*{}; skipping entry.\n",
  ------------------
  |  |   18|      0|#define stringFormat std::format
  ------------------
 1253|      0|                                groupName(object->group()), object->tag(), count, typeSize);
 1254|  3.29M|#endif
 1255|  3.29M|      return;
 1256|  3.29M|    }
 1257|  2.85M|    p += 4;
 1258|       |
 1259|  2.85M|    if (count > std::numeric_limits<size_t>::max() / typeSize) {
  ------------------
  |  Branch (1259:9): [True: 0, False: 2.85M]
  ------------------
 1260|      0|      throw Error(ErrorCode::kerArithmeticOverflow);
 1261|      0|    }
 1262|  2.85M|    size_t size = typeSize * count;
 1263|  2.85M|    size_t offset = getULong(p, byteOrder());
 1264|  2.85M|    byte* pData = p;
 1265|  2.85M|    if (size > 4 && Safe::add<size_t>(baseOffset(), offset) >= size_) {
  ------------------
  |  Branch (1265:9): [True: 2.44M, False: 412k]
  |  Branch (1265:21): [True: 1.87M, False: 568k]
  ------------------
 1266|       |      // #1143
 1267|  1.87M|      if (object->tag() == 0x2001 && std::string(groupName(object->group())) == "Sony1") {
  ------------------
  |  Branch (1267:11): [True: 1.18k, False: 1.87M]
  |  Branch (1267:11): [True: 55, False: 1.87M]
  |  Branch (1267:38): [True: 55, False: 1.13k]
  ------------------
 1268|       |        // This tag is Exif.Sony1.PreviewImage, which refers to a preview image which is
 1269|       |        // not stored in the metadata. Instead it is stored at the end of the file, after
 1270|       |        // the main image. The value of `size` refers to the size of the preview image, not
 1271|       |        // the size of the tag's payload, so we set it to zero here so that we don't attempt
 1272|       |        // to read those bytes from the metadata. We currently leave this tag as "undefined",
 1273|       |        // although we may attempt to handle it better in the future. More discussion of
 1274|       |        // this issue can be found here:
 1275|       |        //
 1276|       |        //   https://github.com/Exiv2/exiv2/issues/2001
 1277|       |        //   https://github.com/Exiv2/exiv2/pull/2008
 1278|       |        //   https://github.com/Exiv2/exiv2/pull/2013
 1279|     55|        typeId = undefined;
 1280|     55|        size = 0;
 1281|  1.87M|      } else {
 1282|  1.87M|#ifndef SUPPRESS_WARNINGS
 1283|  1.87M|        EXV_ERROR << "Offset of directory " << groupName(object->group()) << ", entry 0x" << std::setw(4)
  ------------------
  |  |  142|  1.87M|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 1.87M]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  1.87M|  LogMsg(LogMsg::error).os()
  ------------------
 1284|      0|                  << std::setfill('0') << std::hex << object->tag() << " is out of bounds: " << "Offset = 0x"
 1285|      0|                  << std::setw(8) << std::setfill('0') << std::hex << offset << "; truncating the entry\n";
 1286|  1.87M|#endif
 1287|  1.87M|      }
 1288|  1.87M|      size = 0;
 1289|  1.87M|    }
 1290|  2.85M|    if (size > 4) {
  ------------------
  |  Branch (1290:9): [True: 568k, False: 2.28M]
  ------------------
 1291|       |      // setting pData to pData_ + baseOffset() + offset can result in pData pointing to invalid memory,
 1292|       |      // as offset can be arbitrarily large
 1293|   568k|      if (Safe::add<size_t>(baseOffset(), offset) > static_cast<size_t>(pLast_ - pData_)) {
  ------------------
  |  Branch (1293:11): [True: 0, False: 568k]
  ------------------
 1294|      0|        throw Error(ErrorCode::kerCorruptedMetadata);
 1295|      0|      }
 1296|   568k|      pData = const_cast<byte*>(pData_) + baseOffset() + offset;
 1297|       |
 1298|       |      // check for size being invalid
 1299|   568k|      if (size > static_cast<size_t>(pLast_ - pData)) {
  ------------------
  |  Branch (1299:11): [True: 236k, False: 332k]
  ------------------
 1300|   236k|#ifndef SUPPRESS_WARNINGS
 1301|   236k|        EXV_ERROR << "Upper boundary of data for " << "directory " << groupName(object->group()) << ", entry 0x"
  ------------------
  |  |  142|   236k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 236k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|   236k|  LogMsg(LogMsg::error).os()
  ------------------
 1302|      0|                  << std::setw(4) << std::setfill('0') << std::hex << object->tag()
 1303|      0|                  << " is out of bounds: " << "Offset = 0x" << std::setw(8) << std::setfill('0') << std::hex << offset
 1304|      0|                  << ", size = " << std::dec << size
 1305|      0|                  << ", exceeds buffer size by "
 1306|       |                  // cast to make MSVC happy
 1307|      0|                  << size - static_cast<size_t>(pLast_ - pData) << " Bytes; truncating the entry\n";
 1308|   236k|#endif
 1309|   236k|        size = 0;
 1310|   236k|      }
 1311|   568k|    }
 1312|  2.85M|    auto v = Value::create(typeId);
 1313|  2.85M|    enforce(v != nullptr, ErrorCode::kerCorruptedMetadata);
 1314|  2.85M|    v->read(pData, size, byteOrder());
 1315|       |
 1316|  2.85M|    object->setValue(std::move(v));
 1317|  2.85M|    auto d = std::make_shared<DataBuf>();
 1318|  2.85M|    object->setData(pData, size, std::move(d));
 1319|  2.85M|    object->setOffset(offset);
 1320|  2.85M|    object->setIdx(nextIdx(object->group()));
 1321|  2.85M|  } catch (std::overflow_error&) {
 1322|      0|    throw Error(ErrorCode::kerCorruptedMetadata);  // #562 don't throw std::overflow_error
 1323|      0|  }
 1324|  6.14M|}  // TiffReader::readTiffEntry
_ZN5Exiv28Internal10TiffReader16visitBinaryArrayEPNS0_15TiffBinaryArrayE:
 1326|   104k|void TiffReader::visitBinaryArray(TiffBinaryArray* object) {
 1327|   104k|  if (!postProc_) {
  ------------------
  |  Branch (1327:7): [True: 52.4k, False: 52.4k]
  ------------------
 1328|       |    // Defer reading children until after all other components are read, but
 1329|       |    // since state (offset) is not set during post-processing, read entry here
 1330|  52.4k|    readTiffEntry(object);
 1331|  52.4k|    object->iniOrigDataBuf();
 1332|  52.4k|    postList_.push_back(object);
 1333|  52.4k|    return;
 1334|  52.4k|  }
 1335|       |  // Check duplicates
 1336|  52.4k|  TiffFinder finder(object->tag(), object->group());
 1337|  52.4k|  pRoot_->accept(finder);
 1338|  52.4k|  if (auto te = dynamic_cast<const TiffEntryBase*>(finder.result())) {
  ------------------
  |  Branch (1338:12): [True: 52.3k, False: 106]
  ------------------
 1339|  52.3k|    if (te->idx() != object->idx()) {
  ------------------
  |  Branch (1339:9): [True: 23.3k, False: 28.9k]
  ------------------
 1340|  23.3k|#ifndef SUPPRESS_WARNINGS
 1341|  23.3k|      EXV_WARNING << "Not decoding duplicate binary array tag 0x" << std::setw(4) << std::setfill('0') << std::hex
  ------------------
  |  |  138|  23.3k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 23.3k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  23.3k|  LogMsg(LogMsg::warn).os()
  ------------------
 1342|      0|                  << object->tag() << std::dec << ", group " << groupName(object->group()) << ", idx " << object->idx()
 1343|      0|                  << "\n";
 1344|  23.3k|#endif
 1345|  23.3k|      object->setDecoded(false);
 1346|  23.3k|      return;
 1347|  23.3k|    }
 1348|  52.3k|  }
 1349|       |
 1350|  29.0k|  if (object->TiffEntryBase::doSize() == 0)
  ------------------
  |  Branch (1350:7): [True: 15.2k, False: 13.7k]
  ------------------
 1351|  15.2k|    return;
 1352|  13.7k|  if (!object->initialize(pRoot_))
  ------------------
  |  Branch (1352:7): [True: 351, False: 13.4k]
  ------------------
 1353|    351|    return;
 1354|  13.4k|  const ArrayCfg* cfg = object->cfg();
 1355|  13.4k|  if (!cfg)
  ------------------
  |  Branch (1355:7): [True: 0, False: 13.4k]
  ------------------
 1356|      0|    return;
 1357|       |
 1358|  13.4k|  if (auto cryptFct = cfg->cryptFct_) {
  ------------------
  |  Branch (1358:12): [True: 853, False: 12.5k]
  ------------------
 1359|    853|    const byte* pData = object->pData();
 1360|    853|    size_t size = object->TiffEntryBase::doSize();
 1361|    853|    auto buf = std::make_shared<DataBuf>(cryptFct(object->tag(), pData, size, pRoot_));
 1362|    853|    if (!buf->empty())
  ------------------
  |  Branch (1362:9): [True: 656, False: 197]
  ------------------
 1363|    656|      object->setData(std::move(buf));
 1364|    853|  }
 1365|       |
 1366|  13.4k|  const ArrayDef* defs = object->def();
 1367|  13.4k|  const ArrayDef* defsEnd = defs + object->defSize();
 1368|  13.4k|  const ArrayDef* def = &cfg->elDefaultDef_;
 1369|  13.4k|  ArrayDef gap = *def;
 1370|       |
 1371|  14.3M|  for (size_t idx = 0; idx < object->TiffEntryBase::doSize();) {
  ------------------
  |  Branch (1371:24): [True: 14.3M, False: 13.4k]
  ------------------
 1372|  14.3M|    if (defs) {
  ------------------
  |  Branch (1372:9): [True: 9.96M, False: 4.35M]
  ------------------
 1373|  9.96M|      def = std::find(defs, defsEnd, idx);
 1374|  9.96M|      if (def == defsEnd) {
  ------------------
  |  Branch (1374:11): [True: 9.94M, False: 16.2k]
  ------------------
 1375|  9.94M|        if (cfg->concat_) {
  ------------------
  |  Branch (1375:13): [True: 961, False: 9.94M]
  ------------------
 1376|       |          // Determine gap-size
 1377|    961|          const ArrayDef* xdef = defs;
 1378|  6.58k|          for (; xdef != defsEnd && xdef->idx_ <= idx; ++xdef) {
  ------------------
  |  Branch (1378:18): [True: 6.23k, False: 345]
  |  Branch (1378:37): [True: 5.62k, False: 616]
  ------------------
 1379|  5.62k|          }
 1380|    961|          size_t gapSize = 0;
 1381|    961|          if (xdef != defsEnd && xdef->idx_ > idx) {
  ------------------
  |  Branch (1381:15): [True: 616, False: 345]
  |  Branch (1381:34): [True: 616, False: 0]
  ------------------
 1382|    616|            gapSize = xdef->idx_ - idx;
 1383|    616|          } else {
 1384|    345|            gapSize = object->TiffEntryBase::doSize() - idx;
 1385|    345|          }
 1386|    961|          gap.idx_ = idx;
 1387|    961|          gap.tiffType_ = cfg->elDefaultDef_.tiffType_;
 1388|    961|          gap.count_ = gapSize / cfg->tagStep();
 1389|    961|          if (gap.count_ * cfg->tagStep() != gapSize) {
  ------------------
  |  Branch (1389:15): [True: 19, False: 942]
  ------------------
 1390|     19|            gap.tiffType_ = ttUndefined;
 1391|     19|            gap.count_ = gapSize;
 1392|     19|          }
 1393|    961|          def = &gap;
 1394|  9.94M|        } else {
 1395|  9.94M|          def = &cfg->elDefaultDef_;
 1396|  9.94M|        }
 1397|  9.94M|      }
 1398|  9.96M|    }
 1399|  14.3M|    idx += object->addElement(idx, *def);  // idx may be different from def->idx_
 1400|  14.3M|  }
 1401|       |
 1402|  13.4k|}  // TiffReader::visitBinaryArray
_ZN5Exiv28Internal10TiffReader18visitBinaryElementEPNS0_17TiffBinaryElementE:
 1404|  14.4M|void TiffReader::visitBinaryElement(TiffBinaryElement* object) {
 1405|  14.4M|  auto pData = object->start();
 1406|  14.4M|  size_t size = object->TiffEntryBase::doSize();
 1407|  14.4M|  ByteOrder bo = object->elByteOrder();
 1408|  14.4M|  if (bo == invalidByteOrder)
  ------------------
  |  Branch (1408:7): [True: 10.2M, False: 4.14M]
  ------------------
 1409|  10.2M|    bo = byteOrder();
 1410|  14.4M|  TypeId typeId = toTypeId(object->elDef()->tiffType_, object->tag(), object->group());
 1411|  14.4M|  auto v = Value::create(typeId);
 1412|  14.4M|  enforce(v != nullptr, ErrorCode::kerCorruptedMetadata);
 1413|  14.4M|  v->read(pData, size, bo);
 1414|       |
 1415|  14.4M|  object->setValue(std::move(v));
 1416|  14.4M|  object->setOffset(0);
 1417|  14.4M|  object->setIdx(nextIdx(object->group()));
 1418|  14.4M|}
tiffvisitor_int.cpp:_ZN5Exiv28InternalL7findTagEPKNS_7TagInfoEt:
  341|  4.35k|static const TagInfo* findTag(const TagInfo* pList, uint16_t tag) {
  342|   304k|  while (pList->tag_ != 0xffff && pList->tag_ != tag)
  ------------------
  |  Branch (342:10): [True: 304k, False: 0]
  |  Branch (342:35): [True: 300k, False: 4.35k]
  ------------------
  343|   300k|    pList++;
  344|  4.35k|  return pList->tag_ != 0xffff ? pList : nullptr;
  ------------------
  |  Branch (344:10): [True: 4.35k, False: 0]
  ------------------
  345|  4.35k|}
tiffvisitor_int.cpp:_ZN12_GLOBAL__N_117stringToByteOrderENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
   48|  5.18k|Exiv2::ByteOrder stringToByteOrder(std::string_view val) {
   49|  5.18k|  if (val == "II")
  ------------------
  |  Branch (49:7): [True: 121, False: 5.06k]
  ------------------
   50|    121|    return Exiv2::littleEndian;
   51|  5.06k|  if (val == "MM")
  ------------------
  |  Branch (51:7): [True: 5.06k, False: 0]
  ------------------
   52|  5.06k|    return Exiv2::bigEndian;
   53|       |
   54|      0|  return Exiv2::invalidByteOrder;
   55|  5.06k|}
tiffvisitor_int.cpp:_ZNK12_GLOBAL__N_114FindExifdatum2clERKN5Exiv29ExifdatumE:
   38|   100k|  bool operator()(const Exiv2::Exifdatum& md) const {
   39|   100k|    return idx_ == md.idx() && md.groupName() == groupName_;
  ------------------
  |  Branch (39:12): [True: 562, False: 99.6k]
  |  Branch (39:32): [True: 0, False: 562]
  ------------------
   40|   100k|  }
tiffvisitor_int.cpp:_ZN12_GLOBAL__N_114FindExifdatum2C2EN5Exiv25IfdIdEi:
   35|    929|  FindExifdatum2(Exiv2::IfdId group, int idx) : groupName_(Exiv2::Internal::groupName(group)), idx_(idx) {
   36|    929|  }

_ZN5Exiv28Internal11TiffVisitorD2Ev:
   65|  97.5k|  virtual ~TiffVisitor() = default;
_ZN5Exiv28Internal11TiffEncoderD2Ev:
  355|  9.02k|  ~TiffEncoder() override = default;
_ZN5Exiv28Internal11TiffRwStateC2ENS_9ByteOrderEm:
  538|  73.4k|  constexpr TiffRwState(ByteOrder byteOrder, size_t baseOffset) : byteOrder_(byteOrder), baseOffset_(baseOffset) {
  539|  73.4k|  }
_ZN5Exiv28Internal10TiffFinderC2EtNS_5IfdIdE:
  142|   252k|  constexpr TiffFinder(uint16_t tag, IfdId group) : tag_(tag), group_(group) {
  143|   252k|  }
_ZN5Exiv28Internal11TiffVisitorC2Ev:
   63|   349k|  TiffVisitor() = default;
_ZNK5Exiv28Internal10TiffFinder6resultEv:
  181|   252k|  [[nodiscard]] TiffComponent* result() const {
  182|   252k|    return tiffComponent_;
  183|   252k|  }
_ZNK5Exiv28Internal11TiffEncoder9byteOrderEv:
  458|  2.53M|  [[nodiscard]] ByteOrder byteOrder() const {
  459|  2.53M|    return byteOrder_;
  460|  2.53M|  }
_ZNK5Exiv28Internal11TiffEncoder11writeMethodEv:
  467|  8.67k|  [[nodiscard]] WriteMethod writeMethod() const {
  468|  8.67k|    return writeMethod_;
  469|  8.67k|  }
_ZNK5Exiv28Internal11TiffRwState9byteOrderEv:
  548|  34.9M|  [[nodiscard]] ByteOrder byteOrder() const {
  549|  34.9M|    return byteOrder_;
  550|  34.9M|  }
_ZNK5Exiv28Internal11TiffRwState10baseOffsetEv:
  562|  3.72M|  [[nodiscard]] size_t baseOffset() const {
  563|  3.72M|    return baseOffset_;
  564|  3.72M|  }

_ZN5Exiv28TypeInfo8typeSizeENS_6TypeIdE:
   86|  49.5M|size_t TypeInfo::typeSize(TypeId typeId) {
   87|  49.5M|  if (auto tit = Exiv2::find(typeInfoTable, typeId))
  ------------------
  |  Branch (87:12): [True: 43.9M, False: 5.59M]
  ------------------
   88|  43.9M|    return tit->size_;
   89|  5.59M|  return 0;
   90|  49.5M|}
_ZN5Exiv27DataBufC2Em:
   92|  1.52M|DataBuf::DataBuf(size_t size) : pData_(size) {
   93|  1.52M|}
_ZN5Exiv27DataBufC2EPKhm:
   95|  39.7k|DataBuf::DataBuf(const byte* pData, size_t size) : pData_(pData, pData + size) {
   96|  39.7k|}
_ZN5Exiv27DataBuf5allocEm:
   98|  46.5k|void DataBuf::alloc(size_t size) {
   99|  46.5k|  pData_.resize(size);
  100|  46.5k|}
_ZN5Exiv27DataBuf6resizeEm:
  102|  77.0k|void DataBuf::resize(size_t size) {
  103|  77.0k|  pData_.resize(size);
  104|  77.0k|}
_ZN5Exiv27DataBuf5resetEv:
  106|  30.5k|void DataBuf::reset() {
  107|  30.5k|  pData_.clear();
  108|  30.5k|}
_ZNK5Exiv27DataBuf10read_uint8Em:
  110|  1.25M|uint8_t Exiv2::DataBuf::read_uint8(size_t offset) const {
  111|  1.25M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (111:7): [True: 0, False: 1.25M]
  ------------------
  112|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint8");
  113|      0|  }
  114|  1.25M|  return pData_[offset];
  115|  1.25M|}
_ZN5Exiv27DataBuf11write_uint8Emh:
  117|  1.83M|void Exiv2::DataBuf::write_uint8(size_t offset, uint8_t x) {
  118|  1.83M|  if (offset >= pData_.size()) {
  ------------------
  |  Branch (118:7): [True: 0, False: 1.83M]
  ------------------
  119|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint8");
  120|      0|  }
  121|  1.83M|  pData_[offset] = x;
  122|  1.83M|}
_ZNK5Exiv27DataBuf11read_uint16EmNS_9ByteOrderE:
  124|   531k|uint16_t Exiv2::DataBuf::read_uint16(size_t offset, ByteOrder byteOrder) const {
  125|   531k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (125:7): [True: 0, False: 531k]
  |  Branch (125:28): [True: 2, False: 531k]
  ------------------
  126|      2|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint16");
  127|      2|  }
  128|   531k|  return getUShort(&pData_[offset], byteOrder);
  129|   531k|}
_ZN5Exiv27DataBuf12write_uint16EmtNS_9ByteOrderE:
  131|  8.40k|void Exiv2::DataBuf::write_uint16(size_t offset, uint16_t x, ByteOrder byteOrder) {
  132|  8.40k|  if (pData_.size() < 2 || offset > (pData_.size() - 2)) {
  ------------------
  |  Branch (132:7): [True: 0, False: 8.40k]
  |  Branch (132:28): [True: 0, False: 8.40k]
  ------------------
  133|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint16");
  134|      0|  }
  135|  8.40k|  us2Data(&pData_[offset], x, byteOrder);
  136|  8.40k|}
_ZNK5Exiv27DataBuf11read_uint32EmNS_9ByteOrderE:
  138|   378k|uint32_t Exiv2::DataBuf::read_uint32(size_t offset, ByteOrder byteOrder) const {
  139|   378k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (139:7): [True: 0, False: 378k]
  |  Branch (139:28): [True: 1, False: 378k]
  ------------------
  140|      1|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint32");
  141|      1|  }
  142|   378k|  return getULong(&pData_[offset], byteOrder);
  143|   378k|}
_ZN5Exiv27DataBuf12write_uint32EmjNS_9ByteOrderE:
  145|  8.40k|void Exiv2::DataBuf::write_uint32(size_t offset, uint32_t x, ByteOrder byteOrder) {
  146|  8.40k|  if (pData_.size() < 4 || offset > (pData_.size() - 4)) {
  ------------------
  |  Branch (146:7): [True: 0, False: 8.40k]
  |  Branch (146:28): [True: 0, False: 8.40k]
  ------------------
  147|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::write_uint32");
  148|      0|  }
  149|  8.40k|  ul2Data(&pData_[offset], x, byteOrder);
  150|  8.40k|}
_ZNK5Exiv27DataBuf11read_uint64EmNS_9ByteOrderE:
  152|  1.87k|uint64_t Exiv2::DataBuf::read_uint64(size_t offset, ByteOrder byteOrder) const {
  153|  1.87k|  if (pData_.size() < 8 || offset > (pData_.size() - 8)) {
  ------------------
  |  Branch (153:7): [True: 0, False: 1.87k]
  |  Branch (153:28): [True: 0, False: 1.87k]
  ------------------
  154|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::read_uint64");
  155|      0|  }
  156|  1.87k|  return getULongLong(&pData_[offset], byteOrder);
  157|  1.87k|}
_ZNK5Exiv27DataBuf8cmpBytesEmPKvm:
  166|   300k|int Exiv2::DataBuf::cmpBytes(size_t offset, const void* buf, size_t bufsize) const {
  167|   300k|  if (pData_.size() < bufsize || offset > pData_.size() - bufsize) {
  ------------------
  |  Branch (167:7): [True: 4, False: 300k]
  |  Branch (167:34): [True: 0, False: 300k]
  ------------------
  168|      4|    throw std::out_of_range("Overflow in Exiv2::DataBuf::cmpBytes");
  169|      4|  }
  170|   300k|  return memcmp(&pData_[offset], buf, bufsize);
  171|   300k|}
_ZN5Exiv27DataBuf4dataEm:
  173|  6.29M|byte* Exiv2::DataBuf::data(size_t offset) {
  174|  6.29M|  return const_cast<byte*>(c_data(offset));
  175|  6.29M|}
_ZNK5Exiv27DataBuf6c_dataEm:
  177|  7.32M|const byte* Exiv2::DataBuf::c_data(size_t offset) const {
  178|  7.32M|  if (pData_.empty() || offset == pData_.size()) {
  ------------------
  |  Branch (178:7): [True: 16.2k, False: 7.30M]
  |  Branch (178:25): [True: 8.13k, False: 7.29M]
  ------------------
  179|  24.4k|    return nullptr;
  180|  24.4k|  }
  181|  7.29M|  if (offset > pData_.size()) {
  ------------------
  |  Branch (181:7): [True: 0, False: 7.29M]
  ------------------
  182|      0|    throw std::out_of_range("Overflow in Exiv2::DataBuf::c_data");
  183|      0|  }
  184|  7.29M|  return &pData_[offset];
  185|  7.29M|}
_ZNK5Exiv27DataBuf5c_strEm:
  187|   225k|const char* Exiv2::DataBuf::c_str(size_t offset) const {
  188|   225k|  return reinterpret_cast<const char*>(c_data(offset));
  189|   225k|}
_ZN5Exiv29makeSliceERNS_7DataBufEmm:
  200|  38.0k|Slice<byte*> makeSlice(DataBuf& buf, size_t begin, size_t end) {
  201|  38.0k|  checkDataBufBounds(buf, end);
  202|  38.0k|  return {buf.data(), begin, end};
  203|  38.0k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIiiEE:
  210|   191k|std::ostream& operator<<(std::ostream& os, const Rational& r) {
  211|   191k|  return os << r.first << "/" << r.second;
  212|   191k|}
_ZN5Exiv2lsERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEERKNS0_4pairIjjEE:
  239|   102k|std::ostream& operator<<(std::ostream& os, const URational& r) {
  240|   102k|  return os << r.first << "/" << r.second;
  241|   102k|}
_ZN5Exiv29getUShortEPKhNS_9ByteOrderE:
  247|  61.9M|uint16_t getUShort(const byte* buf, ByteOrder byteOrder) {
  248|  61.9M|  return getUShort(makeSliceUntil(buf, 2), byteOrder);
  249|  61.9M|}
_ZN5Exiv28getULongEPKhNS_9ByteOrderE:
  251|  48.3M|uint32_t getULong(const byte* buf, ByteOrder byteOrder) {
  252|  48.3M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (252:7): [True: 1.51M, False: 46.7M]
  ------------------
  253|  1.51M|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  254|  1.51M|  }
  255|  46.7M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  256|  48.3M|}
_ZN5Exiv212getULongLongEPKhNS_9ByteOrderE:
  258|  21.5k|uint64_t getULongLong(const byte* buf, ByteOrder byteOrder) {
  259|  21.5k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (259:7): [True: 1.72k, False: 19.8k]
  ------------------
  260|  1.72k|    return static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  261|  1.72k|           static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  262|  1.72k|           static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  263|  1.72k|           static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]);
  264|  1.72k|  }
  265|  19.8k|  return static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  266|  19.8k|         static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  267|  19.8k|         static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  268|  19.8k|         static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]);
  269|  21.5k|}
_ZN5Exiv212getURationalEPKhNS_9ByteOrderE:
  271|   353k|URational getURational(const byte* buf, ByteOrder byteOrder) {
  272|   353k|  uint32_t nominator = getULong(buf, byteOrder);
  273|   353k|  uint32_t denominator = getULong(buf + 4, byteOrder);
  274|   353k|  return {nominator, denominator};
  275|   353k|}
_ZN5Exiv28getShortEPKhNS_9ByteOrderE:
  277|  8.01M|int16_t getShort(const byte* buf, ByteOrder byteOrder) {
  278|  8.01M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (278:7): [True: 266k, False: 7.74M]
  ------------------
  279|   266k|    return buf[1] << 8 | buf[0];
  280|   266k|  }
  281|  7.74M|  return buf[0] << 8 | buf[1];
  282|  8.01M|}
_ZN5Exiv27getLongEPKhNS_9ByteOrderE:
  284|  1.43M|int32_t getLong(const byte* buf, ByteOrder byteOrder) {
  285|  1.43M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (285:7): [True: 206k, False: 1.22M]
  ------------------
  286|   206k|    return buf[3] << 24 | buf[2] << 16 | buf[1] << 8 | buf[0];
  287|   206k|  }
  288|  1.22M|  return buf[0] << 24 | buf[1] << 16 | buf[2] << 8 | buf[3];
  289|  1.43M|}
_ZN5Exiv211getRationalEPKhNS_9ByteOrderE:
  291|   501k|Rational getRational(const byte* buf, ByteOrder byteOrder) {
  292|   501k|  int32_t nominator = getLong(buf, byteOrder);
  293|   501k|  int32_t denominator = getLong(buf + 4, byteOrder);
  294|   501k|  return {nominator, denominator};
  295|   501k|}
_ZN5Exiv28getFloatEPKhNS_9ByteOrderE:
  297|   531k|float getFloat(const byte* buf, ByteOrder byteOrder) {
  298|       |  // This algorithm assumes that the internal representation of the float
  299|       |  // type is the 4-byte IEEE 754 binary32 format, which is common but not
  300|       |  // required by the C++ standard.
  301|   531k|#ifdef __cpp_lib_bit_cast
  302|   531k|  return std::bit_cast<float>(getULong(buf, byteOrder));
  303|       |#else
  304|       |  union {
  305|       |    uint32_t ul_;
  306|       |    float f_;
  307|       |  } u;
  308|       |  u.ul_ = getULong(buf, byteOrder);
  309|       |  return u.f_;
  310|       |#endif
  311|   531k|}
_ZN5Exiv29getDoubleEPKhNS_9ByteOrderE:
  313|  19.8k|double getDouble(const byte* buf, ByteOrder byteOrder) {
  314|       |  // This algorithm assumes that the internal representation of the double
  315|       |  // type is the 8-byte IEEE 754 binary64 format, which is common but not
  316|       |  // required by the C++ standard.
  317|  19.8k|#ifdef __cpp_lib_bit_cast
  318|  19.8k|  if (byteOrder == littleEndian)
  ------------------
  |  Branch (318:7): [True: 928, False: 18.8k]
  ------------------
  319|    928|    return std::bit_cast<double>(static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  320|    928|                                 static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  321|    928|                                 static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  322|    928|                                 static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]));
  323|  18.8k|  return std::bit_cast<double>(static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  324|  18.8k|                               static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  325|  18.8k|                               static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  326|  18.8k|                               static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]));
  327|       |#else
  328|       |  union {
  329|       |    uint64_t ull_;
  330|       |    double d_;
  331|       |  } u;
  332|       |  u.ull_ = 0;
  333|       |  if (byteOrder == littleEndian) {
  334|       |    u.ull_ = static_cast<uint64_t>(buf[7]) << 56 | static_cast<uint64_t>(buf[6]) << 48 |
  335|       |             static_cast<uint64_t>(buf[5]) << 40 | static_cast<uint64_t>(buf[4]) << 32 |
  336|       |             static_cast<uint64_t>(buf[3]) << 24 | static_cast<uint64_t>(buf[2]) << 16 |
  337|       |             static_cast<uint64_t>(buf[1]) << 8 | static_cast<uint64_t>(buf[0]);
  338|       |  } else {
  339|       |    u.ull_ = static_cast<uint64_t>(buf[0]) << 56 | static_cast<uint64_t>(buf[1]) << 48 |
  340|       |             static_cast<uint64_t>(buf[2]) << 40 | static_cast<uint64_t>(buf[3]) << 32 |
  341|       |             static_cast<uint64_t>(buf[4]) << 24 | static_cast<uint64_t>(buf[5]) << 16 |
  342|       |             static_cast<uint64_t>(buf[6]) << 8 | static_cast<uint64_t>(buf[7]);
  343|       |  }
  344|       |  return u.d_;
  345|       |#endif
  346|  19.8k|}
_ZN5Exiv27us2DataEPhtNS_9ByteOrderE:
  348|  3.81M|size_t us2Data(byte* buf, uint16_t s, ByteOrder byteOrder) {
  349|  3.81M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (349:7): [True: 3.67M, False: 141k]
  ------------------
  350|  3.67M|    buf[0] = static_cast<byte>(s & 0x00ffU);
  351|  3.67M|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  352|  3.67M|  } else {
  353|   141k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  354|   141k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  355|   141k|  }
  356|  3.81M|  return 2;
  357|  3.81M|}
_ZN5Exiv27ul2DataEPhjNS_9ByteOrderE:
  359|  2.53M|size_t ul2Data(byte* buf, uint32_t l, ByteOrder byteOrder) {
  360|  2.53M|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (360:7): [True: 2.42M, False: 107k]
  ------------------
  361|  2.42M|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  362|  2.42M|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  363|  2.42M|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  364|  2.42M|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  365|  2.42M|  } else {
  366|   107k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  367|   107k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  368|   107k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  369|   107k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  370|   107k|  }
  371|  2.53M|  return 4;
  372|  2.53M|}
_ZN5Exiv27ur2DataEPhNSt3__14pairIjjEENS_9ByteOrderE:
  389|   290k|size_t ur2Data(byte* buf, URational l, ByteOrder byteOrder) {
  390|   290k|  size_t o = ul2Data(buf, l.first, byteOrder);
  391|   290k|  o += ul2Data(buf + o, l.second, byteOrder);
  392|   290k|  return o;
  393|   290k|}
_ZN5Exiv26s2DataEPhsNS_9ByteOrderE:
  395|   162k|size_t s2Data(byte* buf, int16_t s, ByteOrder byteOrder) {
  396|   162k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (396:7): [True: 160k, False: 1.31k]
  ------------------
  397|   160k|    buf[0] = static_cast<byte>(s & 0x00ffU);
  398|   160k|    buf[1] = static_cast<byte>((s & 0xff00U) >> 8);
  399|   160k|  } else {
  400|  1.31k|    buf[0] = static_cast<byte>((s & 0xff00U) >> 8);
  401|  1.31k|    buf[1] = static_cast<byte>(s & 0x00ffU);
  402|  1.31k|  }
  403|   162k|  return 2;
  404|   162k|}
_ZN5Exiv26l2DataEPhiNS_9ByteOrderE:
  406|   164k|size_t l2Data(byte* buf, int32_t l, ByteOrder byteOrder) {
  407|   164k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (407:7): [True: 157k, False: 7.56k]
  ------------------
  408|   157k|    buf[0] = static_cast<byte>(l & 0x000000ffU);
  409|   157k|    buf[1] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  410|   157k|    buf[2] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  411|   157k|    buf[3] = static_cast<byte>((l & 0xff000000U) >> 24);
  412|   157k|  } else {
  413|  7.56k|    buf[0] = static_cast<byte>((l & 0xff000000U) >> 24);
  414|  7.56k|    buf[1] = static_cast<byte>((l & 0x00ff0000U) >> 16);
  415|  7.56k|    buf[2] = static_cast<byte>((l & 0x0000ff00U) >> 8);
  416|  7.56k|    buf[3] = static_cast<byte>(l & 0x000000ffU);
  417|  7.56k|  }
  418|   164k|  return 4;
  419|   164k|}
_ZN5Exiv26r2DataEPhNSt3__14pairIiiEENS_9ByteOrderE:
  421|  63.2k|size_t r2Data(byte* buf, Rational l, ByteOrder byteOrder) {
  422|  63.2k|  size_t o = l2Data(buf, l.first, byteOrder);
  423|  63.2k|  o += l2Data(buf + o, l.second, byteOrder);
  424|  63.2k|  return o;
  425|  63.2k|}
_ZN5Exiv26f2DataEPhfNS_9ByteOrderE:
  427|  81.3k|size_t f2Data(byte* buf, float f, ByteOrder byteOrder) {
  428|       |  // This algorithm assumes that the internal representation of the float
  429|       |  // type is the 4-byte IEEE 754 binary32 format, which is common but not
  430|       |  // required by the C++ standard.
  431|  81.3k|#ifdef __cpp_lib_bit_cast
  432|  81.3k|  return ul2Data(buf, std::bit_cast<uint32_t>(f), byteOrder);
  433|       |#else
  434|       |  union {
  435|       |    uint32_t ul_;
  436|       |    float f_;
  437|       |  } u;
  438|       |  u.f_ = f;
  439|       |  return ul2Data(buf, u.ul_, byteOrder);
  440|       |#endif
  441|  81.3k|}
_ZN5Exiv26d2DataEPhdNS_9ByteOrderE:
  443|  35.0k|size_t d2Data(byte* buf, double d, ByteOrder byteOrder) {
  444|       |  // This algorithm assumes that the internal representation of the double
  445|       |  // type is the 8-byte IEEE 754 binary64 format, which is common but not
  446|       |  // required by the C++ standard.
  447|  35.0k|  union {
  448|  35.0k|    uint64_t ull_;
  449|  35.0k|    double d_;
  450|  35.0k|  } u;
  451|  35.0k|  u.d_ = d;
  452|  35.0k|  uint64_t m = 0xff;
  453|  35.0k|  if (byteOrder == littleEndian) {
  ------------------
  |  Branch (453:7): [True: 34.6k, False: 392]
  ------------------
  454|  34.6k|    buf[0] = static_cast<byte>(u.ull_ & m);
  455|  34.6k|    buf[1] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  456|  34.6k|    buf[2] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  457|  34.6k|    buf[3] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  458|  34.6k|    buf[4] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  459|  34.6k|    buf[5] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  460|  34.6k|    buf[6] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  461|  34.6k|    buf[7] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  462|  34.6k|  } else {
  463|    392|    buf[0] = static_cast<byte>((u.ull_ & (m << 56)) >> 56);
  464|    392|    buf[1] = static_cast<byte>((u.ull_ & (m << 48)) >> 48);
  465|    392|    buf[2] = static_cast<byte>((u.ull_ & (m << 40)) >> 40);
  466|    392|    buf[3] = static_cast<byte>((u.ull_ & (m << 32)) >> 32);
  467|    392|    buf[4] = static_cast<byte>((u.ull_ & (m << 24)) >> 24);
  468|    392|    buf[5] = static_cast<byte>((u.ull_ & (m << 16)) >> 16);
  469|    392|    buf[6] = static_cast<byte>((u.ull_ & (m << 8)) >> 8);
  470|    392|    buf[7] = static_cast<byte>(u.ull_ & m);
  471|    392|  }
  472|  35.0k|  return 8;
  473|  35.0k|}
_ZN5Exiv25isHexERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEmS8_:
  502|  30.4k|bool isHex(const std::string& str, size_t size, const std::string& prefix) {
  503|  30.4k|  if (!str.starts_with(prefix))
  ------------------
  |  Branch (503:7): [True: 0, False: 30.4k]
  ------------------
  504|      0|    return false;
  505|  30.4k|  if (size > 0 && str.size() != size + prefix.size())
  ------------------
  |  Branch (505:7): [True: 30.4k, False: 0]
  |  Branch (505:19): [True: 0, False: 30.4k]
  ------------------
  506|      0|    return false;
  507|       |
  508|  30.4k|  return std::all_of(str.begin() + prefix.size(), str.end(), ::isxdigit);
  509|  30.4k|}  // isHex
_ZN5Exiv219floatToRationalCastEf:
  651|  4.97k|Rational floatToRationalCast(float f) {
  652|       |  // Convert f to double because it simplifies the range checks
  653|       |  // below. (All int values can be losslessly converted to double, but
  654|       |  // sometimes get rounded when converted to float.)
  655|  4.97k|  const double d = f;
  656|       |  // Beware: primitive conversion algorithm
  657|  4.97k|  int32_t den;
  658|  4.97k|  if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 1000000) {
  ------------------
  |  Branch (658:7): [True: 1.98k, False: 2.99k]
  ------------------
  659|  1.98k|    den = 1000000;
  660|  2.99k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 10000) {
  ------------------
  |  Branch (660:14): [True: 1.83k, False: 1.15k]
  ------------------
  661|  1.83k|    den = 10000;
  662|  1.83k|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max() / 100) {
  ------------------
  |  Branch (662:14): [True: 268, False: 886]
  ------------------
  663|    268|    den = 100;
  664|    886|  } else if (std::fabs(d) <= std::numeric_limits<int32_t>::max()) {
  ------------------
  |  Branch (664:14): [True: 82, False: 804]
  ------------------
  665|     82|    den = 1;
  666|    804|  } else {
  667|    804|    return {d > 0 ? 1 : -1, 0};
  ------------------
  |  Branch (667:13): [True: 570, False: 234]
  ------------------
  668|    804|  }
  669|  4.17k|  const auto nom = static_cast<int32_t>(std::lround(d * den));
  670|  4.17k|  const int32_t g = std::gcd(nom, den);
  671|       |
  672|  4.17k|  return {nom / g, den / g};
  673|  4.97k|}
types.cpp:_ZN5Exiv2L18checkDataBufBoundsERKNS_7DataBufEm:
  194|  38.0k|static void checkDataBufBounds(const DataBuf& buf, size_t end) {
  195|  38.0k|  Internal::enforce<std::invalid_argument>(end <= static_cast<size_t>(std::numeric_limits<long>::max()),
  196|  38.0k|                                           "end of slice too large to be compared with DataBuf bounds.");
  197|  38.0k|  Internal::enforce<std::out_of_range>(end <= buf.size(), "Invalid slice bounds specified");
  198|  38.0k|}
types.cpp:_ZNK12_GLOBAL__N_113TypeInfoTableeqEN5Exiv26TypeIdE:
   34|   319M|  bool operator==(Exiv2::TypeId typeId) const {
   35|   319M|    return typeId_ == typeId;
   36|   319M|  }

_ZN5Exiv28Internal5upperENSt3__117basic_string_viewIcNS1_11char_traitsIcEEEE:
    8|  23.1k|std::string upper(std::string_view str) {
    9|  23.1k|  std::string result;
   10|  23.1k|  result.reserve(str.size());
   11|  23.1k|  for (auto c : str)
  ------------------
  |  Branch (11:15): [True: 439k, False: 23.1k]
  ------------------
   12|   439k|    result.push_back(std::toupper(static_cast<unsigned char>(c)));
   13|  23.1k|  return result;
   14|  23.1k|}

_ZN5Exiv28Internal8containsIPKcEEbNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEET_:
    9|  5.28k|constexpr bool contains(std::string_view s, auto c) {
   10|       |#ifdef __cpp_lib_string_contains
   11|       |  return s.contains(c);
   12|       |#else
   13|  5.28k|  return s.find(c) != std::string_view::npos;
   14|  5.28k|#endif
   15|  5.28k|}
_ZN5Exiv28Internal8containsIcEEbNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEET_:
    9|  6.94k|constexpr bool contains(std::string_view s, auto c) {
   10|       |#ifdef __cpp_lib_string_contains
   11|       |  return s.contains(c);
   12|       |#else
   13|  6.94k|  return s.find(c) != std::string_view::npos;
   14|  6.94k|#endif
   15|  6.94k|}

_ZN5Exiv25ValueC2ENS_6TypeIdE:
   19|  43.1M|Value::Value(TypeId typeId) : type_(typeId) {
   20|  43.1M|}
_ZN5Exiv25Value6createENS_6TypeIdE:
   22|  17.3M|Value::UniquePtr Value::create(TypeId typeId) {
   23|  17.3M|  switch (typeId) {
   24|      0|    case invalidTypeId:
  ------------------
  |  Branch (24:5): [True: 0, False: 17.3M]
  ------------------
   25|  7.40k|    case signedByte:
  ------------------
  |  Branch (25:5): [True: 7.40k, False: 17.3M]
  ------------------
   26|  1.93M|    case unsignedByte:
  ------------------
  |  Branch (26:5): [True: 1.92M, False: 15.4M]
  ------------------
   27|  1.93M|      return std::make_unique<DataValue>(typeId);
   28|  98.8k|    case asciiString:
  ------------------
  |  Branch (28:5): [True: 98.8k, False: 17.2M]
  ------------------
   29|  98.8k|      return std::make_unique<AsciiValue>();
   30|  11.4M|    case unsignedShort:
  ------------------
  |  Branch (30:5): [True: 11.4M, False: 5.91M]
  ------------------
   31|  11.4M|      return std::make_unique<ValueType<uint16_t>>();
   32|   362k|    case unsignedLong:
  ------------------
  |  Branch (32:5): [True: 362k, False: 16.9M]
  ------------------
   33|   383k|    case tiffIfd:
  ------------------
  |  Branch (33:5): [True: 20.7k, False: 17.3M]
  ------------------
   34|   383k|      return std::make_unique<ValueType<uint32_t>>(typeId);
   35|  49.0k|    case unsignedRational:
  ------------------
  |  Branch (35:5): [True: 49.0k, False: 17.3M]
  ------------------
   36|  49.0k|      return std::make_unique<ValueType<URational>>();
   37|   105k|    case undefined:
  ------------------
  |  Branch (37:5): [True: 105k, False: 17.2M]
  ------------------
   38|   105k|      return std::make_unique<DataValue>();
   39|   582k|    case signedShort:
  ------------------
  |  Branch (39:5): [True: 582k, False: 16.7M]
  ------------------
   40|   582k|      return std::make_unique<ValueType<int16_t>>();
   41|   241k|    case signedLong:
  ------------------
  |  Branch (41:5): [True: 241k, False: 17.1M]
  ------------------
   42|   241k|      return std::make_unique<ValueType<int32_t>>();
   43|  34.1k|    case signedRational:
  ------------------
  |  Branch (43:5): [True: 34.1k, False: 17.3M]
  ------------------
   44|  34.1k|      return std::make_unique<ValueType<Rational>>();
   45|  10.1k|    case tiffFloat:
  ------------------
  |  Branch (45:5): [True: 10.1k, False: 17.3M]
  ------------------
   46|  10.1k|      return std::make_unique<ValueType<float>>();
   47|  8.74k|    case tiffDouble:
  ------------------
  |  Branch (47:5): [True: 8.74k, False: 17.3M]
  ------------------
   48|  8.74k|      return std::make_unique<ValueType<double>>();
   49|  37.7k|    case string:
  ------------------
  |  Branch (49:5): [True: 37.7k, False: 17.3M]
  ------------------
   50|  37.7k|      return std::make_unique<StringValue>();
   51|  2.26k|    case date:
  ------------------
  |  Branch (51:5): [True: 2.26k, False: 17.3M]
  ------------------
   52|  2.26k|      return std::make_unique<DateValue>();
   53|  2.04k|    case time:
  ------------------
  |  Branch (53:5): [True: 2.04k, False: 17.3M]
  ------------------
   54|  2.04k|      return std::make_unique<TimeValue>();
   55|  2.60k|    case comment:
  ------------------
  |  Branch (55:5): [True: 2.60k, False: 17.3M]
  ------------------
   56|  2.60k|      return std::make_unique<CommentValue>();
   57|  22.3k|    case xmpText:
  ------------------
  |  Branch (57:5): [True: 22.3k, False: 17.3M]
  ------------------
   58|  22.3k|      return std::make_unique<XmpTextValue>();
   59|      0|    case xmpBag:
  ------------------
  |  Branch (59:5): [True: 0, False: 17.3M]
  ------------------
   60|  3.47k|    case xmpSeq:
  ------------------
  |  Branch (60:5): [True: 3.47k, False: 17.3M]
  ------------------
   61|  3.47k|    case xmpAlt:
  ------------------
  |  Branch (61:5): [True: 0, False: 17.3M]
  ------------------
   62|  3.47k|      return std::make_unique<XmpArrayValue>(typeId);
   63|      0|    case langAlt:
  ------------------
  |  Branch (63:5): [True: 0, False: 17.3M]
  ------------------
   64|      0|      return std::make_unique<LangAltValue>();
   65|  2.39M|    default:
  ------------------
  |  Branch (65:5): [True: 2.39M, False: 14.9M]
  ------------------
   66|  2.39M|      return std::make_unique<DataValue>(typeId);
   67|  17.3M|  }
   68|  17.3M|}  // Value::create
_ZN5Exiv25Value11setDataAreaEPKhm:
   70|  1.45k|int Value::setDataArea(const byte* /*buf*/, size_t /*len*/) {
   71|  1.45k|  return -1;
   72|  1.45k|}
_ZNK5Exiv25Value8toStringEv:
   74|   112k|std::string Value::toString() const {
   75|   112k|  std::ostringstream os;
   76|   112k|  write(os);
   77|   112k|  ok_ = !os.fail();
   78|   112k|  return os.str();
   79|   112k|}
_ZNK5Exiv25Value8toStringEm:
   81|  9.88k|std::string Value::toString(size_t /*n*/) const {
   82|  9.88k|  return toString();
   83|  9.88k|}
_ZNK5Exiv25Value12sizeDataAreaEv:
   85|  34.0k|size_t Value::sizeDataArea() const {
   86|  34.0k|  return 0;
   87|  34.0k|}
_ZNK5Exiv25Value8dataAreaEv:
   89|  2.26k|DataBuf Value::dataArea() const {
   90|  2.26k|  return {nullptr, 0};
   91|  2.26k|}
_ZN5Exiv29DataValueC2ENS_6TypeIdE:
   93|  4.43M|DataValue::DataValue(TypeId typeId) : Value(typeId) {
   94|  4.43M|}
_ZNK5Exiv29DataValue5countEv:
  100|  8.84M|size_t DataValue::count() const {
  101|  8.84M|  return size();
  102|  8.84M|}
_ZN5Exiv29DataValue4readEPKhmNS_9ByteOrderE:
  104|  4.43M|int DataValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  105|       |  // byteOrder not needed
  106|  4.43M|  value_.assign(buf, buf + len);
  107|  4.43M|  return 0;
  108|  4.43M|}
_ZNK5Exiv29DataValue4copyEPhNS_9ByteOrderE:
  122|  2.49M|size_t DataValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  123|       |  // byteOrder not needed
  124|  2.49M|  return std::copy(value_.begin(), value_.end(), buf) - buf;
  125|  2.49M|}
_ZNK5Exiv29DataValue4sizeEv:
  127|  17.6M|size_t DataValue::size() const {
  128|  17.6M|  return value_.size();
  129|  17.6M|}
_ZNK5Exiv29DataValue6clone_Ev:
  131|  13.8M|DataValue* DataValue::clone_() const {
  132|  13.8M|  return new DataValue(*this);
  133|  13.8M|}
_ZNK5Exiv29DataValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  135|   111k|std::ostream& DataValue::write(std::ostream& os) const {
  136|   111k|  if (!value_.empty()) {
  ------------------
  |  Branch (136:7): [True: 111k, False: 257]
  ------------------
  137|   111k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<int>(os, " "));
  138|   111k|    os << static_cast<int>(value_.back());
  139|   111k|  }
  140|   111k|  return os;
  141|   111k|}
_ZNK5Exiv29DataValue8toStringEm:
  143|  2.53k|std::string DataValue::toString(size_t n) const {
  144|  2.53k|  ok_ = true;
  145|  2.53k|  return std::to_string(value_.at(n));
  146|  2.53k|}
_ZNK5Exiv29DataValue7toInt64Em:
  148|   295k|int64_t DataValue::toInt64(size_t n) const {
  149|   295k|  ok_ = true;
  150|   295k|  return value_.at(n);
  151|   295k|}
_ZNK5Exiv29DataValue8toUint32Em:
  153|  48.6k|uint32_t DataValue::toUint32(size_t n) const {
  154|  48.6k|  ok_ = true;
  155|  48.6k|  return value_.at(n);
  156|  48.6k|}
_ZNK5Exiv29DataValue7toFloatEm:
  158|  1.82k|float DataValue::toFloat(size_t n) const {
  159|  1.82k|  ok_ = true;
  160|  1.82k|  return value_.at(n);
  161|  1.82k|}
_ZNK5Exiv29DataValue10toRationalEm:
  163|  2.45k|Rational DataValue::toRational(size_t n) const {
  164|  2.45k|  ok_ = true;
  165|  2.45k|  return {value_.at(n), 1};
  166|  2.45k|}
_ZN5Exiv215StringValueBase4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  172|    146|int StringValueBase::read(const std::string& buf) {
  173|    146|  value_ = buf;
  174|    146|  return 0;
  175|    146|}
_ZN5Exiv215StringValueBase4readEPKhmNS_9ByteOrderE:
  177|   125k|int StringValueBase::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  178|       |  // byteOrder not needed
  179|   125k|  if (buf)
  ------------------
  |  Branch (179:7): [True: 125k, False: 0]
  ------------------
  180|   125k|    value_ = std::string(reinterpret_cast<const char*>(buf), len);
  181|   125k|  return 0;
  182|   125k|}
_ZNK5Exiv215StringValueBase4copyEPhNS_9ByteOrderE:
  184|  63.7k|size_t StringValueBase::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  185|  63.7k|  if (value_.empty())
  ------------------
  |  Branch (185:7): [True: 23.9k, False: 39.7k]
  ------------------
  186|  23.9k|    return 0;
  187|       |  // byteOrder not needed
  188|  39.7k|  return value_.copy(reinterpret_cast<char*>(buf), value_.size());
  189|  63.7k|}
_ZNK5Exiv215StringValueBase5countEv:
  191|   207k|size_t StringValueBase::count() const {
  192|   207k|  return size();
  193|   207k|}
_ZNK5Exiv215StringValueBase4sizeEv:
  195|   375k|size_t StringValueBase::size() const {
  196|   375k|  return value_.size();
  197|   375k|}
_ZNK5Exiv215StringValueBase5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  199|  2.30k|std::ostream& StringValueBase::write(std::ostream& os) const {
  200|  2.30k|  return os << value_;
  201|  2.30k|}
_ZNK5Exiv215StringValueBase7toInt64Em:
  203|  22.1k|int64_t StringValueBase::toInt64(size_t n) const {
  204|  22.1k|  ok_ = true;
  205|  22.1k|  return value_.at(n);
  206|  22.1k|}
_ZNK5Exiv215StringValueBase8toUint32Em:
  208|  2.32k|uint32_t StringValueBase::toUint32(size_t n) const {
  209|  2.32k|  ok_ = true;
  210|  2.32k|  return value_.at(n);
  211|  2.32k|}
_ZNK5Exiv215StringValueBase7toFloatEm:
  213|    344|float StringValueBase::toFloat(size_t n) const {
  214|    344|  ok_ = true;
  215|    344|  return value_.at(n);
  216|    344|}
_ZNK5Exiv215StringValueBase10toRationalEm:
  218|    418|Rational StringValueBase::toRational(size_t n) const {
  219|    418|  ok_ = true;
  220|    418|  return {value_.at(n), 1};
  221|    418|}
_ZN5Exiv211StringValueC2Ev:
  223|  37.7k|StringValue::StringValue() : StringValueBase(string) {
  224|  37.7k|}
_ZNK5Exiv211StringValue6clone_Ev:
  229|   493k|StringValue* StringValue::clone_() const {
  230|   493k|  return new StringValue(*this);
  231|   493k|}
_ZN5Exiv210AsciiValueC2Ev:
  233|  98.8k|AsciiValue::AsciiValue() : StringValueBase(asciiString) {
  234|  98.8k|}
_ZN5Exiv210AsciiValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  239|  28.8k|int AsciiValue::read(const std::string& buf) {
  240|  28.8k|  value_ = buf;
  241|       |  // ensure count>0 and nul terminated # https://github.com/Exiv2/exiv2/issues/1484
  242|  28.8k|  if (value_.empty() || value_.back() != '\0') {
  ------------------
  |  Branch (242:7): [True: 0, False: 28.8k]
  |  Branch (242:25): [True: 28.8k, False: 0]
  ------------------
  243|  28.8k|    value_ += '\0';
  244|  28.8k|  }
  245|  28.8k|  return 0;
  246|  28.8k|}
_ZNK5Exiv210AsciiValue6clone_Ev:
  248|   216k|AsciiValue* AsciiValue::clone_() const {
  249|   216k|  return new AsciiValue(*this);
  250|   216k|}
_ZNK5Exiv210AsciiValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  252|   141k|std::ostream& AsciiValue::write(std::ostream& os) const {
  253|       |  // Write only up to the first '\0' (if any)
  254|   141k|  std::string::size_type pos = value_.find_first_of('\0');
  255|   141k|  if (pos == std::string::npos)
  ------------------
  |  Branch (255:7): [True: 6.56k, False: 135k]
  ------------------
  256|  6.56k|    pos = value_.size();
  257|   141k|  return os << value_.substr(0, pos);
  258|   141k|}
_ZN5Exiv212CommentValue11CharsetInfo4nameENS0_9CharsetIdE:
  270|    820|const char* CommentValue::CharsetInfo::name(CharsetId charsetId) {
  271|    820|  return charsetTable_[charsetId < lastCharsetId ? charsetId : undefined].name_;
  ------------------
  |  Branch (271:24): [True: 820, False: 0]
  ------------------
  272|    820|}
_ZN5Exiv212CommentValue11CharsetInfo15charsetIdByCodeERKNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEE:
  285|  4.76k|CommentValue::CharsetId CommentValue::CharsetInfo::charsetIdByCode(const std::string& code) {
  286|  4.76k|  int i = 0;
  287|  21.5k|  for (; charsetTable_[i].charsetId_ != lastCharsetId && std::string(charsetTable_[i].code_, 8) != code; ++i) {
  ------------------
  |  Branch (287:10): [True: 19.3k, False: 2.16k]
  |  Branch (287:10): [True: 16.7k, False: 4.76k]
  |  Branch (287:58): [True: 16.7k, False: 2.60k]
  ------------------
  288|  16.7k|  }
  289|  4.76k|  return charsetTable_[i].charsetId_ == lastCharsetId ? invalidCharsetId : charsetTable_[i].charsetId_;
  ------------------
  |  Branch (289:10): [True: 2.16k, False: 2.60k]
  ------------------
  290|  4.76k|}
_ZN5Exiv212CommentValueC2Ev:
  292|  2.60k|CommentValue::CommentValue() : StringValueBase(Exiv2::undefined) {
  293|  2.60k|}
_ZN5Exiv212CommentValue4readEPKhmNS_9ByteOrderE:
  329|  2.60k|int CommentValue::read(const byte* buf, size_t len, ByteOrder byteOrder) {
  330|  2.60k|  byteOrder_ = byteOrder;
  331|  2.60k|  return StringValueBase::read(buf, len, byteOrder);
  332|  2.60k|}
_ZNK5Exiv212CommentValue4copyEPhNS_9ByteOrderE:
  334|    468|size_t CommentValue::copy(byte* buf, ByteOrder byteOrder) const {
  335|    468|  std::string c = value_;
  336|    468|  if (charsetId() == unicode) {
  ------------------
  |  Branch (336:7): [True: 82, False: 386]
  ------------------
  337|     82|    c = value_.substr(8);
  338|     82|    [[maybe_unused]] const size_t sz = c.size();
  339|     82|    if (byteOrder_ == littleEndian && byteOrder == bigEndian) {
  ------------------
  |  Branch (339:9): [True: 15, False: 67]
  |  Branch (339:39): [True: 0, False: 15]
  ------------------
  340|      0|      convertStringCharset(c, "UCS-2LE", "UCS-2BE");
  341|     82|    } else if (byteOrder_ == bigEndian && byteOrder == littleEndian) {
  ------------------
  |  Branch (341:16): [True: 67, False: 15]
  |  Branch (341:43): [True: 0, False: 67]
  ------------------
  342|      0|      convertStringCharset(c, "UCS-2BE", "UCS-2LE");
  343|      0|    }
  344|     82|    c = value_.substr(0, 8) + c;
  345|     82|  }
  346|    468|  if (c.empty())
  ------------------
  |  Branch (346:7): [True: 176, False: 292]
  ------------------
  347|    176|    return 0;
  348|    292|  return c.copy(reinterpret_cast<char*>(buf), c.size());
  349|    468|}
_ZNK5Exiv212CommentValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  351|  1.32k|std::ostream& CommentValue::write(std::ostream& os) const {
  352|  1.32k|  CharsetId csId = charsetId();
  353|  1.32k|  std::string text = comment();
  354|  1.32k|  if (csId != undefined) {
  ------------------
  |  Branch (354:7): [True: 820, False: 500]
  ------------------
  355|    820|    os << "charset=" << CharsetInfo::name(csId) << " ";
  356|    820|  }
  357|  1.32k|  return os << text;
  358|  1.32k|}
_ZNK5Exiv212CommentValue7commentEPKc:
  360|  1.32k|std::string CommentValue::comment(const char* encoding) const {
  361|  1.32k|  std::string c;
  362|  1.32k|  if (value_.length() < 8) {
  ------------------
  |  Branch (362:7): [True: 96, False: 1.22k]
  ------------------
  363|     96|    return c;
  364|     96|  }
  365|  1.22k|  c = value_.substr(8);
  366|  1.22k|  if (charsetId() == unicode) {
  ------------------
  |  Branch (366:7): [True: 284, False: 940]
  ------------------
  367|    284|    const char* from = !encoding || *encoding == '\0' ? detectCharset(c) : encoding;
  ------------------
  |  Branch (367:24): [True: 284, False: 0]
  |  Branch (367:37): [True: 0, False: 0]
  ------------------
  368|    284|    if (!convertStringCharset(c, from, "UTF-8"))
  ------------------
  |  Branch (368:9): [True: 18, False: 266]
  ------------------
  369|     18|      throw Error(ErrorCode::kerInvalidIconvEncoding, from, "UTF-8");
  370|    284|  }
  371|       |
  372|       |  // # 1266 Remove trailing nulls
  373|  1.20k|  if (charsetId() == undefined || charsetId() == ascii) {
  ------------------
  |  Branch (373:7): [True: 386, False: 820]
  |  Branch (373:35): [True: 44, False: 776]
  ------------------
  374|    430|    auto n = c.find('\0');
  375|    430|    if (n != std::string::npos)
  ------------------
  |  Branch (375:9): [True: 272, False: 158]
  ------------------
  376|    272|      c.resize(n);
  377|    430|  }
  378|  1.20k|  return c;
  379|  1.22k|}
_ZNK5Exiv212CommentValue9charsetIdEv:
  381|  5.03k|CommentValue::CharsetId CommentValue::charsetId() const {
  382|  5.03k|  CharsetId charsetId = undefined;
  383|  5.03k|  if (value_.length() >= 8) {
  ------------------
  |  Branch (383:7): [True: 4.76k, False: 274]
  ------------------
  384|  4.76k|    const std::string code = value_.substr(0, 8);
  385|  4.76k|    charsetId = CharsetInfo::charsetIdByCode(code);
  386|  4.76k|  }
  387|  5.03k|  return charsetId;
  388|  5.03k|}
_ZNK5Exiv212CommentValue13detectCharsetERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  390|    284|const char* CommentValue::detectCharset(std::string& c) const {
  391|       |  // Interpret a BOM if there is one
  392|    284|  if (c.compare(0, 3, "\xef\xbb\xbf") == 0) {
  ------------------
  |  Branch (392:7): [True: 54, False: 230]
  ------------------
  393|     54|    c = c.substr(3);
  394|     54|    return "UTF-8";
  395|     54|  }
  396|    230|  if (c.compare(0, 2, "\xff\xfe") == 0) {
  ------------------
  |  Branch (396:7): [True: 27, False: 203]
  ------------------
  397|     27|    c = c.substr(2);
  398|     27|    return "UCS-2LE";
  399|     27|  }
  400|    203|  if (c.compare(0, 2, "\xfe\xff") == 0) {
  ------------------
  |  Branch (400:7): [True: 58, False: 145]
  ------------------
  401|     58|    c = c.substr(2);
  402|     58|    return "UCS-2BE";
  403|     58|  }
  404|       |
  405|       |  // Todo: Add logic to guess if the comment is encoded in UTF-8
  406|       |
  407|    145|  return byteOrder_ == littleEndian ? "UCS-2LE" : "UCS-2BE";
  ------------------
  |  Branch (407:10): [True: 8, False: 137]
  ------------------
  408|    203|}
_ZNK5Exiv212CommentValue6clone_Ev:
  410|  5.78k|CommentValue* CommentValue::clone_() const {
  411|  5.78k|  return new CommentValue(*this);
  412|  5.78k|}
_ZN5Exiv28XmpValue15setXmpArrayTypeENS0_12XmpArrayTypeE:
  414|  4.52k|void XmpValue::setXmpArrayType(XmpArrayType xmpArrayType) {
  415|  4.52k|  xmpArrayType_ = xmpArrayType;
  416|  4.52k|}
_ZN5Exiv28XmpValue12setXmpStructENS0_9XmpStructE:
  418|    402|void XmpValue::setXmpStruct(XmpStruct xmpStruct) {
  419|    402|  xmpStruct_ = xmpStruct;
  420|    402|}
_ZNK5Exiv28XmpValue12xmpArrayTypeEv:
  422|  46.4k|XmpValue::XmpArrayType XmpValue::xmpArrayType() const {
  423|  46.4k|  return xmpArrayType_;
  424|  46.4k|}
_ZN5Exiv28XmpValue12xmpArrayTypeENS_6TypeIdE:
  426|  4.47k|XmpValue::XmpArrayType XmpValue::xmpArrayType(TypeId typeId) {
  427|  4.47k|  XmpArrayType xa = xaNone;
  428|  4.47k|  switch (typeId) {
  429|     44|    case xmpAlt:
  ------------------
  |  Branch (429:5): [True: 44, False: 4.42k]
  ------------------
  430|     44|      xa = xaAlt;
  431|     44|      break;
  432|    117|    case xmpBag:
  ------------------
  |  Branch (432:5): [True: 117, False: 4.35k]
  ------------------
  433|    117|      xa = xaBag;
  434|    117|      break;
  435|  4.03k|    case xmpSeq:
  ------------------
  |  Branch (435:5): [True: 4.03k, False: 436]
  ------------------
  436|  4.03k|      xa = xaSeq;
  437|  4.03k|      break;
  438|    275|    default:
  ------------------
  |  Branch (438:5): [True: 275, False: 4.19k]
  ------------------
  439|    275|      break;
  440|  4.47k|  }
  441|  4.47k|  return xa;
  442|  4.47k|}
_ZNK5Exiv28XmpValue9xmpStructEv:
  444|  46.6k|XmpValue::XmpStruct XmpValue::xmpStruct() const {
  445|  46.6k|  return xmpStruct_;
  446|  46.6k|}
_ZN5Exiv212XmpTextValueC2Ev:
  468|  32.4k|XmpTextValue::XmpTextValue() : XmpValue(xmpText) {
  469|  32.4k|}
_ZN5Exiv212XmpTextValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  475|   883k|int XmpTextValue::read(const std::string& buf) {
  476|       |  // support a type=Alt,Bag,Seq,Struct indicator
  477|   883k|  std::string b = buf;
  478|   883k|  std::string type;
  479|   883k|  if (buf.starts_with("type=")) {
  ------------------
  |  Branch (479:7): [True: 345, False: 883k]
  ------------------
  480|    345|    std::string::size_type pos = buf.find_first_of(' ');
  481|    345|    type = buf.substr(5, pos - 5);
  482|       |    // Strip quotes (so you can also specify the type without quotes)
  483|    345|    if (!type.empty() && type.front() == '"')
  ------------------
  |  Branch (483:9): [True: 275, False: 70]
  |  Branch (483:26): [True: 146, False: 129]
  ------------------
  484|    146|      type = type.substr(1);
  485|    345|    if (!type.empty() && type.back() == '"')
  ------------------
  |  Branch (485:9): [True: 212, False: 133]
  |  Branch (485:26): [True: 65, False: 147]
  ------------------
  486|     65|      type.pop_back();
  487|    345|    b.clear();
  488|    345|    if (pos != std::string::npos)
  ------------------
  |  Branch (488:9): [True: 125, False: 220]
  ------------------
  489|    125|      b = buf.substr(pos + 1);
  490|    345|  }
  491|   883k|  if (!type.empty()) {
  ------------------
  |  Branch (491:7): [True: 212, False: 883k]
  ------------------
  492|    212|    if (type == "Alt") {
  ------------------
  |  Branch (492:9): [True: 11, False: 201]
  ------------------
  493|     11|      setXmpArrayType(XmpValue::xaAlt);
  494|    201|    } else if (type == "Bag") {
  ------------------
  |  Branch (494:16): [True: 29, False: 172]
  ------------------
  495|     29|      setXmpArrayType(XmpValue::xaBag);
  496|    172|    } else if (type == "Seq") {
  ------------------
  |  Branch (496:16): [True: 15, False: 157]
  ------------------
  497|     15|      setXmpArrayType(XmpValue::xaSeq);
  498|    157|    } else if (type == "Struct") {
  ------------------
  |  Branch (498:16): [True: 7, False: 150]
  ------------------
  499|      7|      setXmpStruct();
  500|    150|    } else {
  501|    150|      throw Error(ErrorCode::kerInvalidXmpText, type);
  502|    150|    }
  503|    212|  }
  504|   883k|  value_ = std::move(b);
  505|   883k|  return 0;
  506|   883k|}
_ZNK5Exiv212XmpTextValue4sizeEv:
  512|  18.9k|size_t XmpTextValue::size() const {
  513|  18.9k|  std::ostringstream os;
  514|  18.9k|  write(os);
  515|  18.9k|  return os.str().size();
  516|  18.9k|}
_ZNK5Exiv212XmpTextValue5countEv:
  518|  18.9k|size_t XmpTextValue::count() const {
  519|  18.9k|  return size();
  520|  18.9k|}
_ZNK5Exiv212XmpTextValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  522|  40.9k|std::ostream& XmpTextValue::write(std::ostream& os) const {
  523|  40.9k|  bool del = false;
  524|  40.9k|  if (xmpArrayType() != XmpValue::xaNone) {
  ------------------
  |  Branch (524:7): [True: 268, False: 40.7k]
  ------------------
  525|    268|    switch (xmpArrayType()) {
  ------------------
  |  Branch (525:13): [True: 268, False: 0]
  ------------------
  526|     14|      case XmpValue::xaAlt:
  ------------------
  |  Branch (526:7): [True: 14, False: 254]
  ------------------
  527|     14|        os << "type=\"Alt\"";
  528|     14|        break;
  529|      4|      case XmpValue::xaBag:
  ------------------
  |  Branch (529:7): [True: 4, False: 264]
  ------------------
  530|      4|        os << "type=\"Bag\"";
  531|      4|        break;
  532|    250|      case XmpValue::xaSeq:
  ------------------
  |  Branch (532:7): [True: 250, False: 18]
  ------------------
  533|    250|        os << "type=\"Seq\"";
  534|    250|        break;
  535|      0|      case XmpValue::xaNone:
  ------------------
  |  Branch (535:7): [True: 0, False: 268]
  ------------------
  536|      0|        break;  // just to suppress the warning
  537|    268|    }
  538|    268|    del = true;
  539|  40.7k|  } else if (xmpStruct() != XmpValue::xsNone) {
  ------------------
  |  Branch (539:14): [True: 616, False: 40.0k]
  ------------------
  540|    616|    switch (xmpStruct()) {
  ------------------
  |  Branch (540:13): [True: 616, False: 0]
  ------------------
  541|    616|      case XmpValue::xsStruct:
  ------------------
  |  Branch (541:7): [True: 616, False: 0]
  ------------------
  542|    616|        os << "type=\"Struct\"";
  543|    616|        break;
  544|      0|      case XmpValue::xsNone:
  ------------------
  |  Branch (544:7): [True: 0, False: 616]
  ------------------
  545|      0|        break;  // just to suppress the warning
  546|    616|    }
  547|    616|    del = true;
  548|    616|  }
  549|  40.9k|  if (del && !value_.empty())
  ------------------
  |  Branch (549:7): [True: 884, False: 40.0k]
  |  Branch (549:14): [True: 4, False: 880]
  ------------------
  550|      4|    os << " ";
  551|  40.9k|  return os << value_;
  552|  40.9k|}
_ZNK5Exiv212XmpTextValue6clone_Ev:
  570|  46.6k|XmpTextValue* XmpTextValue::clone_() const {
  571|  46.6k|  return new XmpTextValue(*this);
  572|  46.6k|}
_ZN5Exiv213XmpArrayValueC2ENS_6TypeIdE:
  574|  4.07k|XmpArrayValue::XmpArrayValue(TypeId typeId) : XmpValue(typeId) {
  575|  4.07k|  setXmpArrayType(xmpArrayType(typeId));
  576|  4.07k|}
_ZN5Exiv213XmpArrayValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  578|  39.5k|int XmpArrayValue::read(const std::string& buf) {
  579|  39.5k|  if (!buf.empty())
  ------------------
  |  Branch (579:7): [True: 29.3k, False: 10.2k]
  ------------------
  580|  29.3k|    value_.push_back(buf);
  581|  39.5k|  return 0;
  582|  39.5k|}
_ZNK5Exiv213XmpArrayValue5countEv:
  588|  2.30k|size_t XmpArrayValue::count() const {
  589|  2.30k|  return value_.size();
  590|  2.30k|}
_ZNK5Exiv213XmpArrayValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  592|  1.47k|std::ostream& XmpArrayValue::write(std::ostream& os) const {
  593|  1.47k|  if (!value_.empty()) {
  ------------------
  |  Branch (593:7): [True: 1.18k, False: 290]
  ------------------
  594|  1.18k|    std::copy(value_.begin(), value_.end() - 1, std::ostream_iterator<std::string>(os, ", "));
  595|  1.18k|    os << value_.back();
  596|  1.18k|  }
  597|  1.47k|  return os;
  598|  1.47k|}
_ZNK5Exiv213XmpArrayValue8toStringEm:
  600|  1.14k|std::string XmpArrayValue::toString(size_t n) const {
  601|  1.14k|  ok_ = true;
  602|  1.14k|  return value_.at(n);
  603|  1.14k|}
_ZNK5Exiv213XmpArrayValue6clone_Ev:
  621|  7.42k|XmpArrayValue* XmpArrayValue::clone_() const {
  622|  7.42k|  return new XmpArrayValue(*this);
  623|  7.42k|}
_ZN5Exiv212LangAltValueC2Ev:
  625|    157|LangAltValue::LangAltValue() : XmpValue(langAlt) {
  626|    157|}
_ZNK5Exiv212LangAltValue5countEv:
  679|    150|size_t LangAltValue::count() const {
  680|    150|  return value_.size();
  681|    150|}
_ZNK5Exiv212LangAltValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  683|    150|std::ostream& LangAltValue::write(std::ostream& os) const {
  684|    150|  bool first = true;
  685|       |
  686|       |  // Write the default entry first
  687|    150|  if (auto i = value_.find("x-default"); i != value_.end()) {
  ------------------
  |  Branch (687:42): [True: 52, False: 98]
  ------------------
  688|     52|    os << "lang=\"" << i->first << "\" " << i->second;
  689|     52|    first = false;
  690|     52|  }
  691|       |
  692|       |  // Write the others
  693|    150|  for (const auto& [lang, s] : value_) {
  ------------------
  |  Branch (693:30): [True: 148, False: 150]
  ------------------
  694|    148|    if (lang != "x-default") {
  ------------------
  |  Branch (694:9): [True: 96, False: 52]
  ------------------
  695|     96|      if (!first)
  ------------------
  |  Branch (695:11): [True: 0, False: 96]
  ------------------
  696|      0|        os << ", ";
  697|     96|      os << "lang=\"" << lang << "\" " << s;
  698|     96|      first = false;
  699|     96|    }
  700|    148|  }
  701|    150|  return os;
  702|    150|}
_ZNK5Exiv212LangAltValue6clone_Ev:
  737|    412|LangAltValue* LangAltValue::clone_() const {
  738|    412|  return new LangAltValue(*this);
  739|    412|}
_ZN5Exiv29DateValueC2Ev:
  741|  2.26k|DateValue::DateValue() : Value(date) {
  742|  2.26k|  date_ = {};
  743|  2.26k|}
_ZN5Exiv29DateValue4readEPKhmNS_9ByteOrderE:
  749|  2.11k|int DateValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  750|  2.11k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  751|  2.11k|  return read(str);
  752|  2.11k|}
_ZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  754|  2.26k|int DateValue::read(const std::string& buf) {
  755|       |  // ISO 8601 date formats:
  756|       |  // https://web.archive.org/web/20171020084445/https://www.loc.gov/standards/datetime/ISO_DIS%208601-1.pdf
  757|  2.26k|  size_t monthPos = 0;
  758|  2.26k|  size_t dayPos = 0;
  759|       |
  760|  2.26k|  auto printWarning = [] {
  761|  2.26k|#ifndef SUPPRESS_WARNINGS
  762|  2.26k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  763|  2.26k|#endif
  764|  2.26k|  };
  765|       |
  766|  2.26k|  if (buf.size() < 8) {
  ------------------
  |  Branch (766:7): [True: 271, False: 1.99k]
  ------------------
  767|    271|    printWarning();
  768|    271|    return 1;
  769|    271|  }
  770|       |
  771|  1.99k|  if ((buf.size() >= 10 && buf[4] == '-' && buf[7] == '-') || (buf.size() == 8)) {
  ------------------
  |  Branch (771:8): [True: 549, False: 1.44k]
  |  Branch (771:28): [True: 319, False: 230]
  |  Branch (771:45): [True: 118, False: 201]
  |  Branch (771:63): [True: 1.44k, False: 433]
  ------------------
  772|  1.56k|    if (buf.size() >= 10) {
  ------------------
  |  Branch (772:9): [True: 118, False: 1.44k]
  ------------------
  773|    118|      monthPos = 5;
  774|    118|      dayPos = 8;
  775|  1.44k|    } else {
  776|  1.44k|      monthPos = 4;
  777|  1.44k|      dayPos = 6;
  778|  1.44k|    }
  779|       |
  780|  1.56k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  1.56k|      for (size_t i = start; i < start + count; ++i) {
  782|  1.56k|        if (!std::isdigit(buf[i])) {
  783|  1.56k|          printWarning();
  784|  1.56k|          return 1;
  785|  1.56k|        }
  786|  1.56k|      }
  787|  1.56k|      dest = std::stoul(buf.substr(start, count));
  788|  1.56k|      return 0;
  789|  1.56k|    };
  790|       |
  791|  1.56k|    if (checkDigits(0, 4, date_.year) || checkDigits(monthPos, 2, date_.month) || checkDigits(dayPos, 2, date_.day)) {
  ------------------
  |  Branch (791:9): [True: 1.00k, False: 552]
  |  Branch (791:42): [True: 164, False: 388]
  |  Branch (791:83): [True: 191, False: 197]
  ------------------
  792|  1.36k|      printWarning();
  793|  1.36k|      return 1;
  794|  1.36k|    }
  795|       |
  796|    197|    if (date_.month > 12 || date_.day > 31) {
  ------------------
  |  Branch (796:9): [True: 16, False: 181]
  |  Branch (796:29): [True: 27, False: 154]
  ------------------
  797|     43|      date_.month = 0;
  798|     43|      date_.day = 0;
  799|     43|      printWarning();
  800|     43|      return 1;
  801|     43|    }
  802|    154|    return 0;
  803|    197|  }
  804|    433|  printWarning();
  805|    433|  return 1;
  806|  1.99k|}
_ZNK5Exiv29DateValue4copyEPhNS_9ByteOrderE:
  812|     28|size_t DateValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  813|       |  // \note Here the date is copied in the Basic format YYYYMMDD, as the IPTC key	Iptc.Application2.DateCreated
  814|       |  // wants it. Check https://exiv2.org/iptc.html
  815|       |
  816|     28|  auto out = reinterpret_cast<char*>(buf);
  817|     28|  auto it = stringFormatTo(out, "{:04}{:02}{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   19|     28|#define stringFormatTo std::format_to
  ------------------
  818|       |
  819|     28|  return it - out;
  820|     28|}
_ZNK5Exiv29DateValue4sizeEv:
  830|     56|size_t DateValue::size() const {
  831|     56|  return 8;
  832|     56|}
_ZNK5Exiv29DateValue6clone_Ev:
  834|    571|DateValue* DateValue::clone_() const {
  835|    571|  return new DateValue(*this);
  836|    571|}
_ZNK5Exiv29DateValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
  838|    408|std::ostream& DateValue::write(std::ostream& os) const {
  839|       |  // Write DateValue in ISO 8601 Extended format: YYYY-MM-DD
  840|    408|  return os << stringFormat("{:04}-{:02}-{:02}", date_.year, date_.month, date_.day);
  ------------------
  |  |   18|    408|#define stringFormat std::format
  ------------------
  841|    408|}
_ZN5Exiv29TimeValueC2Ev:
  877|  2.04k|TimeValue::TimeValue() : Value(time) {
  878|  2.04k|  time_ = {};
  879|  2.04k|}
_ZN5Exiv29TimeValue4readEPKhmNS_9ByteOrderE:
  885|  2.04k|int TimeValue::read(const byte* buf, size_t len, ByteOrder /*byteOrder*/) {
  886|  2.04k|  const std::string str(reinterpret_cast<const char*>(buf), len);
  887|  2.04k|  return read(str);
  888|  2.04k|}
_ZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  890|  2.04k|int TimeValue::read(const std::string& buf) {
  891|       |  // ISO 8601 time formats:
  892|       |  // https://web.archive.org/web/20171020084445/https://www.loc.gov/standards/datetime/ISO_DIS%208601-1.pdf
  893|       |  // Not supported formats:
  894|       |  // 4.2.2.4 Representations with decimal fraction: 232050,5
  895|  2.04k|  auto printWarning = [] {
  896|  2.04k|#ifndef SUPPRESS_WARNINGS
  897|  2.04k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  898|  2.04k|#endif
  899|  2.04k|    return 1;
  900|  2.04k|  };
  901|       |
  902|  2.04k|  if (buf.size() < 2)
  ------------------
  |  Branch (902:7): [True: 177, False: 1.87k]
  ------------------
  903|    177|    return printWarning();
  904|       |
  905|  1.87k|  for (auto c : buf)
  ------------------
  |  Branch (905:15): [True: 18.2k, False: 1.14k]
  ------------------
  906|  18.2k|    if (c != ':' && c != '+' && c != '-' && c != 'Z' && !std::isdigit(c))
  ------------------
  |  Branch (906:9): [True: 17.2k, False: 987]
  |  Branch (906:21): [True: 16.9k, False: 265]
  |  Branch (906:33): [True: 15.3k, False: 1.62k]
  |  Branch (906:45): [True: 15.0k, False: 261]
  |  Branch (906:57): [True: 727, False: 14.3k]
  ------------------
  907|    727|      return printWarning();
  908|       |
  909|  1.14k|  size_t mpos;
  910|  1.14k|  size_t spos;
  911|  1.14k|  if (buf.find(':') != std::string::npos) {
  ------------------
  |  Branch (911:7): [True: 549, False: 594]
  ------------------
  912|    549|    mpos = 3;
  913|    549|    spos = 6;
  914|    594|  } else {
  915|    594|    mpos = 2;
  916|    594|    spos = 4;
  917|    594|  }
  918|       |
  919|  1.14k|  auto hi = std::stoi(buf.substr(0, 2));
  920|  1.14k|  if (hi < 0 || hi > 23)
  ------------------
  |  Branch (920:7): [True: 103, False: 1.04k]
  |  Branch (920:17): [True: 31, False: 1.00k]
  ------------------
  921|    128|    return printWarning();
  922|  1.01k|  time_.hour = hi;
  923|  1.01k|  if (buf.size() > 3) {
  ------------------
  |  Branch (923:7): [True: 989, False: 26]
  ------------------
  924|    989|    auto mi = std::stoi(buf.substr(mpos, 2));
  925|    989|    if (mi < 0 || mi > 59)
  ------------------
  |  Branch (925:9): [True: 167, False: 822]
  |  Branch (925:19): [True: 49, False: 773]
  ------------------
  926|    215|      return printWarning();
  927|    774|    time_.minute = std::stoi(buf.substr(mpos, 2));
  928|    774|  } else {
  929|     26|    time_.minute = 0;
  930|     26|  }
  931|    800|  if (buf.size() > 5) {
  ------------------
  |  Branch (931:7): [True: 764, False: 36]
  ------------------
  932|    764|    auto si = std::stoi(buf.substr(spos, 2));
  933|    764|    if (si < 0 || si > 60)
  ------------------
  |  Branch (933:9): [True: 40, False: 724]
  |  Branch (933:19): [True: 16, False: 708]
  ------------------
  934|     50|      return printWarning();
  935|    714|    time_.second = std::stoi(buf.substr(spos, 2));
  936|    714|  } else {
  937|     36|    time_.second = 0;
  938|     36|  }
  939|       |
  940|    750|  auto fpos = buf.find('+');
  941|    750|  if (fpos == std::string::npos)
  ------------------
  |  Branch (941:7): [True: 597, False: 153]
  ------------------
  942|    597|    fpos = buf.find('-');
  943|       |
  944|    750|  if (fpos != std::string::npos) {
  ------------------
  |  Branch (944:7): [True: 663, False: 87]
  ------------------
  945|    663|    auto format = buf.substr(fpos, buf.size());
  946|    663|    auto posColon = format.find(':');
  947|    663|    if (posColon == std::string::npos) {
  ------------------
  |  Branch (947:9): [True: 440, False: 223]
  ------------------
  948|       |      // Extended format
  949|    440|      auto tzhi = std::stoi(format.substr(0, 3));
  950|    440|      if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (950:11): [True: 115, False: 325]
  |  Branch (950:25): [True: 9, False: 316]
  ------------------
  951|    119|        return printWarning();
  952|    321|      time_.tzHour = tzhi;
  953|    321|      if (format.size() > 3) {
  ------------------
  |  Branch (953:11): [True: 290, False: 31]
  ------------------
  954|    290|        int minute = std::stoi(format.substr(3));
  955|    290|        if (minute < 0 || minute > 59)
  ------------------
  |  Branch (955:13): [True: 19, False: 271]
  |  Branch (955:27): [True: 82, False: 189]
  ------------------
  956|     94|          return printWarning();
  957|    196|        time_.tzMinute = time_.tzHour < 0 ? -minute : minute;
  ------------------
  |  Branch (957:26): [True: 129, False: 67]
  ------------------
  958|    196|      }
  959|    321|    } else {
  960|       |      // Basic format
  961|    223|      auto tzhi = std::stoi(format.substr(0, posColon));
  962|    223|      if (tzhi < -23 || tzhi > 23)
  ------------------
  |  Branch (962:11): [True: 20, False: 203]
  |  Branch (962:25): [True: 23, False: 180]
  ------------------
  963|     39|        return printWarning();
  964|    184|      time_.tzHour = tzhi;
  965|    184|      int minute = std::stoi(format.substr(posColon + 1));
  966|    184|      if (minute < 0 || minute > 59)
  ------------------
  |  Branch (966:11): [True: 7, False: 177]
  |  Branch (966:25): [True: 78, False: 99]
  ------------------
  967|     78|        return printWarning();
  968|    106|      time_.tzMinute = time_.tzHour < 0 ? -minute : minute;
  ------------------
  |  Branch (968:24): [True: 40, False: 66]
  ------------------
  969|    106|    }
  970|    663|  }
  971|    420|  return 0;
  972|    750|}
_ZNK5Exiv29TimeValue4copyEPhNS_9ByteOrderE:
  979|    175|size_t TimeValue::copy(byte* buf, ByteOrder /*byteOrder*/) const {
  980|       |  // NOTE: Here the time is copied in the Basic format HHMMSS:HHMM, as the IPTC key
  981|       |  // Iptc.Application2.TimeCreated wants it. Check https://exiv2.org/iptc.html
  982|    175|  char plusMinus = '+';
  983|    175|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (983:7): [True: 12, False: 163]
  |  Branch (983:27): [True: 0, False: 163]
  ------------------
  984|     12|    plusMinus = '-';
  985|       |
  986|    175|  auto out = reinterpret_cast<char*>(buf);
  987|    175|  auto it = stringFormatTo(out, "{:02}{:02}{:02}{}{:02}{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   19|    175|#define stringFormatTo std::format_to
  ------------------
  988|    175|                           std::abs(time_.tzHour), std::abs(time_.tzMinute));
  989|       |
  990|    175|  auto wrote = static_cast<size_t>(it - out);
  991|    175|  Internal::enforce(wrote == 11, Exiv2::ErrorCode::kerUnsupportedTimeFormat);
  992|    175|  return wrote;
  993|    175|}
_ZNK5Exiv29TimeValue4sizeEv:
 1003|    350|size_t TimeValue::size() const {
 1004|    350|  return 11;
 1005|    350|}
_ZNK5Exiv29TimeValue6clone_Ev:
 1007|    976|TimeValue* TimeValue::clone_() const {
 1008|    976|  return new TimeValue(*this);
 1009|    976|}
_ZNK5Exiv29TimeValue5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEE:
 1011|    108|std::ostream& TimeValue::write(std::ostream& os) const {
 1012|       |  // Write TimeValue in ISO 8601 Extended format: hh:mm:ss±hh:mm
 1013|    108|  char plusMinus = '+';
 1014|    108|  if (time_.tzHour < 0 || time_.tzMinute < 0)
  ------------------
  |  Branch (1014:7): [True: 30, False: 78]
  |  Branch (1014:27): [True: 0, False: 78]
  ------------------
 1015|     30|    plusMinus = '-';
 1016|       |
 1017|    108|  return os << stringFormat("{:02}:{:02}:{:02}{}{:02}:{:02}", time_.hour, time_.minute, time_.second, plusMinus,
  ------------------
  |  |   18|    108|#define stringFormat std::format
  ------------------
 1018|    108|                            std::abs(time_.tzHour), std::abs(time_.tzMinute));
 1019|    108|}
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  760|  3.47k|  auto printWarning = [] {
  761|  3.47k|#ifndef SUPPRESS_WARNINGS
  762|  3.47k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedDateFormat) << "\n";
  ------------------
  |  |  138|  3.47k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 3.47k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  3.47k|  LogMsg(LogMsg::warn).os()
  ------------------
  763|  3.47k|#endif
  764|  3.47k|  };
value.cpp:_ZZN5Exiv29DateValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_1clEmmRi:
  780|  2.50k|    auto checkDigits = [&buf, &printWarning](size_t start, size_t count, int32_t& dest) {
  781|  6.08k|      for (size_t i = start; i < start + count; ++i) {
  ------------------
  |  Branch (781:30): [True: 4.94k, False: 1.13k]
  ------------------
  782|  4.94k|        if (!std::isdigit(buf[i])) {
  ------------------
  |  Branch (782:13): [True: 1.36k, False: 3.58k]
  ------------------
  783|  1.36k|          printWarning();
  784|  1.36k|          return 1;
  785|  1.36k|        }
  786|  4.94k|      }
  787|  1.13k|      dest = std::stoul(buf.substr(start, count));
  788|  1.13k|      return 0;
  789|  2.50k|    };
value.cpp:_ZZN5Exiv29TimeValue4readERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEENK3$_0clEv:
  895|  1.62k|  auto printWarning = [] {
  896|  1.62k|#ifndef SUPPRESS_WARNINGS
  897|  1.62k|    EXV_WARNING << Error(ErrorCode::kerUnsupportedTimeFormat) << "\n";
  ------------------
  |  |  138|  1.62k|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 1.62k]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|  1.62k|  LogMsg(LogMsg::warn).os()
  ------------------
  898|  1.62k|#endif
  899|  1.62k|    return 1;
  900|  1.62k|  };

_ZN5Exiv29WebPImageC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEE:
   77|    129|WebPImage::WebPImage(BasicIo::UniquePtr io) : Image(ImageType::webp, mdNone, std::move(io)) {
   78|    129|}  // WebPImage::WebPImage
_ZN5Exiv29WebPImage13writeMetadataEv:
   97|     41|void WebPImage::writeMetadata() {
   98|     41|  if (io_->open() != 0) {
  ------------------
  |  Branch (98:7): [True: 0, False: 41]
  ------------------
   99|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  100|      0|  }
  101|     41|  IoCloser closer(*io_);
  102|     41|  MemIo tempIo;
  103|       |
  104|     41|  doWriteMetadata(tempIo);  // may throw
  105|     41|  io_->close();
  106|     41|  io_->transfer(tempIo);  // may throw
  107|     41|}  // WebPImage::writeMetadata
_ZN5Exiv29WebPImage15doWriteMetadataERNS_7BasicIoE:
  109|     41|void WebPImage::doWriteMetadata(BasicIo& outIo) {
  110|     41|  if (!io_->isopen())
  ------------------
  |  Branch (110:7): [True: 0, False: 41]
  ------------------
  111|      0|    throw Error(ErrorCode::kerInputDataReadFailed);
  112|     41|  if (!outIo.isopen())
  ------------------
  |  Branch (112:7): [True: 0, False: 41]
  ------------------
  113|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  114|       |
  115|       |#ifdef EXIV2_DEBUG_MESSAGES
  116|       |  std::cout << "Writing metadata" << '\n';
  117|       |#endif
  118|       |
  119|     41|  byte data[WEBP_TAG_SIZE * 3];
  120|     41|  DataBuf chunkId(WEBP_TAG_SIZE + 1);
  121|     41|  chunkId.write_uint8(WEBP_TAG_SIZE, '\0');
  122|       |
  123|     41|  io_->readOrThrow(data, WEBP_TAG_SIZE * 3, Exiv2::ErrorCode::kerCorruptedMetadata);
  124|     41|  uint64_t filesize = Exiv2::getULong(data + WEBP_TAG_SIZE, littleEndian);
  125|       |
  126|       |  /* Set up header */
  127|     41|  if (outIo.write(data, WEBP_TAG_SIZE * 3) != WEBP_TAG_SIZE * 3)
  ------------------
  |  Branch (127:7): [True: 0, False: 41]
  ------------------
  128|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  129|       |
  130|       |  /* Parse Chunks */
  131|     41|  bool has_size = false;
  132|     41|  bool has_xmp = false;
  133|     41|  bool has_exif = false;
  134|     41|  bool has_vp8x = false;
  135|     41|  bool has_alpha = false;
  136|     41|  bool has_icc = iccProfileDefined();
  137|       |
  138|     41|  uint32_t width = 0;
  139|     41|  uint32_t height = 0;
  140|       |
  141|     41|  std::array<byte, WEBP_TAG_SIZE> size_buff;
  142|     41|  Blob blob;
  143|       |
  144|     41|  if (!exifData_.empty()) {
  ------------------
  |  Branch (144:7): [True: 0, False: 41]
  ------------------
  145|      0|    ExifParser::encode(blob, littleEndian, exifData_);
  146|      0|    if (!blob.empty()) {
  ------------------
  |  Branch (146:9): [True: 0, False: 0]
  ------------------
  147|      0|      has_exif = true;
  148|      0|    }
  149|      0|  }
  150|       |
  151|     41|  if (!xmpData_.empty() && !writeXmpFromPacket()) {
  ------------------
  |  Branch (151:7): [True: 0, False: 41]
  |  Branch (151:28): [True: 0, False: 0]
  ------------------
  152|      0|    XmpParser::encode(xmpPacket_, xmpData_, XmpParser::useCompactFormat | XmpParser::omitAllFormatting);
  153|      0|  }
  154|     41|  has_xmp = !xmpPacket_.empty();
  155|     41|  std::string xmp(xmpPacket_);
  156|       |
  157|       |  /* Verify for a VP8X Chunk First before writing in
  158|       |   case we have any exif or xmp data, also check
  159|       |   for any chunks with alpha frame/layer set */
  160|    300|  while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (160:10): [True: 292, False: 8]
  |  Branch (160:25): [True: 259, False: 33]
  ------------------
  161|    259|    io_->readOrThrow(chunkId.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  162|    259|    io_->readOrThrow(size_buff.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  163|    259|    const uint32_t size_u32 = Exiv2::getULong(size_buff.data(), littleEndian);
  164|       |
  165|       |    // Check that `size_u32` is within bounds.
  166|    259|    Internal::enforce(size_u32 <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  167|       |
  168|    259|    DataBuf payload(size_u32);
  169|    259|    if (!payload.empty()) {
  ------------------
  |  Branch (169:9): [True: 259, False: 0]
  ------------------
  170|    259|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  171|    259|      if (payload.size() % 2) {
  ------------------
  |  Branch (171:11): [True: 105, False: 154]
  ------------------
  172|    105|        byte c = 0;
  173|    105|        io_->readOrThrow(&c, 1, Exiv2::ErrorCode::kerCorruptedMetadata);
  174|    105|      }
  175|    259|    }
  176|       |
  177|       |    /* Chunk with information about features
  178|       |     used in the file. */
  179|    259|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X) && !has_vp8x) {
  ------------------
  |  Branch (179:9): [True: 18, False: 241]
  |  Branch (179:59): [True: 10, False: 8]
  ------------------
  180|     10|      has_vp8x = true;
  181|     10|    }
  182|    259|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X) && !has_size) {
  ------------------
  |  Branch (182:9): [True: 18, False: 241]
  |  Branch (182:59): [True: 10, False: 8]
  ------------------
  183|     10|      Internal::enforce(size_u32 >= 10, Exiv2::ErrorCode::kerCorruptedMetadata);
  184|     10|      has_size = true;
  185|     10|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  186|       |
  187|       |      // Fetch width - stored in 24bits
  188|     10|      std::copy_n(payload.begin() + 4, 3, size_buf.begin());
  189|     10|      size_buf.back() = 0;
  190|     10|      width = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  191|       |
  192|       |      // Fetch height - stored in 24bits
  193|     10|      std::copy_n(payload.begin() + 7, 3, size_buf.begin());
  194|     10|      size_buf.back() = 0;
  195|     10|      height = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  196|     10|    }
  197|       |
  198|       |    /* Chunk with animation control data. */
  199|       |#ifdef __CHECK_FOR_ALPHA__  // Maybe in the future
  200|       |    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ANIM) && !has_alpha) {
  201|       |      has_alpha = true;
  202|       |    }
  203|       |#endif
  204|       |
  205|       |    /* Chunk with lossy image data. */
  206|       |#ifdef __CHECK_FOR_ALPHA__  // Maybe in the future
  207|       |    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8) && !has_alpha) {
  208|       |      has_alpha = true;
  209|       |    }
  210|       |#endif
  211|    259|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8) && !has_size) {
  ------------------
  |  Branch (211:9): [True: 3, False: 256]
  |  Branch (211:58): [True: 2, False: 1]
  ------------------
  212|      2|      Internal::enforce(size_u32 >= 10, Exiv2::ErrorCode::kerCorruptedMetadata);
  213|      2|      has_size = true;
  214|      2|      std::array<byte, 2> size_buf;
  215|       |
  216|       |      /* Refer to this https://tools.ietf.org/html/rfc6386
  217|       |         for height and width reference for VP8 chunks */
  218|       |
  219|       |      // Fetch width - stored in 16bits
  220|      2|      std::copy_n(payload.begin() + 6, 2, size_buf.begin());
  221|      2|      width = Exiv2::getUShort(size_buf.data(), littleEndian) & 0x3fff;
  222|       |
  223|       |      // Fetch height - stored in 16bits
  224|      2|      std::copy_n(payload.begin() + 8, 2, size_buf.begin());
  225|      2|      height = Exiv2::getUShort(size_buf.data(), littleEndian) & 0x3fff;
  226|      2|    }
  227|       |
  228|       |    /* Chunk with lossless image data. */
  229|    259|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8L) && !has_alpha) {
  ------------------
  |  Branch (229:9): [True: 14, False: 245]
  |  Branch (229:59): [True: 12, False: 2]
  ------------------
  230|     12|      Internal::enforce(size_u32 >= 5, Exiv2::ErrorCode::kerCorruptedMetadata);
  231|     12|      if ((payload.read_uint8(4) & WEBP_VP8X_ALPHA_BIT) == WEBP_VP8X_ALPHA_BIT) {
  ------------------
  |  Branch (231:11): [True: 3, False: 9]
  ------------------
  232|      3|        has_alpha = true;
  233|      3|      }
  234|     12|    }
  235|    259|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8L) && !has_size) {
  ------------------
  |  Branch (235:9): [True: 13, False: 246]
  |  Branch (235:59): [True: 10, False: 3]
  ------------------
  236|     10|      Internal::enforce(size_u32 >= 5, Exiv2::ErrorCode::kerCorruptedMetadata);
  237|     10|      has_size = true;
  238|     10|      std::array<byte, 2> size_buf_w;
  239|     10|      std::array<byte, 3> size_buf_h;
  240|       |
  241|       |      /* For VP8L chunks width & height are stored in 28 bits
  242|       |         of a 32 bit field requires bitshifting to get actual
  243|       |         sizes. Width and height are split even into 14 bits
  244|       |         each. Refer to this https://goo.gl/bpgMJf */
  245|       |
  246|       |      // Fetch width - 14 bits wide
  247|     10|      std::copy_n(payload.begin() + 1, 2, size_buf_w.begin());
  248|     10|      size_buf_w.back() &= 0x3F;
  249|     10|      width = Exiv2::getUShort(size_buf_w.data(), littleEndian) + 1;
  250|       |
  251|       |      // Fetch height - 14 bits wide
  252|     10|      std::copy_n(payload.begin() + 2, 3, size_buf_h.begin());
  253|     10|      size_buf_h[0] = ((size_buf_h[0] >> 6) & 0x3) | ((size_buf_h[1] & 0x3FU) << 0x2);
  254|     10|      size_buf_h[1] = ((size_buf_h[1] >> 6) & 0x3) | ((size_buf_h[2] & 0xFU) << 0x2);
  255|     10|      height = Exiv2::getUShort(size_buf_h.data(), littleEndian) + 1;
  256|     10|    }
  257|       |
  258|       |    /* Chunk with animation frame. */
  259|    259|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ANMF) && !has_alpha) {
  ------------------
  |  Branch (259:9): [True: 9, False: 250]
  |  Branch (259:59): [True: 6, False: 3]
  ------------------
  260|      6|      Internal::enforce(size_u32 >= 6, Exiv2::ErrorCode::kerCorruptedMetadata);
  261|      6|      if ((payload.read_uint8(5) & 0x2) == 0x2) {
  ------------------
  |  Branch (261:11): [True: 1, False: 5]
  ------------------
  262|      1|        has_alpha = true;
  263|      1|      }
  264|      6|    }
  265|    259|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ANMF) && !has_size) {
  ------------------
  |  Branch (265:9): [True: 7, False: 252]
  |  Branch (265:59): [True: 1, False: 6]
  ------------------
  266|      1|      Internal::enforce(size_u32 >= 12, Exiv2::ErrorCode::kerCorruptedMetadata);
  267|      1|      has_size = true;
  268|      1|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  269|       |
  270|       |      // Fetch width - stored in 24bits
  271|      1|      std::copy_n(payload.begin() + 6, 3, size_buf.begin());
  272|      1|      size_buf.back() = 0;
  273|      1|      width = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  274|       |
  275|       |      // Fetch height - stored in 24bits
  276|      1|      std::copy_n(payload.begin() + 9, 3, size_buf.begin());
  277|      1|      size_buf.back() = 0;
  278|      1|      height = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  279|      1|    }
  280|       |
  281|       |    /* Chunk with alpha data. */
  282|    259|    if (equalsWebPTag(chunkId, "ALPH") && !has_alpha) {
  ------------------
  |  Branch (282:9): [True: 0, False: 259]
  |  Branch (282:43): [True: 0, False: 0]
  ------------------
  283|      0|      has_alpha = true;
  284|      0|    }
  285|    259|  }
  286|       |
  287|       |  /* Inject a VP8X chunk if one isn't available. */
  288|     41|  if (!has_vp8x) {
  ------------------
  |  Branch (288:7): [True: 23, False: 18]
  ------------------
  289|     23|    inject_VP8X(outIo, has_xmp, has_exif, has_alpha, has_icc, width, height);
  290|     23|  }
  291|       |
  292|     41|  io_->seek(12, BasicIo::beg);
  293|    245|  while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (293:10): [True: 224, False: 21]
  |  Branch (293:25): [True: 204, False: 20]
  ------------------
  294|    204|    io_->readOrThrow(chunkId.data(), 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  295|    204|    io_->readOrThrow(size_buff.data(), 4, Exiv2::ErrorCode::kerCorruptedMetadata);
  296|       |
  297|    204|    const uint32_t size_u32 = Exiv2::getULong(size_buff.data(), littleEndian);
  298|       |
  299|       |    // Check that `size_u32` is within bounds.
  300|    204|    Internal::enforce(size_u32 <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  301|       |
  302|    204|    DataBuf payload(size_u32);
  303|    204|    io_->readOrThrow(payload.data(), size_u32, Exiv2::ErrorCode::kerCorruptedMetadata);
  304|    204|    if (io_->tell() % 2)
  ------------------
  |  Branch (304:9): [True: 77, False: 127]
  ------------------
  305|     77|      io_->seek(+1, BasicIo::cur);  // skip pad
  306|       |
  307|    204|    if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X)) {
  ------------------
  |  Branch (307:9): [True: 18, False: 186]
  ------------------
  308|     18|      Internal::enforce(size_u32 >= 1, Exiv2::ErrorCode::kerCorruptedMetadata);
  309|     18|      if (has_icc) {
  ------------------
  |  Branch (309:11): [True: 1, False: 17]
  ------------------
  310|      1|        const uint8_t x = payload.read_uint8(0);
  311|      1|        payload.write_uint8(0, x | WEBP_VP8X_ICC_BIT);
  312|     17|      } else {
  313|     17|        const uint8_t x = payload.read_uint8(0);
  314|     17|        payload.write_uint8(0, x & ~WEBP_VP8X_ICC_BIT);
  315|     17|      }
  316|       |
  317|     18|      if (has_xmp) {
  ------------------
  |  Branch (317:11): [True: 3, False: 15]
  ------------------
  318|      3|        const uint8_t x = payload.read_uint8(0);
  319|      3|        payload.write_uint8(0, x | WEBP_VP8X_XMP_BIT);
  320|     15|      } else {
  321|     15|        const uint8_t x = payload.read_uint8(0);
  322|     15|        payload.write_uint8(0, x & ~WEBP_VP8X_XMP_BIT);
  323|     15|      }
  324|       |
  325|     18|      if (has_exif) {
  ------------------
  |  Branch (325:11): [True: 0, False: 18]
  ------------------
  326|      0|        const uint8_t x = payload.read_uint8(0);
  327|      0|        payload.write_uint8(0, x | WEBP_VP8X_EXIF_BIT);
  328|     18|      } else {
  329|     18|        const uint8_t x = payload.read_uint8(0);
  330|     18|        payload.write_uint8(0, x & ~WEBP_VP8X_EXIF_BIT);
  331|     18|      }
  332|       |
  333|     18|      if (outIo.write(chunkId.c_data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (333:11): [True: 0, False: 18]
  ------------------
  334|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  335|     18|      if (outIo.write(size_buff.data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (335:11): [True: 0, False: 18]
  ------------------
  336|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  337|     18|      if (outIo.write(payload.c_data(), payload.size()) != payload.size())
  ------------------
  |  Branch (337:11): [True: 0, False: 18]
  ------------------
  338|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  339|     18|      if (outIo.tell() % 2 && outIo.write(&WEBP_PAD_ODD, 1) != 1)
  ------------------
  |  Branch (339:11): [True: 8, False: 10]
  |  Branch (339:31): [True: 0, False: 8]
  ------------------
  340|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  341|       |
  342|     18|      if (has_icc) {
  ------------------
  |  Branch (342:11): [True: 1, False: 17]
  ------------------
  343|      1|        if (outIo.write(reinterpret_cast<const byte*>(WEBP_CHUNK_HEADER_ICCP), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (343:13): [True: 0, False: 1]
  ------------------
  344|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  345|      1|        ul2Data(data, static_cast<uint32_t>(iccProfile_.size()), littleEndian);
  346|      1|        if (outIo.write(data, WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (346:13): [True: 0, False: 1]
  ------------------
  347|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  348|      1|        if (outIo.write(iccProfile_.c_data(), iccProfile_.size()) != iccProfile_.size()) {
  ------------------
  |  Branch (348:13): [True: 0, False: 1]
  ------------------
  349|      0|          throw Error(ErrorCode::kerImageWriteFailed);
  350|      0|        }
  351|      1|        has_icc = false;
  352|      1|      }
  353|    186|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ICCP)) {
  ------------------
  |  Branch (353:16): [True: 3, False: 183]
  ------------------
  354|       |      // Skip it altogether handle it prior to here :)
  355|    183|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_EXIF)) {
  ------------------
  |  Branch (355:16): [True: 0, False: 183]
  ------------------
  356|       |      // Skip and add new data afterwards
  357|    183|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_XMP)) {
  ------------------
  |  Branch (357:16): [True: 2, False: 181]
  ------------------
  358|       |      // Skip and add new data afterwards
  359|    181|    } else {
  360|    181|      if (outIo.write(chunkId.c_data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (360:11): [True: 0, False: 181]
  ------------------
  361|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  362|    181|      if (outIo.write(size_buff.data(), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (362:11): [True: 0, False: 181]
  ------------------
  363|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  364|    181|      if (outIo.write(payload.c_data(), payload.size()) != payload.size())
  ------------------
  |  Branch (364:11): [True: 0, False: 181]
  ------------------
  365|      0|        throw Error(ErrorCode::kerImageWriteFailed);
  366|    181|    }
  367|       |
  368|       |    // Encoder required to pad odd sized data with a null byte
  369|    204|    if (outIo.tell() % 2 && outIo.write(&WEBP_PAD_ODD, 1) != 1)
  ------------------
  |  Branch (369:9): [True: 69, False: 135]
  |  Branch (369:29): [True: 0, False: 69]
  ------------------
  370|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  371|    204|  }
  372|       |
  373|     41|  if (has_exif) {
  ------------------
  |  Branch (373:7): [True: 0, False: 41]
  ------------------
  374|      0|    if (outIo.write(reinterpret_cast<const byte*>(WEBP_CHUNK_HEADER_EXIF), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (374:9): [True: 0, False: 0]
  ------------------
  375|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  376|      0|    us2Data(data, static_cast<uint16_t>(blob.size()) + 8, bigEndian);
  377|      0|    ul2Data(data, static_cast<uint32_t>(blob.size()), littleEndian);
  378|      0|    if (outIo.write(data, WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (378:9): [True: 0, False: 0]
  ------------------
  379|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  380|      0|    if (outIo.write(blob.data(), blob.size()) != blob.size()) {
  ------------------
  |  Branch (380:9): [True: 0, False: 0]
  ------------------
  381|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  382|      0|    }
  383|      0|    if (outIo.tell() % 2 && outIo.write(&WEBP_PAD_ODD, 1) != 1)
  ------------------
  |  Branch (383:9): [True: 0, False: 0]
  |  Branch (383:29): [True: 0, False: 0]
  ------------------
  384|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  385|      0|  }
  386|       |
  387|     41|  if (has_xmp) {
  ------------------
  |  Branch (387:7): [True: 2, False: 39]
  ------------------
  388|      2|    if (outIo.write(reinterpret_cast<const byte*>(WEBP_CHUNK_HEADER_XMP), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (388:9): [True: 0, False: 2]
  ------------------
  389|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  390|      2|    ul2Data(data, static_cast<uint32_t>(xmpPacket().size()), littleEndian);
  391|      2|    if (outIo.write(data, WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (391:9): [True: 0, False: 2]
  ------------------
  392|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  393|      2|    if (outIo.write(reinterpret_cast<const byte*>(xmp.data()), xmp.size()) != xmp.size()) {
  ------------------
  |  Branch (393:9): [True: 0, False: 2]
  ------------------
  394|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  395|      0|    }
  396|      2|    if (outIo.tell() % 2 && outIo.write(&WEBP_PAD_ODD, 1) != 1)
  ------------------
  |  Branch (396:9): [True: 0, False: 2]
  |  Branch (396:29): [True: 0, False: 0]
  ------------------
  397|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  398|      2|  }
  399|       |
  400|       |  // Fix File Size Payload Data
  401|     41|  outIo.seek(0, BasicIo::beg);
  402|     41|  filesize = outIo.size() - 8;
  403|     41|  outIo.seek(4, BasicIo::beg);
  404|     41|  ul2Data(data, static_cast<uint32_t>(filesize), littleEndian);
  405|     41|  if (outIo.write(data, WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (405:7): [True: 0, False: 41]
  ------------------
  406|      0|    throw Error(ErrorCode::kerImageWriteFailed);
  407|       |
  408|     41|}  // WebPImage::writeMetadata
_ZN5Exiv29WebPImage14printStructureERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEENS_20PrintStructureOptionEm:
  412|    324|void WebPImage::printStructure(std::ostream& out, PrintStructureOption option, size_t depth) {
  413|    324|  if (io_->open() != 0) {
  ------------------
  |  Branch (413:7): [True: 0, False: 324]
  ------------------
  414|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  415|      0|  }
  416|       |  // Ensure this is the correct image type
  417|    324|  if (!isWebPType(*io_, true)) {
  ------------------
  |  Branch (417:7): [True: 0, False: 324]
  ------------------
  418|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (418:9): [True: 0, False: 0]
  |  Branch (418:25): [True: 0, False: 0]
  ------------------
  419|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  420|      0|    throw Error(ErrorCode::kerNotAnImage, "WEBP");
  421|      0|  }
  422|       |
  423|    324|  bool bPrint = option == kpsBasic || option == kpsRecursive;
  ------------------
  |  Branch (423:17): [True: 66, False: 258]
  |  Branch (423:39): [True: 55, False: 203]
  ------------------
  424|    324|  if (bPrint || option == kpsXMP || option == kpsIccProfile || option == kpsIptcErase) {
  ------------------
  |  Branch (424:7): [True: 121, False: 203]
  |  Branch (424:17): [True: 55, False: 148]
  |  Branch (424:37): [True: 41, False: 107]
  |  Branch (424:64): [True: 41, False: 66]
  ------------------
  425|    258|    byte data[WEBP_TAG_SIZE * 2];
  426|    258|    io_->read(data, WEBP_TAG_SIZE * 2);
  427|    258|    uint64_t filesize = Exiv2::getULong(data + WEBP_TAG_SIZE, littleEndian);
  428|    258|    DataBuf chunkId(5);
  429|    258|    chunkId.write_uint8(4, '\0');
  430|       |
  431|    258|    if (bPrint) {
  ------------------
  |  Branch (431:9): [True: 121, False: 137]
  ------------------
  432|    121|      out << Internal::indent(depth) << "STRUCTURE OF WEBP FILE: " << io().path() << '\n';
  433|    121|      out << Internal::indent(depth) << " Chunk |   Length |   Offset | Payload" << '\n';
  434|    121|    }
  435|       |
  436|    258|    io_->seek(0, BasicIo::beg);  // rewind
  437|  2.15k|    while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (437:12): [True: 2.09k, False: 56]
  |  Branch (437:27): [True: 1.89k, False: 202]
  ------------------
  438|  1.89k|      auto offset = io_->tell();
  439|  1.89k|      byte size_buff[WEBP_TAG_SIZE];
  440|  1.89k|      io_->read(chunkId.data(), WEBP_TAG_SIZE);
  441|  1.89k|      io_->read(size_buff, WEBP_TAG_SIZE);
  442|  1.89k|      const uint32_t size = Exiv2::getULong(size_buff, littleEndian);
  443|       |
  444|       |      // Check that `size` is within bounds.
  445|  1.89k|      Internal::enforce(!offset || size <= io_->size() - io_->tell(), Exiv2::ErrorCode::kerCorruptedMetadata);
  ------------------
  |  Branch (445:25): [True: 253, False: 1.64k]
  |  Branch (445:36): [True: 1.64k, False: 0]
  ------------------
  446|       |
  447|  1.89k|      DataBuf payload(offset ? size : WEBP_TAG_SIZE);  // header is different from chunks
  ------------------
  |  Branch (447:23): [True: 1.64k, False: 253]
  ------------------
  448|  1.89k|      io_->read(payload.data(), payload.size());
  449|       |
  450|  1.89k|      if (bPrint) {
  ------------------
  |  Branch (450:11): [True: 810, False: 1.08k]
  ------------------
  451|    810|        out << Internal::indent(depth) << stringFormat("  {} | {:8} | {:8} | ", chunkId.c_str(), size, offset)
  ------------------
  |  |   18|    810|#define stringFormat std::format
  ------------------
  452|    810|            << Internal::binaryToString(makeSlice(payload, 0, payload.size() > 32 ? 32 : payload.size())) << '\n';
  ------------------
  |  Branch (452:63): [True: 93, False: 717]
  ------------------
  453|    810|      }
  454|       |
  455|  1.89k|      if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_EXIF) && option == kpsRecursive) {
  ------------------
  |  Branch (455:11): [True: 44, False: 1.85k]
  |  Branch (455:61): [True: 14, False: 30]
  ------------------
  456|       |        // create memio object with the payload, then print the structure
  457|     14|        MemIo p(payload.c_data(), payload.size());
  458|     14|        printTiffStructure(p, out, option, depth + 1);
  459|     14|      }
  460|       |
  461|  1.89k|      bool bPrintPayload = (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_XMP) && option == kpsXMP) ||
  ------------------
  |  Branch (461:29): [True: 48, False: 1.84k]
  |  Branch (461:78): [True: 8, False: 40]
  ------------------
  462|  1.86k|                           (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ICCP) && option == kpsIccProfile);
  ------------------
  |  Branch (462:29): [True: 16, False: 1.84k]
  |  Branch (462:79): [True: 3, False: 13]
  ------------------
  463|  1.89k|      if (bPrintPayload) {
  ------------------
  |  Branch (463:11): [True: 11, False: 1.88k]
  ------------------
  464|     11|        out.write(payload.c_str(), payload.size());
  465|     11|      }
  466|       |
  467|  1.89k|      if (offset && io_->tell() % 2)
  ------------------
  |  Branch (467:11): [True: 1.61k, False: 278]
  |  Branch (467:21): [True: 635, False: 981]
  ------------------
  468|    635|        io_->seek(+1, BasicIo::cur);  // skip padding byte on sub-chunks
  469|  1.89k|    }
  470|    258|  }
  471|    324|}
_ZN5Exiv29WebPImage12readMetadataEv:
  475|    129|void WebPImage::readMetadata() {
  476|    129|  if (io_->open() != 0)
  ------------------
  |  Branch (476:7): [True: 0, False: 129]
  ------------------
  477|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
  478|    129|  IoCloser closer(*io_);
  479|       |  // Ensure that this is the correct image type
  480|    129|  if (!isWebPType(*io_, true)) {
  ------------------
  |  Branch (480:7): [True: 0, False: 129]
  ------------------
  481|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (481:9): [True: 0, False: 0]
  |  Branch (481:25): [True: 0, False: 0]
  ------------------
  482|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
  483|      0|    throw Error(ErrorCode::kerNotAJpeg);
  484|      0|  }
  485|    129|  clearMetadata();
  486|       |
  487|    129|  byte data[12];
  488|    129|  DataBuf chunkId(5);
  489|    129|  chunkId.write_uint8(4, '\0');
  490|       |
  491|    129|  io_->readOrThrow(data, WEBP_TAG_SIZE * 3, Exiv2::ErrorCode::kerCorruptedMetadata);
  492|       |
  493|    129|  const uint32_t filesize = Safe::add(Exiv2::getULong(data + WEBP_TAG_SIZE, littleEndian), 8U);
  494|    129|  Internal::enforce(filesize <= io_->size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  495|       |
  496|    129|  WebPImage::decodeChunks(filesize);
  497|       |
  498|    129|}  // WebPImage::readMetadata
_ZN5Exiv29WebPImage12decodeChunksEj:
  500|    117|void WebPImage::decodeChunks(uint32_t filesize) {
  501|    117|  DataBuf chunkId(5);
  502|    117|  std::array<byte, WEBP_TAG_SIZE> size_buff;
  503|    117|  bool has_canvas_data = false;
  504|       |
  505|       |#ifdef EXIV2_DEBUG_MESSAGES
  506|       |  std::cout << "Reading metadata" << '\n';
  507|       |#endif
  508|       |
  509|    117|  chunkId.write_uint8(4, '\0');
  510|  1.52k|  while (!io_->eof() && io_->tell() < filesize) {
  ------------------
  |  Branch (510:10): [True: 1.46k, False: 57]
  |  Branch (510:25): [True: 1.40k, False: 60]
  ------------------
  511|  1.40k|    io_->readOrThrow(chunkId.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  512|  1.40k|    io_->readOrThrow(size_buff.data(), WEBP_TAG_SIZE, Exiv2::ErrorCode::kerCorruptedMetadata);
  513|       |
  514|  1.40k|    const uint32_t size = Exiv2::getULong(size_buff.data(), littleEndian);
  515|       |
  516|       |    // Check that `size` is within bounds.
  517|  1.40k|    Internal::enforce(io_->tell() <= filesize, Exiv2::ErrorCode::kerCorruptedMetadata);
  518|  1.40k|    Internal::enforce(size <= (filesize - io_->tell()), Exiv2::ErrorCode::kerCorruptedMetadata);
  519|       |
  520|  1.40k|    if (DataBuf payload(size); payload.empty()) {
  ------------------
  |  Branch (520:32): [True: 820, False: 586]
  ------------------
  521|    820|      io_->seek(size, BasicIo::cur);
  522|    820|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8X) && !has_canvas_data) {
  ------------------
  |  Branch (522:16): [True: 35, False: 551]
  |  Branch (522:66): [True: 24, False: 11]
  ------------------
  523|     24|      Internal::enforce(size >= 10, Exiv2::ErrorCode::kerCorruptedMetadata);
  524|       |
  525|     24|      has_canvas_data = true;
  526|     24|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  527|       |
  528|     24|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  529|       |
  530|       |      // Fetch width
  531|     24|      std::copy_n(payload.begin() + 4, 3, size_buf.begin());
  532|     24|      size_buf.back() = 0;
  533|     24|      pixelWidth_ = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  534|       |
  535|       |      // Fetch height
  536|     24|      std::copy_n(payload.begin() + 7, 3, size_buf.begin());
  537|     24|      size_buf.back() = 0;
  538|     24|      pixelHeight_ = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  539|    562|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8) && !has_canvas_data) {
  ------------------
  |  Branch (539:16): [True: 5, False: 557]
  |  Branch (539:65): [True: 4, False: 1]
  ------------------
  540|      4|      Internal::enforce(size >= 10, Exiv2::ErrorCode::kerCorruptedMetadata);
  541|       |
  542|      4|      has_canvas_data = true;
  543|      4|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  544|      4|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  545|       |
  546|       |      // Fetch width""
  547|      4|      std::copy_n(payload.begin() + 6, 2, size_buf.begin());
  548|      4|      size_buf[2] = 0;
  549|      4|      size_buf[3] = 0;
  550|      4|      pixelWidth_ = Exiv2::getULong(size_buf.data(), littleEndian) & 0x3fff;
  551|       |
  552|       |      // Fetch height
  553|      4|      std::copy_n(payload.begin() + 8, 2, size_buf.begin());
  554|      4|      size_buf[2] = 0;
  555|      4|      size_buf[3] = 0;
  556|      4|      pixelHeight_ = Exiv2::getULong(size_buf.data(), littleEndian) & 0x3fff;
  557|    558|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_VP8L) && !has_canvas_data) {
  ------------------
  |  Branch (557:16): [True: 19, False: 539]
  |  Branch (557:66): [True: 13, False: 6]
  ------------------
  558|     13|      Internal::enforce(size >= 5, Exiv2::ErrorCode::kerCorruptedMetadata);
  559|       |
  560|     13|      has_canvas_data = true;
  561|     13|      std::array<byte, 2> size_buf_w;
  562|     13|      std::array<byte, 3> size_buf_h;
  563|       |
  564|     13|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  565|       |
  566|       |      // Fetch width
  567|     13|      std::copy_n(payload.begin() + 1, 2, size_buf_w.begin());
  568|     13|      size_buf_w.back() &= 0x3F;
  569|     13|      pixelWidth_ = Exiv2::getUShort(size_buf_w.data(), littleEndian) + 1;
  570|       |
  571|       |      // Fetch height
  572|     13|      std::copy_n(payload.begin() + 2, 3, size_buf_h.begin());
  573|     13|      size_buf_h[0] = ((size_buf_h[0] >> 6) & 0x3) | ((size_buf_h[1] & 0x3FU) << 0x2);
  574|     13|      size_buf_h[1] = ((size_buf_h[1] >> 6) & 0x3) | ((size_buf_h[2] & 0xFU) << 0x2);
  575|     13|      pixelHeight_ = Exiv2::getUShort(size_buf_h.data(), littleEndian) + 1;
  576|    545|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ANMF) && !has_canvas_data) {
  ------------------
  |  Branch (576:16): [True: 31, False: 514]
  |  Branch (576:66): [True: 2, False: 29]
  ------------------
  577|      2|      Internal::enforce(size >= 12, Exiv2::ErrorCode::kerCorruptedMetadata);
  578|       |
  579|      2|      has_canvas_data = true;
  580|      2|      std::array<byte, WEBP_TAG_SIZE> size_buf;
  581|       |
  582|      2|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  583|       |
  584|       |      // Fetch width
  585|      2|      std::copy_n(payload.begin() + 6, 3, size_buf.begin());
  586|      2|      size_buf.back() = 0;
  587|      2|      pixelWidth_ = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  588|       |
  589|       |      // Fetch height
  590|      2|      std::copy_n(payload.begin() + 9, 3, size_buf.begin());
  591|      2|      size_buf.back() = 0;
  592|      2|      pixelHeight_ = Exiv2::getULong(size_buf.data(), littleEndian) + 1;
  593|    543|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_ICCP)) {
  ------------------
  |  Branch (593:16): [True: 7, False: 536]
  ------------------
  594|      7|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  595|      7|      this->setIccProfile(std::move(payload));
  596|    536|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_EXIF)) {
  ------------------
  |  Branch (596:16): [True: 35, False: 501]
  ------------------
  597|     35|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  598|       |
  599|     35|      std::array<byte, 2> size_buff2;
  600|       |      // 4 meaningful bytes + 2 padding bytes
  601|     35|      auto exifLongHeader = std::array<byte, 6>{0xFF, 0x01, 0xFF, 0xE1, 0x00, 0x00};
  602|     35|      auto exifShortHeader = std::array<byte, 6>{0x45, 0x78, 0x69, 0x66, 0x00, 0x00};
  603|     35|      const byte exifTiffLEHeader[] = {0x49, 0x49, 0x2A};        // "MM*"
  604|     35|      const byte exifTiffBEHeader[] = {0x4D, 0x4D, 0x00, 0x2A};  // "II\0*"
  605|     35|      size_t offset = 0;
  606|     35|      bool s_header = false;
  607|     35|      bool le_header = false;
  608|     35|      bool be_header = false;
  609|     35|      size_t pos = getHeaderOffset(payload.c_data(), payload.size(), exifLongHeader.data(), 4);
  610|       |
  611|     35|      if (pos == std::string::npos) {
  ------------------
  |  Branch (611:11): [True: 33, False: 2]
  ------------------
  612|     33|        pos = getHeaderOffset(payload.c_data(), payload.size(), exifLongHeader.data(), 6);
  613|     33|        if (pos != std::string::npos) {
  ------------------
  |  Branch (613:13): [True: 0, False: 33]
  ------------------
  614|      0|          s_header = true;
  615|      0|        }
  616|     33|      }
  617|     35|      if (pos == std::string::npos) {
  ------------------
  |  Branch (617:11): [True: 33, False: 2]
  ------------------
  618|     33|        pos = getHeaderOffset(payload.c_data(), payload.size(), exifTiffLEHeader, 3);
  619|     33|        if (pos != std::string::npos) {
  ------------------
  |  Branch (619:13): [True: 1, False: 32]
  ------------------
  620|      1|          le_header = true;
  621|      1|        }
  622|     33|      }
  623|     35|      if (pos == std::string::npos) {
  ------------------
  |  Branch (623:11): [True: 32, False: 3]
  ------------------
  624|     32|        pos = getHeaderOffset(payload.c_data(), payload.size(), exifTiffBEHeader, 4);
  625|     32|        if (pos != std::string::npos) {
  ------------------
  |  Branch (625:13): [True: 12, False: 20]
  ------------------
  626|     12|          be_header = true;
  627|     12|        }
  628|     32|      }
  629|       |
  630|     35|      if (s_header) {
  ------------------
  |  Branch (630:11): [True: 0, False: 35]
  ------------------
  631|      0|        offset += 6;
  632|      0|      }
  633|     35|      if (be_header || le_header) {
  ------------------
  |  Branch (633:11): [True: 12, False: 23]
  |  Branch (633:24): [True: 1, False: 22]
  ------------------
  634|     13|        offset += 12;
  635|     13|      }
  636|       |
  637|     35|      const size_t sizePayload = Safe::add(payload.size(), offset);
  638|     35|      DataBuf rawExifData(sizePayload);
  639|       |
  640|     35|      if (s_header) {
  ------------------
  |  Branch (640:11): [True: 0, False: 35]
  ------------------
  641|      0|        us2Data(size_buff2.data(), static_cast<uint16_t>(sizePayload - 6), bigEndian);
  642|      0|        std::copy_n(exifLongHeader.begin(), 4, rawExifData.begin());
  643|      0|        std::copy(size_buff2.begin(), size_buff2.end(), rawExifData.begin() + 4);
  644|      0|      }
  645|       |
  646|     35|      if (be_header || le_header) {
  ------------------
  |  Branch (646:11): [True: 12, False: 23]
  |  Branch (646:24): [True: 1, False: 22]
  ------------------
  647|     13|        us2Data(size_buff2.data(), static_cast<uint16_t>(sizePayload - 6), bigEndian);
  648|     13|        std::copy_n(exifLongHeader.begin(), 4, rawExifData.begin());
  649|     13|        std::copy(size_buff2.begin(), size_buff2.end(), rawExifData.begin() + 4);
  650|     13|        std::copy(exifShortHeader.begin(), exifShortHeader.end(), rawExifData.begin() + 6);
  651|     13|      }
  652|       |
  653|     35|      std::copy(payload.begin(), payload.end(), rawExifData.begin() + offset);
  654|       |
  655|       |#ifdef EXIV2_DEBUG_MESSAGES
  656|       |      std::cout << "Display Hex Dump [size:" << sizePayload << "]" << '\n';
  657|       |      std::cout << binaryToHex(rawExifData.c_data(), sizePayload);
  658|       |#endif
  659|       |
  660|     35|      if (pos != std::string::npos) {
  ------------------
  |  Branch (660:11): [True: 15, False: 20]
  ------------------
  661|     15|        XmpData xmpData;
  662|     15|        ByteOrder bo = ExifParser::decode(exifData_, payload.c_data(pos), payload.size() - pos);
  663|     15|        setByteOrder(bo);
  664|     20|      } else {
  665|     20|#ifndef SUPPRESS_WARNINGS
  666|     20|        EXV_WARNING << "Failed to decode Exif metadata." << '\n';
  ------------------
  |  |  138|     20|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 20]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     20|  LogMsg(LogMsg::warn).os()
  ------------------
  667|     20|#endif
  668|     20|        exifData_.clear();
  669|     20|      }
  670|    501|    } else if (equalsWebPTag(chunkId, WEBP_CHUNK_HEADER_XMP)) {
  ------------------
  |  Branch (670:16): [True: 24, False: 477]
  ------------------
  671|     24|      io_->readOrThrow(payload.data(), payload.size(), Exiv2::ErrorCode::kerCorruptedMetadata);
  672|     24|      xmpPacket_.assign(payload.c_str(), payload.size());
  673|     24|      if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (673:11): [True: 24, False: 0]
  |  Branch (673:34): [True: 24, False: 0]
  ------------------
  674|     24|#ifndef SUPPRESS_WARNINGS
  675|     24|        EXV_WARNING << "Failed to decode XMP metadata." << '\n';
  ------------------
  |  |  138|     24|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 24]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     24|  LogMsg(LogMsg::warn).os()
  ------------------
  676|     24|#endif
  677|     24|      } else {
  678|       |#ifdef EXIV2_DEBUG_MESSAGES
  679|       |        std::cout << "Display Hex Dump [size:" << payload.size() << "]" << '\n';
  680|       |        std::cout << binaryToHex(payload.c_data(), payload.size());
  681|       |#endif
  682|      0|      }
  683|    477|    } else {
  684|    477|      io_->seek(size, BasicIo::cur);
  685|    477|    }
  686|       |
  687|  1.40k|    if (io_->tell() % 2)
  ------------------
  |  Branch (687:9): [True: 194, False: 1.21k]
  ------------------
  688|    194|      io_->seek(+1, BasicIo::cur);
  689|  1.40k|  }
  690|    117|}
_ZN5Exiv215newWebPInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  694|    129|Image::UniquePtr newWebPInstance(BasicIo::UniquePtr io, bool /*create*/) {
  695|    129|  auto image = std::make_unique<WebPImage>(std::move(io));
  696|    129|  if (!image->good()) {
  ------------------
  |  Branch (696:7): [True: 0, False: 129]
  ------------------
  697|      0|    return nullptr;
  698|      0|  }
  699|    129|  return image;
  700|    129|}
_ZN5Exiv210isWebPTypeERNS_7BasicIoEb:
  702|  16.5k|bool isWebPType(BasicIo& iIo, bool /*advance*/) {
  703|  16.5k|  if (iIo.size() < 12) {
  ------------------
  |  Branch (703:7): [True: 82, False: 16.4k]
  ------------------
  704|     82|    return false;
  705|     82|  }
  706|  16.4k|  const int32_t len = 4;
  707|  16.4k|  constexpr std::array<byte, len> RiffImageId{'R', 'I', 'F', 'F'};
  708|  16.4k|  constexpr std::array<byte, len> WebPImageId{'W', 'E', 'B', 'P'};
  709|  16.4k|  std::array<byte, len> webp;
  710|  16.4k|  std::array<byte, len> data;
  711|  16.4k|  std::array<byte, len> riff;
  712|  16.4k|  iIo.readOrThrow(riff.data(), len, Exiv2::ErrorCode::kerCorruptedMetadata);
  713|  16.4k|  iIo.readOrThrow(data.data(), len, Exiv2::ErrorCode::kerCorruptedMetadata);
  714|  16.4k|  iIo.readOrThrow(webp.data(), len, Exiv2::ErrorCode::kerCorruptedMetadata);
  715|  16.4k|  bool matched_riff = riff == RiffImageId;
  716|  16.4k|  bool matched_webp = webp == WebPImageId;
  717|  16.4k|  iIo.seek(-12, BasicIo::cur);
  718|  16.4k|  return matched_riff && matched_webp;
  ------------------
  |  Branch (718:10): [True: 1.00k, False: 15.4k]
  |  Branch (718:26): [True: 711, False: 291]
  ------------------
  719|  16.5k|}
_ZN5Exiv29WebPImage13equalsWebPTagERKNS_7DataBufEPKc:
  728|  11.9k|bool WebPImage::equalsWebPTag(const Exiv2::DataBuf& buf, const char* str) {
  729|  17.3k|  for (int i = 0; i < 4; i++)
  ------------------
  |  Branch (729:19): [True: 17.0k, False: 369]
  ------------------
  730|  17.0k|    if (toupper(buf.read_uint8(i)) != str[i])
  ------------------
  |  Branch (730:9): [True: 11.5k, False: 5.43k]
  ------------------
  731|  11.5k|      return false;
  732|    369|  return true;
  733|  11.9k|}
_ZNK5Exiv29WebPImage11inject_VP8XERNS_7BasicIoEbbbbjj:
  743|     23|                            uint32_t height) const {
  744|     23|  const byte size[4] = {0x0A, 0x00, 0x00, 0x00};
  745|     23|  byte data[10] = {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00};
  746|     23|  iIo.write(reinterpret_cast<const byte*>(WEBP_CHUNK_HEADER_VP8X), WEBP_TAG_SIZE);
  747|     23|  iIo.write(size, WEBP_TAG_SIZE);
  748|       |
  749|     23|  if (has_alpha) {
  ------------------
  |  Branch (749:7): [True: 4, False: 19]
  ------------------
  750|      4|    data[0] |= WEBP_VP8X_ALPHA_BIT;
  751|      4|  }
  752|       |
  753|     23|  if (has_icc) {
  ------------------
  |  Branch (753:7): [True: 1, False: 22]
  ------------------
  754|      1|    data[0] |= WEBP_VP8X_ICC_BIT;
  755|      1|  }
  756|       |
  757|     23|  if (has_xmp) {
  ------------------
  |  Branch (757:7): [True: 3, False: 20]
  ------------------
  758|      3|    data[0] |= WEBP_VP8X_XMP_BIT;
  759|      3|  }
  760|       |
  761|     23|  if (has_exif) {
  ------------------
  |  Branch (761:7): [True: 0, False: 23]
  ------------------
  762|      0|    data[0] |= WEBP_VP8X_EXIF_BIT;
  763|      0|  }
  764|       |
  765|       |  /* set width - stored in 24bits*/
  766|     23|  Internal::enforce(width > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  767|     23|  uint32_t w = width - 1;
  768|     23|  data[4] = w & 0xFF;
  769|     23|  data[5] = (w >> 8) & 0xFF;
  770|     23|  data[6] = (w >> 16) & 0xFF;
  771|       |
  772|       |  /* set height - stored in 24bits */
  773|     23|  Internal::enforce(width > 0, Exiv2::ErrorCode::kerCorruptedMetadata);
  774|     23|  uint32_t h = height - 1;
  775|     23|  data[7] = h & 0xFF;
  776|     23|  data[8] = (h >> 8) & 0xFF;
  777|     23|  data[9] = (h >> 16) & 0xFF;
  778|       |
  779|     23|  iIo.write(data, 10);
  780|       |
  781|       |  /* Handle inject an icc profile right after VP8X chunk */
  782|     23|  if (has_icc) {
  ------------------
  |  Branch (782:7): [True: 1, False: 22]
  ------------------
  783|      1|    byte size_buff[WEBP_TAG_SIZE];
  784|      1|    ul2Data(size_buff, static_cast<uint32_t>(iccProfile_.size()), littleEndian);
  785|      1|    if (iIo.write(reinterpret_cast<const byte*>(WEBP_CHUNK_HEADER_ICCP), WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (785:9): [True: 0, False: 1]
  ------------------
  786|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  787|      1|    if (iIo.write(size_buff, WEBP_TAG_SIZE) != WEBP_TAG_SIZE)
  ------------------
  |  Branch (787:9): [True: 0, False: 1]
  ------------------
  788|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  789|      1|    if (iIo.write(iccProfile_.c_data(), iccProfile_.size()) != iccProfile_.size())
  ------------------
  |  Branch (789:9): [True: 0, False: 1]
  ------------------
  790|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  791|      1|    if (iIo.tell() % 2 && iIo.write(&WEBP_PAD_ODD, 1) != 1)
  ------------------
  |  Branch (791:9): [True: 0, False: 1]
  |  Branch (791:27): [True: 0, False: 0]
  ------------------
  792|      0|      throw Error(ErrorCode::kerImageWriteFailed);
  793|      1|  }
  794|     23|}
_ZN5Exiv29WebPImage15getHeaderOffsetEPKhmS2_m:
  796|    133|size_t WebPImage::getHeaderOffset(const byte* data, size_t data_size, const byte* header, size_t header_size) {
  797|    133|  size_t pos = std::string::npos;  // error value
  798|    133|  if (data_size < header_size) {
  ------------------
  |  Branch (798:7): [True: 26, False: 107]
  ------------------
  799|     26|    return pos;
  800|     26|  }
  801|  3.25k|  for (size_t i = 0; i < data_size - header_size; i++) {
  ------------------
  |  Branch (801:22): [True: 3.15k, False: 92]
  ------------------
  802|  3.15k|    if (memcmp(header, &data[i], header_size) == 0) {
  ------------------
  |  Branch (802:9): [True: 15, False: 3.14k]
  ------------------
  803|     15|      pos = i;
  804|     15|      break;
  805|     15|    }
  806|  3.15k|  }
  807|    107|  return pos;
  808|    133|}

_ZN5Exiv28Xmpdatum4ImplC2ERKNS_6XmpKeyEPKNS_5ValueE:
  251|  36.7k|Xmpdatum::Impl::Impl(const XmpKey& key, const Value* pValue) : key_(key.clone()) {
  252|  36.7k|  if (pValue)
  ------------------
  |  Branch (252:7): [True: 14.3k, False: 22.3k]
  ------------------
  253|  14.3k|    value_ = pValue->clone();
  254|  36.7k|}
_ZN5Exiv28Xmpdatum4ImplC2ERKS1_:
  256|  40.1k|Xmpdatum::Impl::Impl(const Impl& rhs) {
  257|  40.1k|  if (rhs.key_)
  ------------------
  |  Branch (257:7): [True: 40.1k, False: 0]
  ------------------
  258|  40.1k|    key_ = rhs.key_->clone();  // deep copy
  259|  40.1k|  if (rhs.value_)
  ------------------
  |  Branch (259:7): [True: 40.1k, False: 0]
  ------------------
  260|  40.1k|    value_ = rhs.value_->clone();  // deep copy
  261|  40.1k|}
_ZN5Exiv28XmpdatumC2ERKNS_6XmpKeyEPKNS_5ValueE:
  275|  36.7k|Xmpdatum::Xmpdatum(const XmpKey& key, const Value* pValue) : p_(std::make_unique<Impl>(key, pValue)) {
  276|  36.7k|}
_ZN5Exiv28XmpdatumC2ERKS0_:
  278|  40.1k|Xmpdatum::Xmpdatum(const Xmpdatum& rhs) : p_(std::make_unique<Impl>(*rhs.p_)) {
  279|  40.1k|}
_ZN5Exiv28XmpdatumD2Ev:
  288|  76.8k|Xmpdatum::~Xmpdatum() = default;
_ZNK5Exiv28Xmpdatum3keyEv:
  290|  11.8M|std::string Xmpdatum::key() const {
  291|  11.8M|  return p_->key_ ? p_->key_->key() : "";
  ------------------
  |  Branch (291:10): [True: 11.8M, False: 0]
  ------------------
  292|  11.8M|}
_ZNK5Exiv28Xmpdatum9groupNameEv:
  298|  2.93k|std::string Xmpdatum::groupName() const {
  299|  2.93k|  return p_->key_ ? p_->key_->groupName() : "";
  ------------------
  |  Branch (299:10): [True: 2.93k, False: 0]
  ------------------
  300|  2.93k|}
_ZNK5Exiv28Xmpdatum7tagNameEv:
  302|  15.4k|std::string Xmpdatum::tagName() const {
  303|  15.4k|  return p_->key_ ? p_->key_->tagName() : "";
  ------------------
  |  Branch (303:10): [True: 15.4k, False: 0]
  ------------------
  304|  15.4k|}
_ZNK5Exiv28Xmpdatum6typeIdEv:
  318|  14.3k|TypeId Xmpdatum::typeId() const {
  319|  14.3k|  return p_->value_ ? p_->value_->typeId() : invalidTypeId;
  ------------------
  |  Branch (319:10): [True: 14.3k, False: 0]
  ------------------
  320|  14.3k|}
_ZNK5Exiv28Xmpdatum5countEv:
  330|  3.44k|size_t Xmpdatum::count() const {
  331|  3.44k|  return p_->value_ ? p_->value_->count() : 0;
  ------------------
  |  Branch (331:10): [True: 3.44k, False: 0]
  ------------------
  332|  3.44k|}
_ZNK5Exiv28Xmpdatum8toStringEv:
  338|    782|std::string Xmpdatum::toString() const {
  339|    782|  return p_->value_ ? p_->value_->toString() : "";
  ------------------
  |  Branch (339:10): [True: 782, False: 0]
  ------------------
  340|    782|}
_ZNK5Exiv28Xmpdatum8toStringEm:
  342|  5.76k|std::string Xmpdatum::toString(size_t n) const {
  343|  5.76k|  return p_->value_ ? p_->value_->toString(n) : "";
  ------------------
  |  Branch (343:10): [True: 5.76k, False: 0]
  ------------------
  344|  5.76k|}
_ZNK5Exiv28Xmpdatum5valueEv:
  362|  24.0k|const Value& Xmpdatum::value() const {
  363|  24.0k|  if (!p_->value_)
  ------------------
  |  Branch (363:7): [True: 0, False: 24.0k]
  ------------------
  364|      0|    throw Error(ErrorCode::kerValueNotSet, key());
  365|  24.0k|  return *p_->value_;
  366|  24.0k|}
_ZNK5Exiv28Xmpdatum5writeERNSt3__113basic_ostreamIcNS1_11char_traitsIcEEEEPKNS_8ExifDataE:
  372|  17.9k|std::ostream& Xmpdatum::write(std::ostream& os, const ExifData*) const {
  373|  17.9k|  return XmpProperties::printProperty(os, key(), value());
  374|  17.9k|}
_ZN5Exiv28Xmpdatum8setValueERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  382|   873k|int Xmpdatum::setValue(const std::string& value) {
  383|   873k|  XmpProperties::XmpLock lock;
  384|   873k|  if (!p_->value_) {
  ------------------
  |  Branch (384:7): [True: 22.3k, False: 851k]
  ------------------
  385|  22.3k|    TypeId type = xmpText;
  386|  22.3k|    if (p_->key_) {
  ------------------
  |  Branch (386:9): [True: 22.3k, False: 0]
  ------------------
  387|  22.3k|      type = XmpProperties::propertyTypeUnlocked(*p_->key_.get(), lock);
  388|  22.3k|    }
  389|  22.3k|    p_->value_ = Value::create(type);
  390|  22.3k|  }
  391|   873k|  return p_->value_->read(value);
  392|   873k|}
_ZN5Exiv27XmpDataixERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  394|   874k|Xmpdatum& XmpData::operator[](const std::string& key) {
  395|   874k|  XmpProperties::XmpLock lock;
  396|   874k|  XmpKey xmpKey(key, lock);
  397|   874k|  auto pos = std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(xmpKey));
  398|   874k|  if (pos == xmpMetadata_.end()) {
  ------------------
  |  Branch (398:7): [True: 22.3k, False: 851k]
  ------------------
  399|  22.3k|    return xmpMetadata_.emplace_back(xmpKey);
  400|  22.3k|  }
  401|   851k|  return *pos;
  402|   874k|}
_ZN5Exiv27XmpData3addERKNS_6XmpKeyEPKNS_5ValueE:
  404|  3.47k|int XmpData::add(const XmpKey& key, const Value* value) {
  405|  3.47k|  XmpProperties::XmpLock lock;
  406|  3.47k|  return addUnlocked(key, value, lock);
  407|  3.47k|}
_ZN5Exiv27XmpData11addUnlockedERKNS_6XmpKeyEPKNS_5ValueERKNS_13XmpProperties7XmpLockE:
  409|  14.3k|int XmpData::addUnlocked(const XmpKey& key, const Value* value, const XmpProperties::XmpLock&) {
  410|  14.3k|  xmpMetadata_.emplace_back(key, value);
  411|  14.3k|  return 0;
  412|  14.3k|}
_ZNK5Exiv27XmpData7findKeyERKNS_6XmpKeyE:
  424|  4.43k|XmpData::const_iterator XmpData::findKey(const XmpKey& key) const {
  425|  4.43k|  XmpProperties::XmpLock lock;
  426|  4.43k|  return std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(key));
  427|  4.43k|}
_ZN5Exiv27XmpData7findKeyERKNS_6XmpKeyE:
  429|  73.7k|XmpData::iterator XmpData::findKey(const XmpKey& key) {
  430|  73.7k|  XmpProperties::XmpLock lock;
  431|  73.7k|  return std::find_if(xmpMetadata_.begin(), xmpMetadata_.end(), FindXmpdatum(key));
  432|  73.7k|}
_ZN5Exiv27XmpData5clearEv:
  434|  33.6k|void XmpData::clear() {
  435|  33.6k|  XmpProperties::XmpLock lock;
  436|  33.6k|  clearUnlocked(lock);
  437|  33.6k|}
_ZN5Exiv27XmpData13clearUnlockedERKNS_13XmpProperties7XmpLockE:
  439|  39.0k|void XmpData::clearUnlocked(const XmpProperties::XmpLock&) {
  440|  39.0k|  xmpMetadata_.clear();
  441|  39.0k|}
_ZNK5Exiv27XmpData5beginEv:
  452|    247|XmpData::const_iterator XmpData::begin() const {
  453|    247|  return xmpMetadata_.begin();
  454|    247|}
_ZNK5Exiv27XmpData3endEv:
  456|  4.68k|XmpData::const_iterator XmpData::end() const {
  457|  4.68k|  return xmpMetadata_.end();
  458|  4.68k|}
_ZNK5Exiv27XmpData5emptyEv:
  460|  1.96k|bool XmpData::empty() const {
  461|  1.96k|  XmpProperties::XmpLock lock;
  462|  1.96k|  return emptyUnlocked(lock);
  463|  1.96k|}
_ZNK5Exiv27XmpData13emptyUnlockedERKNS_13XmpProperties7XmpLockE:
  465|  20.0k|bool XmpData::emptyUnlocked(const XmpProperties::XmpLock&) const {
  466|  20.0k|  return xmpMetadata_.empty();
  467|  20.0k|}
_ZN5Exiv27XmpData5beginEv:
  478|  25.8k|XmpData::iterator XmpData::begin() {
  479|  25.8k|  return xmpMetadata_.begin();
  480|  25.8k|}
_ZN5Exiv27XmpData3endEv:
  482|  99.5k|XmpData::iterator XmpData::end() {
  483|  99.5k|  return xmpMetadata_.end();
  484|  99.5k|}
_ZN5Exiv227xmpToolkitEnsureInitializedEv:
  535|  25.5k|void xmpToolkitEnsureInitialized() {
  536|  25.5k|  static XmpToolkitLifetimeManager instance;
  537|  25.5k|  (void)instance;
  538|  25.5k|}
_ZN5Exiv29XmpParser14registerNsImplERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  540|  2.24k|void XmpParser::registerNsImpl(const std::string& ns, const std::string& prefix) {
  541|  2.24k|  xmpToolkitEnsureInitialized();
  542|  2.24k|  try {
  543|  2.24k|    std::string existingPrefix;
  544|  2.24k|    if (SXMPMeta::GetNamespacePrefix(ns.c_str(), &existingPrefix)) {
  ------------------
  |  Branch (544:9): [True: 2.13k, False: 107]
  ------------------
  545|  2.13k|      if (!existingPrefix.empty() && existingPrefix.back() == ':') {
  ------------------
  |  Branch (545:11): [True: 2.13k, False: 0]
  |  Branch (545:38): [True: 2.13k, False: 0]
  ------------------
  546|  2.13k|        existingPrefix.pop_back();
  547|  2.13k|      }
  548|  2.13k|      if (existingPrefix == prefix) {
  ------------------
  |  Branch (548:11): [True: 2.08k, False: 52]
  ------------------
  549|       |        // Already registered correctly, skip overhead
  550|  2.08k|        return;
  551|  2.08k|      }
  552|  2.13k|    }
  553|       |
  554|    159|    SXMPMeta::DeleteNamespace(ns.c_str());
  555|       |#ifdef EXV_ADOBE_XMPSDK
  556|       |    SXMPMeta::RegisterNamespace(ns.c_str(), prefix.c_str(), nullptr);
  557|       |#else
  558|    159|    SXMPMeta::RegisterNamespace(ns.c_str(), prefix.c_str());
  559|    159|#endif
  560|    159|  } catch (const XMP_Error& /* e */) {
  561|       |    // throw Error(ErrorCode::kerXMPToolkitError, e.GetID(), e.GetErrMsg());
  562|      0|  }
  563|  2.24k|}
_ZN5Exiv29XmpParser6decodeERNS_7XmpDataERKNSt3__112basic_stringIcNS3_11char_traitsIcEENS3_9allocatorIcEEEE:
  660|  6.00k|int XmpParser::decode(XmpData& xmpData, const std::string& xmpPacket) {
  661|  6.00k|  try {
  662|  6.00k|    xmpData.setPacket(xmpPacket);
  663|  6.00k|    if (xmpPacket.empty()) {
  ------------------
  |  Branch (663:9): [True: 691, False: 5.31k]
  ------------------
  664|    691|      xmpData.clear();
  665|    691|      return 0;
  666|    691|    }
  667|       |
  668|       |    // Acquire Giant Lock
  669|  5.31k|    XmpProperties::XmpLock lock;
  670|  5.31k|    try {
  671|  5.31k|      xmpToolkitEnsureInitialized();
  672|  5.31k|    } catch (const Error&) {
  673|      0|#ifndef SUPPRESS_WARNINGS
  674|      0|      EXV_ERROR << "XMP toolkit initialization failed.\n";
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  675|      0|#endif
  676|      0|      return 2;
  677|      0|    }
  678|       |
  679|  5.31k|    xmpData.clearUnlocked(lock);
  680|       |
  681|       |    // Make sure the unterminated substring is used
  682|  5.31k|    size_t len = xmpPacket.size();
  683|   880k|    while (len > 0 && 0 == xmpPacket[len - 1])
  ------------------
  |  Branch (683:12): [True: 880k, False: 29]
  |  Branch (683:23): [True: 875k, False: 5.28k]
  ------------------
  684|   875k|      --len;
  685|       |
  686|  5.31k|    XMLValidator::check(xmpPacket.data(), len);
  687|  5.31k|    SXMPMeta meta(xmpPacket.data(), static_cast<XMP_StringLen>(len));
  688|  5.31k|    SXMPIterator iter(meta);
  689|  5.31k|    std::string schemaNs;
  690|  5.31k|    std::string propPath;
  691|  5.31k|    std::string propValue;
  692|  5.31k|    XMP_OptionBits opt = 0;
  693|  21.1k|    while (iter.Next(&schemaNs, &propPath, &propValue, &opt)) {
  ------------------
  |  Branch (693:12): [True: 15.8k, False: 5.31k]
  ------------------
  694|  15.8k|      printNode(schemaNs, propPath, propValue, opt);
  695|  15.8k|      if (XMP_PropIsAlias(opt)) {
  ------------------
  |  Branch (695:11): [True: 0, False: 15.8k]
  ------------------
  696|      0|        throw Error(ErrorCode::kerAliasesNotSupported, schemaNs, propPath, propValue);
  697|      0|      }
  698|  15.8k|      if (XMP_NodeIsSchema(opt)) {
  ------------------
  |  Branch (698:11): [True: 4.97k, False: 10.8k]
  ------------------
  699|       |        // Register unknown namespaces with Exiv2
  700|       |        // (Namespaces are automatically registered with the XMP Toolkit)
  701|  4.97k|        if (XmpProperties::prefixUnlocked(schemaNs, lock).empty()) {
  ------------------
  |  Branch (701:13): [True: 2.01k, False: 2.96k]
  ------------------
  702|  2.01k|          std::string prefix;
  703|  2.01k|          if (!SXMPMeta::GetNamespacePrefix(schemaNs.c_str(), &prefix))
  ------------------
  |  Branch (703:15): [True: 0, False: 2.01k]
  ------------------
  704|      0|            throw Error(ErrorCode::kerSchemaNamespaceNotRegistered, schemaNs);
  705|  2.01k|          prefix.pop_back();
  706|  2.01k|          XmpProperties::registerNsUnlocked(schemaNs, prefix, lock);
  707|  2.01k|        }
  708|  4.97k|        continue;
  709|  4.97k|      }
  710|  10.8k|      auto key = makeXmpKey(schemaNs, propPath, lock);
  711|  10.8k|      if (XMP_ArrayIsAltText(opt)) {
  ------------------
  |  Branch (711:11): [True: 157, False: 10.7k]
  ------------------
  712|       |        // Read Lang Alt property
  713|    157|        auto val = std::make_unique<LangAltValue>();
  714|    157|        XMP_Index count = meta.CountArrayItems(schemaNs.c_str(), propPath.c_str());
  715|    310|        while (count-- > 0) {
  ------------------
  |  Branch (715:16): [True: 153, False: 157]
  ------------------
  716|       |          // Get the text
  717|    153|          bool haveNext = iter.Next(&schemaNs, &propPath, &propValue, &opt);
  718|    153|          printNode(schemaNs, propPath, propValue, opt);
  719|    153|          if (!haveNext || !XMP_PropIsSimple(opt) || !XMP_PropHasLang(opt)) {
  ------------------
  |  Branch (719:15): [True: 0, False: 153]
  |  Branch (719:28): [True: 0, False: 153]
  |  Branch (719:54): [True: 0, False: 153]
  ------------------
  720|      0|            throw Error(ErrorCode::kerDecodeLangAltPropertyFailed, propPath, opt);
  721|      0|          }
  722|    153|          std::string text = propValue;
  723|       |          // Get the language qualifier
  724|    153|          haveNext = iter.Next(&schemaNs, &propPath, &propValue, &opt);
  725|    153|          printNode(schemaNs, propPath, propValue, opt);
  726|    153|          if (!haveNext || !XMP_PropIsSimple(opt) || !XMP_PropIsQualifier(opt) ||
  ------------------
  |  Branch (726:15): [True: 0, False: 153]
  |  Branch (726:15): [True: 0, False: 153]
  |  Branch (726:28): [True: 0, False: 153]
  |  Branch (726:54): [True: 0, False: 153]
  ------------------
  727|    153|              propPath.substr(propPath.size() - 8, 8) != "xml:lang") {
  ------------------
  |  Branch (727:15): [True: 0, False: 153]
  ------------------
  728|      0|            throw Error(ErrorCode::kerDecodeLangAltQualifierFailed, propPath, opt);
  729|      0|          }
  730|    153|          val->value_[propValue] = std::move(text);
  731|    153|        }
  732|    157|        xmpData.addUnlocked(*key, val.get(), lock);
  733|    157|        continue;
  734|    157|      }
  735|  10.7k|      if (XMP_PropIsArray(opt) && !XMP_PropHasQualifiers(opt) && !XMP_ArrayIsAltText(opt)) {
  ------------------
  |  Branch (735:11): [True: 716, False: 9.99k]
  |  Branch (735:35): [True: 716, False: 0]
  |  Branch (735:66): [True: 716, False: 0]
  ------------------
  736|       |        // Check if all elements are simple
  737|    716|        bool simpleArray = true;
  738|    716|        SXMPIterator aIter(meta, schemaNs.c_str(), propPath.c_str());
  739|    716|        std::string aSchemaNs;
  740|    716|        std::string aPropPath;
  741|    716|        std::string aPropValue;
  742|    716|        XMP_OptionBits aOpt = 0;
  743|  2.83k|        while (aIter.Next(&aSchemaNs, &aPropPath, &aPropValue, &aOpt)) {
  ------------------
  |  Branch (743:16): [True: 2.24k, False: 596]
  ------------------
  744|  2.24k|          if (propPath == aPropPath)
  ------------------
  |  Branch (744:15): [True: 716, False: 1.52k]
  ------------------
  745|    716|            continue;
  746|  1.52k|          if (!XMP_PropIsSimple(aOpt) || XMP_PropHasQualifiers(aOpt) || XMP_PropIsQualifier(aOpt) ||
  ------------------
  |  Branch (746:15): [True: 81, False: 1.44k]
  |  Branch (746:42): [True: 39, False: 1.40k]
  |  Branch (746:73): [True: 0, False: 1.40k]
  ------------------
  747|  1.52k|              XMP_NodeIsSchema(aOpt) || XMP_PropIsAlias(aOpt)) {
  ------------------
  |  Branch (747:15): [True: 0, False: 1.40k]
  |  Branch (747:41): [True: 0, False: 1.40k]
  ------------------
  748|    120|            simpleArray = false;
  749|    120|            break;
  750|    120|          }
  751|  1.52k|        }
  752|    716|        if (simpleArray) {
  ------------------
  |  Branch (752:13): [True: 596, False: 120]
  ------------------
  753|       |          // Read the array into an XmpArrayValue
  754|    596|          auto val = std::make_unique<XmpArrayValue>(arrayValueTypeId(opt));
  755|    596|          XMP_Index count = meta.CountArrayItems(schemaNs.c_str(), propPath.c_str());
  756|  2.00k|          while (count-- > 0) {
  ------------------
  |  Branch (756:18): [True: 1.40k, False: 596]
  ------------------
  757|  1.40k|            iter.Next(&schemaNs, &propPath, &propValue, &opt);
  758|  1.40k|            printNode(schemaNs, propPath, propValue, opt);
  759|  1.40k|            val->read(propValue);
  760|  1.40k|          }
  761|    596|          xmpData.addUnlocked(*key, val.get(), lock);
  762|    596|          continue;
  763|    596|        }
  764|    716|      }
  765|       |
  766|  10.1k|      auto val = std::make_unique<XmpTextValue>();
  767|  10.1k|      if (XMP_PropIsStruct(opt) || XMP_PropIsArray(opt)) {
  ------------------
  |  Branch (767:11): [True: 275, False: 9.83k]
  |  Branch (767:36): [True: 120, False: 9.71k]
  ------------------
  768|       |        // Create a metadatum with only XMP options
  769|    395|        val->setXmpArrayType(xmpArrayType(opt));
  770|    395|        val->setXmpStruct(xmpStruct(opt));
  771|    395|        xmpData.addUnlocked(*key, val.get(), lock);
  772|    395|        continue;
  773|    395|      }
  774|  9.71k|      if (XMP_PropIsSimple(opt) || XMP_PropIsQualifier(opt)) {
  ------------------
  |  Branch (774:11): [True: 9.71k, False: 0]
  |  Branch (774:36): [True: 0, False: 0]
  ------------------
  775|  9.71k|        val->read(propValue);
  776|  9.71k|        xmpData.addUnlocked(*key, val.get(), lock);
  777|  9.71k|        continue;
  778|  9.71k|      }
  779|       |      // Don't let any node go by unnoticed
  780|      0|      throw Error(ErrorCode::kerUnhandledXmpNode, key->key(), opt);
  781|  9.71k|    }  // iterate through all XMP nodes
  782|       |
  783|  5.31k|    return 0;
  784|  5.31k|  }
  785|  6.00k|#ifndef SUPPRESS_WARNINGS
  786|  6.00k|  catch (const Error& e) {
  787|      4|    if (e.code() == ErrorCode::kerXMPToolkitError) {
  ------------------
  |  Branch (787:9): [True: 0, False: 4]
  ------------------
  788|       |      // Initialization failures caught above, this handles other XMP errors if any wrapped in Error
  789|      0|    }
  790|      4|    throw;
  791|  2.65k|  } catch (const XMP_Error& e) {
  792|  2.65k|    EXV_ERROR << Error(ErrorCode::kerXMPToolkitError, e.GetID(), e.GetErrMsg()) << "\n";
  ------------------
  |  |  142|  2.65k|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 2.65k]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|  2.65k|  LogMsg(LogMsg::error).os()
  ------------------
  793|  2.65k|    xmpData.clear();
  794|  2.65k|    return 3;
  795|  2.65k|  }
  796|       |#else
  797|       |  catch (const XMP_Error&) {
  798|       |    xmpData.clear();
  799|       |    return 3;
  800|       |  }
  801|       |#endif  // SUPPRESS_WARNINGS
  802|  6.00k|}  // XmpParser::decode
_ZN5Exiv29XmpParser6encodeERNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEERKNS_7XmpDataEtj:
  816|  18.0k|int XmpParser::encode(std::string& xmpPacket, const XmpData& xmpData, uint16_t formatFlags, uint32_t padding) {
  817|  18.0k|  try {
  818|       |    // Acquire Giant Lock
  819|  18.0k|    XmpProperties::XmpLock lock;
  820|  18.0k|    try {
  821|  18.0k|      xmpToolkitEnsureInitialized();
  822|  18.0k|    } catch (const Error&) {
  823|      0|#ifndef SUPPRESS_WARNINGS
  824|      0|      EXV_ERROR << "XMP toolkit initialization failed.\n";
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  825|      0|#endif
  826|      0|      return 2;
  827|      0|    }
  828|       |
  829|  18.0k|    if (xmpData.emptyUnlocked(lock)) {
  ------------------
  |  Branch (829:9): [True: 17.7k, False: 247]
  ------------------
  830|  17.7k|      xmpPacket.clear();
  831|  17.7k|      return 0;
  832|  17.7k|    }  // We are holding the Giant Lock, so we can iterate nsRegistry_ safely.
  833|       |    // XmpProperties interactions must go through Unlocked/impl methods to avoid deadlocks.
  834|  2.24k|    for (const auto& [xmp, uri] : XmpProperties::nsRegistry_) {
  ------------------
  |  Branch (834:33): [True: 2.24k, False: 247]
  ------------------
  835|       |#ifdef EXIV2_DEBUG_MESSAGES
  836|       |      std::cerr << "Registering " << uri.prefix_ << " : " << xmp << "\n";
  837|       |#endif
  838|       |      // registerNsImpl is safe since we hold the lock
  839|  2.24k|      registerNsImpl(xmp, uri.prefix_);
  840|  2.24k|    }
  841|       |
  842|    247|    SXMPMeta meta;
  843|  2.93k|    for (const auto& xmp : xmpData) {
  ------------------
  |  Branch (843:26): [True: 2.93k, False: 247]
  ------------------
  844|       |      // Must use Unlocked version of ns() because we hold the lock!
  845|  2.93k|      const std::string ns = XmpProperties::nsUnlocked(xmp.groupName(), lock);
  846|  2.93k|      XMP_OptionBits options = 0;
  847|       |
  848|  2.93k|      if (xmp.typeId() == langAlt) {
  ------------------
  |  Branch (848:11): [True: 61, False: 2.87k]
  ------------------
  849|       |        // Encode Lang Alt property
  850|     61|        const auto la = dynamic_cast<const LangAltValue*>(&xmp.value());
  851|     61|        if (!la)
  ------------------
  |  Branch (851:13): [True: 0, False: 61]
  ------------------
  852|      0|          throw Error(ErrorCode::kerEncodeLangAltPropertyFailed, xmp.key());
  853|       |
  854|     61|        int idx = 1;
  855|     61|        for (const auto& [lang, specs] : la->value_) {
  ------------------
  |  Branch (855:40): [True: 59, False: 61]
  ------------------
  856|     59|          if (!specs.empty()) {  // remove lang specs with no value
  ------------------
  |  Branch (856:15): [True: 58, False: 1]
  ------------------
  857|     58|            printNode(ns, xmp.tagName(), specs, 0);
  858|     58|            meta.AppendArrayItem(ns.c_str(), xmp.tagName().c_str(), kXMP_PropArrayIsAlternate, specs.c_str());
  859|     58|            const std::string item = xmp.tagName() + "[" + toString(idx++) + "]";
  860|     58|            meta.SetQualifier(ns.c_str(), item.c_str(), kXMP_NS_XML, "lang", lang.c_str());
  861|     58|          }
  862|     59|        }
  863|     61|        continue;
  864|     61|      }
  865|       |
  866|       |      // Todo: Xmpdatum should have an XmpValue, not a Value
  867|  2.87k|      const auto val = dynamic_cast<const XmpValue*>(&xmp.value());
  868|  2.87k|      if (!val)
  ------------------
  |  Branch (868:11): [True: 0, False: 2.87k]
  ------------------
  869|      0|        throw Error(ErrorCode::kerInvalidKeyXmpValue, xmp.key(), xmp.typeName());
  870|  2.87k|      options = xmpArrayOptionBits(val->xmpArrayType()) | xmpArrayOptionBits(val->xmpStruct());
  871|  2.87k|      if (xmp.typeId() == xmpBag || xmp.typeId() == xmpSeq || xmp.typeId() == xmpAlt) {
  ------------------
  |  Branch (871:11): [True: 45, False: 2.83k]
  |  Branch (871:37): [True: 191, False: 2.64k]
  |  Branch (871:63): [True: 15, False: 2.62k]
  ------------------
  872|    251|        printNode(ns, xmp.tagName(), "", options);
  873|    251|        meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), nullptr, options);
  874|    822|        for (size_t idx = 0; idx < xmp.count(); ++idx) {
  ------------------
  |  Branch (874:30): [True: 571, False: 251]
  ------------------
  875|    571|          const std::string item = xmp.tagName() + "[" + toString(idx + 1) + "]";
  876|    571|          printNode(ns, item, xmp.toString(static_cast<long>(idx)), 0);
  877|    571|          meta.SetProperty(ns.c_str(), item.c_str(), xmp.toString(static_cast<long>(idx)).c_str());
  878|    571|        }
  879|    251|        continue;
  880|    251|      }
  881|  2.62k|      if (xmp.typeId() == xmpText) {
  ------------------
  |  Branch (881:11): [True: 2.62k, False: 0]
  ------------------
  882|  2.62k|        const auto xt = dynamic_cast<const XmpTextValue*>(&xmp.value());
  883|  2.62k|        if (xmp.count() == 0 || xt->xmpStruct() != XmpValue::xsNone || xt->xmpArrayType() != XmpValue::xaNone) {
  ------------------
  |  Branch (883:13): [True: 155, False: 2.47k]
  |  Branch (883:33): [True: 108, False: 2.36k]
  |  Branch (883:72): [True: 52, False: 2.31k]
  ------------------
  884|    315|          printNode(ns, xmp.tagName(), "", options);
  885|    315|          meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), nullptr, options);
  886|  2.31k|        } else {
  887|  2.31k|          printNode(ns, xmp.tagName(), xmp.toString(0), options);
  888|  2.31k|          meta.SetProperty(ns.c_str(), xmp.tagName().c_str(), xmp.toString(0).c_str(), options);
  889|  2.31k|        }
  890|  2.62k|        continue;
  891|  2.62k|      }
  892|       |      // Don't let any Xmpdatum go by unnoticed
  893|      0|      throw Error(ErrorCode::kerUnhandledXmpdatum, xmp.tagName(), xmp.typeName());
  894|  2.62k|    }
  895|    247|    std::string tmpPacket;
  896|    247|    meta.SerializeToBuffer(&tmpPacket, xmpFormatOptionBits(static_cast<XmpFormatFlags>(formatFlags)),
  897|    247|                           padding);  // throws
  898|    247|    xmpPacket = std::move(tmpPacket);
  899|       |
  900|    247|    return 0;
  901|    247|  }
  902|  18.0k|#ifndef SUPPRESS_WARNINGS
  903|  18.0k|  catch (const Error& /* e */) {
  904|      0|    throw;
  905|      0|  } catch (const XMP_Error& e) {
  906|      0|    EXV_ERROR << Error(ErrorCode::kerXMPToolkitError, e.GetID(), e.GetErrMsg()) << "\n";
  ------------------
  |  |  142|      0|  if (LogMsg::error >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (142:7): [True: 0, False: 0]
  |  |  |  Branch (142:43): [True: 0, False: 0]
  |  |  ------------------
  |  |  143|      0|  LogMsg(LogMsg::error).os()
  ------------------
  907|      0|    return 3;
  908|      0|  }
  909|       |#else
  910|       |  catch (const XMP_Error&) {
  911|       |    return 3;
  912|       |  }
  913|       |#endif  // SUPPRESS_WARNINGS
  914|  18.0k|}  // XmpParser::encode
_ZN5Exiv29XmpParser10makeXmpKeyERKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_RKNS_13XmpProperties7XmpLockE:
 1076|  10.8k|                                                      const XmpProperties::XmpLock& lock) {
 1077|  10.8k|  std::string property;
 1078|  10.8k|  std::string::size_type idx = propPath.find(':');
 1079|  10.8k|  if (idx == std::string::npos) {
  ------------------
  |  Branch (1079:7): [True: 0, False: 10.8k]
  ------------------
 1080|      0|    throw Exiv2::Error(Exiv2::ErrorCode::kerPropertyNameIdentificationFailed, propPath, schemaNs);
 1081|      0|  }
 1082|       |  // Don't worry about out_of_range, XMP parser takes care of this
 1083|  10.8k|  property = propPath.substr(idx + 1);
 1084|  10.8k|  std::string prefix = Exiv2::XmpProperties::prefixUnlocked(schemaNs, lock);
 1085|  10.8k|  if (prefix.empty()) {
  ------------------
  |  Branch (1085:7): [True: 0, False: 10.8k]
  ------------------
 1086|      0|    throw Exiv2::Error(Exiv2::ErrorCode::kerNoPrefixForNamespace, propPath, schemaNs);
 1087|      0|  }
 1088|  10.8k|  return Exiv2::XmpKey::UniquePtr(new Exiv2::XmpKey(prefix, property, lock));
 1089|  10.8k|}  // makeXmpKey
xmp.cpp:_ZNK12_GLOBAL__N_112FindXmpdatumclERKN5Exiv28XmpdatumE:
  201|  11.8M|  bool operator()(const Exiv2::Xmpdatum& xmpdatum) const {
  202|  11.8M|    return key_ == xmpdatum.key();
  203|  11.8M|  }
xmp.cpp:_ZN12_GLOBAL__N_112FindXmpdatumC2ERKN5Exiv26XmpKeyE:
  195|   952k|  explicit FindXmpdatum(const Exiv2::XmpKey& key) : key_(key.key()) {
  196|   952k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator5checkEPKcm:
   66|  5.31k|  static void check(const char* buf, size_t buflen) {
   67|  5.31k|    XMLValidator validator;
   68|  5.31k|    validator.check_internal(buf, buflen);
   69|  5.31k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidatorC2Ev:
   77|  5.31k|  XMLValidator() : parser_(XML_ParserCreateNS(nullptr, '@')) {
   78|  5.31k|    if (!parser_) {
  ------------------
  |  Branch (78:9): [True: 0, False: 5.31k]
  ------------------
   79|      0|      throw Error(ErrorCode::kerXMPToolkitError, "Could not create expat parser");
   80|      0|    }
   81|  5.31k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator14check_internalEPKcm:
  102|  5.31k|  void check_internal(const char* buf, size_t buflen) {
  103|  5.31k|    if (buflen > static_cast<size_t>(std::numeric_limits<int>::max())) {
  ------------------
  |  Branch (103:9): [True: 0, False: 5.31k]
  ------------------
  104|      0|      throw Error(ErrorCode::kerXMPToolkitError, "Buffer length is greater than INT_MAX");
  105|      0|    }
  106|       |
  107|  5.31k|    XML_SetUserData(parser_, this);
  108|  5.31k|    XML_SetElementHandler(parser_, startElement_cb, endElement_cb);
  109|  5.31k|    XML_SetNamespaceDeclHandler(parser_, startNamespace_cb, endNamespace_cb);
  110|  5.31k|    XML_SetStartDoctypeDeclHandler(parser_, startDTD_cb);
  111|       |
  112|  5.31k|    if (XML_Parse(parser_, buf, static_cast<int>(buflen), true) == XML_STATUS_ERROR) {
  ------------------
  |  Branch (112:9): [True: 2.02k, False: 3.29k]
  ------------------
  113|  2.02k|      setError(XML_ErrorString(XML_GetErrorCode(parser_)));
  114|  2.02k|    }
  115|       |
  116|  5.31k|    if (haserror_) {
  ------------------
  |  Branch (116:9): [True: 2.02k, False: 3.29k]
  ------------------
  117|  2.02k|      throw XMP_Error(kXMPErr_BadXML, "Error in XMLValidator");
  118|  2.02k|    }
  119|  5.31k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator15startElement_cbEPvPKcPS3_:
  158|  30.5k|  static void XMLCALL startElement_cb(void* userData, const XML_Char* name, const XML_Char** attrs) noexcept {
  159|  30.5k|    static_cast<XMLValidator*>(userData)->startElement(name, attrs);
  160|  30.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator12startElementEPKcPS2_:
  121|  30.5k|  void startElement(const XML_Char*, const XML_Char**) noexcept {
  122|  30.5k|    if (element_depth_ > max_recursion_limit_) {
  ------------------
  |  Branch (122:9): [True: 1.54k, False: 29.0k]
  ------------------
  123|  1.54k|      setError("Too deeply nested");
  124|  1.54k|    }
  125|  30.5k|    ++element_depth_;
  126|  30.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator13endElement_cbEPvPKc:
  164|  18.5k|  static void XMLCALL endElement_cb(void* userData, const XML_Char* name) noexcept {
  165|  18.5k|    static_cast<XMLValidator*>(userData)->endElement(name);
  166|  18.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator10endElementEPKc:
  128|  18.5k|  void endElement(const XML_Char*) noexcept {
  129|  18.5k|    if (element_depth_ > 0) {
  ------------------
  |  Branch (129:9): [True: 18.5k, False: 0]
  ------------------
  130|  18.5k|      --element_depth_;
  131|  18.5k|    } else {
  132|      0|      setError("Negative depth");
  133|      0|    }
  134|  18.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator17startNamespace_cbEPvPKcS3_:
  170|  19.5k|  static void XMLCALL startNamespace_cb(void* userData, const XML_Char* prefix, const XML_Char* uri) noexcept {
  171|  19.5k|    static_cast<XMLValidator*>(userData)->startNamespace(prefix, uri);
  172|  19.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator14startNamespaceEPKcS2_:
  136|  19.5k|  void startNamespace(const XML_Char*, const XML_Char*) noexcept {
  137|  19.5k|    if (namespace_depth_ > max_recursion_limit_) {
  ------------------
  |  Branch (137:9): [True: 86, False: 19.4k]
  ------------------
  138|     86|      setError("Too deeply nested");
  139|     86|    }
  140|  19.5k|    ++namespace_depth_;
  141|  19.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator15endNamespace_cbEPvPKc:
  176|  10.5k|  static void XMLCALL endNamespace_cb(void* userData, const XML_Char* prefix) noexcept {
  177|  10.5k|    static_cast<XMLValidator*>(userData)->endNamespace(prefix);
  178|  10.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator12endNamespaceEPKc:
  143|  10.5k|  void endNamespace(const XML_Char*) noexcept {
  144|  10.5k|    if (namespace_depth_ > 0) {
  ------------------
  |  Branch (144:9): [True: 10.5k, False: 0]
  ------------------
  145|  10.5k|      --namespace_depth_;
  146|  10.5k|    } else {
  147|      0|      setError("Negative depth");
  148|      0|    }
  149|  10.5k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator11startDTD_cbEPvPKcS3_S3_i:
  181|     11|                                  const XML_Char* pubid, int has_internal_subset) noexcept {
  182|     11|    static_cast<XMLValidator*>(userData)->startDTD(doctypeName, sysid, pubid, has_internal_subset);
  183|     11|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator8startDTDEPKcS2_S2_i:
  151|     11|  void startDTD(const XML_Char*, const XML_Char*, const XML_Char*, int) noexcept {
  152|       |    // DOCTYPE is used for XXE attacks.
  153|     11|    setError("DOCTYPE not supported");
  154|     11|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidator8setErrorEPKc:
   87|  3.65k|  void setError(const char* msg) {
   88|  3.65k|    const XML_Size errlinenum = XML_GetCurrentLineNumber(parser_);
   89|  3.65k|    const XML_Size errcolnum = XML_GetCurrentColumnNumber(parser_);
   90|  3.65k|#ifndef SUPPRESS_WARNINGS
   91|  3.65k|    EXV_INFO << "Invalid XML at line " << errlinenum << ", column " << errcolnum << ": " << msg << "\n";
  ------------------
  |  |  134|  3.65k|  if (LogMsg::info >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (134:7): [True: 0, False: 3.65k]
  |  |  |  Branch (134:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  135|  3.65k|  LogMsg(LogMsg::info).os()
  ------------------
   92|  3.65k|#endif
   93|       |    // If this is the first error, then save it.
   94|  3.65k|    if (!haserror_) {
  ------------------
  |  Branch (94:9): [True: 2.02k, False: 1.63k]
  ------------------
   95|  2.02k|      haserror_ = true;
   96|  2.02k|      errmsg_ = msg;
   97|  2.02k|      errlinenum_ = errlinenum;
   98|  2.02k|      errcolnum_ = errcolnum;
   99|  2.02k|    }
  100|  3.65k|  }
xmp.cpp:_ZN12_GLOBAL__N_112XMLValidatorD2Ev:
   83|  5.31k|  ~XMLValidator() {
   84|  5.31k|    XML_ParserFree(parser_);
   85|  5.31k|  }
xmp.cpp:_ZN12_GLOBAL__N_19xmpStructEj:
  933|    395|Exiv2::XmpValue::XmpStruct xmpStruct(XMP_OptionBits opt) {
  934|    395|  Exiv2::XmpValue::XmpStruct var(Exiv2::XmpValue::xsNone);
  935|    395|  if (XMP_PropIsStruct(opt)) {
  ------------------
  |  Branch (935:7): [True: 275, False: 120]
  ------------------
  936|    275|    var = Exiv2::XmpValue::xsStruct;
  937|    275|  }
  938|    395|  return var;
  939|    395|}
xmp.cpp:_ZN12_GLOBAL__N_118xmpArrayOptionBitsEN5Exiv28XmpValue9XmpStructE:
  941|  2.87k|XMP_OptionBits xmpArrayOptionBits(Exiv2::XmpValue::XmpStruct xs) {
  942|  2.87k|  XMP_OptionBits var(0);
  943|  2.87k|  switch (xs) {
  ------------------
  |  Branch (943:11): [True: 2.87k, False: 0]
  ------------------
  944|  2.76k|    case Exiv2::XmpValue::xsNone:
  ------------------
  |  Branch (944:5): [True: 2.76k, False: 108]
  ------------------
  945|  2.76k|      break;
  946|    108|    case Exiv2::XmpValue::xsStruct:
  ------------------
  |  Branch (946:5): [True: 108, False: 2.76k]
  ------------------
  947|    108|      XMP_SetOption(var, kXMP_PropValueIsStruct);
  948|    108|      break;
  949|  2.87k|  }
  950|  2.87k|  return var;
  951|  2.87k|}
xmp.cpp:_ZN12_GLOBAL__N_116arrayValueTypeIdEj:
  953|    991|Exiv2::TypeId arrayValueTypeId(XMP_OptionBits opt) {
  954|    991|  Exiv2::TypeId typeId(Exiv2::invalidTypeId);
  955|    991|  if (XMP_PropIsArray(opt)) {
  ------------------
  |  Branch (955:7): [True: 716, False: 275]
  ------------------
  956|    716|    if (XMP_ArrayIsAlternate(opt))
  ------------------
  |  Branch (956:9): [True: 44, False: 672]
  ------------------
  957|     44|      typeId = Exiv2::xmpAlt;
  958|    672|    else if (XMP_ArrayIsOrdered(opt))
  ------------------
  |  Branch (958:14): [True: 555, False: 117]
  ------------------
  959|    555|      typeId = Exiv2::xmpSeq;
  960|    117|    else if (XMP_ArrayIsUnordered(opt))
  ------------------
  |  Branch (960:14): [True: 117, False: 0]
  ------------------
  961|    117|      typeId = Exiv2::xmpBag;
  962|    716|  }
  963|    991|  return typeId;
  964|    991|}
xmp.cpp:_ZN12_GLOBAL__N_112xmpArrayTypeEj:
  966|    395|Exiv2::XmpValue::XmpArrayType xmpArrayType(XMP_OptionBits opt) {
  967|    395|  return Exiv2::XmpValue::xmpArrayType(arrayValueTypeId(opt));
  968|    395|}
xmp.cpp:_ZN12_GLOBAL__N_118xmpArrayOptionBitsEN5Exiv28XmpValue12XmpArrayTypeE:
  970|  2.87k|XMP_OptionBits xmpArrayOptionBits(Exiv2::XmpValue::XmpArrayType xat) {
  971|  2.87k|  XMP_OptionBits var(0);
  972|  2.87k|  switch (xat) {
  ------------------
  |  Branch (972:11): [True: 2.87k, False: 0]
  ------------------
  973|  2.57k|    case Exiv2::XmpValue::xaNone:
  ------------------
  |  Branch (973:5): [True: 2.57k, False: 303]
  ------------------
  974|  2.57k|      break;
  975|     17|    case Exiv2::XmpValue::xaAlt:
  ------------------
  |  Branch (975:5): [True: 17, False: 2.85k]
  ------------------
  976|     17|      XMP_SetOption(var, kXMP_PropValueIsArray);
  977|     17|      XMP_SetOption(var, kXMP_PropArrayIsAlternate);
  978|     17|      break;
  979|    241|    case Exiv2::XmpValue::xaSeq:
  ------------------
  |  Branch (979:5): [True: 241, False: 2.63k]
  ------------------
  980|    241|      XMP_SetOption(var, kXMP_PropValueIsArray);
  981|    241|      XMP_SetOption(var, kXMP_PropArrayIsOrdered);
  982|    241|      break;
  983|     45|    case Exiv2::XmpValue::xaBag:
  ------------------
  |  Branch (983:5): [True: 45, False: 2.83k]
  ------------------
  984|     45|      XMP_SetOption(var, kXMP_PropValueIsArray);
  985|     45|      break;
  986|  2.87k|  }
  987|  2.87k|  return var;
  988|  2.87k|}
xmp.cpp:_ZN12_GLOBAL__N_119xmpFormatOptionBitsEN5Exiv29XmpParser14XmpFormatFlagsE:
  994|    247|XMP_OptionBits xmpFormatOptionBits(Exiv2::XmpParser::XmpFormatFlags flags) {
  995|    247|  XMP_OptionBits var(0);
  996|    247|  if (flags & Exiv2::XmpParser::omitPacketWrapper)
  ------------------
  |  Branch (996:7): [True: 0, False: 247]
  ------------------
  997|      0|    var |= kXMP_OmitPacketWrapper;
  998|    247|  if (flags & Exiv2::XmpParser::readOnlyPacket)
  ------------------
  |  Branch (998:7): [True: 0, False: 247]
  ------------------
  999|      0|    var |= kXMP_ReadOnlyPacket;
 1000|    247|  if (flags & Exiv2::XmpParser::useCompactFormat)
  ------------------
  |  Branch (1000:7): [True: 247, False: 0]
  ------------------
 1001|    247|    var |= kXMP_UseCompactFormat;
 1002|    247|  if (flags & Exiv2::XmpParser::includeThumbnailPad)
  ------------------
  |  Branch (1002:7): [True: 0, False: 247]
  ------------------
 1003|      0|    var |= kXMP_IncludeThumbnailPad;
 1004|    247|  if (flags & Exiv2::XmpParser::exactPacketLength)
  ------------------
  |  Branch (1004:7): [True: 0, False: 247]
  ------------------
 1005|      0|    var |= kXMP_ExactPacketLength;
 1006|    247|  if (flags & Exiv2::XmpParser::writeAliasComments)
  ------------------
  |  Branch (1006:7): [True: 0, False: 247]
  ------------------
 1007|      0|    var |= kXMP_WriteAliasComments;
 1008|    247|  if (flags & Exiv2::XmpParser::omitAllFormatting)
  ------------------
  |  Branch (1008:7): [True: 45, False: 202]
  ------------------
 1009|     45|    var |= kXMP_OmitAllFormatting;
 1010|    247|  return var;
 1011|    247|}
xmp.cpp:_ZN12_GLOBAL__N_19printNodeERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_S8_j:
 1069|  21.0k|void printNode(const std::string&, const std::string&, const std::string&, XMP_OptionBits) {
 1070|  21.0k|}
_ZN5Exiv28Xmpdatum4ImplD2Ev:
  244|  76.8k|  ~Impl() = default;

_ZN5Exiv225XmpToolkitLifetimeManagerC2Ev:
   33|      1|  XmpToolkitLifetimeManager() {
   34|      1|    if (SXMPMeta::Initialize()) {
  ------------------
  |  Branch (34:9): [True: 1, False: 0]
  ------------------
   35|       |#ifdef EXV_ADOBE_XMPSDK
   36|       |      SXMPMeta::RegisterNamespace("http://ns.adobe.com/lightroom/1.0/", "lr", nullptr);
   37|       |      SXMPMeta::RegisterNamespace("http://rs.tdwg.org/dwc/index.htm", "dwc", nullptr);
   38|       |      SXMPMeta::RegisterNamespace("http://purl.org/dc/terms/", "dcterms", nullptr);
   39|       |      SXMPMeta::RegisterNamespace("http://www.digikam.org/ns/1.0/", "digiKam", nullptr);
   40|       |      SXMPMeta::RegisterNamespace("http://www.digikam.org/ns/kipi/1.0/", "kipi", nullptr);
   41|       |      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.0/", "MicrosoftPhoto", nullptr);
   42|       |      SXMPMeta::RegisterNamespace("http://ns.acdsee.com/iptc/1.0/", "acdsee", nullptr);
   43|       |      SXMPMeta::RegisterNamespace("http://iptc.org/std/Iptc4xmpExt/2008-02-29/", "iptcExt", nullptr);
   44|       |      SXMPMeta::RegisterNamespace("http://ns.useplus.org/ldf/xmp/1.0/", "plus", nullptr);
   45|       |      SXMPMeta::RegisterNamespace("http://ns.iview-multimedia.com/mediapro/1.0/", "mediapro", nullptr);
   46|       |      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/expressionmedia/1.0/", "expressionmedia", nullptr);
   47|       |      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/", "MP", nullptr);
   48|       |      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/t/RegionInfo#", "MPRI", nullptr);
   49|       |      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/t/Region#", "MPReg", nullptr);
   50|       |      SXMPMeta::RegisterNamespace("http://ns.google.com/photos/1.0/panorama/", "GPano", nullptr);
   51|       |      SXMPMeta::RegisterNamespace("http://www.metadataworkinggroup.com/schemas/regions/", "mwg-rs", nullptr);
   52|       |      SXMPMeta::RegisterNamespace("http://www.metadataworkinggroup.com/schemas/keywords/", "mwg-kw", nullptr);
   53|       |      SXMPMeta::RegisterNamespace("http://ns.adobe.com/xmp/sType/Area#", "stArea", nullptr);
   54|       |      SXMPMeta::RegisterNamespace("http://cipa.jp/exif/1.0/", "exifEX", nullptr);
   55|       |      SXMPMeta::RegisterNamespace("http://ns.adobe.com/camera-raw-saved-settings/1.0/", "crss", nullptr);
   56|       |      SXMPMeta::RegisterNamespace("http://www.audio/", "audio", nullptr);
   57|       |      SXMPMeta::RegisterNamespace("http://www.video/", "video", nullptr);
   58|       |#else
   59|      1|      SXMPMeta::RegisterNamespace("http://ns.adobe.com/lightroom/1.0/", "lr");
   60|      1|      SXMPMeta::RegisterNamespace("http://rs.tdwg.org/dwc/index.htm", "dwc");
   61|      1|      SXMPMeta::RegisterNamespace("http://purl.org/dc/terms/", "dcterms");
   62|      1|      SXMPMeta::RegisterNamespace("http://www.digikam.org/ns/1.0/", "digiKam");
   63|      1|      SXMPMeta::RegisterNamespace("http://www.digikam.org/ns/kipi/1.0/", "kipi");
   64|      1|      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.0/", "MicrosoftPhoto");
   65|      1|      SXMPMeta::RegisterNamespace("http://ns.acdsee.com/iptc/1.0/", "acdsee");
   66|      1|      SXMPMeta::RegisterNamespace("http://iptc.org/std/Iptc4xmpExt/2008-02-29/", "iptcExt");
   67|      1|      SXMPMeta::RegisterNamespace("http://ns.useplus.org/ldf/xmp/1.0/", "plus");
   68|      1|      SXMPMeta::RegisterNamespace("http://ns.iview-multimedia.com/mediapro/1.0/", "mediapro");
   69|      1|      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/expressionmedia/1.0/", "expressionmedia");
   70|      1|      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/", "MP");
   71|      1|      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/t/RegionInfo#", "MPRI");
   72|      1|      SXMPMeta::RegisterNamespace("http://ns.microsoft.com/photo/1.2/t/Region#", "MPReg");
   73|      1|      SXMPMeta::RegisterNamespace("http://ns.google.com/photos/1.0/panorama/", "GPano");
   74|      1|      SXMPMeta::RegisterNamespace("http://www.metadataworkinggroup.com/schemas/regions/", "mwg-rs");
   75|      1|      SXMPMeta::RegisterNamespace("http://www.metadataworkinggroup.com/schemas/keywords/", "mwg-kw");
   76|      1|      SXMPMeta::RegisterNamespace("http://ns.adobe.com/xmp/sType/Area#", "stArea");
   77|      1|      SXMPMeta::RegisterNamespace("http://cipa.jp/exif/1.0/", "exifEX");
   78|      1|      SXMPMeta::RegisterNamespace("http://ns.adobe.com/camera-raw-saved-settings/1.0/", "crss");
   79|      1|      SXMPMeta::RegisterNamespace("http://www.audio/", "audio");
   80|      1|      SXMPMeta::RegisterNamespace("http://www.video/", "video");
   81|      1|#endif
   82|      1|    } else {
   83|      0|      throw Error(ErrorCode::kerXMPToolkitError, 2, "Failed to initialize XMP Toolkit");
   84|      0|    }
   85|      1|  }
_ZN5Exiv225XmpToolkitLifetimeManagerD2Ev:
   87|      1|  ~XmpToolkitLifetimeManager() {
   88|       |    // Use Unsafe version to avoid acquiring mutex during static destruction.
   89|       |    // This is safe because static destruction is single-threaded per C++ standard.
   90|      1|    XmpProperties::unregisterAllNsNoLock(XmpProperties::LifetimeKey{});
   91|      1|    SXMPMeta::Terminate();
   92|      1|  }

_ZN5Exiv210XmpSidecarC2ENSt3__110unique_ptrINS_7BasicIoENS1_14default_deleteIS3_EEEEb:
   29|    587|XmpSidecar::XmpSidecar(BasicIo::UniquePtr io, bool create) : Image(ImageType::xmp, mdXmp, std::move(io)) {
   30|    587|  if (create && io_->open() == 0) {
  ------------------
  |  Branch (30:7): [True: 0, False: 587]
  |  Branch (30:17): [True: 0, False: 0]
  ------------------
   31|      0|    IoCloser closer(*io_);
   32|      0|    io_->write(reinterpret_cast<const byte*>(xmlHeader), xmlHdrCnt);
   33|      0|  }
   34|    587|}  // XmpSidecar::XmpSidecar
_ZN5Exiv210XmpSidecar12readMetadataEv:
   45|    587|void XmpSidecar::readMetadata() {
   46|       |#ifdef EXIV2_DEBUG_MESSAGES
   47|       |  std::cerr << "Reading XMP file " << io_->path() << "\n";
   48|       |#endif
   49|    587|  if (io_->open() != 0) {
  ------------------
  |  Branch (49:7): [True: 0, False: 587]
  ------------------
   50|      0|    throw Error(ErrorCode::kerDataSourceOpenFailed, io_->path(), strError());
   51|      0|  }
   52|    587|  IoCloser closer(*io_);
   53|       |  // Ensure that this is the correct image type
   54|    587|  if (!isXmpType(*io_, false)) {
  ------------------
  |  Branch (54:7): [True: 0, False: 587]
  ------------------
   55|      0|    if (io_->error() || io_->eof())
  ------------------
  |  Branch (55:9): [True: 0, False: 0]
  |  Branch (55:25): [True: 0, False: 0]
  ------------------
   56|      0|      throw Error(ErrorCode::kerFailedToReadImageData);
   57|      0|    throw Error(ErrorCode::kerNotAnImage, "XMP");
   58|      0|  }
   59|       |  // Read the XMP packet from the IO stream
   60|    587|  std::string xmpPacket;
   61|    587|  const long len = 64 * 1024;
   62|    587|  auto buf = std::make_unique<byte[]>(len);
   63|  1.29k|  while (auto l = io_->read(buf.get(), len)) {
  ------------------
  |  Branch (63:15): [True: 706, False: 587]
  ------------------
   64|    706|    xmpPacket.append(reinterpret_cast<char*>(buf.get()), l);
   65|    706|  }
   66|    587|  if (io_->error())
  ------------------
  |  Branch (66:7): [True: 0, False: 587]
  ------------------
   67|      0|    throw Error(ErrorCode::kerFailedToReadImageData);
   68|    587|  clearMetadata();
   69|    587|  xmpPacket_ = std::move(xmpPacket);
   70|    587|  if (!xmpPacket_.empty() && XmpParser::decode(xmpData_, xmpPacket_)) {
  ------------------
  |  Branch (70:7): [True: 586, False: 1]
  |  Branch (70:30): [True: 91, False: 495]
  ------------------
   71|     91|#ifndef SUPPRESS_WARNINGS
   72|     91|    EXV_WARNING << "Failed to decode XMP metadata.\n";
  ------------------
  |  |  138|     91|  if (LogMsg::warn >= LogMsg::level() && LogMsg::handler()) \
  |  |  ------------------
  |  |  |  Branch (138:7): [True: 0, False: 91]
  |  |  |  Branch (138:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  139|     91|  LogMsg(LogMsg::warn).os()
  ------------------
   73|     91|#endif
   74|     91|  }
   75|       |
   76|       |  // #1112 - store dates to deal with loss of TZ information during conversions
   77|    587|  for (const auto& xmp : xmpData_) {
  ------------------
  |  Branch (77:24): [True: 475, False: 587]
  ------------------
   78|    475|    std::string key(xmp.key());
   79|    475|    if (Internal::contains(key, "Date")) {
  ------------------
  |  Branch (79:9): [True: 205, False: 270]
  ------------------
   80|    205|      dates_[key] = xmp.value().toString();
   81|    205|    }
   82|    475|  }
   83|       |
   84|    587|  copyXmpToIptc(xmpData_, iptcData_);
   85|    587|  copyXmpToExif(xmpData_, exifData_);
   86|    587|}  // XmpSidecar::readMetadata
_ZN5Exiv214newXmpInstanceENSt3__110unique_ptrINS_7BasicIoENS0_14default_deleteIS2_EEEEb:
  152|    587|Image::UniquePtr newXmpInstance(BasicIo::UniquePtr io, bool create) {
  153|    587|  auto image = std::make_unique<XmpSidecar>(std::move(io), create);
  154|    587|  if (!image->good()) {
  ------------------
  |  Branch (154:7): [True: 0, False: 587]
  ------------------
  155|      0|    return nullptr;
  156|      0|  }
  157|    587|  return image;
  158|    587|}
_ZN5Exiv29isXmpTypeERNS_7BasicIoEb:
  160|  11.9k|bool isXmpType(BasicIo& iIo, bool advance) {
  161|       |  /*
  162|       |    Check if the file starts with an optional XML declaration followed by
  163|       |    either an XMP header (<?xpacket ... ?>) or an <x:xmpmeta> element.
  164|       |
  165|       |    In addition, in order for empty XmpSidecar objects as created by
  166|       |    Exiv2 to pass the test, just an XML header is also considered ok.
  167|       |   */
  168|  11.9k|  const int32_t len = 80;
  169|  11.9k|  byte buf[len];
  170|  11.9k|  iIo.read(buf, xmlHdrCnt + 1);
  171|  11.9k|  if (iIo.eof() && 0 == strncmp(reinterpret_cast<const char*>(buf), xmlHeader, xmlHdrCnt)) {
  ------------------
  |  Branch (171:7): [True: 114, False: 11.8k]
  |  Branch (171:20): [True: 3, False: 111]
  ------------------
  172|      3|    return true;
  173|      3|  }
  174|  11.9k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (174:7): [True: 0, False: 11.9k]
  |  Branch (174:22): [True: 111, False: 11.8k]
  ------------------
  175|    111|    return false;
  176|    111|  }
  177|  11.8k|  iIo.read(buf + xmlHdrCnt + 1, len - xmlHdrCnt - 1);
  178|  11.8k|  if (iIo.error() || iIo.eof()) {
  ------------------
  |  Branch (178:7): [True: 0, False: 11.8k]
  |  Branch (178:22): [True: 28, False: 11.8k]
  ------------------
  179|     28|    return false;
  180|     28|  }
  181|       |  // Skip leading BOM
  182|  11.8k|  int32_t start = 0;
  183|  11.8k|  if (0 == strncmp(reinterpret_cast<const char*>(buf), "\xef\xbb\xbf", 3)) {
  ------------------
  |  Branch (183:7): [True: 233, False: 11.6k]
  ------------------
  184|    233|    start = 3;
  185|    233|  }
  186|  11.8k|  bool rc = false;
  187|  11.8k|  std::string head(reinterpret_cast<const char*>(buf + start), len - start);
  188|  11.8k|  if (head.starts_with("<?xml")) {
  ------------------
  |  Branch (188:7): [True: 38, False: 11.8k]
  ------------------
  189|       |    // Forward to the next tag
  190|     38|    auto it = std::find(head.begin() + 5, head.end(), '<');
  191|     38|    if (it != head.end())
  ------------------
  |  Branch (191:9): [True: 29, False: 9]
  ------------------
  192|     29|      head = head.substr(std::distance(head.begin(), it));
  193|     38|  }
  194|  11.8k|  if (head.starts_with("<?xpacket") || head.starts_with("<x:xmpmeta")) {
  ------------------
  |  Branch (194:7): [True: 39, False: 11.8k]
  |  Branch (194:40): [True: 1.71k, False: 10.0k]
  ------------------
  195|  1.75k|    rc = true;
  196|  1.75k|  }
  197|  11.8k|  if (!advance || !rc) {
  ------------------
  |  Branch (197:7): [True: 11.8k, False: 0]
  |  Branch (197:19): [True: 0, False: 0]
  ------------------
  198|  11.8k|    iIo.seek(-(len - start), BasicIo::cur);  // Swallow the BOM
  199|  11.8k|  }
  200|  11.8k|  return rc;
  201|  11.8k|}

XMP_NewExpatAdapter:
   68|  3.29k|{
   69|  3.29k|	return new ExpatAdapter;
   70|  3.29k|}	// XMP_NewExpatAdapter
_ZN12ExpatAdapterC2Ev:
   74|  3.29k|ExpatAdapter::ExpatAdapter() : parser(0)
   75|  3.29k|{
   76|       |
   77|       |	#if XMP_DebugBuild
   78|       |		this->elemNesting = 0;
   79|       |		#if DumpXMLParseEvents
   80|       |			if ( this->parseLog == 0 ) this->parseLog = stdout;
   81|       |		#endif
   82|       |	#endif
   83|       |
   84|  3.29k|	this->parser = XML_ParserCreateNS ( 0, FullNameSeparator );
  ------------------
  |  |   33|  3.29k|#define FullNameSeparator	'@'
  ------------------
   85|  3.29k|	if ( this->parser == 0 ) XMP_Throw ( "Failure creating Expat parser", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (85:7): [True: 0, False: 3.29k]
  ------------------
   86|       |	
   87|  3.29k|	XML_SetUserData ( this->parser, this );
   88|       |	
   89|  3.29k|	XML_SetNamespaceDeclHandler ( this->parser, StartNamespaceDeclHandler, EndNamespaceDeclHandler );
   90|  3.29k|	XML_SetElementHandler ( this->parser, StartElementHandler, EndElementHandler );
   91|       |
   92|  3.29k|	XML_SetCharacterDataHandler ( this->parser, CharacterDataHandler );
   93|  3.29k|	XML_SetCdataSectionHandler ( this->parser, StartCdataSectionHandler, EndCdataSectionHandler );
   94|       |
   95|  3.29k|	XML_SetProcessingInstructionHandler ( this->parser, ProcessingInstructionHandler );
   96|  3.29k|	XML_SetCommentHandler ( this->parser, CommentHandler );
   97|       |
   98|  3.29k|	#if BanAllEntityUsage
   99|  3.29k|		XML_SetStartDoctypeDeclHandler ( this->parser, StartDoctypeDeclHandler );
  100|  3.29k|		isAborted = false;
  101|  3.29k|	#endif
  102|       |
  103|  3.29k|	this->parseStack.push_back ( &this->tree );	// Push the XML root node.
  104|       |
  105|  3.29k|}	// ExpatAdapter::ExpatAdapter
_ZN12ExpatAdapterD2Ev:
  110|  3.29k|{
  111|       |
  112|  3.29k|	if ( this->parser != 0 ) XML_ParserFree ( this->parser );
  ------------------
  |  Branch (112:7): [True: 3.29k, False: 0]
  ------------------
  113|  3.29k|	this->parser = 0;
  114|       |
  115|  3.29k|}	// ExpatAdapter::~ExpatAdapter
_ZN12ExpatAdapter11ParseBufferEPKvmb:
  126|  3.29k|{
  127|  3.29k|	enum XML_Status status;
  128|       |	
  129|  3.29k|	if ( length == 0 ) {	// Expat does not like empty buffers.
  ------------------
  |  Branch (129:7): [True: 0, False: 3.29k]
  ------------------
  130|      0|		if ( ! last ) return;
  ------------------
  |  Branch (130:8): [True: 0, False: 0]
  ------------------
  131|      0|		buffer = kOneSpace;
  132|      0|		length = 1;
  133|      0|	}
  134|       |	
  135|  3.29k|	status = XML_Parse ( this->parser, (const char *)buffer, length, last );
  136|       |	
  137|  3.29k|	#if BanAllEntityUsage
  138|  3.29k|		if ( this->isAborted ) XMP_Throw ( "DOCTYPE is not allowed", kXMPErr_BadXML );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (138:8): [True: 0, False: 3.29k]
  ------------------
  139|  3.29k|	#endif
  140|       |
  141|  3.29k|	if ( status != XML_STATUS_OK ) {
  ------------------
  |  Branch (141:7): [True: 3, False: 3.29k]
  ------------------
  142|       |	
  143|      3|		XMP_StringPtr errMsg = "XML parsing failure";
  144|       |
  145|       |		#if 0	// XMP_DebugBuild	// Disable for now to make test output uniform. Restore later with thread safety.
  146|       |		
  147|       |			// *** This is a good candidate for a callback error notification mechanism.
  148|       |			// *** This code is not thread safe, the sExpatMessage isn't locked. But that's OK for debug usage.
  149|       |
  150|       |			enum XML_Error expatErr = XML_GetErrorCode ( this->parser );
  151|       |			const char *   expatMsg = XML_ErrorString ( expatErr );
  152|       |			int errLine = XML_GetCurrentLineNumber ( this->parser );
  153|       |		
  154|       |			char msgBuffer[1000];
  155|       |			// AUDIT: Use of sizeof(msgBuffer) for snprintf length is safe.
  156|       |			snprintf ( msgBuffer, sizeof(msgBuffer), "# Expat error %d at line %d, \"%s\"", expatErr, errLine, expatMsg );
  157|       |			sExpatMessage = msgBuffer;
  158|       |			errMsg = sExpatMessage.c_str();
  159|       |
  160|       |			#if  DumpXMLParseEvents
  161|       |				if ( this->parseLog != 0 ) fprintf ( this->parseLog, "%s\n", errMsg, expatErr, errLine, expatMsg );
  162|       |			#endif
  163|       |
  164|       |		#endif
  165|       |
  166|      3|		XMP_Throw ( errMsg, kXMPErr_BadXML );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  167|       |
  168|      0|	}
  169|       |	
  170|  3.29k|}	// ExpatAdapter::ParseBuffer
ExpatAdapter.cpp:_ZL25StartNamespaceDeclHandlerPvPKcS1_:
  242|  10.4k|{
  243|  10.4k|	IgnoreParam(userData);
  ------------------
  |  |  117|  10.4k|#define IgnoreParam(p)	(void)p
  ------------------
  244|       |	
  245|       |	// As a bug fix hack, change a URI of "http://purl.org/dc/1.1/" to ""http://purl.org/dc/elements/1.1/.
  246|       |	// Early versions of Flash that put XMP in SWF used a bad URI for the dc: namespace.
  247|       |	
  248|       |	#if XMP_DebugBuild & DumpXMLParseEvents		// Avoid unused variable warning.
  249|       |		ExpatAdapter * thiz = (ExpatAdapter*)userData;
  250|       |	#endif
  251|       |
  252|  10.4k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (252:7): [True: 15, False: 10.3k]
  ------------------
  253|  10.4k|	if ( uri == 0 ) return;	// Ignore, have xmlns:pre="", no URI to register.
  ------------------
  |  Branch (253:7): [True: 6, False: 10.3k]
  ------------------
  254|       |	
  255|       |	#if XMP_DebugBuild & DumpXMLParseEvents
  256|       |		if ( thiz->parseLog != 0 ) {
  257|       |			PrintIndent ( thiz->parseLog, thiz->elemNesting );
  258|       |			fprintf ( thiz->parseLog, "StartNamespace: %s - \"%s\"\n", prefix, uri );
  259|       |		}
  260|       |	#endif
  261|       |	
  262|  10.3k|	if ( XMP_LitMatch ( uri, "http://purl.org/dc/1.1/" ) ) uri = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  |   96|  10.3k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  |  |  ------------------
  |  |  |  Branch (96:28): [True: 127, False: 10.2k]
  |  |  ------------------
  ------------------
  263|  10.3k|	XMPMeta::RegisterNamespace ( uri, prefix );
  264|       |
  265|  10.3k|}	// StartNamespaceDeclHandler
ExpatAdapter.cpp:_ZL23EndNamespaceDeclHandlerPvPKc:
  270|  10.4k|{
  271|  10.4k|	IgnoreParam(userData);
  ------------------
  |  |  117|  10.4k|#define IgnoreParam(p)	(void)p
  ------------------
  272|       |
  273|       |	#if XMP_DebugBuild & DumpXMLParseEvents		// Avoid unused variable warning.
  274|       |		ExpatAdapter * thiz = (ExpatAdapter*)userData;
  275|       |	#endif
  276|       |
  277|  10.4k|	if ( prefix == 0 ) prefix = "_dflt_";	// Have default namespace.
  ------------------
  |  Branch (277:7): [True: 15, False: 10.3k]
  ------------------
  278|       |	
  279|       |	#if XMP_DebugBuild & DumpXMLParseEvents
  280|       |		if ( thiz->parseLog != 0 ) {
  281|       |			PrintIndent ( thiz->parseLog, thiz->elemNesting );
  282|       |			fprintf ( thiz->parseLog, "EndNamespace: %s\n", prefix );
  283|       |		}
  284|       |	#endif
  285|       |	
  286|       |	// ! Nothing to do, Expat has done all of the XML processing.
  287|       |
  288|  10.4k|}	// EndNamespaceDeclHandler
ExpatAdapter.cpp:_ZL19StartElementHandlerPvPKcPS1_:
  293|  18.3k|{
  294|  18.3k|	XMP_Assert ( attrs != 0 );
  ------------------
  |  |  142|  18.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  295|  18.3k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  296|       |	
  297|  18.3k|	size_t attrCount = 0;
  298|  45.0k|	for ( XMP_StringPtr* a = attrs; *a != 0; ++a ) ++attrCount;
  ------------------
  |  Branch (298:34): [True: 26.7k, False: 18.3k]
  ------------------
  299|  18.3k|	if ( (attrCount & 1) != 0 )	XMP_Throw ( "Expat attribute info has odd length", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (299:7): [True: 0, False: 18.3k]
  ------------------
  300|  18.3k|	attrCount = attrCount/2;	// They are name/value pairs.
  301|       |	
  302|       |	#if XMP_DebugBuild & DumpXMLParseEvents
  303|       |		if ( thiz->parseLog != 0 ) {
  304|       |			PrintIndent ( thiz->parseLog, thiz->elemNesting );
  305|       |			fprintf ( thiz->parseLog, "StartElement: %s, %d attrs", name, attrCount );
  306|       |			for ( XMP_StringPtr* attr = attrs; *attr != 0; attr += 2 ) {
  307|       |				XMP_StringPtr attrName = *attr;
  308|       |				XMP_StringPtr attrValue = *(attr+1);
  309|       |				fprintf ( thiz->parseLog, ", %s = \"%s\"", attrName, attrValue );
  310|       |			}
  311|       |			fprintf ( thiz->parseLog, "\n" );
  312|       |		}
  313|       |	#endif
  314|       |
  315|  18.3k|	XML_Node * parentNode = thiz->parseStack.back();
  316|  18.3k|	XML_Node * elemNode   = new XML_Node ( parentNode, "", kElemNode );
  317|       |	
  318|  18.3k|	SetQualName ( name, elemNode );
  319|       |	
  320|  31.6k|	for ( XMP_StringPtr* attr = attrs; *attr != 0; attr += 2 ) {
  ------------------
  |  Branch (320:37): [True: 13.3k, False: 18.3k]
  ------------------
  321|       |
  322|  13.3k|		XMP_StringPtr attrName = *attr;
  323|  13.3k|		XMP_StringPtr attrValue = *(attr+1);
  324|  13.3k|		XML_Node * attrNode = new XML_Node ( elemNode, "", kAttrNode );
  325|       |
  326|  13.3k|		SetQualName ( attrName, attrNode );
  327|  13.3k|		attrNode->value = attrValue;
  328|  13.3k|		if ( attrNode->name == "xml:lang" ) NormalizeLangValue ( &attrNode->value );
  ------------------
  |  Branch (328:8): [True: 374, False: 12.9k]
  ------------------
  329|  13.3k|		elemNode->attrs.push_back ( attrNode );
  330|       |
  331|  13.3k|	}
  332|       |	
  333|  18.3k|	parentNode->content.push_back ( elemNode );
  334|  18.3k|	thiz->parseStack.push_back ( elemNode );
  335|       |	
  336|  18.3k|	if ( elemNode->name == "rdf:RDF" ) {
  ------------------
  |  Branch (336:7): [True: 3.17k, False: 15.1k]
  ------------------
  337|  3.17k|		thiz->rootNode = elemNode;
  338|  3.17k|		++thiz->rootCount;
  339|  3.17k|	}
  340|       |	#if XMP_DebugBuild
  341|       |		++thiz->elemNesting;
  342|       |	#endif
  343|       |
  344|  18.3k|}	// StartElementHandler
ExpatAdapter.cpp:_ZL11SetQualNamePKcP8XML_Node:
  187|  31.6k|{
  188|       |	// Expat delivers the full name as a catenation of namespace URI, separator, and local name.
  189|       |
  190|       |	// As a compatibility hack, an "about" or "ID" attribute of an rdf:Description element is
  191|       |	// changed to "rdf:about" or rdf:ID. Easier done here than in the RDF recognizer.
  192|       |	
  193|       |	// As a bug fix hack, change a URI of "http://purl.org/dc/1.1/" to ""http://purl.org/dc/elements/1.1/.
  194|       |	// Early versions of Flash that put XMP in SWF used a bad URI for the dc: namespace.
  195|       |
  196|       |	// ! This code presumes the RDF namespace prefix is "rdf".
  197|       |
  198|  31.6k|	size_t sepPos = strlen(fullName);
  199|   359k|	for ( --sepPos; sepPos > 0; --sepPos ) {
  ------------------
  |  Branch (199:18): [True: 358k, False: 904]
  ------------------
  200|   358k|		if ( fullName[sepPos] == FullNameSeparator ) break;
  ------------------
  |  |   33|   358k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (200:8): [True: 30.7k, False: 328k]
  ------------------
  201|   358k|	}
  202|       |
  203|  31.6k|	if ( fullName[sepPos] == FullNameSeparator ) {
  ------------------
  |  |   33|  31.6k|#define FullNameSeparator	'@'
  ------------------
  |  Branch (203:7): [True: 30.7k, False: 904]
  ------------------
  204|       |
  205|  30.7k|		XMP_StringPtr prefix;
  206|  30.7k|		XMP_StringLen prefixLen;
  207|  30.7k|		XMP_StringPtr localPart = fullName + sepPos + 1;
  208|       |
  209|  30.7k|		node->ns.assign ( fullName, sepPos );
  210|  30.7k|		if ( node->ns == "http://purl.org/dc/1.1/" ) node->ns = "http://purl.org/dc/elements/1.1/";
  ------------------
  |  Branch (210:8): [True: 300, False: 30.4k]
  ------------------
  211|       |
  212|  30.7k|		bool found = XMPMeta::GetNamespacePrefix ( node->ns.c_str(), &prefix, &prefixLen );
  213|  30.7k|		if ( ! found ) XMP_Throw ( "Unknown URI in Expat full name", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (213:8): [True: 0, False: 30.7k]
  ------------------
  214|  30.7k|		node->nsPrefixLen = prefixLen;	// ! Includes the ':'.
  215|       |		
  216|  30.7k|		node->name = prefix;
  217|  30.7k|		node->name += localPart;
  218|       |
  219|  30.7k|	} else {
  220|       |
  221|    904|		node->name = fullName;	// The name is not in a namespace.
  222|       |	
  223|    904|		if ( node->parent->name == "rdf:Description" ) {
  ------------------
  |  Branch (223:8): [True: 361, False: 543]
  ------------------
  224|    361|			if ( node->name == "about" ) {
  ------------------
  |  Branch (224:9): [True: 59, False: 302]
  ------------------
  225|     59|				node->ns   = kXMP_NS_RDF;
  226|     59|				node->name = "rdf:about";
  227|     59|				node->nsPrefixLen = 4;	// ! Include the ':'.
  228|    302|			} else if ( node->name == "ID" ) {
  ------------------
  |  Branch (228:16): [True: 21, False: 281]
  ------------------
  229|     21|				node->ns   = kXMP_NS_RDF;
  230|     21|				node->name = "rdf:ID";
  231|     21|				node->nsPrefixLen = 4;	// ! Include the ':'.
  232|     21|			}
  233|    361|		}
  234|       |		
  235|    904|	}
  236|       |
  237|  31.6k|}	// SetQualName
ExpatAdapter.cpp:_ZL17EndElementHandlerPvPKc:
  349|  18.3k|{
  350|  18.3k|	IgnoreParam(name);
  ------------------
  |  |  117|  18.3k|#define IgnoreParam(p)	(void)p
  ------------------
  351|       |	
  352|  18.3k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  353|       |
  354|       |	#if XMP_DebugBuild
  355|       |		--thiz->elemNesting;
  356|       |	#endif
  357|  18.3k|	(void) thiz->parseStack.pop_back();
  358|       |	
  359|       |	#if XMP_DebugBuild & DumpXMLParseEvents
  360|       |		if ( thiz->parseLog != 0 ) {
  361|       |			PrintIndent ( thiz->parseLog, thiz->elemNesting );
  362|       |			fprintf ( thiz->parseLog, "EndElement: %s\n", name );
  363|       |		}
  364|       |	#endif
  365|       |
  366|  18.3k|}	// EndElementHandler
ExpatAdapter.cpp:_ZL20CharacterDataHandlerPvPKci:
  371|  36.8k|{
  372|  36.8k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  373|       |	
  374|  36.8k|	if ( (cData == 0) || (len == 0) ) { cData = ""; len = 0; }
  ------------------
  |  Branch (374:7): [True: 0, False: 36.8k]
  |  Branch (374:23): [True: 0, False: 36.8k]
  ------------------
  375|       |	
  376|       |	#if XMP_DebugBuild & DumpXMLParseEvents
  377|       |		if ( thiz->parseLog != 0 ) {
  378|       |			PrintIndent ( thiz->parseLog, thiz->elemNesting );
  379|       |			fprintf ( thiz->parseLog, "CharContent: \"" );
  380|       |			for ( int i = 0; i < len; ++i ) fprintf ( thiz->parseLog, "%c", cData[i] );
  381|       |			fprintf ( thiz->parseLog, "\"\n" );
  382|       |		}
  383|       |	#endif
  384|       |	
  385|  36.8k|	XML_Node * parentNode = thiz->parseStack.back();
  386|  36.8k|	XML_Node * cDataNode  = new XML_Node ( parentNode, "", kCDataNode );
  387|       |	
  388|  36.8k|	cDataNode->value.assign ( cData, len );
  389|  36.8k|	parentNode->content.push_back ( cDataNode );
  390|       |	
  391|  36.8k|}	// CharacterDataHandler
ExpatAdapter.cpp:_ZL28ProcessingInstructionHandlerPvPKcS1_:
  436|  1.34k|{
  437|  1.34k|	XMP_Assert ( target != 0 );
  ------------------
  |  |  142|  1.34k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  438|  1.34k|	ExpatAdapter * thiz = (ExpatAdapter*)userData;
  439|       |
  440|  1.34k|	if ( ! XMP_LitMatch ( target, "xpacket" ) ) return;	// Ignore all PIs except the XMP packet wrapper.
  ------------------
  |  |   96|  1.34k|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  |  Branch (440:7): [True: 622, False: 725]
  ------------------
  441|    725|	if ( data == 0 ) data = "";
  ------------------
  |  Branch (441:7): [True: 0, False: 725]
  ------------------
  442|       |	
  443|       |	#if XMP_DebugBuild & DumpXMLParseEvents
  444|       |		if ( thiz->parseLog != 0 ) {
  445|       |			PrintIndent ( thiz->parseLog, thiz->elemNesting );
  446|       |			fprintf ( thiz->parseLog, "PI: %s - \"%s\"\n", target, data );
  447|       |		}
  448|       |	#endif
  449|       |	
  450|    725|	XML_Node * parentNode = thiz->parseStack.back();
  451|    725|	XML_Node * piNode  = new XML_Node ( parentNode, target, kPINode );
  452|       |	
  453|    725|	piNode->value.assign ( data );
  454|    725|	parentNode->content.push_back ( piNode );
  455|       |	
  456|    725|}	// ProcessingInstructionHandler

_Z10ProcessRDFP8XMP_NodeRK8XML_Nodej:
  624|  3.11k|{
  625|  3.11k|	IgnoreParam(options);
  ------------------
  |  |  117|  3.11k|#define IgnoreParam(p)	(void)p
  ------------------
  626|       |	
  627|  3.11k|	RDF_RDF ( xmpTree, rdfNode );
  628|       |
  629|  3.11k|}	// ProcessRDF
ParseRDF.cpp:_ZL7RDF_RDFP8XMP_NodeRK8XML_Node:
  646|  3.11k|{
  647|       |
  648|  3.11k|	if ( ! xmlNode.attrs.empty() ) XMP_Throw ( "Invalid attributes of rdf:RDF element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     19|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (648:7): [True: 19, False: 3.09k]
  ------------------
  649|  3.09k|	RDF_NodeElementList ( xmpTree, xmlNode, kIsTopLevel );
  650|       |
  651|  3.09k|}	// RDF_RDF
ParseRDF.cpp:_ZL19RDF_NodeElementListP8XMP_NodeRK8XML_Nodeb:
  663|  3.09k|{
  664|  3.09k|	XMP_Assert ( isTopLevel );
  ------------------
  |  |  142|  3.09k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  665|       |	
  666|  3.09k|	XML_cNodePos currChild = xmlParent.content.begin();	// *** Change these loops to the indexed pattern.
  667|  3.09k|	XML_cNodePos endChild  = xmlParent.content.end();
  668|       |
  669|  7.47k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (669:10): [True: 4.38k, False: 3.09k]
  ------------------
  670|  4.38k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (670:8): [True: 1.25k, False: 3.12k]
  ------------------
  671|  3.12k|		RDF_NodeElement ( xmpParent, **currChild, isTopLevel );
  672|  3.12k|	}
  673|       |
  674|  3.09k|}	// RDF_NodeElementList
ParseRDF.cpp:_ZL15RDF_NodeElementP8XMP_NodeRK8XML_Nodeb:
  694|  4.15k|{
  695|  4.15k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  696|  4.15k|	if ( (nodeTerm != kRDFTerm_Description) && (nodeTerm != kRDFTerm_Other) ) {
  ------------------
  |  Branch (696:7): [True: 1.06k, False: 3.09k]
  |  Branch (696:45): [True: 2, False: 1.06k]
  ------------------
  697|      2|		XMP_Throw ( "Node element must be rdf:Description or typedNode", kXMPErr_BadRDF );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  698|      0|	}
  699|       |
  700|  4.15k|	if ( isTopLevel && (nodeTerm == kRDFTerm_Other) ) {
  ------------------
  |  Branch (700:7): [True: 3.12k, False: 1.02k]
  |  Branch (700:21): [True: 33, False: 3.09k]
  ------------------
  701|     33|		XMP_Throw ( "Top level typedNode not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|     33|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  702|  4.12k|	} else {
  703|  4.12k|		RDF_NodeElementAttrs ( xmpParent, xmlNode, isTopLevel );
  704|  4.12k|		RDF_PropertyElementList ( xmpParent, xmlNode, isTopLevel );
  705|  4.12k|	}
  706|       |
  707|  4.15k|}	// RDF_NodeElement
ParseRDF.cpp:_ZL14GetRDFTermKindRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  264|  21.1k|{
  265|  21.1k|	RDFTermKind term = kRDFTerm_Other;
  266|       |
  267|       |	// Arranged to hopefully minimize the parse time for large XMP.
  268|       |
  269|  21.1k|	if ( (name.size() > 4) && (strncmp ( name.c_str(), "rdf:", 4 ) == 0) ) {
  ------------------
  |  Branch (269:7): [True: 21.0k, False: 62]
  |  Branch (269:28): [True: 9.15k, False: 11.9k]
  ------------------
  270|       |
  271|  9.15k|		if ( name == "rdf:li" ) {
  ------------------
  |  Branch (271:8): [True: 2.01k, False: 7.13k]
  ------------------
  272|  2.01k|			term = kRDFTerm_li;
  273|  7.13k|		} else if ( name == "rdf:parseType" ) {
  ------------------
  |  Branch (273:15): [True: 3, False: 7.13k]
  ------------------
  274|      3|			term = kRDFTerm_parseType;
  275|  7.13k|		} else if ( name == "rdf:Description" ) {
  ------------------
  |  Branch (275:15): [True: 3.09k, False: 4.03k]
  ------------------
  276|  3.09k|			term = kRDFTerm_Description;
  277|  4.03k|		} else if ( name == "rdf:about" ) {
  ------------------
  |  Branch (277:15): [True: 216, False: 3.82k]
  ------------------
  278|    216|			term = kRDFTerm_about;
  279|  3.82k|		} else if ( name == "rdf:resource" ) {
  ------------------
  |  Branch (279:15): [True: 4, False: 3.81k]
  ------------------
  280|      4|			term = kRDFTerm_resource;
  281|  3.81k|		} else if ( name == "rdf:RDF" ) {
  ------------------
  |  Branch (281:15): [True: 38, False: 3.78k]
  ------------------
  282|     38|			term = kRDFTerm_RDF;
  283|  3.78k|		} else if ( name == "rdf:ID" ) {
  ------------------
  |  Branch (283:15): [True: 182, False: 3.59k]
  ------------------
  284|    182|			term = kRDFTerm_ID;
  285|  3.59k|		} else if ( name == "rdf:nodeID" ) {
  ------------------
  |  Branch (285:15): [True: 30, False: 3.56k]
  ------------------
  286|     30|			term = kRDFTerm_nodeID;
  287|  3.56k|		} else if ( name == "rdf:datatype" ) {
  ------------------
  |  Branch (287:15): [True: 3, False: 3.56k]
  ------------------
  288|      3|			term = kRDFTerm_datatype;
  289|  3.56k|		} else if ( name == "rdf:aboutEach" ) {
  ------------------
  |  Branch (289:15): [True: 9, False: 3.55k]
  ------------------
  290|      9|			term = kRDFTerm_aboutEach;
  291|  3.55k|		} else if ( name == "rdf:aboutEachPrefix" ) {
  ------------------
  |  Branch (291:15): [True: 6, False: 3.55k]
  ------------------
  292|      6|			term = kRDFTerm_aboutEachPrefix;
  293|  3.55k|		} else if ( name == "rdf:bagID" ) {
  ------------------
  |  Branch (293:15): [True: 20, False: 3.53k]
  ------------------
  294|     20|			term = kRDFTerm_bagID;
  295|     20|		}
  296|       |
  297|  9.15k|	}
  298|       |
  299|  21.1k|	return term;
  300|       |
  301|  21.1k|}	// GetRDFTermKind
ParseRDF.cpp:_ZL20RDF_NodeElementAttrsP8XMP_NodeRK8XML_Nodeb:
  731|  4.12k|{
  732|  4.12k|	XMP_OptionBits exclusiveAttrs = 0;	// Used to detect attributes that are mutually exclusive.
  733|       |
  734|  4.12k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  735|  4.12k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  736|       |
  737|  13.2k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (737:10): [True: 9.57k, False: 3.70k]
  ------------------
  738|       |
  739|  9.57k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
  740|       |
  741|  9.57k|		switch ( attrTerm ) {
  742|       |
  743|     87|			case kRDFTerm_ID     :
  ------------------
  |  Branch (743:4): [True: 87, False: 9.48k]
  ------------------
  744|    102|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (744:4): [True: 15, False: 9.55k]
  ------------------
  745|    318|			case kRDFTerm_about  :
  ------------------
  |  Branch (745:4): [True: 216, False: 9.35k]
  ------------------
  746|       |
  747|    318|				if ( exclusiveAttrs & kExclusiveAttrMask ) XMP_Throw ( "Mutally exclusive about, ID, nodeID attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (747:10): [True: 1, False: 317]
  ------------------
  748|    317|				exclusiveAttrs |= (1 << attrTerm);
  749|       |
  750|    317|				if ( isTopLevel && (attrTerm == kRDFTerm_about) ) {
  ------------------
  |  Branch (750:10): [True: 317, False: 0]
  |  Branch (750:24): [True: 216, False: 101]
  ------------------
  751|       |					// This is the rdf:about attribute on a top level node. Set the XMP tree name if
  752|       |					// it doesn't have a name yet. Make sure this name matches the XMP tree name.
  753|    216|					XMP_Assert ( xmpParent->parent == 0 );	// Must be the tree root node.
  ------------------
  |  |  142|    216|	#define XMP_Assert(c)	((void) 0)
  ------------------
  754|    216|					if ( xmpParent->name.empty() ) {
  ------------------
  |  Branch (754:11): [True: 216, False: 0]
  ------------------
  755|    216|						xmpParent->name = (*currAttr)->value;
  756|    216|					} else if ( ! (*currAttr)->value.empty() ) {
  ------------------
  |  Branch (756:18): [True: 0, False: 0]
  ------------------
  757|      0|						if ( xmpParent->name != (*currAttr)->value ) XMP_Throw ( "Mismatched top level rdf:about values", kXMPErr_BadXMP );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (757:12): [True: 0, False: 0]
  ------------------
  758|      0|					}
  759|    216|				}
  760|       |
  761|    317|				break;
  762|       |
  763|  9.18k|			case kRDFTerm_Other :
  ------------------
  |  Branch (763:4): [True: 9.18k, False: 392]
  ------------------
  764|  9.18k|				AddChildNode ( xmpParent, **currAttr, (*currAttr)->value.c_str(), isTopLevel );
  765|  9.18k|				break;
  766|       |
  767|     74|			default :
  ------------------
  |  Branch (767:4): [True: 74, False: 9.50k]
  ------------------
  768|     74|				XMP_Throw ( "Invalid nodeElement attribute", kXMPErr_BadRDF );
  ------------------
  |  |  199|     74|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  769|       |
  770|  9.57k|		}
  771|       |
  772|  9.57k|	}
  773|       |
  774|  4.12k|}	// RDF_NodeElementAttrs
ParseRDF.cpp:_ZL12AddChildNodeP8XMP_NodeRK8XML_NodePKcb:
  362|  15.1k|{
  363|       |	#if 0
  364|       |		cout << "AddChildNode, parent = " << xmpParent->name << ", child = " << xmlNode.name;
  365|       |		cout << ", value = \"" << value << '"';
  366|       |		if ( isTopLevel ) cout << ", top level";
  367|       |		cout << endl;
  368|       |	#endif
  369|       |	
  370|  15.1k|	if ( xmlNode.ns.empty() ) {
  ------------------
  |  Branch (370:7): [True: 267, False: 14.9k]
  ------------------
  371|    267|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|    267|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  372|      0|	}
  373|       |		
  374|  14.9k|	XMP_StringPtr  childName    = xmlNode.name.c_str();
  375|  14.9k|	const bool     isArrayItem  = (xmlNode.name == "rdf:li");
  376|  14.9k|	const bool     isValueNode  = (xmlNode.name == "rdf:value");
  377|  14.9k|	XMP_OptionBits childOptions = 0;
  378|       |	
  379|  14.9k|	if ( isTopLevel ) {
  ------------------
  |  Branch (379:7): [True: 12.0k, False: 2.88k]
  ------------------
  380|       |
  381|       |		// Lookup the schema node, adjust the XMP parent pointer.
  382|  12.0k|		XMP_Assert ( xmpParent->parent == 0 );	// Incoming parent must be the tree root.
  ------------------
  |  |  142|  12.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  383|  12.0k|		XMP_Node * schemaNode = FindSchemaNode ( xmpParent, xmlNode.ns.c_str(), kXMP_CreateNodes );
  ------------------
  |  |  295|  12.0k|#define kXMP_CreateNodes	true
  ------------------
  384|  12.0k|		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  12.0k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
              		if ( schemaNode->options & kXMP_NewImplicitNode ) schemaNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  5.62k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (384:8): [True: 5.62k, False: 6.42k]
  ------------------
  385|       |			// *** Should use "opt &= ~flag" (no conditional), need runtime check for proper 32 bit code.
  386|  12.0k|		xmpParent = schemaNode;
  387|       |		
  388|       |		// If this is an alias set the isAlias flag in the node and the hasAliases flag in the tree.
  389|  12.0k|		if ( sRegisteredAliasMap->find ( xmlNode.name ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (389:8): [True: 0, False: 12.0k]
  ------------------
  390|      0|			childOptions |= kXMP_PropIsAlias;
  391|      0|			schemaNode->parent->options |= kXMP_PropHasAliases;
  392|      0|		}
  393|       |		
  394|  12.0k|	}
  395|       |
  396|       |	// Make sure that this is not a duplicate of a named node.
  397|  14.9k|	if ( ! (isArrayItem | isValueNode) ) {
  ------------------
  |  Branch (397:7): [True: 12.8k, False: 2.06k]
  ------------------
  398|  12.8k|		if ( FindChildNode ( xmpParent, childName, kXMP_ExistingOnly ) != 0 ) {
  ------------------
  |  |  296|  12.8k|#define kXMP_ExistingOnly	false
  ------------------
  |  Branch (398:8): [True: 1, False: 12.8k]
  ------------------
  399|      1|			XMP_Throw ( "Duplicate property or field node", kXMPErr_BadXMP );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  400|      0|		}
  401|       |		
  402|  12.8k|	}
  403|       |	
  404|       |	// Add the new child to the XMP parent node.
  405|  14.9k|	XMP_Node * newChild = new XMP_Node ( xmpParent, childName, value, childOptions );
  406|  14.9k|	if ( (! isValueNode) || xmpParent->children.empty() ) {
  ------------------
  |  Branch (406:7): [True: 14.8k, False: 81]
  |  Branch (406:26): [True: 45, False: 36]
  ------------------
  407|  14.8k|		 xmpParent->children.push_back ( newChild );
  408|  14.8k|	} else {
  409|     48|		 xmpParent->children.insert ( xmpParent->children.begin(), newChild );
  410|     48|	}
  411|  14.9k|	if ( isValueNode ) {
  ------------------
  |  Branch (411:7): [True: 81, False: 14.8k]
  ------------------
  412|     81|		if ( isTopLevel || (! (xmpParent->options & kXMP_PropValueIsStruct)) ) XMP_Throw ( "Misplaced rdf:value element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     81|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (412:8): [True: 81, False: 0]
  |  Branch (412:22): [True: 0, False: 0]
  ------------------
  413|      0|		xmpParent->options |= kRDF_HasValueElem;
  414|      0|	}
  415|       |	
  416|  14.8k|	if ( isArrayItem ) {
  ------------------
  |  Branch (416:7): [True: 1.98k, False: 12.8k]
  ------------------
  417|  1.98k|		if ( ! (xmpParent->options & kXMP_PropValueIsArray) ) XMP_Throw ( "Misplaced rdf:li element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (417:8): [True: 3, False: 1.98k]
  ------------------
  418|  1.98k|		newChild->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|  1.98k|#define kXMP_ArrayItemName	"[]"
  ------------------
  419|       |		#if 0	// *** XMP_DebugBuild
  420|       |			newChild->_namePtr = newChild->name.c_str();
  421|       |		#endif
  422|  1.98k|	}
  423|       |	
  424|  14.8k|	return newChild;
  425|       |
  426|  14.8k|}	// AddChildNode
ParseRDF.cpp:_ZL23RDF_PropertyElementListP8XMP_NodeRK8XML_Nodeb:
  786|  3.70k|{
  787|  3.70k|	XML_cNodePos currChild = xmlParent.content.begin();
  788|  3.70k|	XML_cNodePos endChild  = xmlParent.content.end();
  789|       |
  790|  18.4k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (790:10): [True: 14.7k, False: 3.65k]
  ------------------
  791|  14.7k|		if ( (*currChild)->IsWhitespaceNode() ) continue;
  ------------------
  |  Branch (791:8): [True: 9.56k, False: 5.21k]
  ------------------
  792|  5.21k|		if ( (*currChild)->kind != kElemNode ) {
  ------------------
  |  Branch (792:8): [True: 52, False: 5.16k]
  ------------------
  793|     52|			XMP_Throw ( "Expected property element node not found", kXMPErr_BadRDF );
  ------------------
  |  |  199|     52|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  794|      0|		}
  795|  5.16k|		RDF_PropertyElement ( xmpParent, **currChild, isTopLevel );
  796|  5.16k|	}
  797|       |
  798|  3.70k|}	// RDF_PropertyElementList
ParseRDF.cpp:_ZL19RDF_PropertyElementP8XMP_NodeRK8XML_Nodeb:
  853|  5.16k|{
  854|  5.16k|	RDFTermKind nodeTerm = GetRDFTermKind ( xmlNode.name );
  855|  5.16k|	if ( ! IsPropertyElementName ( nodeTerm ) ) XMP_Throw ( "Invalid property element name", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (855:7): [True: 3, False: 5.15k]
  ------------------
  856|       |	
  857|  5.15k|	if ( xmlNode.attrs.size() > 3 ) {
  ------------------
  |  Branch (857:7): [True: 106, False: 5.05k]
  ------------------
  858|       |
  859|       |		// Only an emptyPropertyElt can have more than 3 attributes.
  860|    106|		RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  861|       |
  862|  5.05k|	} else {
  863|       |
  864|       |		// Look through the attributes for one that isn't rdf:ID or xml:lang, it will usually tell
  865|       |		// what we should be dealing with. The called routines must verify their specific syntax!
  866|       |
  867|  5.05k|		XML_cNodePos currAttr = xmlNode.attrs.begin();
  868|  5.05k|		XML_cNodePos endAttr  = xmlNode.attrs.end();
  869|  5.05k|		XMP_VarString * attrName = 0;
  870|       |
  871|  5.29k|		for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (871:11): [True: 543, False: 4.74k]
  ------------------
  872|    543|			attrName = &((*currAttr)->name);
  873|    543|			if ( (*attrName != "xml:lang") && (*attrName != "rdf:ID") ) break;
  ------------------
  |  Branch (873:9): [True: 357, False: 186]
  |  Branch (873:38): [True: 306, False: 51]
  ------------------
  874|    543|		}
  875|       |
  876|  5.05k|		if ( currAttr != endAttr ) {
  ------------------
  |  Branch (876:8): [True: 306, False: 4.74k]
  ------------------
  877|       |
  878|    306|			XMP_Assert ( attrName != 0 );
  ------------------
  |  |  142|    306|	#define XMP_Assert(c)	((void) 0)
  ------------------
  879|    306|			XMP_VarString& attrValue = (*currAttr)->value;
  880|       |
  881|    306|			if ( *attrName == "rdf:datatype" ) {
  ------------------
  |  Branch (881:9): [True: 0, False: 306]
  ------------------
  882|      0|				RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  883|    306|			} else if ( *attrName != "rdf:parseType" ) {
  ------------------
  |  Branch (883:16): [True: 295, False: 11]
  ------------------
  884|    295|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  885|    295|			} else if ( attrValue == "Literal" ) {
  ------------------
  |  Branch (885:16): [True: 0, False: 11]
  ------------------
  886|      0|				RDF_ParseTypeLiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  887|     11|			} else if ( attrValue == "Resource" ) {
  ------------------
  |  Branch (887:16): [True: 0, False: 11]
  ------------------
  888|      0|				RDF_ParseTypeResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  889|     11|			} else if ( attrValue == "Collection" ) {
  ------------------
  |  Branch (889:16): [True: 0, False: 11]
  ------------------
  890|      0|				RDF_ParseTypeCollectionPropertyElement ( xmpParent, xmlNode, isTopLevel );
  891|     11|			} else {
  892|     11|				RDF_ParseTypeOtherPropertyElement ( xmpParent, xmlNode, isTopLevel );
  893|     11|			}
  894|       |
  895|  4.74k|		} else {
  896|       |
  897|       |			// Only rdf:ID and xml:lang, could be a resourcePropertyElt, a literalPropertyElt, or an.
  898|       |			// emptyPropertyElt. Look at the child XML nodes to decide which.
  899|       |
  900|  4.74k|			if ( xmlNode.content.empty() ) {
  ------------------
  |  Branch (900:9): [True: 1.58k, False: 3.15k]
  ------------------
  901|       |
  902|  1.58k|				RDF_EmptyPropertyElement ( xmpParent, xmlNode, isTopLevel );
  903|       |
  904|  3.15k|			} else {
  905|       |			
  906|  3.15k|				XML_cNodePos currChild = xmlNode.content.begin();
  907|  3.15k|				XML_cNodePos endChild  = xmlNode.content.end();
  908|       |
  909|  8.79k|				for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (909:13): [True: 6.69k, False: 2.09k]
  ------------------
  910|  6.69k|					if ( (*currChild)->kind != kCDataNode ) break;
  ------------------
  |  Branch (910:11): [True: 1.05k, False: 5.64k]
  ------------------
  911|  6.69k|				}
  912|       |				
  913|  3.15k|				if ( currChild == endChild ) {
  ------------------
  |  Branch (913:10): [True: 2.09k, False: 1.05k]
  ------------------
  914|  2.09k|					RDF_LiteralPropertyElement ( xmpParent, xmlNode, isTopLevel );
  915|  2.09k|				} else {
  916|  1.05k|					RDF_ResourcePropertyElement ( xmpParent, xmlNode, isTopLevel );
  917|  1.05k|				}
  918|       |			
  919|  3.15k|			}
  920|       |
  921|  4.74k|		}
  922|       |		
  923|  5.05k|	}
  924|       |
  925|  5.15k|}	// RDF_PropertyElement
ParseRDF.cpp:_ZL21IsPropertyElementNameh:
  349|  5.16k|{
  350|       |
  351|  5.16k|	if 	( (term == kRDFTerm_Description) || IsOldTerm ( term ) ) return false;
  ------------------
  |  Branch (351:8): [True: 0, False: 5.16k]
  |  Branch (351:42): [True: 0, False: 5.16k]
  ------------------
  352|  5.16k|	return (! IsCoreSyntaxTerm ( term ));
  353|       |
  354|  5.16k|}	// IsPropertyElementName
ParseRDF.cpp:_ZL9IsOldTermh:
  333|  5.16k|{
  334|       |
  335|  5.16k|	if 	( (kRDFTerm_FirstOld <= term) && (term <= kRDFTerm_LastOld) ) return true;
  ------------------
  |  Branch (335:8): [True: 0, False: 5.16k]
  |  Branch (335:39): [True: 0, False: 0]
  ------------------
  336|  5.16k|	return false;
  337|       |
  338|  5.16k|}	// IsOldTerm
ParseRDF.cpp:_ZL16IsCoreSyntaxTermh:
  316|  5.16k|{
  317|       |
  318|  5.16k|	if 	( (kRDFTerm_FirstCore <= term) && (term <= kRDFTerm_LastCore) ) return true;
  ------------------
  |  Branch (318:8): [True: 2.01k, False: 3.14k]
  |  Branch (318:40): [True: 3, False: 2.01k]
  ------------------
  319|  5.15k|	return false;
  320|       |
  321|  5.16k|}	// IsCoreSyntaxTerm
ParseRDF.cpp:_ZL24RDF_EmptyPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1189|  1.99k|{
 1190|  1.99k|	bool hasPropertyAttrs = false;
 1191|  1.99k|	bool hasResourceAttr  = false;
 1192|  1.99k|	bool hasNodeIDAttr    = false;
 1193|  1.99k|	bool hasValueAttr     = false;
 1194|       |	
 1195|  1.99k|	const XML_Node * valueNode = 0;	// ! Can come from rdf:value or rdf:resource.
 1196|       |	
 1197|  1.99k|	if ( ! xmlNode.content.empty() ) XMP_Throw ( "Nested content not allowed with rdf:resource or property attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|     12|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1197:7): [True: 12, False: 1.97k]
  ------------------
 1198|       |	
 1199|       |	// First figure out what XMP this maps to and remember the XML node for a simple value.
 1200|       |	
 1201|  1.97k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1202|  1.97k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1203|       |
 1204|  3.12k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1204:10): [True: 1.15k, False: 1.97k]
  ------------------
 1205|       |
 1206|  1.15k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1207|       |
 1208|  1.15k|		switch ( attrTerm ) {
 1209|       |
 1210|     51|			case kRDFTerm_ID :
  ------------------
  |  Branch (1210:4): [True: 51, False: 1.10k]
  ------------------
 1211|       |				// Nothing to do.
 1212|     51|				break;
 1213|       |
 1214|      4|			case kRDFTerm_resource :
  ------------------
  |  Branch (1214:4): [True: 4, False: 1.15k]
  ------------------
 1215|      4|				if ( hasNodeIDAttr ) XMP_Throw ( "Empty property element can't have both rdf:resource and rdf:nodeID", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1215:10): [True: 0, False: 4]
  ------------------
 1216|      4|				if ( hasValueAttr ) XMP_Throw ( "Empty property element can't have both rdf:value and rdf:resource", kXMPErr_BadXMP );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1216:10): [True: 3, False: 1]
  ------------------
 1217|      1|				hasResourceAttr = true;
 1218|      1|				if ( ! hasValueAttr ) valueNode = *currAttr;
  ------------------
  |  Branch (1218:10): [True: 1, False: 0]
  ------------------
 1219|      1|				break;
 1220|       |
 1221|      9|			case kRDFTerm_nodeID :
  ------------------
  |  Branch (1221:4): [True: 9, False: 1.14k]
  ------------------
 1222|      9|				if ( hasResourceAttr ) XMP_Throw ( "Empty property element can't have both rdf:resource and rdf:nodeID", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1222:10): [True: 0, False: 9]
  ------------------
 1223|      9|				hasNodeIDAttr = true;
 1224|      9|				break;
 1225|       |
 1226|  1.08k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1226:4): [True: 1.08k, False: 67]
  ------------------
 1227|  1.08k|				if ( (*currAttr)->name == "rdf:value" ) {
  ------------------
  |  Branch (1227:10): [True: 39, False: 1.05k]
  ------------------
 1228|     39|					if ( hasResourceAttr ) XMP_Throw ( "Empty property element can't have both rdf:value and rdf:resource", kXMPErr_BadXMP );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1228:11): [True: 0, False: 39]
  ------------------
 1229|     39|					hasValueAttr = true;
 1230|     39|					valueNode = *currAttr;
 1231|  1.05k|				} else if ( (*currAttr)->name != "xml:lang" ) {
  ------------------
  |  Branch (1231:17): [True: 1.01k, False: 32]
  ------------------
 1232|  1.01k|					hasPropertyAttrs = true;
 1233|  1.01k|				}
 1234|  1.08k|				break;
 1235|       |
 1236|  1.08k|			default :
  ------------------
  |  Branch (1236:4): [True: 3, False: 1.15k]
  ------------------
 1237|      3|				XMP_Throw ( "Unrecognized attribute of empty property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1238|      0|				break;
 1239|       |
 1240|  1.15k|		}
 1241|       |
 1242|  1.15k|	}
 1243|       |	
 1244|       |	// Create the right kind of child node and visit the attributes again to add the fields or qualifiers.
 1245|       |	// ! Because of implementation vagaries, the xmpParent is the tree root for top level properties.
 1246|       |	// ! The schema is found, created if necessary, by AddChildNode.
 1247|       |	
 1248|  1.97k|	XMP_Node * childNode = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1249|  1.97k|	bool childIsStruct = false;
 1250|       |	
 1251|  1.97k|	if ( hasValueAttr | hasResourceAttr ) {
  ------------------
  |  Branch (1251:7): [True: 35, False: 1.93k]
  ------------------
 1252|     35|		childNode->value = valueNode->value;
 1253|     35|		if ( ! hasValueAttr ) childNode->options |= kXMP_PropValueIsURI;	// ! Might have both rdf:value and rdf:resource.
  ------------------
  |  Branch (1253:8): [True: 1, False: 34]
  ------------------
 1254|  1.93k|	} else if ( hasPropertyAttrs ) {
  ------------------
  |  Branch (1254:14): [True: 335, False: 1.60k]
  ------------------
 1255|    335|		childNode->options |= kXMP_PropValueIsStruct;
 1256|    335|		childIsStruct = true;
 1257|    335|	}
 1258|       |		
 1259|  1.97k|	currAttr = xmlNode.attrs.begin();
 1260|  1.97k|	endAttr  = xmlNode.attrs.end();
 1261|       |
 1262|  3.06k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1262:10): [True: 1.10k, False: 1.96k]
  ------------------
 1263|       |
 1264|  1.10k|		if ( *currAttr == valueNode ) continue;	// Skip the rdf:value or rdf:resource attribute holding the value.
  ------------------
  |  Branch (1264:8): [True: 35, False: 1.06k]
  ------------------
 1265|  1.06k|		RDFTermKind attrTerm = GetRDFTermKind ( (*currAttr)->name );
 1266|       |
 1267|  1.06k|		switch ( attrTerm ) {
 1268|       |
 1269|     42|			case kRDFTerm_ID       :
  ------------------
  |  Branch (1269:4): [True: 42, False: 1.02k]
  ------------------
 1270|     48|			case kRDFTerm_nodeID   :
  ------------------
  |  Branch (1270:4): [True: 6, False: 1.06k]
  ------------------
 1271|     48|				break;	// Ignore all rdf:ID and rdf:nodeID attributes.w
 1272|       |				
 1273|      0|			case kRDFTerm_resource :
  ------------------
  |  Branch (1273:4): [True: 0, False: 1.06k]
  ------------------
 1274|      0|				AddQualifierNode ( childNode, **currAttr );
 1275|      0|				break;
 1276|       |
 1277|  1.02k|			case kRDFTerm_Other :
  ------------------
  |  Branch (1277:4): [True: 1.02k, False: 48]
  ------------------
 1278|  1.02k|				if ( (! childIsStruct) || (*currAttr)->name == "xml:lang" ) {
  ------------------
  |  Branch (1278:10): [True: 117, False: 903]
  |  Branch (1278:31): [True: 18, False: 885]
  ------------------
 1279|    135|					AddQualifierNode ( childNode, **currAttr );
 1280|    885|				} else {
 1281|    885|					AddChildNode ( childNode, **currAttr, (*currAttr)->value.c_str(), false );
 1282|    885|				}
 1283|  1.02k|				break;
 1284|       |
 1285|      0|			default :
  ------------------
  |  Branch (1285:4): [True: 0, False: 1.06k]
  ------------------
 1286|      0|				XMP_Throw ( "Unrecognized attribute of empty property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1287|      0|				break;
 1288|       |
 1289|  1.06k|		}
 1290|       |
 1291|  1.06k|	}
 1292|       |
 1293|  1.97k|}	// RDF_EmptyPropertyElement
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRK8XML_Node:
  483|    307|{
  484|    307|	if ( attr.ns.empty() ) {
  ------------------
  |  Branch (484:7): [True: 3, False: 304]
  ------------------
  485|      3|		XMP_Throw ( "XML namespace required for all elements and attributes", kXMPErr_BadRDF );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  486|      0|	}
  487|       |	
  488|    304|	return AddQualifierNode ( xmpParent, attr.name, attr.value );
  489|       |
  490|    307|}	// AddQualifierNode
ParseRDF.cpp:_ZL16AddQualifierNodeP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_:
  435|    318|{
  436|       |
  437|       |	#if 0
  438|       |		cout << "AddQualifierNode, parent = " << xmpParent->name << ", name = " << name;
  439|       |		cout << ", value = \"" << value << '"' << endl;
  440|       |	#endif
  441|       |	
  442|    318|	const bool isLang = (name == "xml:lang");
  443|    318|	const bool isType = (name == "rdf:type");
  444|       |
  445|    318|	XMP_Node * newQual = 0;
  446|       |
  447|    318|		newQual = new XMP_Node ( xmpParent, name, value, kXMP_PropIsQualifier );
  448|       |
  449|    318|		if ( ! (isLang | isType) ) {
  ------------------
  |  Branch (449:8): [True: 103, False: 215]
  ------------------
  450|    103|			xmpParent->qualifiers.push_back ( newQual );
  451|    215|		} else if ( isLang ) {
  ------------------
  |  Branch (451:15): [True: 201, False: 14]
  ------------------
  452|    201|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (452:9): [True: 201, False: 0]
  ------------------
  453|    201|				xmpParent->qualifiers.push_back ( newQual );
  454|    201|			} else {
  455|      0|				xmpParent->qualifiers.insert ( xmpParent->qualifiers.begin(), newQual );
  456|      0|			}
  457|    201|			xmpParent->options |= kXMP_PropHasLang;
  458|    201|		} else {
  459|     14|			XMP_Assert ( isType );
  ------------------
  |  |  142|     14|	#define XMP_Assert(c)	((void) 0)
  ------------------
  460|     14|			if ( xmpParent->qualifiers.empty() ) {
  ------------------
  |  Branch (460:9): [True: 14, False: 0]
  ------------------
  461|     14|				xmpParent->qualifiers.push_back ( newQual );
  462|     14|			} else {
  463|      0|				size_t offset = 0;
  464|      0|				if ( XMP_PropHasLang ( xmpParent->options ) ) offset = 1;
  ------------------
  |  Branch (464:10): [True: 0, False: 0]
  ------------------
  465|      0|				xmpParent->qualifiers.insert ( xmpParent->qualifiers.begin()+offset, newQual );
  466|      0|			}
  467|     14|			xmpParent->options |= kXMP_PropHasType;
  468|     14|		}
  469|       |
  470|    318|		xmpParent->options |= kXMP_PropHasQualifiers;
  471|       |
  472|    318|	return newQual;
  473|       |
  474|    318|}	// AddQualifierNode
ParseRDF.cpp:_ZL26RDF_LiteralPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1014|  2.09k|{
 1015|  2.09k|	XMP_Node * newChild = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
 1016|       |	
 1017|  2.09k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
 1018|  2.09k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
 1019|       |
 1020|  2.27k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (1020:10): [True: 171, False: 2.09k]
  ------------------
 1021|    171|		XMP_VarString & attrName = (*currAttr)->name;
 1022|    171|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (1022:8): [True: 171, False: 0]
  ------------------
 1023|    171|			AddQualifierNode ( newChild, **currAttr );
 1024|    171|		} else if ( (attrName == "rdf:ID") || (attrName == "rdf:datatype") ) {
  ------------------
  |  Branch (1024:15): [True: 0, False: 0]
  |  Branch (1024:41): [True: 0, False: 0]
  ------------------
 1025|      0|			continue;	// Ignore all rdf:ID and rdf:datatype attributes.
 1026|      0|		} else {
 1027|      0|			XMP_Throw ( "Invalid attribute for literal property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1028|      0|		}
 1029|    171|	}
 1030|       |	
 1031|  2.09k|	XML_cNodePos currChild = xmlNode.content.begin();
 1032|  2.09k|	XML_cNodePos endChild  = xmlNode.content.end();
 1033|  2.09k|	size_t      textSize  = 0;
 1034|       |
 1035|  5.63k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1035:10): [True: 3.53k, False: 2.09k]
  ------------------
 1036|  3.53k|		if ( (*currChild)->kind != kCDataNode ) XMP_Throw ( "Invalid child of literal property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1036:8): [True: 0, False: 3.53k]
  ------------------
 1037|  3.53k|		textSize += (*currChild)->value.size();
 1038|  3.53k|	}
 1039|       |	
 1040|  2.09k|	newChild->value.reserve ( textSize );
 1041|       |
 1042|  5.63k|	for ( currChild = xmlNode.content.begin(); currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (1042:45): [True: 3.53k, False: 2.09k]
  ------------------
 1043|  3.53k|		newChild->value += (*currChild)->value;
 1044|  3.53k|	}
 1045|       |
 1046|       |	#if 0	// *** XMP_DebugBuild
 1047|       |		newChild->_valuePtr = newChild->value.c_str();
 1048|       |	#endif
 1049|       |	
 1050|  2.09k|}	// RDF_LiteralPropertyElement
ParseRDF.cpp:_ZL33RDF_ParseTypeOtherPropertyElementP8XMP_NodeRK8XML_Nodeb:
 1146|     11|{
 1147|     11|	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|     11|#define IgnoreParam(p)	(void)p
  ------------------
              	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|     11|#define IgnoreParam(p)	(void)p
  ------------------
              	IgnoreParam(xmpParent); IgnoreParam(xmlNode); IgnoreParam(isTopLevel); 
  ------------------
  |  |  117|     11|#define IgnoreParam(p)	(void)p
  ------------------
 1148|       |
 1149|     11|	XMP_Throw ( "ParseTypeOther property element not allowed", kXMPErr_BadXMP );
  ------------------
  |  |  199|     11|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1150|       |
 1151|      0|}	// RDF_ParseTypeOtherPropertyElement
ParseRDF.cpp:_ZL27RDF_ResourcePropertyElementP8XMP_NodeRK8XML_Nodeb:
  942|  1.05k|{
  943|  1.05k|	if ( isTopLevel && (xmlNode.name == "iX:changes") ) return;	// Strip old "punchcard" chaff.
  ------------------
  |  Branch (943:7): [True: 1.05k, False: 5]
  |  Branch (943:21): [True: 0, False: 1.05k]
  ------------------
  944|       |	
  945|  1.05k|	XMP_Node * newCompound = AddChildNode ( xmpParent, xmlNode, "", isTopLevel );
  946|       |	
  947|  1.05k|	XML_cNodePos currAttr = xmlNode.attrs.begin();
  948|  1.05k|	XML_cNodePos endAttr  = xmlNode.attrs.end();
  949|       |
  950|  1.06k|	for ( ; currAttr != endAttr; ++currAttr ) {
  ------------------
  |  Branch (950:10): [True: 1, False: 1.05k]
  ------------------
  951|      1|		XMP_VarString & attrName = (*currAttr)->name;
  952|      1|		if ( attrName == "xml:lang" ) {
  ------------------
  |  Branch (952:8): [True: 1, False: 0]
  ------------------
  953|      1|			AddQualifierNode ( newCompound, **currAttr );
  954|      1|		} else if ( attrName == "rdf:ID" ) {
  ------------------
  |  Branch (954:15): [True: 0, False: 0]
  ------------------
  955|      0|			continue;	// Ignore all rdf:ID attributes.
  956|      0|		} else {
  957|      0|			XMP_Throw ( "Invalid attribute for resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  958|      0|		}
  959|      1|	}
  960|       |	
  961|  1.05k|	XML_cNodePos currChild = xmlNode.content.begin();
  962|  1.05k|	XML_cNodePos endChild  = xmlNode.content.end();
  963|       |
  964|  3.11k|	for ( ; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (964:10): [True: 3.11k, False: 0]
  ------------------
  965|  3.11k|		if ( ! (*currChild)->IsWhitespaceNode() ) break;
  ------------------
  |  Branch (965:8): [True: 1.05k, False: 2.05k]
  ------------------
  966|  3.11k|	}
  967|  1.05k|	if ( currChild == endChild ) XMP_Throw ( "Missing child of resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (967:7): [True: 0, False: 1.05k]
  ------------------
  968|  1.05k|	if ( (*currChild)->kind != kElemNode ) XMP_Throw ( "Children of resource property element must be XML elements", kXMPErr_BadRDF );
  ------------------
  |  |  199|     28|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (968:7): [True: 28, False: 1.03k]
  ------------------
  969|       |
  970|  1.03k|	if ( (*currChild)->name == "rdf:Bag" ) {
  ------------------
  |  Branch (970:7): [True: 121, False: 910]
  ------------------
  971|    121|		newCompound->options |= kXMP_PropValueIsArray;
  972|    910|	} else if ( (*currChild)->name == "rdf:Seq" ) {
  ------------------
  |  Branch (972:14): [True: 629, False: 281]
  ------------------
  973|    629|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered;
  974|    629|	} else if ( (*currChild)->name == "rdf:Alt" ) {
  ------------------
  |  Branch (974:14): [True: 266, False: 15]
  ------------------
  975|    266|		newCompound->options |= kXMP_PropValueIsArray | kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate;
  976|    266|	} else {
  977|     15|		newCompound->options |= kXMP_PropValueIsStruct;
  978|     15|		if ( (*currChild)->name != "rdf:Description" ) {
  ------------------
  |  Branch (978:8): [True: 15, False: 0]
  ------------------
  979|     15|			XMP_VarString typeName ( (*currChild)->ns );
  980|     15|			size_t        colonPos = (*currChild)->name.find_first_of(':');
  981|     15|			if ( colonPos == XMP_VarString::npos ) XMP_Throw ( "All XML elements must be in a namespace", kXMPErr_BadXMP );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (981:9): [True: 1, False: 14]
  ------------------
  982|     14|			typeName.append ( (*currChild)->name, colonPos, XMP_VarString::npos );
  983|     14|			AddQualifierNode ( newCompound, XMP_VarString("rdf:type"), typeName );
  984|     14|		}
  985|     15|	}
  986|       |
  987|  1.03k|	RDF_NodeElement ( newCompound, **currChild, kNotTopLevel );
  988|  1.03k|	if ( newCompound->options & kRDF_HasValueElem ) {
  ------------------
  |  Branch (988:7): [True: 0, False: 1.03k]
  ------------------
  989|      0|		FixupQualifiedNode ( newCompound );
  990|  1.03k|	} else if ( newCompound->options & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (990:14): [True: 255, False: 775]
  ------------------
  991|    255|		DetectAltText ( newCompound );
  992|    255|	}
  993|       |
  994|  2.81k|	for ( ++currChild; currChild != endChild; ++currChild ) {
  ------------------
  |  Branch (994:21): [True: 1.80k, False: 1.01k]
  ------------------
  995|  1.80k|		if ( ! (*currChild)->IsWhitespaceNode() ) XMP_Throw ( "Invalid child of resource property element", kXMPErr_BadRDF );
  ------------------
  |  |  199|     20|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (995:8): [True: 20, False: 1.78k]
  ------------------
  996|  1.78k|	}
  997|       |
  998|  1.03k|}	// RDF_ResourcePropertyElement

_Z28InitializeUnicodeConversionsv:
  147|      1|{
  148|      1|	UC_Assert ( (sizeof(UTF8Unit) == 1) && (sizeof(UTF16Unit) == 2) && (sizeof(UTF32Unit) == 4) ); 
  149|       |
  150|      1|	UTF16Unit u16  = 0x00FF;
  151|      1|	bool bigEndian = (*((UTF8Unit*)&u16) == 0);
  152|       |
  153|      1|	UTF8_to_UTF16Native = UTF8_to_UTF16Nat;
  154|      1|	UTF8_to_UTF32Native = UTF8_to_UTF32Nat;
  155|      1|	UTF16Native_to_UTF8 = UTF16Nat_to_UTF8;
  156|      1|	UTF32Native_to_UTF8 = UTF32Nat_to_UTF8;
  157|       |	
  158|      1|	if ( bigEndian ) {
  ------------------
  |  Branch (158:7): [True: 0, False: 1]
  ------------------
  159|       |	
  160|      0|		swap32to16Offset = 0;
  161|       |
  162|      0|		CodePoint_to_UTF16BE = CodePoint_to_UTF16Nat;
  163|      0|		CodePoint_to_UTF16LE = CodePoint_to_UTF16Swp;
  164|       |
  165|      0|		CodePoint_from_UTF16BE = CodePoint_from_UTF16Nat;
  166|      0|		CodePoint_from_UTF16LE = CodePoint_from_UTF16Swp;
  167|       |
  168|      0|		UTF8_to_UTF16BE = UTF8_to_UTF16Nat;
  169|      0|		UTF8_to_UTF16LE = UTF8_to_UTF16Swp;
  170|      0|		UTF8_to_UTF32BE = UTF8_to_UTF32Nat;
  171|      0|		UTF8_to_UTF32LE = UTF8_to_UTF32Swp;
  172|       |
  173|      0|		UTF16BE_to_UTF8 = UTF16Nat_to_UTF8;
  174|      0|		UTF16LE_to_UTF8 = UTF16Swp_to_UTF8;
  175|      0|		UTF32BE_to_UTF8 = UTF32Nat_to_UTF8;
  176|      0|		UTF32LE_to_UTF8 = UTF32Swp_to_UTF8;
  177|       |
  178|      0|		UTF16BE_to_UTF32BE = UTF16Nat_to_UTF32Nat;
  179|      0|		UTF16BE_to_UTF32LE = UTF16Nat_to_UTF32Swp;
  180|      0|		UTF16LE_to_UTF32BE = UTF16Swp_to_UTF32Nat;
  181|      0|		UTF16LE_to_UTF32LE = UTF16Swp_to_UTF32Swp;
  182|       |
  183|      0|		UTF32BE_to_UTF16BE = UTF32Nat_to_UTF16Nat;
  184|      0|		UTF32BE_to_UTF16LE = UTF32Nat_to_UTF16Swp;
  185|      0|		UTF32LE_to_UTF16BE = UTF32Swp_to_UTF16Nat;
  186|      0|		UTF32LE_to_UTF16LE = UTF32Swp_to_UTF16Swp;
  187|       |
  188|      1|	} else {
  189|       |	
  190|      1|		swap32to16Offset = 1;	// ! Offset in UTF16 units!
  191|       |
  192|      1|		CodePoint_to_UTF16BE = CodePoint_to_UTF16Swp;
  193|      1|		CodePoint_to_UTF16LE = CodePoint_to_UTF16Nat;
  194|       |
  195|      1|		CodePoint_from_UTF16BE = CodePoint_from_UTF16Swp;
  196|      1|		CodePoint_from_UTF16LE = CodePoint_from_UTF16Nat;
  197|       |
  198|      1|		UTF8_to_UTF16BE = UTF8_to_UTF16Swp;
  199|      1|		UTF8_to_UTF16LE = UTF8_to_UTF16Nat;
  200|      1|		UTF8_to_UTF32BE = UTF8_to_UTF32Swp;
  201|      1|		UTF8_to_UTF32LE = UTF8_to_UTF32Nat;
  202|       |
  203|      1|		UTF16BE_to_UTF8 = UTF16Swp_to_UTF8;
  204|      1|		UTF16LE_to_UTF8 = UTF16Nat_to_UTF8;
  205|      1|		UTF32BE_to_UTF8 = UTF32Swp_to_UTF8;
  206|      1|		UTF32LE_to_UTF8 = UTF32Nat_to_UTF8;
  207|       |
  208|      1|		UTF16BE_to_UTF32BE = UTF16Swp_to_UTF32Swp;
  209|      1|		UTF16BE_to_UTF32LE = UTF16Swp_to_UTF32Nat;
  210|      1|		UTF16LE_to_UTF32BE = UTF16Nat_to_UTF32Swp;
  211|      1|		UTF16LE_to_UTF32LE = UTF16Nat_to_UTF32Nat;
  212|       |
  213|      1|		UTF32BE_to_UTF16BE = UTF32Swp_to_UTF16Swp;
  214|      1|		UTF32BE_to_UTF16LE = UTF32Swp_to_UTF16Nat;
  215|      1|		UTF32LE_to_UTF16BE = UTF32Nat_to_UTF16Swp;
  216|      1|		UTF32LE_to_UTF16LE = UTF32Nat_to_UTF16Nat;
  217|       |
  218|      1|	}
  219|       |
  220|      1|}	// InitializeUnicodeConversions
_Z19CodePoint_from_UTF8PKhmPjPm:
  567|  69.3k|{
  568|  69.3k|	UTF8Unit inUnit;	// ! Don't read until we know there is input.
  569|  69.3k|	size_t unitCount = 0;
  570|       |
  571|  69.3k|	UC_Assert ( (utf8In != 0) && (cpOut != 0) && (utf8Read != 0) );
  572|  69.3k|	if ( utf8Len == 0 ) goto Done;
  ------------------
  |  Branch (572:7): [True: 0, False: 69.3k]
  ------------------
  573|  69.3k|	inUnit = *utf8In;
  574|  69.3k|	if ( inUnit >= 0x80 ) goto MultiByte;	// ! Force linear execution path for ASCII.
  ------------------
  |  Branch (574:7): [True: 69.3k, False: 0]
  ------------------
  575|       |	
  576|      0|	unitCount = 1;
  577|      0|	*cpOut = inUnit;	// ! Don't put after Done, don't write if no input.
  578|       |	
  579|      0|Done:	
  580|      0|	*utf8Read = unitCount;
  581|      0|	return;
  582|       |
  583|  69.3k|MultiByte:
  584|  69.3k|	CodePoint_from_UTF8_Multi ( utf8In, utf8Len, cpOut, utf8Read );
  585|  69.3k|	return;
  586|       |	
  587|      0|}	// CodePoint_from_UTF8
UnicodeConversions.cpp:_ZL25CodePoint_from_UTF8_MultiPKhmPjPm:
  516|  69.3k|{
  517|  69.3k|	UTF8Unit  inUnit = *utf8In;
  518|  69.3k|	size_t    unitCount = 0;
  519|  69.3k|	UTF32Unit cp;	// ! Avoid gcc complaints about declarations after goto's.
  520|  69.3k|	const UTF8Unit * utf8Pos;
  521|       |
  522|       |	// -------------------------------------------------------------------------------------
  523|       |	// We've got a multibyte UTF-8 character. The first byte has the number of bytes and the
  524|       |	// highest order data bits. The other bytes each add 6 more data bits.
  525|       |	
  526|       |	#if 0	// This might be a more effcient way to count the bytes.
  527|       |		static XMP_Uns8 kByteCounts[16] = { 1, 1, 1, 1, 1, 1, 1, 1, 0, 0, 0, 0, 2, 2, 3, 4 };
  528|       |		size_t bytesNeeded = kByteCounts [ inUnit >> 4 ];
  529|       |		if ( (bytesNeeded < 2) || ((bytesNeeded == 4) && ((inUnit & 0x08) != 0)) ) {
  530|       |			UC_Throw ( "Invalid UTF-8 sequence length", kXMPErr_BadParam );
  531|       |		}
  532|       |	#endif
  533|       |
  534|  69.3k|	size_t bytesNeeded = 0;	// Count the leading 1 bits in the first byte.
  535|   208k|	for ( UTF8Unit temp = inUnit; temp > 0x7F; temp = temp << 1 ) ++bytesNeeded;
  ------------------
  |  Branch (535:32): [True: 138k, False: 69.3k]
  ------------------
  536|       |		// *** Consider CPU-specific assembly inline, e.g. cntlzw on PowerPC.
  537|       |	
  538|  69.3k|	if ( (bytesNeeded < 2) || (bytesNeeded > 4) ) UC_Throw ( "Invalid UTF-8 sequence length", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (538:7): [True: 0, False: 69.3k]
  |  Branch (538:28): [True: 0, False: 69.3k]
  ------------------
  539|  69.3k|	if ( bytesNeeded > utf8Len ) goto Done;	// Not enough input in this buffer.
  ------------------
  |  Branch (539:7): [True: 0, False: 69.3k]
  ------------------
  540|  69.3k|	unitCount = bytesNeeded;
  541|       |	
  542|  69.3k|	cp = inUnit & ((1 << (7-unitCount)) - 1);	// Isolate the initial data bits in the bottom of cp.
  543|       |	
  544|  69.3k|	utf8Pos = utf8In + 1;	// We've absorbed the first byte.
  545|   138k|	for ( --bytesNeeded; bytesNeeded > 0; --bytesNeeded, ++utf8Pos ) {
  ------------------
  |  Branch (545:23): [True: 69.4k, False: 69.3k]
  ------------------
  546|  69.4k|		inUnit = *utf8Pos;
  547|  69.4k|		if ( (inUnit & UTF8Unit(0xC0)) != UTF8Unit(0x80) ) UC_Throw ( "Invalid UTF-8 data byte", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (547:8): [True: 0, False: 69.4k]
  ------------------
  548|  69.4k|		cp = (cp << 6) | (inUnit & 0x3F);
  549|  69.4k|	}
  550|       |	
  551|  69.3k|	if ( cp >= 0xD800 ) {	// Skip the next comparisons most of the time.
  ------------------
  |  Branch (551:7): [True: 11, False: 69.2k]
  ------------------
  552|     11|		if ( (0xD800 <= cp) && (cp <= 0xDFFF) ) UC_Throw ( "Bad UTF-8 - surrogate code point", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (552:8): [True: 11, False: 0]
  |  Branch (552:26): [True: 0, False: 11]
  ------------------
  553|     11|		if ( cp > 0x10FFFF ) UC_Throw ( "Bad UTF-8 - out of range", kXMPErr_BadParam );
  ------------------
  |  |   18|      0|	#define UC_Throw(msg,id)  throw XMP_Error ( id, msg )
  ------------------
  |  Branch (553:8): [True: 0, False: 11]
  ------------------
  554|     11|	}
  555|       |	
  556|  69.3k|	*cpOut = cp;	// ! Don't put after Done, don't write if no input.
  557|       |	
  558|  69.3k|Done:	
  559|  69.3k|	*utf8Read = unitCount;
  560|  69.3k|	return;
  561|       |	
  562|  69.3k|}	// CodePoint_from_UTF8_Multi

XMPCore_Impl.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  39.3k|{
   88|       |
   89|  39.3k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  39.3k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  39.3k|	const XMP_Uns8 * namePos   = nameStart;
   92|  39.3k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  39.3k|	if ( nameStart >= nameEnd ) XMP_Throw ( "Empty XML name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (96:7): [True: 0, False: 39.3k]
  ------------------
   97|       |
   98|  39.3k|	cp = *namePos;
   99|  39.3k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 39.3k, False: 80]
  ------------------
  100|  39.3k|		++namePos;
  101|  39.3k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 39.3k]
  ------------------
  102|  39.3k|	} else {
  103|     80|		cp = GetCodePoint ( &namePos );
  104|     80|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 80]
  ------------------
  105|     80|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  5.04M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 5.00M, False: 39.3k]
  ------------------
  110|  5.00M|		cp = *namePos;
  111|  5.00M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 4.97M, False: 33.7k]
  ------------------
  112|  4.97M|			++namePos;
  113|  4.97M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 137k, False: 4.83M]
  |  Branch (113:38): [True: 0, False: 137k]
  ------------------
  114|  4.97M|		} else {
  115|  33.7k|			cp = GetCodePoint ( &namePos );
  116|  33.7k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 29.6k, False: 4.14k]
  |  Branch (116:41): [True: 0, False: 29.6k]
  ------------------
  117|  33.7k|		}
  118|  5.00M|	}
  119|       |
  120|  39.3k|	return;
  121|       |
  122|  39.3k|NameError:
  123|      0|	XMP_Throw ( "Bad XML name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  124|       |	
  125|      0|}	// VerifySimpleXMLName
XMPCore_Impl.cpp:_ZL17IsStartChar_ASCIIj:
   31|  5.00M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  5.00M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 3.83M, False: 1.17M]
  |  Branch (33:23): [True: 3.83M, False: 0]
  |  Branch (33:40): [True: 1.03M, False: 137k]
  |  Branch (33:55): [True: 1.02M, False: 9.91k]
  |  Branch (33:71): [True: 9.91k, False: 137k]
  ------------------
   34|   137k|	return false;
   35|  5.00M|}
XMPCore_Impl.cpp:_ZL12GetCodePointPPKh:
   19|  33.8k|{
   20|  33.8k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  33.8k|	XMP_Uns32 cp;
   22|  33.8k|	size_t u8Len;
   23|  33.8k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  33.8k|	*utf8Str_io = u8Ptr + u8Len;
   25|  33.8k|	return cp;
   26|  33.8k|}
XMPCore_Impl.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  33.8k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  33.8k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 4.29k, False: 29.5k]
  |  Branch (43:24): [True: 146, False: 4.15k]
  |  Branch (43:43): [True: 4.15k, False: 29.5k]
  |  Branch (43:59): [True: 168, False: 3.98k]
  ------------------
   44|  33.5k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 3.98k, False: 29.5k]
  |  Branch (44:24): [True: 2.31k, False: 1.66k]
  |  Branch (44:43): [True: 1.59k, False: 29.6k]
  |  Branch (44:60): [True: 0, False: 1.59k]
  ------------------
   45|       |
   46|  31.2k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 1.59k, False: 29.6k]
  |  Branch (46:25): [True: 1.59k, False: 3]
  |  Branch (46:46): [True: 3, False: 29.6k]
  |  Branch (46:64): [True: 0, False: 3]
  ------------------
   47|  29.6k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 3, False: 29.6k]
  |  Branch (47:26): [True: 0, False: 3]
  |  Branch (47:46): [True: 3, False: 29.6k]
  |  Branch (47:64): [True: 0, False: 3]
  ------------------
   48|  29.6k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 3, False: 29.6k]
  |  Branch (48:26): [True: 3, False: 0]
  |  Branch (48:46): [True: 0, False: 29.6k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  29.6k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 29.6k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 29.6k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  29.6k|	return false;
   52|       |
   53|  29.6k|}
XMPCore_Impl.cpp:_ZL17IsOtherChar_ASCIIj:
   58|   137k|{
   59|       |	// ASCII following characters for an XML name.
   60|   137k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 69.7k, False: 67.4k]
  |  Branch (60:23): [True: 69.7k, False: 0]
  |  Branch (60:39): [True: 62.9k, False: 4.44k]
  |  Branch (60:54): [True: 4.44k, False: 0]
  ------------------
   61|      0|	return false;
   62|   137k|}
XMPCore_Impl.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  29.6k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  29.6k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 29.5k, False: 72]
  |  Branch (69:24): [True: 72, False: 0]
  |  Branch (69:41): [True: 72, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  29.6k|}
XMPMeta-GetSet.cpp:_ZL12GetCodePointPPKh:
   19|  1.37k|{
   20|  1.37k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  1.37k|	XMP_Uns32 cp;
   22|  1.37k|	size_t u8Len;
   23|  1.37k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  1.37k|	*utf8Str_io = u8Ptr + u8Len;
   25|  1.37k|	return cp;
   26|  1.37k|}
XMPMeta.cpp:_ZL19VerifySimpleXMLNamePKcS0_:
   87|  10.6k|{
   88|       |
   89|  10.6k|	const XMP_Uns8 * nameStart = (const XMP_Uns8 *) _nameStart;
   90|  10.6k|	const XMP_Uns8 * nameEnd   = (const XMP_Uns8 *) _nameEnd;
   91|  10.6k|	const XMP_Uns8 * namePos   = nameStart;
   92|  10.6k|	XMP_Uns32 cp;
   93|       |	
   94|       |	// The first character is more restricted.
   95|       |	
   96|  10.6k|	if ( nameStart >= nameEnd ) XMP_Throw ( "Empty XML name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (96:7): [True: 0, False: 10.6k]
  ------------------
   97|       |
   98|  10.6k|	cp = *namePos;
   99|  10.6k|	if ( cp < 0x80 ) {
  ------------------
  |  Branch (99:7): [True: 10.5k, False: 61]
  ------------------
  100|  10.5k|		++namePos;
  101|  10.5k|		if ( ! IsStartChar_ASCII(cp) ) goto NameError;
  ------------------
  |  Branch (101:8): [True: 0, False: 10.5k]
  ------------------
  102|  10.5k|	} else {
  103|     61|		cp = GetCodePoint ( &namePos );
  104|     61|		if ( ! IsStartChar_NonASCII(cp) ) goto NameError;
  ------------------
  |  Branch (104:8): [True: 0, False: 61]
  ------------------
  105|     61|	}
  106|       |
  107|       |	// Check the rest of the name.
  108|       |	
  109|  4.74M|	while ( namePos < nameEnd ) {
  ------------------
  |  Branch (109:10): [True: 4.73M, False: 10.6k]
  ------------------
  110|  4.73M|		cp = *namePos;
  111|  4.73M|		if ( cp < 0x80 ) {
  ------------------
  |  Branch (111:8): [True: 4.69M, False: 34.0k]
  ------------------
  112|  4.69M|			++namePos;
  113|  4.69M|			if ( (! IsStartChar_ASCII(cp)) && (! IsOtherChar_ASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (113:9): [True: 121k, False: 4.57M]
  |  Branch (113:38): [True: 0, False: 121k]
  ------------------
  114|  4.69M|		} else {
  115|  34.0k|			cp = GetCodePoint ( &namePos );
  116|  34.0k|			if ( (! IsStartChar_NonASCII(cp)) && (! IsOtherChar_NonASCII(cp)) ) goto NameError;
  ------------------
  |  Branch (116:9): [True: 29.5k, False: 4.49k]
  |  Branch (116:41): [True: 0, False: 29.5k]
  ------------------
  117|  34.0k|		}
  118|  4.73M|	}
  119|       |
  120|  10.6k|	return;
  121|       |
  122|  10.6k|NameError:
  123|      0|	XMP_Throw ( "Bad XML name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  124|       |	
  125|      0|}	// VerifySimpleXMLName
XMPMeta.cpp:_ZL17IsStartChar_ASCIIj:
   31|  4.70M|{
   32|       |	// ASCII starting characters for an XML name.
   33|  4.70M|	if ( (('a' <= cp) && (cp <= 'z')) || (('A' <= cp) && (cp <= 'Z')) || (cp == '_') ) return true;
  ------------------
  |  Branch (33:8): [True: 3.59M, False: 1.10M]
  |  Branch (33:23): [True: 3.59M, False: 0]
  |  Branch (33:40): [True: 988k, False: 121k]
  |  Branch (33:55): [True: 979k, False: 8.85k]
  |  Branch (33:71): [True: 8.85k, False: 121k]
  ------------------
   34|   121k|	return false;
   35|  4.70M|}
XMPMeta.cpp:_ZL12GetCodePointPPKh:
   19|  34.0k|{
   20|  34.0k|	const XMP_Uns8 * u8Ptr = *utf8Str_io;
   21|  34.0k|	XMP_Uns32 cp;
   22|  34.0k|	size_t u8Len;
   23|  34.0k|	CodePoint_from_UTF8 ( u8Ptr, 4, &cp, &u8Len );	// Throws an exception for errors.
   24|  34.0k|	*utf8Str_io = u8Ptr + u8Len;
   25|  34.0k|	return cp;
   26|  34.0k|}
XMPMeta.cpp:_ZL20IsStartChar_NonASCIIj:
   40|  34.0k|{
   41|       |	// Non-ASCII starting characters for an XML name.
   42|       |	
   43|  34.0k|	if ( ((0xC0 <= cp) && (cp <= 0xD6))  || ((0xD8 <= cp) && (cp <= 0xF6)) ) return true;
  ------------------
  |  Branch (43:8): [True: 4.57k, False: 29.5k]
  |  Branch (43:24): [True: 30, False: 4.54k]
  |  Branch (43:43): [True: 4.54k, False: 29.5k]
  |  Branch (43:59): [True: 392, False: 4.14k]
  ------------------
   44|  33.6k|	if ( ((0xF8 <= cp) && (cp <= 0x2FF)) || ((0x370 <= cp) && (cp <= 0x37D)) ) return true;
  ------------------
  |  Branch (44:8): [True: 4.14k, False: 29.5k]
  |  Branch (44:24): [True: 2.92k, False: 1.22k]
  |  Branch (44:43): [True: 1.20k, False: 29.5k]
  |  Branch (44:60): [True: 0, False: 1.20k]
  ------------------
   45|       |
   46|  30.7k|	if ( ((0x37F <= cp) && (cp <= 0x1FFF))  || ((0x200C <= cp) && (cp <= 0x200D)) ) return true;
  ------------------
  |  Branch (46:8): [True: 1.20k, False: 29.5k]
  |  Branch (46:25): [True: 1.15k, False: 51]
  |  Branch (46:46): [True: 51, False: 29.5k]
  |  Branch (46:64): [True: 0, False: 51]
  ------------------
   47|  29.5k|	if ( ((0x2070 <= cp) && (cp <= 0x218F)) || ((0x2C00 <= cp) && (cp <= 0x2FEF)) ) return true;
  ------------------
  |  Branch (47:8): [True: 51, False: 29.5k]
  |  Branch (47:26): [True: 0, False: 51]
  |  Branch (47:46): [True: 51, False: 29.5k]
  |  Branch (47:64): [True: 0, False: 51]
  ------------------
   48|  29.5k|	if ( ((0x3001 <= cp) && (cp <= 0xD7FF)) || ((0xF900 <= cp) && (cp <= 0xFDCF)) ) return true;
  ------------------
  |  Branch (48:8): [True: 51, False: 29.5k]
  |  Branch (48:26): [True: 51, False: 0]
  |  Branch (48:46): [True: 0, False: 29.5k]
  |  Branch (48:64): [True: 0, False: 0]
  ------------------
   49|  29.5k|	if ( ((0xFDF0 <= cp) && (cp <= 0xFFFD)) || ((0x10000 <= cp) && (cp <= 0xEFFFF)) ) return true;
  ------------------
  |  Branch (49:8): [True: 0, False: 29.5k]
  |  Branch (49:26): [True: 0, False: 0]
  |  Branch (49:46): [True: 0, False: 29.5k]
  |  Branch (49:65): [True: 0, False: 0]
  ------------------
   50|       |
   51|  29.5k|	return false;
   52|       |
   53|  29.5k|}
XMPMeta.cpp:_ZL17IsOtherChar_ASCIIj:
   58|   121k|{
   59|       |	// ASCII following characters for an XML name.
   60|   121k|	if ( (('0' <= cp) && (cp <= '9')) || (cp == '-') || (cp == '.') ) return true;
  ------------------
  |  Branch (60:8): [True: 56.1k, False: 64.8k]
  |  Branch (60:23): [True: 56.1k, False: 0]
  |  Branch (60:39): [True: 61.7k, False: 3.16k]
  |  Branch (60:54): [True: 3.16k, False: 0]
  ------------------
   61|      0|	return false;
   62|   121k|}
XMPMeta.cpp:_ZL20IsOtherChar_NonASCIIj:
   67|  29.5k|{
   68|       |	// Non-ASCII following characters for an XML name.
   69|  29.5k|	if ( (cp == 0xB7) || ((0x300 <= cp) && (cp <= 0x36F))  || ((0x203F <= cp) && (cp <= 0x2040)) ) return true;
  ------------------
  |  Branch (69:7): [True: 29.5k, False: 16]
  |  Branch (69:24): [True: 16, False: 0]
  |  Branch (69:41): [True: 16, False: 0]
  |  Branch (69:61): [True: 0, False: 0]
  |  Branch (69:79): [True: 0, False: 0]
  ------------------
   70|      0|	return false;
   71|  29.5k|}

WXMPIterator_PropCTor_1:
   40|  3.38k|{
   41|  3.38k|    XMP_ENTER_WRAPPER ( "WXMPIterator_PropCTor_1" )
  ------------------
  |  |  241|  3.38k|	AnnounceEntry ( proc );									\
  |  |  242|  3.38k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.38k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.38k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.38k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.38k|	try {													\
  |  |  245|  3.38k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.38k|		wResult->errMessage = 0;
  ------------------
   42|       |
   43|  3.38k|		if ( schemaNS == 0 ) schemaNS = "";
  ------------------
  |  Branch (43:8): [True: 0, False: 3.38k]
  ------------------
   44|  3.38k|		if ( propName == 0 ) propName = "";
  ------------------
  |  Branch (44:8): [True: 0, False: 3.38k]
  ------------------
   45|       |
   46|  3.38k|		const XMPMeta & xmpObj = WtoXMPMeta_Ref ( xmpRef );
  ------------------
  |  |  108|  3.38k|#define WtoXMPMeta_Ref(xmpRef)	*((const XMPMeta *)(xmpRef))
  ------------------
   47|  3.38k|		XMPIterator *   iter   = new XMPIterator ( xmpObj, schemaNS, propName, options );
   48|  3.38k|		++iter->clientRefs;
   49|  3.38k|		XMP_Assert ( iter->clientRefs == 1 );
  ------------------
  |  |  142|  3.38k|	#define XMP_Assert(c)	((void) 0)
  ------------------
   50|  3.38k|		wResult->ptrResult = XMPIteratorRef ( iter );
   51|       |
   52|  3.38k|    XMP_EXIT_WRAPPER
  ------------------
  |  |  249|  3.38k|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|  3.38k|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|  3.38k|	AnnounceExit();
  ------------------
   53|  3.38k|}
WXMPIterator_DecrementRefCount_1:
   96|  3.38k|{
   97|  3.38k|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
   98|  3.38k|	XMP_ENTER_WRAPPER ( "WXMPIterator_DecrementRefCount_1" )
  ------------------
  |  |  241|  3.38k|	AnnounceEntry ( proc );									\
  |  |  242|  3.38k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.38k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.38k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.38k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.38k|	try {													\
  |  |  245|  3.38k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.38k|		wResult->errMessage = 0;
  ------------------
   99|       |
  100|  3.38k|		XMPIterator * thiz = (XMPIterator*)iterRef;
  101|       |		
  102|  3.38k|		XMP_Assert ( thiz->clientRefs > 0 );
  ------------------
  |  |  142|  3.38k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  103|  3.38k|		--thiz->clientRefs;
  104|  3.38k|		if ( thiz->clientRefs <= 0 ) delete ( thiz );
  ------------------
  |  Branch (104:8): [True: 3.38k, False: 0]
  ------------------
  105|       |
  106|  3.38k|	XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|  3.38k|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|  3.38k|	AnnounceExit();
  ------------------
  107|  3.38k|}
WXMPIterator_Next_1:
  136|  23.0k|{
  137|  23.0k|    XMP_ENTER_WRAPPER ( "WXMPIterator_Next_1" )
  ------------------
  |  |  241|  23.0k|	AnnounceEntry ( proc );									\
  |  |  242|  23.0k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  23.0k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  23.0k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  23.0k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  23.0k|	try {													\
  |  |  245|  23.0k|		XMP_AutoMutex mutex;								\
  |  |  246|  23.0k|		wResult->errMessage = 0;
  ------------------
  138|       |
  139|  23.0k|		if ( schemaNS == 0 ) schemaNS = &voidStringPtr;
  ------------------
  |  Branch (139:8): [True: 0, False: 23.0k]
  ------------------
  140|  23.0k|		if ( nsSize == 0 ) nsSize = &voidStringLen;
  ------------------
  |  Branch (140:8): [True: 0, False: 23.0k]
  ------------------
  141|  23.0k|		if ( propPath == 0 ) propPath = &voidStringPtr;
  ------------------
  |  Branch (141:8): [True: 0, False: 23.0k]
  ------------------
  142|  23.0k|		if ( pathSize == 0 ) pathSize = &voidStringLen;
  ------------------
  |  Branch (142:8): [True: 0, False: 23.0k]
  ------------------
  143|  23.0k|		if ( propValue == 0 ) propValue = &voidStringPtr;
  ------------------
  |  Branch (143:8): [True: 0, False: 23.0k]
  ------------------
  144|  23.0k|		if ( valueSize == 0 ) valueSize = &voidStringLen;
  ------------------
  |  Branch (144:8): [True: 0, False: 23.0k]
  ------------------
  145|  23.0k|		if ( propOptions == 0 ) propOptions = &voidOptionBits;
  ------------------
  |  Branch (145:8): [True: 0, False: 23.0k]
  ------------------
  146|       |
  147|  23.0k|		XMPIterator * iter = WtoXMPIterator_Ptr ( iterRef );
  ------------------
  |  |  112|  23.0k|#define WtoXMPIterator_Ptr(iterRef)	(((iterRef) == 0) ? 0 : (XMPIterator *)(iterRef))
  |  |  ------------------
  |  |  |  Branch (112:38): [True: 0, False: 23.0k]
  |  |  ------------------
  ------------------
  148|  23.0k|		XMP_Bool found = iter->Next ( schemaNS, nsSize, propPath, pathSize, propValue, valueSize, propOptions );
  149|  23.0k|		wResult->int32Result = found;
  150|       |
  151|  23.0k|    XMP_EXIT_WRAPPER_KEEP_LOCK ( found )
  ------------------
  |  |  253|  23.0k|		if ( keep ) mutex.KeepLock();		\
  |  |  ------------------
  |  |  |  Branch (253:8): [True: 19.7k, False: 3.25k]
  |  |  ------------------
  |  |  254|  23.0k|	XMP_CATCH_EXCEPTIONS					\
  |  |  ------------------
  |  |  |  |  265|  23.0k|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  255|  23.0k|	AnnounceExit();
  ------------------
  152|  23.0k|}
WXMPUtils_UnlockIter_1:
  174|  19.7k|{
  175|  19.7k|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
  176|  19.7k|    XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_UnlockIter_1" )
  ------------------
  |  |  235|  19.7k|	AnnounceNoLock ( proc );								\
  |  |  236|  19.7k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  19.7k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|  19.7k|	try {													\
  |  |  238|  19.7k|		wResult->errMessage = 0;
  ------------------
  177|       |
  178|  19.7k|		XMPIterator * iter = WtoXMPIterator_Ptr ( iterRef );
  ------------------
  |  |  112|  19.7k|#define WtoXMPIterator_Ptr(iterRef)	(((iterRef) == 0) ? 0 : (XMPIterator *)(iterRef))
  |  |  ------------------
  |  |  |  Branch (112:38): [True: 0, False: 19.7k]
  |  |  ------------------
  ------------------
  179|  19.7k|		iter->UnlockIter ( options );
  180|       |
  181|  19.7k|    XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|  19.7k|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|  19.7k|	AnnounceExit();
  ------------------
  182|  19.7k|}

WXMPMeta_Initialize_1:
   50|      1|{
   51|      1|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPMeta_Initialize_1" )
  ------------------
  |  |  235|      1|	AnnounceNoLock ( proc );								\
  |  |  236|      1|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|      1|	try {													\
  |  |  238|      1|		wResult->errMessage = 0;
  ------------------
   52|       |
   53|      1|		bool ok = XMPMeta::Initialize();
   54|      1|		wResult->int32Result = ok;
   55|       |
   56|      1|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|      1|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|      1|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|      1|	AnnounceExit();
  ------------------
   57|      1|}
WXMPMeta_Terminate_1:
   62|      1|{
   63|      1|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
   64|      1|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPMeta_Terminate_1" )
  ------------------
  |  |  235|      1|	AnnounceNoLock ( proc );								\
  |  |  236|      1|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|      1|	try {													\
  |  |  238|      1|		wResult->errMessage = 0;
  ------------------
   65|       |
   66|      1|		XMPMeta::Terminate();
   67|       |
   68|      1|	XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|      1|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|      1|	AnnounceExit();
  ------------------
   69|      0|}
WXMPMeta_CTor_1:
   77|  3.54k|{
   78|  3.54k|	XMP_ENTER_WRAPPER ( "WXMPMeta_CTor_1" )
  ------------------
  |  |  241|  3.54k|	AnnounceEntry ( proc );									\
  |  |  242|  3.54k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.54k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.54k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.54k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.54k|	try {													\
  |  |  245|  3.54k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.54k|		wResult->errMessage = 0;
  ------------------
   79|       |
   80|  3.54k|		XMPMeta * xmpObj = new XMPMeta();
   81|  3.54k|		++xmpObj->clientRefs;
   82|  3.54k|		XMP_Assert ( xmpObj->clientRefs == 1 );
  ------------------
  |  |  142|  3.54k|	#define XMP_Assert(c)	((void) 0)
  ------------------
   83|  3.54k|		wResult->ptrResult = XMPMetaRef ( xmpObj );
   84|       |
   85|  3.54k|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|  3.54k|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|  3.54k|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|  3.54k|	AnnounceExit();
  ------------------
   86|  3.54k|}
WXMPMeta_DecrementRefCount_1:
  108|  3.54k|{
  109|  3.54k|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
  110|  3.54k|	XMP_ENTER_WRAPPER ( "WXMPMeta_DecrementRefCount_1" )
  ------------------
  |  |  241|  3.54k|	AnnounceEntry ( proc );									\
  |  |  242|  3.54k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.54k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.54k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.54k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.54k|	try {													\
  |  |  245|  3.54k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.54k|		wResult->errMessage = 0;
  ------------------
  111|       |
  112|  3.54k|		XMPMeta * thiz = (XMPMeta*)xmpRef;
  113|       |		
  114|  3.54k|		XMP_Assert ( thiz->clientRefs > 0 );
  ------------------
  |  |  142|  3.54k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  115|  3.54k|		--thiz->clientRefs;
  116|  3.54k|		if ( thiz->clientRefs <= 0 ) delete ( thiz );
  ------------------
  |  Branch (116:8): [True: 3.54k, False: 0]
  ------------------
  117|       |
  118|  3.54k|	XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|  3.54k|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|  3.54k|	AnnounceExit();
  ------------------
  119|  3.54k|}
WXMPMeta_Unlock_1:
  207|  4.14k|{
  208|  4.14k|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
  209|  4.14k|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPMeta_Unlock_1" )
  ------------------
  |  |  235|  4.14k|	AnnounceNoLock ( proc );								\
  |  |  236|  4.14k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  4.14k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|  4.14k|	try {													\
  |  |  238|  4.14k|		wResult->errMessage = 0;
  ------------------
  210|       |
  211|  4.14k|		XMPMeta::Unlock ( options );
  212|       |
  213|  4.14k|	XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|  4.14k|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|  4.14k|	AnnounceExit();
  ------------------
  214|  4.14k|}
WXMPMeta_RegisterNamespace_1:
  222|    181|{
  223|    181|	XMP_ENTER_WRAPPER ( "WXMPMeta_RegisterNamespace_1" )
  ------------------
  |  |  241|    181|	AnnounceEntry ( proc );									\
  |  |  242|    181|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|    181|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|    181|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    181|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|    181|	try {													\
  |  |  245|    181|		XMP_AutoMutex mutex;								\
  |  |  246|    181|		wResult->errMessage = 0;
  ------------------
  224|       |
  225|    181|		if ( (namespaceURI == 0) || (*namespaceURI == 0) ) XMP_Throw ( "Empty namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (225:8): [True: 0, False: 181]
  |  Branch (225:31): [True: 0, False: 181]
  ------------------
  226|    181|		if ( (prefix == 0) || (*prefix == 0) ) XMP_Throw ( "Empty prefix", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (226:8): [True: 0, False: 181]
  |  Branch (226:25): [True: 0, False: 181]
  ------------------
  227|       |
  228|    181|		XMPMeta::RegisterNamespace ( namespaceURI, prefix );
  229|       |
  230|    181|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    181|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    181|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|    181|	AnnounceExit();
  ------------------
  231|    181|}
WXMPMeta_GetNamespacePrefix_1:
  240|  4.25k|{
  241|  4.25k|	XMP_ENTER_WRAPPER ( "WXMPMeta_GetNamespacePrefix_1" )
  ------------------
  |  |  241|  4.25k|	AnnounceEntry ( proc );									\
  |  |  242|  4.25k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  4.25k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  4.25k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  4.25k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  4.25k|	try {													\
  |  |  245|  4.25k|		XMP_AutoMutex mutex;								\
  |  |  246|  4.25k|		wResult->errMessage = 0;
  ------------------
  242|       |
  243|  4.25k|		if ( (namespaceURI == 0) || (*namespaceURI == 0) ) XMP_Throw ( "Empty namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (243:8): [True: 0, False: 4.25k]
  |  Branch (243:31): [True: 0, False: 4.25k]
  ------------------
  244|       |
  245|  4.25k|		if ( namespacePrefix == 0 ) namespacePrefix = &voidStringPtr;
  ------------------
  |  Branch (245:8): [True: 0, False: 4.25k]
  ------------------
  246|  4.25k|		if ( prefixSize == 0 ) prefixSize = &voidStringLen;
  ------------------
  |  Branch (246:8): [True: 0, False: 4.25k]
  ------------------
  247|       |
  248|  4.25k|		bool found = XMPMeta::GetNamespacePrefix ( namespaceURI, namespacePrefix, prefixSize );
  249|  4.25k|		wResult->int32Result = found;
  250|       |		
  251|  4.25k|	XMP_EXIT_WRAPPER_KEEP_LOCK ( found )
  ------------------
  |  |  253|  4.25k|		if ( keep ) mutex.KeepLock();		\
  |  |  ------------------
  |  |  |  Branch (253:8): [True: 4.14k, False: 107]
  |  |  ------------------
  |  |  254|  4.25k|	XMP_CATCH_EXCEPTIONS					\
  |  |  ------------------
  |  |  |  |  265|  4.25k|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  255|  4.25k|	AnnounceExit();
  ------------------
  252|  4.25k|}
WXMPMeta_DeleteNamespace_1:
  280|    159|{
  281|    159|	XMP_ENTER_WRAPPER ( "WXMPMeta_DeleteNamespace_1" )
  ------------------
  |  |  241|    159|	AnnounceEntry ( proc );									\
  |  |  242|    159|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|    159|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|    159|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    159|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|    159|	try {													\
  |  |  245|    159|		XMP_AutoMutex mutex;								\
  |  |  246|    159|		wResult->errMessage = 0;
  ------------------
  282|       |
  283|    159|		if ( (namespaceURI == 0) || (*namespaceURI == 0) ) XMP_Throw ( "Empty namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (283:8): [True: 0, False: 159]
  |  Branch (283:31): [True: 0, False: 159]
  ------------------
  284|       |
  285|    159|		XMPMeta::DeleteNamespace ( namespaceURI );
  286|       |
  287|    159|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    159|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    159|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|    159|	AnnounceExit();
  ------------------
  288|    159|}
WXMPMeta_SetProperty_1:
  522|  3.44k|{
  523|  3.44k|	XMP_ENTER_WRAPPER ( "WXMPMeta_SetProperty_1" )
  ------------------
  |  |  241|  3.44k|	AnnounceEntry ( proc );									\
  |  |  242|  3.44k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.44k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.44k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.44k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.44k|	try {													\
  |  |  245|  3.44k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.44k|		wResult->errMessage = 0;
  ------------------
  524|       |
  525|  3.44k|		if ( (schemaNS == 0) || (*schemaNS == 0) ) XMP_Throw ( "Empty schema namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (525:8): [True: 0, False: 3.44k]
  |  Branch (525:27): [True: 0, False: 3.44k]
  ------------------
  526|  3.44k|		if ( (propName == 0) || (*propName == 0) ) XMP_Throw ( "Empty property name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (526:8): [True: 0, False: 3.44k]
  |  Branch (526:27): [True: 0, False: 3.44k]
  ------------------
  527|       |
  528|  3.44k|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|  3.44k|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 3.44k]
  |  |  ------------------
  ------------------
  529|  3.44k|		meta->SetProperty ( schemaNS, propName, propValue, options );
  530|       |		
  531|  3.44k|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|  3.44k|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|  3.44k|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|  3.44k|	AnnounceExit();
  ------------------
  532|  3.44k|}
WXMPMeta_AppendArrayItem_1:
  566|     58|{
  567|     58|	XMP_ENTER_WRAPPER ( "WXMPMeta_AppendArrayItem_1" )
  ------------------
  |  |  241|     58|	AnnounceEntry ( proc );									\
  |  |  242|     58|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|     58|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|     58|	try {													\
  |  |  245|     58|		XMP_AutoMutex mutex;								\
  |  |  246|     58|		wResult->errMessage = 0;
  ------------------
  568|       |
  569|     58|		if ( (schemaNS == 0) || (*schemaNS == 0) ) XMP_Throw ( "Empty schema namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (569:8): [True: 0, False: 58]
  |  Branch (569:27): [True: 0, False: 58]
  ------------------
  570|     58|		if ( (arrayName == 0) || (*arrayName == 0) ) XMP_Throw ( "Empty array name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (570:8): [True: 0, False: 58]
  |  Branch (570:28): [True: 0, False: 58]
  ------------------
  571|       |
  572|     58|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|     58|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 58]
  |  |  ------------------
  ------------------
  573|     58|		meta->AppendArrayItem ( schemaNS, arrayName, arrayOptions, itemValue, options );
  574|       |		
  575|     58|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     58|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     58|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|     58|	AnnounceExit();
  ------------------
  576|     58|}
WXMPMeta_SetQualifier_1:
  614|     58|{
  615|     58|	XMP_ENTER_WRAPPER ( "WXMPMeta_SetQualifier_1" )
  ------------------
  |  |  241|     58|	AnnounceEntry ( proc );									\
  |  |  242|     58|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|     58|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|     58|	try {													\
  |  |  245|     58|		XMP_AutoMutex mutex;								\
  |  |  246|     58|		wResult->errMessage = 0;
  ------------------
  616|       |
  617|     58|		if ( (schemaNS == 0) || (*schemaNS == 0) ) XMP_Throw ( "Empty schema namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (617:8): [True: 0, False: 58]
  |  Branch (617:27): [True: 0, False: 58]
  ------------------
  618|     58|		if ( (propName == 0) || (*propName == 0) ) XMP_Throw ( "Empty property name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (618:8): [True: 0, False: 58]
  |  Branch (618:27): [True: 0, False: 58]
  ------------------
  619|     58|		if ( (qualNS == 0) || (*qualNS == 0) ) XMP_Throw ( "Empty qualifier namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (619:8): [True: 0, False: 58]
  |  Branch (619:25): [True: 0, False: 58]
  ------------------
  620|     58|		if ( (qualName == 0) || (*qualName == 0) ) XMP_Throw ( "Empty qualifier name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (620:8): [True: 0, False: 58]
  |  Branch (620:27): [True: 0, False: 58]
  ------------------
  621|       |
  622|     58|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|     58|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 58]
  |  |  ------------------
  ------------------
  623|     58|		meta->SetQualifier ( schemaNS, propName, qualNS, qualName, qualValue, options );
  624|       |		
  625|     58|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     58|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     58|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|     58|	AnnounceExit();
  ------------------
  626|     58|}
WXMPMeta_CountArrayItems_1:
 1168|    753|{
 1169|    753|	XMP_ENTER_WRAPPER ( "WXMPMeta_CountArrayItems_1" )
  ------------------
  |  |  241|    753|	AnnounceEntry ( proc );									\
  |  |  242|    753|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|    753|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|    753|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    753|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|    753|	try {													\
  |  |  245|    753|		XMP_AutoMutex mutex;								\
  |  |  246|    753|		wResult->errMessage = 0;
  ------------------
 1170|       |		
 1171|    753|		if ( (schemaNS == 0) || (*schemaNS == 0) ) XMP_Throw ( "Empty schema namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1171:8): [True: 0, False: 753]
  |  Branch (1171:27): [True: 0, False: 753]
  ------------------
 1172|    753|		if ( (arrayName == 0) || (*arrayName == 0) ) XMP_Throw ( "Empty array name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1172:8): [True: 0, False: 753]
  |  Branch (1172:28): [True: 0, False: 753]
  ------------------
 1173|       |
 1174|    753|		const XMPMeta & meta = WtoXMPMeta_Ref ( xmpRef );
  ------------------
  |  |  108|    753|#define WtoXMPMeta_Ref(xmpRef)	*((const XMPMeta *)(xmpRef))
  ------------------
 1175|    753|		XMP_Index count = meta.CountArrayItems ( schemaNS, arrayName );
 1176|    753|		wResult->int32Result = count;
 1177|       |		
 1178|    753|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    753|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    753|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|    753|	AnnounceExit();
  ------------------
 1179|    753|}
WXMPMeta_UnlockObject_1:
 1186|    247|{
 1187|    247|	WXMP_Result * wResult = &void_wResult;	// ! Needed to "fool" the EnterWrapper macro.
 1188|    247|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPMeta_UnlockObject_1" )
  ------------------
  |  |  235|    247|	AnnounceNoLock ( proc );								\
  |  |  236|    247|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    247|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|    247|	try {													\
  |  |  238|    247|		wResult->errMessage = 0;
  ------------------
 1189|       |	
 1190|    247|		const XMPMeta & meta = WtoXMPMeta_Ref ( xmpRef );
  ------------------
  |  |  108|    247|#define WtoXMPMeta_Ref(xmpRef)	*((const XMPMeta *)(xmpRef))
  ------------------
 1191|    247|		meta.UnlockObject ( options );
 1192|       |
 1193|    247|	XMP_EXIT_WRAPPER_NO_THROW
  ------------------
  |  |  258|    247|	} catch ( ... )	{							\
  |  |  259|      0|		AnnounceCatch ( "no-throw catch-all" );	\
  |  |  260|      0|		/* Do nothing. */						\
  |  |  261|      0|	}											\
  |  |  262|    247|	AnnounceExit();
  ------------------
 1194|    247|}
WXMPMeta_ParseFromBuffer_1:
 1270|  3.29k|{
 1271|  3.29k|	XMP_ENTER_WRAPPER ( "WXMPMeta_ParseFromBuffer_1" )
  ------------------
  |  |  241|  3.29k|	AnnounceEntry ( proc );									\
  |  |  242|  3.29k|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|  3.29k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|  3.29k|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|  3.29k|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|  3.29k|	try {													\
  |  |  245|  3.29k|		XMP_AutoMutex mutex;								\
  |  |  246|  3.29k|		wResult->errMessage = 0;
  ------------------
 1272|       |
 1273|  3.29k|		XMPMeta * meta = WtoXMPMeta_Ptr ( xmpRef );
  ------------------
  |  |  109|  3.29k|#define WtoXMPMeta_Ptr(xmpRef)	(((xmpRef) == 0) ? 0 : (XMPMeta *)(xmpRef))
  |  |  ------------------
  |  |  |  Branch (109:33): [True: 0, False: 3.29k]
  |  |  ------------------
  ------------------
 1274|  3.29k|		meta->ParseFromBuffer ( buffer, bufferSize, options );
 1275|       |		
 1276|  3.29k|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|  3.29k|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|  3.29k|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|    632|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|    632|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|    632|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|    632|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 632]
  |  |  |  |  ------------------
  |  |  |  |  270|    632|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|    632|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|  3.29k|	AnnounceExit();
  ------------------
 1277|  3.29k|}
WXMPMeta_SerializeToBuffer_1:
 1291|    247|{
 1292|    247|	XMP_ENTER_WRAPPER ( "WXMPMeta_SerializeToBuffer_1" )
  ------------------
  |  |  241|    247|	AnnounceEntry ( proc );									\
  |  |  242|    247|	XMP_Assert ( sXMP_InitCount > 0 );	                    \
  |  |  ------------------
  |  |  |  |  142|    247|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  243|    247|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    247|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  244|    247|	try {													\
  |  |  245|    247|		XMP_AutoMutex mutex;								\
  |  |  246|    247|		wResult->errMessage = 0;
  ------------------
 1293|       |
 1294|    247|		if ( rdfString == 0 ) rdfString = &voidStringPtr;
  ------------------
  |  Branch (1294:8): [True: 0, False: 247]
  ------------------
 1295|    247|		if ( rdfSize == 0 ) rdfSize = &voidStringLen;
  ------------------
  |  Branch (1295:8): [True: 0, False: 247]
  ------------------
 1296|       |		
 1297|    247|		if ( newline == 0 ) newline = "";
  ------------------
  |  Branch (1297:8): [True: 0, False: 247]
  ------------------
 1298|    247|		if ( indent == 0 ) indent = "";
  ------------------
  |  Branch (1298:8): [True: 0, False: 247]
  ------------------
 1299|       |		
 1300|    247|		const XMPMeta & meta = WtoXMPMeta_Ref ( xmpRef );
  ------------------
  |  |  108|    247|#define WtoXMPMeta_Ref(xmpRef)	*((const XMPMeta *)(xmpRef))
  ------------------
 1301|    247|		meta.SerializeToBuffer ( rdfString, rdfSize, options, padding, newline, indent, baseIndent );
 1302|       |
 1303|    247|	XMP_EXIT_WRAPPER_KEEP_LOCK ( true ) // ! Always keep the lock, a string is always returned!
  ------------------
  |  |  253|    247|		if ( keep ) mutex.KeepLock();		\
  |  |  ------------------
  |  |  |  Branch (253:8): [True: 247, Folded]
  |  |  ------------------
  |  |  254|    247|	XMP_CATCH_EXCEPTIONS					\
  |  |  ------------------
  |  |  |  |  265|    247|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  255|    247|	AnnounceExit();
  ------------------
 1304|    247|}

WXMPUtils_ConvertToDate_1:
  339|    146|{
  340|    146|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_ConvertToDate_1" )
  ------------------
  |  |  235|    146|	AnnounceNoLock ( proc );								\
  |  |  236|    146|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|    146|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|    146|	try {													\
  |  |  238|    146|		wResult->errMessage = 0;
  ------------------
  341|       |
  342|    146|		if ( binValue == 0 ) XMP_Throw ( "Null output date", kXMPErr_BadParam); // ! Pointer is from the client.
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (342:8): [True: 0, False: 146]
  ------------------
  343|    146|		XMPUtils::ConvertToDate ( strValue, binValue );
  344|       |
  345|    146|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|    146|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|    146|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|     95|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|     95|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|     95|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|     95|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 95]
  |  |  |  |  ------------------
  |  |  |  |  270|     95|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|     95|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|    146|	AnnounceExit();
  ------------------
  346|    146|}
WXMPUtils_ConvertToLocalTime_1:
  395|     51|{
  396|     51|	XMP_ENTER_WRAPPER_NO_LOCK ( "WXMPUtils_ConvertToLocalTime_1" )
  ------------------
  |  |  235|     51|	AnnounceNoLock ( proc );								\
  |  |  236|     51|	XMP_Assert ( (0 <= sLockCount) && (sLockCount <= 1) );	\
  |  |  ------------------
  |  |  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  |  |  ------------------
  |  |  237|     51|	try {													\
  |  |  238|     51|		wResult->errMessage = 0;
  ------------------
  397|       |
  398|     51|		if ( time == 0 ) XMP_Throw ( "Null output date", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (398:8): [True: 0, False: 51]
  ------------------
  399|     51|		XMPUtils::ConvertToLocalTime ( time );
  400|       |
  401|     51|	XMP_EXIT_WRAPPER
  ------------------
  |  |  249|     51|	XMP_CATCH_EXCEPTIONS	\
  |  |  ------------------
  |  |  |  |  265|     51|	} catch ( XMP_Error & xmpErr ) {								\
  |  |  |  |  266|      0|		wResult->int32Result = xmpErr.GetID(); 						\
  |  |  |  |  267|      0|		wResult->ptrResult   = (void*)"XMP";						\
  |  |  |  |  268|      0|		wResult->errMessage  = xmpErr.GetErrMsg();					\
  |  |  |  |  269|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (269:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  270|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  271|      0|	} catch ( std::exception & stdErr ) {							\
  |  |  |  |  272|      0|		wResult->int32Result = kXMPErr_StdException; 				\
  |  |  |  |  273|      0|		wResult->errMessage  = stdErr.what(); 						\
  |  |  |  |  274|      0|		if ( wResult->errMessage == 0 ) wResult->errMessage = "";	\
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (274:8): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  275|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  276|      0|	} catch ( ... ) {												\
  |  |  |  |  277|      0|		wResult->int32Result = kXMPErr_UnknownException; 			\
  |  |  |  |  278|      0|		wResult->errMessage  = "Caught unknown exception";			\
  |  |  |  |  279|      0|		AnnounceCatch ( wResult->errMessage );						\
  |  |  |  |  280|      0|	}
  |  |  ------------------
  |  |  250|     51|	AnnounceExit();
  ------------------
  402|     51|}

_ZN8XML_NodeC2EPS_PKch:
   90|  72.5k|            : kind(_kind), name(_name), nsPrefixLen(0), parent(_parent) {};
_ZN8XML_NodeD2Ev:
   95|  72.5k|	virtual ~XML_Node() { RemoveAttrs(); RemoveContent(); };
_ZN16XMLParserAdapterC2Ev:
  112|  3.29k|		: tree(0,"",kRootNode), rootNode(0), rootCount(0), charEncoding(XMP_OptionBits(-1)), pendingCount(0)
  113|  3.29k|	{
  114|       |		#if XMP_DebugBuild
  115|       |			parseLog = 0;
  116|       |		#endif
  117|  3.29k|	};
_ZN16XMLParserAdapterD2Ev:
  119|  3.29k|	virtual ~XMLParserAdapter() {};

_ZNK8XML_Node16IsWhitespaceNodeEv:
   39|  24.0k|{
   40|  24.0k|	if ( this->kind != kCDataNode ) return false;
  ------------------
  |  Branch (40:7): [True: 9.29k, False: 14.7k]
  ------------------
   41|       |
   42|  49.3k|	for ( size_t i = 0; i < this->value.size(); ++i ) {
  ------------------
  |  Branch (42:22): [True: 34.6k, False: 14.6k]
  ------------------
   43|  34.6k|		unsigned char ch = this->value[i];
   44|  34.6k|		if ( IsWhitespaceChar ( ch ) ) continue;
  ------------------
  |  |   45|  34.6k|#define IsWhitespaceChar(ch)	( ((ch) == ' ') || ((ch) == 0x09) || ((ch) == 0x0A) || ((ch) == 0x0D) )
  |  |  ------------------
  |  |  |  Branch (45:32): [True: 26.5k, False: 8.14k]
  |  |  |  Branch (45:49): [True: 316, False: 7.82k]
  |  |  |  Branch (45:67): [True: 7.69k, False: 127]
  |  |  |  Branch (45:85): [True: 0, False: 127]
  |  |  ------------------
  ------------------
   45|       |		// *** Add checks for other whitespace characters.
   46|    127|		return false;	// All the checks failed, this isn't whitespace.
   47|  34.6k|	}
   48|       |
   49|  14.6k|	return true;
   50|       |
   51|  14.7k|}	// XML_Node::IsWhitespaceNode
_ZN8XML_Node11RemoveAttrsEv:
  427|  72.5k|{
  428|       |
  429|  85.9k|	for ( size_t i = 0, vLim = this->attrs.size(); i < vLim; ++i ) delete this->attrs[i];
  ------------------
  |  Branch (429:49): [True: 13.3k, False: 72.5k]
  ------------------
  430|  72.5k|	this->attrs.clear();
  431|       |
  432|  72.5k|}	// XML_Node::RemoveAttrs
_ZN8XML_Node13RemoveContentEv:
  439|  72.5k|{
  440|       |
  441|   128k|	for ( size_t i = 0, vLim = this->content.size(); i < vLim; ++i ) delete this->content[i];
  ------------------
  |  Branch (441:51): [True: 55.9k, False: 72.5k]
  ------------------
  442|  72.5k|	this->content.clear();
  443|       |
  444|  72.5k|}	// XML_Node::RemoveContent

_Z13XMP_InitMutexP15pthread_mutex_t:
  114|      1|	bool XMP_InitMutex ( XMP_Mutex * mutex ) {
  115|      1|		int err = pthread_mutex_init ( mutex, 0 );
  116|      1|		return (err == 0 );
  117|      1|	}
_Z13XMP_TermMutexR15pthread_mutex_t:
  119|      1|	void XMP_TermMutex ( XMP_Mutex & mutex ) {
  120|      1|		(void) pthread_mutex_destroy ( &mutex );
  121|      1|	}
_Z23XMP_EnterCriticalRegionR15pthread_mutex_t:
  123|  49.3k|	void XMP_EnterCriticalRegion ( XMP_Mutex & mutex ) {
  124|  49.3k|		int err = pthread_mutex_lock ( &mutex );
  125|  49.3k|		if ( err != 0 ) XMP_Throw ( "XMP_EnterCriticalRegion - pthread_mutex_lock failure", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (125:8): [True: 0, False: 49.3k]
  ------------------
  126|  49.3k|	}
_Z22XMP_ExitCriticalRegionR15pthread_mutex_t:
  128|  49.3k|	void XMP_ExitCriticalRegion ( XMP_Mutex & mutex ) {
  129|  49.3k|		int err = pthread_mutex_unlock ( &mutex );
  130|  49.3k|		if ( err != 0 ) XMP_Throw ( "XMP_ExitCriticalRegion - pthread_mutex_unlock failure", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (130:8): [True: 0, False: 49.3k]
  ------------------
  131|  49.3k|	}
_Z16VerifySetOptionsjPKc:
  563|  3.65k|{
  564|       |
  565|  3.65k|	if ( options & kXMP_PropArrayIsAltText )   options |= kXMP_PropArrayIsAlternate;
  ------------------
  |  Branch (565:7): [True: 8, False: 3.64k]
  ------------------
  566|  3.65k|	if ( options & kXMP_PropArrayIsAlternate ) options |= kXMP_PropArrayIsOrdered;
  ------------------
  |  Branch (566:7): [True: 83, False: 3.57k]
  ------------------
  567|  3.65k|	if ( options & kXMP_PropArrayIsOrdered )   options |= kXMP_PropValueIsArray;
  ------------------
  |  Branch (567:7): [True: 340, False: 3.31k]
  ------------------
  568|       |	
  569|  3.65k|	if ( options & ~kXMP_AllSetOptionsMask ) {
  ------------------
  |  Branch (569:7): [True: 0, False: 3.65k]
  ------------------
  570|      0|		XMP_Throw ( "Unrecognized option flags", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  571|      0|	}
  572|       |	
  573|  3.65k|	if ( (options & kXMP_PropValueIsStruct) && (options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (573:7): [True: 108, False: 3.54k]
  |  Branch (573:45): [True: 0, False: 108]
  ------------------
  574|      0|		XMP_Throw ( "IsStruct and IsArray options are mutually exclusive", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  575|      0|	}
  576|       |	
  577|  3.65k|	if ( (options & kXMP_PropValueOptionsMask) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (577:7): [True: 0, False: 3.65k]
  |  Branch (577:48): [True: 0, False: 0]
  ------------------
  578|      0|		XMP_Throw ( "Structs and arrays can't have \"value\" options", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  579|      0|	}
  580|       |	
  581|  3.65k|	if ( (propValue != 0) && (options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (581:7): [True: 2.99k, False: 660]
  |  Branch (581:27): [True: 0, False: 2.99k]
  ------------------
  582|      0|		XMP_Throw ( "Structs and arrays can't have string values", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  583|      0|	}
  584|       |
  585|  3.65k|	return options;
  586|       |
  587|  3.65k|}	// VerifySetOptions
_Z11ExpandXPathPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  662|  20.0k|{
  663|  20.0k|	XMP_Assert ( (schemaNS != 0) && (propPath != 0) && (*propPath != 0) && (expandedXPath != 0) );
  ------------------
  |  |  142|  20.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  664|       |	
  665|  20.0k|	XMP_StringPtr	stepBegin, stepEnd;
  666|  20.0k|	XMP_StringPtr	qualName, nameEnd;
  667|  20.0k|	XMP_VarString	currStep;
  668|       |		
  669|  20.0k|	qualName = nameEnd = NULL;
  670|  20.0k|	size_t resCount = 2;	// Guess at the number of steps. At least 2, plus 1 for each '/' or '['.
  671|  5.13M|	for ( stepEnd = propPath; *stepEnd != 0; ++stepEnd ) {
  ------------------
  |  Branch (671:28): [True: 5.11M, False: 20.0k]
  ------------------
  672|  5.11M|		if ( (*stepEnd == '/') || (*stepEnd == '[') ) ++resCount;
  ------------------
  |  Branch (672:8): [True: 1.50k, False: 5.11M]
  |  Branch (672:29): [True: 5.30k, False: 5.10M]
  ------------------
  673|  5.11M|	}
  674|       |	
  675|  20.0k|	expandedXPath->clear();
  676|  20.0k|	expandedXPath->reserve ( resCount );
  677|       |	
  678|       |	// -------------------------------------------------------------------------------------------
  679|       |	// Pull out the first component and do some special processing on it: add the schema namespace
  680|       |	// prefix and see if it is an alias. The start must be a qualName.
  681|       |	
  682|  20.0k|	stepBegin = propPath;
  683|  20.0k|	stepEnd = stepBegin;
  684|  5.09M|	while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (684:10): [True: 5.07M, False: 14.4k]
  |  Branch (684:29): [True: 5.07M, False: 290]
  |  Branch (684:50): [True: 5.07M, False: 5.30k]
  |  Branch (684:71): [True: 5.07M, False: 0]
  ------------------
  685|  20.0k|	if ( stepEnd == stepBegin ) XMP_Throw ( "Empty initial XPath step", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (685:7): [True: 0, False: 20.0k]
  ------------------
  686|  20.0k|	currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  687|       |	
  688|  20.0k|	VerifyXPathRoot ( schemaNS, currStep.c_str(), expandedXPath );
  689|       |
  690|  20.0k|	XMP_OptionBits stepFlags = kXMP_StructFieldStep;	
  691|  20.0k|	if ( sRegisteredAliasMap->find ( (*expandedXPath)[kRootPropStep].step ) != sRegisteredAliasMap->end() ) {
  ------------------
  |  Branch (691:7): [True: 0, False: 20.0k]
  ------------------
  692|      0|		stepFlags |= kXMP_StepIsAlias;
  693|      0|	}
  694|  20.0k|	(*expandedXPath)[kRootPropStep].options |= stepFlags;
  695|       |		
  696|       |	// -----------------------------------------------------
  697|       |	// Now continue to process the rest of the XPath string.
  698|       |
  699|  26.8k|	while ( *stepEnd != 0 ) {
  ------------------
  |  Branch (699:10): [True: 6.81k, False: 20.0k]
  ------------------
  700|       |
  701|  6.81k|		stepBegin = stepEnd;
  702|  6.81k|		if ( *stepBegin == '/' ) ++stepBegin;
  ------------------
  |  Branch (702:8): [True: 1.50k, False: 5.30k]
  ------------------
  703|  6.81k|		if ( *stepBegin == '*' ) {
  ------------------
  |  Branch (703:8): [True: 0, False: 6.81k]
  ------------------
  704|      0|			++stepBegin;
  705|      0|			if ( *stepBegin != '[' ) XMP_Throw ( "Missing '[' after '*'", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (705:9): [True: 0, False: 0]
  ------------------
  706|      0|		}
  707|  6.81k|		stepEnd = stepBegin;
  708|       |
  709|  6.81k|		if ( *stepBegin != '[' ) {
  ------------------
  |  Branch (709:8): [True: 1.50k, False: 5.30k]
  ------------------
  710|       |		
  711|       |			// A struct field or qualifier.
  712|  1.50k|			qualName = stepBegin;
  713|  25.2k|			while ( (*stepEnd != 0) && (*stepEnd != '/') && (*stepEnd != '[') && (*stepEnd != '*') ) ++stepEnd;
  ------------------
  |  Branch (713:12): [True: 23.7k, False: 1.50k]
  |  Branch (713:31): [True: 23.7k, False: 0]
  |  Branch (713:52): [True: 23.7k, False: 0]
  |  Branch (713:73): [True: 23.7k, False: 0]
  ------------------
  714|  1.50k|			nameEnd = stepEnd;
  715|  1.50k|			stepFlags = kXMP_StructFieldStep;	// ! Touch up later, also changing '@' to '?'.
  716|       |			
  717|  5.30k|		} else {
  718|       |		
  719|       |			// One of the array forms.
  720|       |		
  721|  5.30k|			++stepEnd;	// Look at the character after the leading '['.
  722|       |			
  723|  5.30k|			if ( ('0' <= *stepEnd) && (*stepEnd <= '9') ) {
  ------------------
  |  Branch (723:9): [True: 5.30k, False: 0]
  |  Branch (723:30): [True: 5.30k, False: 0]
  ------------------
  724|       |
  725|       |				// A numeric (decimal integer) array index.
  726|  10.6k|				while ( (*stepEnd != 0) && ('0' <= *stepEnd) && (*stepEnd <= '9') ) ++stepEnd;
  ------------------
  |  Branch (726:13): [True: 10.6k, False: 0]
  |  Branch (726:32): [True: 10.6k, False: 0]
  |  Branch (726:53): [True: 5.30k, False: 5.30k]
  ------------------
  727|  5.30k|				if ( *stepEnd != ']' ) XMP_Throw ( "Missing ']' for integer array index", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (727:10): [True: 0, False: 5.30k]
  ------------------
  728|  5.30k|				stepFlags = kXMP_ArrayIndexStep;
  729|       |
  730|  5.30k|			} else {
  731|       |
  732|       |				// Could be "[last()]" or one of the selector forms. Find the ']' or '='.
  733|       |				
  734|      0|				while ( (*stepEnd != 0) && (*stepEnd != ']') && (*stepEnd != '=') ) ++stepEnd;
  ------------------
  |  Branch (734:13): [True: 0, False: 0]
  |  Branch (734:32): [True: 0, False: 0]
  |  Branch (734:53): [True: 0, False: 0]
  ------------------
  735|      0|				if ( *stepEnd == 0 ) XMP_Throw ( "Missing ']' or '=' for array index", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (735:10): [True: 0, False: 0]
  ------------------
  736|       |
  737|      0|				if ( *stepEnd == ']' ) {
  ------------------
  |  Branch (737:10): [True: 0, False: 0]
  ------------------
  738|       |
  739|      0|					if ( strncmp ( "[last()", stepBegin, (stepEnd - stepBegin) ) != 0 ) {
  ------------------
  |  Branch (739:11): [True: 0, False: 0]
  ------------------
  740|      0|						XMP_Throw ( "Invalid non-numeric array index", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  741|      0|					}
  742|      0|					stepFlags = kXMP_ArrayLastStep;
  743|       |
  744|      0|				} else {
  745|       |
  746|      0|					qualName = stepBegin+1;
  747|      0|					nameEnd = stepEnd;
  748|      0|					++stepEnd;	// Absorb the '=', remember the quote.
  749|      0|					const char quote = *stepEnd;
  750|      0|					if ( (quote != '\'') && (quote != '"') ) {
  ------------------
  |  Branch (750:11): [True: 0, False: 0]
  |  Branch (750:30): [True: 0, False: 0]
  ------------------
  751|      0|						XMP_Throw ( "Invalid quote in array selector", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  752|      0|					}
  753|       |
  754|      0|					++stepEnd;	// Absorb the leading quote.
  755|      0|					while ( *stepEnd != 0 ) {
  ------------------
  |  Branch (755:14): [True: 0, False: 0]
  ------------------
  756|      0|						if ( *stepEnd == quote ) {
  ------------------
  |  Branch (756:12): [True: 0, False: 0]
  ------------------
  757|      0|							if ( *(stepEnd+1) != quote ) break;
  ------------------
  |  Branch (757:13): [True: 0, False: 0]
  ------------------
  758|      0|							++stepEnd;
  759|      0|						}
  760|      0|						++stepEnd;
  761|      0|					}
  762|      0|					if ( *stepEnd == 0 ) {
  ------------------
  |  Branch (762:11): [True: 0, False: 0]
  ------------------
  763|      0|						XMP_Throw ( "No terminating quote for array selector", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  764|      0|					}
  765|      0|					++stepEnd;	// Absorb the trailing quote.
  766|       |					
  767|      0|					stepFlags = kXMP_FieldSelectorStep;	// ! Touch up later, also changing '@' to '?'.
  768|       |
  769|      0|				}
  770|       |
  771|      0|			}
  772|       |
  773|  5.30k|			if ( *stepEnd != ']' ) XMP_Throw ( "Missing ']' for array index", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (773:9): [True: 0, False: 5.30k]
  ------------------
  774|  5.30k|			++stepEnd;
  775|       |			
  776|  5.30k|		}
  777|       |
  778|  6.81k|		if ( stepEnd == stepBegin ) XMP_Throw ( "Empty XPath step", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (778:8): [True: 0, False: 6.81k]
  ------------------
  779|  6.81k|		currStep.assign ( stepBegin, (stepEnd - stepBegin) );
  780|       |
  781|  6.81k|		if ( GetStepKind ( stepFlags ) == kXMP_StructFieldStep ) {
  ------------------
  |  |  408|  6.81k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (781:8): [True: 1.50k, False: 5.30k]
  ------------------
  782|       |
  783|  1.50k|			if ( currStep[0] == '@' ) {
  ------------------
  |  Branch (783:9): [True: 0, False: 1.50k]
  ------------------
  784|      0|				currStep[0] = '?';
  785|      0|				if ( currStep != "?xml:lang" ) XMP_Throw ( "Only xml:lang allowed with '@'", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (785:10): [True: 0, False: 0]
  ------------------
  786|      0|			}
  787|  1.50k|			if ( currStep[0] == '?' ) {
  ------------------
  |  Branch (787:9): [True: 449, False: 1.05k]
  ------------------
  788|    449|				++qualName;
  789|    449|				stepFlags = kXMP_QualifierStep;
  790|    449|			}
  791|  1.50k|			VerifyQualName ( qualName, nameEnd );
  792|       |
  793|  5.30k|		} else if ( GetStepKind ( stepFlags ) == kXMP_FieldSelectorStep ) {
  ------------------
  |  |  408|  5.30k|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (793:15): [True: 0, False: 5.30k]
  ------------------
  794|       |
  795|      0|			if ( currStep[1] == '@' ) {
  ------------------
  |  Branch (795:9): [True: 0, False: 0]
  ------------------
  796|      0|				currStep[1] = '?';
  797|      0|				if ( strncmp ( currStep.c_str(), "[?xml:lang=", 11 ) != 0 ) {
  ------------------
  |  Branch (797:10): [True: 0, False: 0]
  ------------------
  798|      0|					XMP_Throw ( "Only xml:lang allowed with '@'", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  799|      0|				}
  800|      0|			}
  801|      0|			if ( currStep[1] == '?' ) {
  ------------------
  |  Branch (801:9): [True: 0, False: 0]
  ------------------
  802|      0|				++qualName;
  803|      0|				stepFlags = kXMP_QualSelectorStep;
  804|      0|			}
  805|      0|			VerifyQualName ( qualName, nameEnd );
  806|       |
  807|      0|		}
  808|       |
  809|  6.81k|		expandedXPath->push_back ( XPathStepInfo ( currStep, stepFlags ) );
  810|       |
  811|  6.81k|	}
  812|       |
  813|  20.0k|}	// ExpandXPath
_Z14FindSchemaNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  828|  59.3k|{
  829|  59.3k|	XMP_Node * schemaNode = 0;
  830|       |	
  831|  59.3k|	XMP_Assert ( xmpTree->parent == 0 );
  ------------------
  |  |  142|  59.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  832|       |	
  833|   234k|	for ( size_t schemaNum = 0, schemaLim = xmpTree->children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (833:68): [True: 206k, False: 27.8k]
  ------------------
  834|   206k|		XMP_Node * currSchema = xmpTree->children[schemaNum];
  835|   206k|		XMP_Assert ( currSchema->parent == xmpTree );
  ------------------
  |  |  142|   206k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  836|   206k|		if ( currSchema->name == nsURI ) {
  ------------------
  |  Branch (836:8): [True: 31.4k, False: 175k]
  ------------------
  837|  31.4k|			schemaNode = currSchema;
  838|  31.4k|			if ( ptrPos != 0 ) *ptrPos = xmpTree->children.begin() + schemaNum;
  ------------------
  |  Branch (838:9): [True: 19.2k, False: 12.2k]
  ------------------
  839|  31.4k|			break;
  840|  31.4k|		}
  841|   206k|	}
  842|       |	
  843|  59.3k|	if ( (schemaNode == 0) && createNodes ) {
  ------------------
  |  Branch (843:7): [True: 27.8k, False: 31.4k]
  |  Branch (843:28): [True: 6.36k, False: 21.5k]
  ------------------
  844|       |
  845|  6.36k|		schemaNode = new XMP_Node ( xmpTree, nsURI, (kXMP_SchemaNode | kXMP_NewImplicitNode) );
  ------------------
  |  |  410|  6.36k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  846|  6.36k|		XMP_StringPtr prefixPtr;
  847|  6.36k|		XMP_StringLen prefixLen;
  848|  6.36k|        bool found = XMPMeta::GetNamespacePrefix ( nsURI, &prefixPtr, &prefixLen );	// *** Use map directly?
  849|  6.36k|		XMP_Assert ( found );
  ------------------
  |  |  142|  6.36k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  850|  6.36k|		UNUSED(found);
  851|       |
  852|  6.36k|		schemaNode->value.assign ( prefixPtr, prefixLen );
  853|  6.36k|		xmpTree->children.push_back ( schemaNode );
  854|  6.36k|		if ( ptrPos != 0 ) *ptrPos = xmpTree->children.end() - 1;
  ------------------
  |  Branch (854:8): [True: 748, False: 5.62k]
  ------------------
  855|       |
  856|       |		#if 0	// *** XMP_DebugBuild
  857|       |			schemaNode->_valuePtr = schemaNode->value.c_str();
  858|       |		#endif
  859|       |
  860|  6.36k|	}
  861|       |	
  862|  59.3k|	XMP_Assert ( (ptrPos == 0) || (schemaNode == 0) || (schemaNode == **ptrPos) );
  ------------------
  |  |  142|  59.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  863|  59.3k|	XMP_Assert ( (schemaNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  59.3k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  864|  59.3k|	return schemaNode;
  865|       |	
  866|  59.3k|}	// FindSchemaNode
_Z13FindChildNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  881|  34.6k|{
  882|  34.6k|	XMP_Node * childNode = 0;
  883|       |
  884|  34.6k|	if ( ! (parent->options & (kXMP_SchemaNode | kXMP_PropValueIsStruct)) ) {
  ------------------
  |  Branch (884:7): [True: 12, False: 34.6k]
  ------------------
  885|     12|		if ( ! (parent->options & kXMP_NewImplicitNode) ) {
  ------------------
  |  |  410|     12|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (885:8): [True: 12, False: 0]
  ------------------
  886|     12|			XMP_Throw ( "Named children only allowed for schemas and structs", kXMPErr_BadXPath );
  ------------------
  |  |  199|     12|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  887|      0|		}
  888|      0|		if ( parent->options & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (888:8): [True: 0, False: 0]
  ------------------
  889|      0|			XMP_Throw ( "Named children not allowed for arrays", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  890|      0|		}
  891|      0|		if ( ! createNodes ) {	// *** Should be assert? If !createNodes, why is the parent a new implicit node?
  ------------------
  |  Branch (891:8): [True: 0, False: 0]
  ------------------
  892|      0|			XMP_Throw ( "Parent is new implicit node, but createNodes is false", kXMPErr_InternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  893|      0|		}
  894|      0|		parent->options |= kXMP_PropValueIsStruct;
  895|      0|	}
  896|       |	
  897|   615k|	for ( size_t childNum = 0, childLim = parent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (897:65): [True: 599k, False: 16.3k]
  ------------------
  898|   599k|		XMP_Node * currChild = parent->children[childNum];
  899|   599k|		XMP_Assert ( currChild->parent == parent );
  ------------------
  |  |  142|   599k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  900|   599k|		if ( currChild->name == childName ) {
  ------------------
  |  Branch (900:8): [True: 18.3k, False: 580k]
  ------------------
  901|  18.3k|			childNode = currChild;
  902|  18.3k|			if ( ptrPos != 0 ) *ptrPos = parent->children.begin() + childNum;
  ------------------
  |  Branch (902:9): [True: 18.2k, False: 80]
  ------------------
  903|  18.3k|			break;
  904|  18.3k|		}
  905|   599k|	}
  906|       |	
  907|  34.6k|	if ( (childNode == 0) && createNodes ) {
  ------------------
  |  Branch (907:7): [True: 16.3k, False: 18.3k]
  |  Branch (907:27): [True: 2.80k, False: 13.5k]
  ------------------
  908|  2.80k|		childNode = new XMP_Node ( parent, childName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|  2.80k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  909|  2.80k|		parent->children.push_back ( childNode );
  910|  2.80k|		if ( ptrPos != 0 ) *ptrPos = parent->children.end() - 1;
  ------------------
  |  Branch (910:8): [True: 2.80k, False: 0]
  ------------------
  911|  2.80k|	}
  912|       |	
  913|  34.6k|	XMP_Assert ( (ptrPos == 0) || (childNode == 0) || (childNode == **ptrPos) );
  ------------------
  |  |  142|  34.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  914|  34.6k|	XMP_Assert ( (childNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  34.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  915|  34.6k|	return childNode;
  916|       |	
  917|  34.6k|}	// FindChildNode
_Z17FindQualifierNodeP8XMP_NodePKcbPNSt3__111__wrap_iterIPS0_EE:
  934|    449|{
  935|    449|	XMP_Node * qualNode = 0;
  936|       |	
  937|    449|	XMP_Assert ( *qualName != '?' );
  ------------------
  |  |  142|    449|	#define XMP_Assert(c)	((void) 0)
  ------------------
  938|       |	
  939|    672|	for ( size_t qualNum = 0, qualLim = parent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (939:65): [True: 517, False: 155]
  ------------------
  940|    517|		XMP_Node * currQual = parent->qualifiers[qualNum];
  941|    517|		XMP_Assert ( currQual->parent == parent );
  ------------------
  |  |  142|    517|	#define XMP_Assert(c)	((void) 0)
  ------------------
  942|    517|		if ( currQual->name == qualName ) {
  ------------------
  |  Branch (942:8): [True: 294, False: 223]
  ------------------
  943|    294|			qualNode = currQual;
  944|    294|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.begin() + qualNum;
  ------------------
  |  Branch (944:9): [True: 294, False: 0]
  ------------------
  945|    294|			break;
  946|    294|		}
  947|    517|	}
  948|       |	
  949|    449|	if ( (qualNode == 0) && createNodes ) {
  ------------------
  |  Branch (949:7): [True: 155, False: 294]
  |  Branch (949:26): [True: 155, False: 0]
  ------------------
  950|       |
  951|    155|		qualNode = new XMP_Node ( parent, qualName, (static_cast<unsigned long>(kXMP_PropIsQualifier) | static_cast<unsigned long>(kXMP_NewImplicitNode)) );
  ------------------
  |  |  410|    155|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  952|    155|		parent->options |= kXMP_PropHasQualifiers;
  953|       |
  954|    155|		const bool isLang 	 = XMP_LitMatch ( qualName, "xml:lang" );
  ------------------
  |  |   96|    155|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  955|    155|		const bool isType 	 = XMP_LitMatch ( qualName, "rdf:type" );
  ------------------
  |  |   96|    155|#define XMP_LitMatch(s,l)		(std::strcmp((s),(l)) == 0)
  ------------------
  956|    155|		const bool isSpecial = isLang | isType;
  957|       |
  958|    155|		if ( isLang ) {
  ------------------
  |  Branch (958:8): [True: 95, False: 60]
  ------------------
  959|     95|			parent->options |= kXMP_PropHasLang;
  960|     95|		} else if ( isType ) {
  ------------------
  |  Branch (960:15): [True: 0, False: 60]
  ------------------
  961|      0|			parent->options |= kXMP_PropHasType;
  962|      0|		}
  963|       |		
  964|    155|		if ( parent->qualifiers.empty() || (! isSpecial) ) {
  ------------------
  |  Branch (964:8): [True: 112, False: 43]
  |  Branch (964:38): [True: 43, False: 0]
  ------------------
  965|    155|			parent->qualifiers.push_back ( qualNode );
  966|    155|			if ( ptrPos != 0 ) *ptrPos = parent->qualifiers.end() - 1;
  ------------------
  |  Branch (966:9): [True: 155, False: 0]
  ------------------
  967|    155|		} else {
  968|      0|			XMP_NodePtrPos insertPos = parent->qualifiers.begin();	// ! Lang goes first, type after.
  969|      0|			if ( isType && (parent->options & kXMP_PropHasLang) ) ++insertPos;	// *** Does insert at end() work?
  ------------------
  |  Branch (969:9): [True: 0, False: 0]
  |  Branch (969:19): [True: 0, False: 0]
  ------------------
  970|      0|			insertPos = parent->qualifiers.insert ( insertPos, qualNode );
  971|      0|			if ( ptrPos != 0 ) *ptrPos = insertPos;
  ------------------
  |  Branch (971:9): [True: 0, False: 0]
  ------------------
  972|      0|		}
  973|       |
  974|    155|	}
  975|       |	
  976|    449|	XMP_Assert ( (ptrPos == 0) || (qualNode == 0) || (qualNode == **ptrPos) );
  ------------------
  |  |  142|    449|	#define XMP_Assert(c)	((void) 0)
  ------------------
  977|    449|	XMP_Assert ( (qualNode != 0) || (! createNodes) );
  ------------------
  |  |  142|    449|	#define XMP_Assert(c)	((void) 0)
  ------------------
  978|    449|	return qualNode;
  979|       |	
  980|    449|}	// FindQualifierNode
_Z8FindNodeP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEbjPNS1_11__wrap_iterIPS0_EE:
 1062|  20.0k|{
 1063|  20.0k|	XMP_Node *     currNode = 0;
 1064|  20.0k|	XMP_NodePtrPos currPos;
 1065|  20.0k|	XMP_NodePtrPos newSubPos;	// Root of implicitly created subtree. Valid only if leaf is new.
 1066|  20.0k|	bool           leafIsNew = false;
 1067|       |	
 1068|  20.0k|	XMP_Assert ( (leafOptions == 0) || createNodes );
  ------------------
  |  |  142|  20.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|       |
 1070|  20.0k|	if ( expandedXPath.empty() ) XMP_Throw ( "Empty XPath", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1070:7): [True: 0, False: 20.0k]
  ------------------
 1071|       |	
 1072|  20.0k|	size_t stepNum = 1;	// By default start calling FollowXPathStep for the top level property step.
 1073|  20.0k|	size_t stepLim = expandedXPath.size();
 1074|       |	
 1075|       |	// The start of processing deals with the schema node and top level alias. If the top level step
 1076|       |	// is not an alias, lookup the expanded path's schema URI. Otherwise, lookup the expanded path
 1077|       |	// for the actual. While tempting, don't substitute the actual's path into the local one, don't
 1078|       |	// risk messing with the caller's use of that. Also don't call FindNode recursively, we need to
 1079|       |	// keep track of the root of the implicitly created subtree as we move down the path.
 1080|       |	
 1081|  20.0k|	if ( ! (expandedXPath[kRootPropStep].options & kXMP_StepIsAlias) ) {
  ------------------
  |  Branch (1081:7): [True: 20.0k, False: 0]
  ------------------
 1082|       |		
 1083|  20.0k|		currNode = FindSchemaNode ( xmpTree, expandedXPath[kSchemaStep].step.c_str(), createNodes, &currPos );
 1084|  20.0k|		if ( currNode == 0 ) return 0;
  ------------------
  |  Branch (1084:8): [True: 4, False: 20.0k]
  ------------------
 1085|       |
 1086|  20.0k|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  20.0k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1086:8): [True: 748, False: 19.2k]
  ------------------
 1087|    748|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|    748|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1088|    748|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1088:9): [True: 748, False: 0]
  ------------------
 1089|    748|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1090|    748|		}
 1091|       |
 1092|  20.0k|	} else {
 1093|       |
 1094|      0|		stepNum = 2;	// ! Continue processing the original path at the second level step.
 1095|       |
 1096|      0|		XMP_AliasMapPos aliasPos = sRegisteredAliasMap->find ( expandedXPath[kRootPropStep].step );
 1097|      0|		XMP_Assert ( aliasPos != sRegisteredAliasMap->end() );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1098|       |		
 1099|      0|		currNode = FindSchemaNode ( xmpTree, aliasPos->second[kSchemaStep].step.c_str(), createNodes, &currPos );
 1100|      0|		if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1100:8): [True: 0, False: 0]
  ------------------
 1101|      0|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1101:8): [True: 0, False: 0]
  ------------------
 1102|      0|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1103|      0|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1103:9): [True: 0, False: 0]
  ------------------
 1104|      0|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1105|      0|		}
 1106|       |
 1107|      0|		currNode = FollowXPathStep ( currNode, aliasPos->second, 1, createNodes, &currPos );
 1108|      0|		if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1108:8): [True: 0, False: 0]
  ------------------
 1109|      0|		if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1109:8): [True: 0, False: 0]
  ------------------
 1110|      0|			currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1111|      0|			CheckImplicitStruct ( currNode, expandedXPath, 2, stepLim );
 1112|      0|			if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1112:9): [True: 0, False: 0]
  ------------------
 1113|      0|			leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1114|      0|		}
 1115|       |		
 1116|      0|		XMP_OptionBits arrayForm = aliasPos->second[kRootPropStep].options & kXMP_PropArrayFormMask;
 1117|      0|		XMP_Assert ( (arrayForm == 0) || (arrayForm & kXMP_PropValueIsArray) );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1118|      0|		XMP_Assert ( (arrayForm == 0) ? (aliasPos->second.size() == 2) : (aliasPos->second.size() == 3) );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1119|       |		
 1120|      0|		if ( arrayForm != 0 ) { 
  ------------------
  |  Branch (1120:8): [True: 0, False: 0]
  ------------------
 1121|      0|			currNode = FollowXPathStep ( currNode, aliasPos->second, 2, createNodes, &currPos, true );
 1122|      0|			if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1122:9): [True: 0, False: 0]
  ------------------
 1123|      0|			if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1123:9): [True: 0, False: 0]
  ------------------
 1124|      0|				currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1125|      0|				CheckImplicitStruct ( currNode, expandedXPath, 2, stepLim );
 1126|      0|				if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1126:10): [True: 0, False: 0]
  ------------------
 1127|      0|				leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1128|      0|			}
 1129|      0|		}
 1130|       |		
 1131|      0|	}
 1132|       |	
 1133|       |	// Now follow the remaining steps of the original XPath.
 1134|       |	
 1135|       |	// *** ??? Change all the num/lim loops back to num<lim? Probably safer.
 1136|       |	
 1137|  20.0k|	try {
 1138|  46.7k|		for ( ; stepNum < stepLim; ++stepNum ) {
  ------------------
  |  Branch (1138:11): [True: 26.7k, False: 19.9k]
  ------------------
 1139|  26.7k|			currNode = FollowXPathStep ( currNode, expandedXPath, stepNum, createNodes, &currPos );
 1140|  26.7k|			if ( currNode == 0 ) goto EXIT;
  ------------------
  |  Branch (1140:9): [True: 54, False: 26.7k]
  ------------------
 1141|  26.7k|			if ( currNode->options & kXMP_NewImplicitNode ) {
  ------------------
  |  |  410|  26.7k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (1141:9): [True: 3.62k, False: 23.1k]
  ------------------
 1142|  3.62k|				currNode->options ^= kXMP_NewImplicitNode;	// Clear the implicit node bit.
  ------------------
  |  |  410|  3.62k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
 1143|  3.62k|				CheckImplicitStruct ( currNode, expandedXPath, stepNum+1, stepLim );
 1144|  3.62k|				if ( ! leafIsNew ) newSubPos = currPos;	// Save the top most implicit node.
  ------------------
  |  Branch (1144:10): [True: 2.87k, False: 748]
  ------------------
 1145|  3.62k|				leafIsNew = true;	// If any parent is new, the leaf will be new also.
 1146|  3.62k|			}
 1147|  26.7k|		}
 1148|  20.0k|	} catch ( ... ) {
 1149|      0|		if ( leafIsNew ) DeleteSubtree ( newSubPos );
  ------------------
  |  Branch (1149:8): [True: 0, False: 0]
  ------------------
 1150|      0|		throw;
 1151|      0|	}
 1152|       |	
 1153|       |	// Done. Delete the implicitly created subtree if the eventual node was not found.
 1154|       |
 1155|  20.0k|EXIT:
 1156|       |
 1157|  20.0k|	XMP_Assert ( (currNode == 0) || (currNode == *currPos) );
  ------------------
  |  |  142|  20.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1158|  20.0k|	XMP_Assert ( (currNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  20.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1159|       |
 1160|  20.0k|	if ( leafIsNew ) {
  ------------------
  |  Branch (1160:7): [True: 3.62k, False: 16.3k]
  ------------------
 1161|  3.62k|		if ( currNode != 0 ) {
  ------------------
  |  Branch (1161:8): [True: 3.62k, False: 0]
  ------------------
 1162|  3.62k|			currNode->options |= leafOptions;
 1163|  3.62k|		} else {
 1164|      0|			DeleteSubtree ( newSubPos );
 1165|      0|		}
 1166|  3.62k|	}
 1167|       |
 1168|  20.0k|	if ( (currNode != 0) && (ptrPos != 0) ) *ptrPos = currPos;
  ------------------
  |  Branch (1168:7): [True: 19.9k, False: 54]
  |  Branch (1168:26): [True: 0, False: 19.9k]
  ------------------
 1169|  20.0k|	return currNode;
 1170|       |	
 1171|  20.0k|}	// FindNode
_Z18NormalizeLangValuePNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
 1343|    469|{
 1344|    469|	char * tagStart;
 1345|    469|	char * tagEnd;
 1346|       |
 1347|       |	// Find and process the primary subtag.
 1348|       |	
 1349|    469|	tagStart = (char*) value->c_str();
 1350|  6.36k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1350:27): [True: 6.27k, False: 94]
  |  Branch (1350:45): [True: 5.89k, False: 375]
  ------------------
 1351|  5.89k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1351:8): [True: 3.84k, False: 2.05k]
  |  Branch (1351:28): [True: 864, False: 2.98k]
  ------------------
 1352|  5.89k|	}
 1353|       |	
 1354|       |	// Find and process the secondary subtag.
 1355|       |	
 1356|    469|	tagStart = tagEnd;
 1357|    469|	if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1357:7): [True: 375, False: 94]
  ------------------
 1358|  7.61k|	for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1358:27): [True: 7.24k, False: 370]
  |  Branch (1358:45): [True: 7.14k, False: 99]
  ------------------
 1359|  7.14k|		if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1359:8): [True: 4.96k, False: 2.17k]
  |  Branch (1359:28): [True: 870, False: 4.09k]
  ------------------
 1360|  7.14k|	}
 1361|    469|	if ( tagEnd == tagStart+2 ) {
  ------------------
  |  Branch (1361:7): [True: 53, False: 416]
  ------------------
 1362|     53|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1362:8): [True: 15, False: 38]
  |  Branch (1362:30): [True: 15, False: 0]
  ------------------
 1363|     53|		++tagStart;
 1364|     53|		if ( ('a' <= *tagStart) && (*tagStart <= 'z') ) *tagStart -= 0x20;
  ------------------
  |  Branch (1364:8): [True: 16, False: 37]
  |  Branch (1364:30): [True: 16, False: 0]
  ------------------
 1365|     53|	}
 1366|       |	
 1367|       |	// Find and process the remaining subtags.
 1368|       |	
 1369|    957|	while ( true ) {
  ------------------
  |  Branch (1369:10): [True: 957, Folded]
  ------------------
 1370|    957|		tagStart = tagEnd;
 1371|    957|		if ( *tagStart == '-' ) ++tagStart;
  ------------------
  |  Branch (1371:8): [True: 488, False: 469]
  ------------------
 1372|    957|		if ( *tagStart == 0 ) break;
  ------------------
  |  Branch (1372:8): [True: 469, False: 488]
  ------------------
 1373|  8.22k|		for ( tagEnd = tagStart; (*tagEnd != 0) && (*tagEnd != '-'); ++tagEnd ) {
  ------------------
  |  Branch (1373:28): [True: 8.12k, False: 99]
  |  Branch (1373:46): [True: 7.73k, False: 389]
  ------------------
 1374|  7.73k|			if ( ('A' <= *tagEnd) && (*tagEnd <= 'Z') ) *tagEnd += 0x20;
  ------------------
  |  Branch (1374:9): [True: 3.81k, False: 3.92k]
  |  Branch (1374:29): [True: 785, False: 3.02k]
  ------------------
 1375|  7.73k|		}
 1376|    488|	}
 1377|       |	
 1378|    469|}	// NormalizeLangValue
_Z18NormalizeLangArrayP8XMP_Node:
 1390|    154|{
 1391|    154|	XMP_Assert ( XMP_ArrayIsAltText(array->options) );
  ------------------
  |  |  142|    154|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1392|       |	
 1393|    154|	size_t itemNum;
 1394|    154|	size_t itemLim = array->children.size();
 1395|    154|	bool   hasDefault = false;
 1396|       |	
 1397|    260|	for ( itemNum = 0; itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1397:21): [True: 154, False: 106]
  ------------------
 1398|       |	
 1399|    154|		if ( array->children[itemNum]->qualifiers.empty() ||
  ------------------
  |  Branch (1399:8): [True: 0, False: 154]
  ------------------
 1400|    154|			 (array->children[itemNum]->qualifiers[0]->name != "xml:lang") ) {
  ------------------
  |  Branch (1400:5): [True: 0, False: 154]
  ------------------
 1401|      0|			XMP_Throw ( "AltText array items must have an xml:lang qualifier", kXMPErr_BadXMP );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1402|      0|		}
 1403|       |
 1404|    154|		if ( array->children[itemNum]->qualifiers[0]->value == "x-default" ) {
  ------------------
  |  Branch (1404:8): [True: 48, False: 106]
  ------------------
 1405|     48|			hasDefault = true;
 1406|     48|			break;
 1407|     48|		}
 1408|       |
 1409|    154|	}
 1410|       |
 1411|    154|	if ( hasDefault ) {
  ------------------
  |  Branch (1411:7): [True: 48, False: 106]
  ------------------
 1412|       |
 1413|     48|		if ( itemNum != 0 ) {
  ------------------
  |  Branch (1413:8): [True: 0, False: 48]
  ------------------
 1414|      0|			XMP_Node * temp = array->children[0];
 1415|      0|			array->children[0] = array->children[itemNum];
 1416|      0|			array->children[itemNum] = temp;
 1417|      0|		}
 1418|       |
 1419|       |// 09-Oct-07, ahu: disabled to avoid unexpected behaviour
 1420|       |//		if ( itemLim == 2 ) array->children[1]->value = array->children[0]->value;
 1421|       |
 1422|     48|	}
 1423|       |	
 1424|    154|}	// NormalizeLangArray
_Z13DetectAltTextP8XMP_Node:
 1434|    255|{
 1435|    255|	XMP_Assert ( XMP_ArrayIsAlternate(xmpParent->options) );
  ------------------
  |  |  142|    255|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1436|       |
 1437|    255|	size_t itemNum, itemLim;
 1438|       |	
 1439|    412|	for ( itemNum = 0, itemLim = xmpParent->children.size(); itemNum < itemLim; ++itemNum ) {
  ------------------
  |  Branch (1439:59): [True: 252, False: 160]
  ------------------
 1440|    252|		XMP_OptionBits currOptions = xmpParent->children[itemNum]->options;
 1441|    252|		if ( (currOptions & kXMP_PropCompositeMask) || (! (currOptions & kXMP_PropHasLang)) ) break;
  ------------------
  |  Branch (1441:8): [True: 13, False: 239]
  |  Branch (1441:50): [True: 82, False: 157]
  ------------------
 1442|    252|	}
 1443|       |	
 1444|    255|	if ( (itemLim != 0) && (itemNum == itemLim) ) {
  ------------------
  |  Branch (1444:7): [True: 249, False: 6]
  |  Branch (1444:25): [True: 154, False: 95]
  ------------------
 1445|    154|		xmpParent->options |= kXMP_PropArrayIsAltText;
 1446|    154|		NormalizeLangArray ( xmpParent );
 1447|    154|	}
 1448|       |
 1449|    255|}	// DetectAltText
XMPCore_Impl.cpp:_ZL15VerifyXPathRootPKcS0_PNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEE:
  154|  20.0k|{
  155|       |	// Do some basic checks on the URI and name. Try to lookup the URI. See if the name is qualified.
  156|       |	
  157|  20.0k|	XMP_Assert ( (schemaURI != 0) && (propName != 0) && (*propName != 0) );
  ------------------
  |  |  142|  20.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  158|  20.0k|	XMP_Assert ( (expandedXPath != 0) && (expandedXPath->empty()) );
  ------------------
  |  |  142|  20.0k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  159|       |
  160|  20.0k|	if ( *schemaURI == 0 ) XMP_Throw ( "Schema namespace URI is required", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (160:7): [True: 0, False: 20.0k]
  ------------------
  161|       |
  162|  20.0k|	if ( (*propName == '?') || (*propName == '@') ) {
  ------------------
  |  Branch (162:7): [True: 0, False: 20.0k]
  |  Branch (162:29): [True: 0, False: 20.0k]
  ------------------
  163|      0|		XMP_Throw ( "Top level name must not be a qualifier", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  164|      0|	}
  165|  5.09M|	for ( XMP_StringPtr ch = propName; *ch != 0; ++ch ) {
  ------------------
  |  Branch (165:37): [True: 5.07M, False: 20.0k]
  ------------------
  166|  5.07M|		if ( (*ch == '/') || (*ch == '[') ) {
  ------------------
  |  Branch (166:8): [True: 0, False: 5.07M]
  |  Branch (166:24): [True: 0, False: 5.07M]
  ------------------
  167|      0|			XMP_Throw ( "Top level name must be simple", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  168|      0|		}
  169|  5.07M|	}
  170|       |
  171|  20.0k|	XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( XMP_VarString ( schemaURI ) );
  172|  20.0k|	if ( uriPos == sNamespaceURIToPrefixMap->end() ) {
  ------------------
  |  Branch (172:7): [True: 0, False: 20.0k]
  ------------------
  173|      0|		XMP_Throw ( "Unregistered schema namespace URI", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  174|      0|	}
  175|       |
  176|  20.0k|	XMP_StringPtr colonPos = propName;
  177|  4.85M|	while ( (*colonPos != 0) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (177:10): [True: 4.85M, False: 3.79k]
  |  Branch (177:30): [True: 4.83M, False: 16.2k]
  ------------------
  178|  20.0k|	VerifySimpleXMLName ( propName, colonPos );	// Verify the part before any colon.
  179|       |
  180|       |	// Verify the various URI and prefix combinations. Initialize the expanded XPath.
  181|       |	
  182|  20.0k|	if ( *colonPos == 0 ) {
  ------------------
  |  Branch (182:7): [True: 3.79k, False: 16.2k]
  ------------------
  183|       |	
  184|       |		// The propName is unqualified, use the schemaURI and associated prefix.
  185|       |		
  186|  3.79k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  187|  3.79k|		expandedXPath->push_back ( XPathStepInfo ( uriPos->second, 0 ) );
  188|  3.79k|		(*expandedXPath)[kRootPropStep].step += propName;
  189|       |	
  190|  16.2k|	} else {
  191|       |
  192|       |		// The propName is qualified. Make sure the prefix is legit. Use the associated URI and qualified name.
  193|       |
  194|  16.2k|		size_t prefixLen = colonPos - propName + 1;	// ! Include the colon.
  195|  16.2k|		VerifySimpleXMLName ( colonPos+1, colonPos+strlen(colonPos) );
  196|       |
  197|  16.2k|		XMP_VarString prefix ( propName, prefixLen );
  198|  16.2k|		XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  199|  16.2k|		if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (199:8): [True: 0, False: 16.2k]
  ------------------
  200|      0|			XMP_Throw ( "Unknown schema namespace prefix", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  201|      0|		}
  202|  16.2k|		if ( prefix != uriPos->second ) {
  ------------------
  |  Branch (202:8): [True: 0, False: 16.2k]
  ------------------
  203|      0|			XMP_Throw ( "Schema namespace URI and prefix mismatch", kXMPErr_BadSchema );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  204|      0|		}
  205|       |
  206|  16.2k|		expandedXPath->push_back ( XPathStepInfo ( schemaURI, kXMP_SchemaNode ) );
  207|  16.2k|		expandedXPath->push_back ( XPathStepInfo ( propName, 0 ) );
  208|       |	
  209|  16.2k|	}
  210|       |
  211|  20.0k|}	// VerifyXPathRoot
XMPCore_Impl.cpp:_ZL14VerifyQualNamePKcS0_:
  219|  1.50k|{
  220|  1.50k|	if ( qualName >= nameEnd ) XMP_Throw ( "Empty qualified name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (220:7): [True: 0, False: 1.50k]
  ------------------
  221|       |
  222|  1.50k|	XMP_StringPtr colonPos = qualName;
  223|  8.25k|	while ( (colonPos < nameEnd) && (*colonPos != ':') ) ++colonPos;
  ------------------
  |  Branch (223:10): [True: 8.25k, False: 0]
  |  Branch (223:34): [True: 6.74k, False: 1.50k]
  ------------------
  224|  1.50k|	if ( (colonPos == qualName) || (colonPos >= nameEnd) ) XMP_Throw ( "Ill-formed qualified name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (224:7): [True: 0, False: 1.50k]
  |  Branch (224:33): [True: 0, False: 1.50k]
  ------------------
  225|       |
  226|  1.50k|	VerifySimpleXMLName ( qualName, colonPos );
  227|  1.50k|	VerifySimpleXMLName ( colonPos+1, nameEnd );
  228|       |
  229|  1.50k|	size_t prefixLen = colonPos - qualName + 1;	// ! Include the colon.
  230|  1.50k|	XMP_VarString prefix ( qualName, prefixLen );
  231|  1.50k|	XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( prefix );
  232|  1.50k|	if ( prefixPos == sNamespacePrefixToURIMap->end() ) {
  ------------------
  |  Branch (232:7): [True: 0, False: 1.50k]
  ------------------
  233|      0|		XMP_Throw ( "Unknown namespace prefix for qualified name", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  234|      0|	}
  235|       |
  236|  1.50k|}	// VerifyQualName
XMPCore_Impl.cpp:_ZL15FollowXPathStepP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmbPNS1_11__wrap_iterIPS0_EEb:
  394|  26.7k|{
  395|  26.7k|	XMP_Node * nextNode = 0;
  396|  26.7k|	const XPathStepInfo & nextStep = fullPath[stepNum];
  397|  26.7k|	XMP_Index      index    = 0;
  398|  26.7k|	XMP_OptionBits stepKind = nextStep.options & kXMP_StepKindMask;
  399|       |	
  400|  26.7k|	XMP_Assert ( (kXMP_StructFieldStep <= stepKind) && (stepKind <= kXMP_FieldSelectorStep) );
  ------------------
  |  |  142|  26.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  401|       |
  402|  26.7k|	if ( stepKind == kXMP_StructFieldStep ) {
  ------------------
  |  Branch (402:7): [True: 21.0k, False: 5.69k]
  ------------------
  403|       |
  404|  21.0k|		nextNode = FindChildNode ( parentNode, nextStep.step.c_str(), createNodes, ptrPos );
  405|       |
  406|  21.0k|	} else if ( stepKind == kXMP_QualifierStep ) {
  ------------------
  |  Branch (406:14): [True: 449, False: 5.25k]
  ------------------
  407|       |	
  408|    449|		XMP_StringPtr qualStep = nextStep.step.c_str();
  409|    449|		XMP_Assert ( *qualStep == '?' );
  ------------------
  |  |  142|    449|	#define XMP_Assert(c)	((void) 0)
  ------------------
  410|    449|		++qualStep;
  411|    449|		nextNode = FindQualifierNode ( parentNode, qualStep, createNodes, ptrPos );
  412|       |
  413|  5.25k|	} else {
  414|       |	
  415|       |		// This is an array indexing step. First get the index, then get the node.
  416|       |
  417|  5.25k|		if ( ! (parentNode->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (417:8): [True: 0, False: 5.25k]
  ------------------
  418|      0|			XMP_Throw ( "Indexing applied to non-array", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  419|      0|		}
  420|       |		
  421|  5.25k|		if ( stepKind == kXMP_ArrayIndexStep ) {
  ------------------
  |  Branch (421:8): [True: 5.25k, False: 0]
  ------------------
  422|  5.25k|			index = FindIndexedItem ( parentNode, nextStep.step, createNodes );
  423|  5.25k|		} else if ( stepKind == kXMP_ArrayLastStep ) {
  ------------------
  |  Branch (423:15): [True: 0, False: 0]
  ------------------
  424|      0|			index = parentNode->children.size() - 1;
  425|      0|		} else if ( stepKind == kXMP_FieldSelectorStep ) {
  ------------------
  |  Branch (425:15): [True: 0, False: 0]
  ------------------
  426|      0|			XMP_VarString fieldName, fieldValue;
  427|      0|			SplitNameAndValue ( nextStep.step, &fieldName, &fieldValue );
  428|      0|			index = LookupFieldSelector ( parentNode, fieldName.c_str(), fieldValue.c_str() );
  429|      0|		} else if ( stepKind == kXMP_QualSelectorStep ) {
  ------------------
  |  Branch (429:15): [True: 0, False: 0]
  ------------------
  430|      0|			XMP_VarString qualName, qualValue;
  431|      0|			SplitNameAndValue ( nextStep.step, &qualName, &qualValue );
  432|      0|			index = LookupQualSelector ( parentNode, qualName, qualValue );
  433|      0|		} else {
  434|      0|			XMP_Throw ( "Unknown array indexing step in FollowXPathStep", kXMPErr_InternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  435|      0|		}
  436|       |		
  437|  5.25k|		if ( (0 <= index) && (index <= (XMP_Index)parentNode->children.size()) ) nextNode = parentNode->children[index];
  ------------------
  |  Branch (437:8): [True: 5.25k, False: 0]
  |  Branch (437:24): [True: 5.25k, False: 0]
  ------------------
  438|       |
  439|  5.25k|		if ( (index == -1) && createNodes && aliasedArrayItem && (stepKind == kXMP_QualSelectorStep) ) {
  ------------------
  |  Branch (439:8): [True: 0, False: 5.25k]
  |  Branch (439:25): [True: 0, False: 0]
  |  Branch (439:40): [True: 0, False: 0]
  |  Branch (439:60): [True: 0, False: 0]
  ------------------
  440|       |		
  441|       |			// An ugly special case without an obvious better place to be. We have an alias to the
  442|       |			// x-default item of an alt-text array. A simple reference via SetProperty must create
  443|       |			// the x-default item if it does not yet exist.
  444|       |			
  445|      0|			XMP_Assert ( parentNode->options & kXMP_PropArrayIsAltText );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
  446|      0|			XMP_Assert ( (stepNum == 2) && (nextStep.step == "[?xml:lang=\"x-default\"]") );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
  447|       |
  448|      0|			nextNode = new XMP_Node ( parentNode, kXMP_ArrayItemName,
  ------------------
  |  |  293|      0|#define kXMP_ArrayItemName	"[]"
  ------------------
  449|      0|									  (kXMP_PropHasQualifiers | kXMP_PropHasLang | kXMP_NewImplicitNode) );
  ------------------
  |  |  410|      0|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  450|       |
  451|      0|			XMP_Node * langQual = new XMP_Node ( nextNode, "xml:lang", "x-default", kXMP_PropIsQualifier );
  452|      0|			nextNode->qualifiers.push_back ( langQual );
  453|       |
  454|      0|			if ( parentNode->children.empty() ) {
  ------------------
  |  Branch (454:9): [True: 0, False: 0]
  ------------------
  455|      0|				parentNode->children.push_back ( nextNode );
  456|      0|			} else {
  457|      0|				parentNode->children.insert ( parentNode->children.begin(), nextNode );
  458|      0|			}
  459|       |
  460|      0|			index = 0;	// ! C-style index! The x-default item is always first.
  461|       |
  462|      0|		}
  463|       |		
  464|  5.25k|		if ( (nextNode != 0) && (ptrPos != 0) ) *ptrPos = parentNode->children.begin() + index;
  ------------------
  |  Branch (464:8): [True: 5.25k, False: 0]
  |  Branch (464:27): [True: 5.25k, False: 0]
  ------------------
  465|       |	
  466|  5.25k|	}
  467|       |
  468|  26.7k|	if ( (nextNode != 0) && (nextNode->options & kXMP_NewImplicitNode) ) {
  ------------------
  |  |  410|  26.7k|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  |  Branch (468:7): [True: 26.7k, False: 54]
  |  Branch (468:26): [True: 3.62k, False: 23.1k]
  ------------------
  469|  3.62k|		nextNode->options |= (nextStep.options & kXMP_PropArrayFormMask);
  470|  3.62k|	}
  471|       |	
  472|  26.7k|	XMP_Assert ( (ptrPos == 0) || (nextNode == 0) || (nextNode == **ptrPos) );
  ------------------
  |  |  142|  26.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  473|  26.7k|	XMP_Assert ( (nextNode != 0) || (! createNodes) );
  ------------------
  |  |  142|  26.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  474|  26.7k|	return nextNode;
  475|       |	
  476|  26.7k|}	// FollowXPathStep
XMPCore_Impl.cpp:_ZL15FindIndexedItemP8XMP_NodeRKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEEb:
  248|  5.25k|{
  249|  5.25k|	XMP_Index index = 0;
  250|  5.25k|	size_t    chLim = indexStep.size() - 1;
  251|       |
  252|  5.25k|	XMP_Assert ( (chLim >= 2) && (indexStep[0] == '[') && (indexStep[chLim] == ']') );
  ------------------
  |  |  142|  5.25k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  253|       |	
  254|  10.5k|	for ( size_t chNum = 1; chNum != chLim; ++chNum ) {
  ------------------
  |  Branch (254:26): [True: 5.25k, False: 5.25k]
  ------------------
  255|  5.25k|		XMP_Assert ( ('0' <= indexStep[chNum]) && (indexStep[chNum] <= '9') );
  ------------------
  |  |  142|  5.25k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  256|  5.25k|		index = (index * 10) + (indexStep[chNum] - '0');
  257|  5.25k|		if ( index < 0 ) {
  ------------------
  |  Branch (257:8): [True: 0, False: 5.25k]
  ------------------
  258|      0|			XMP_Throw ( "Array index overflow", kXMPErr_BadXPath );	// ! Overflow, not truly negative.
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  259|      0|		}
  260|  5.25k|	}
  261|       |
  262|  5.25k|	--index;	// Change to a C-style, zero based index.
  263|  5.25k|	if ( index < 0 ) XMP_Throw ( "Array index must be larger than zero", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (263:7): [True: 0, False: 5.25k]
  ------------------
  264|       |
  265|  5.25k|	if ( (index == (XMP_Index)arrayNode->children.size()) && createNodes ) {	// Append a new last+1 node.
  ------------------
  |  Branch (265:7): [True: 665, False: 4.58k]
  |  Branch (265:59): [True: 665, False: 0]
  ------------------
  266|    665|		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  293|    665|#define kXMP_ArrayItemName	"[]"
  ------------------
              		XMP_Node * newItem = new XMP_Node ( arrayNode, kXMP_ArrayItemName, kXMP_NewImplicitNode );
  ------------------
  |  |  410|    665|#define kXMP_NewImplicitNode	kXMP_InsertAfterItem
  ------------------
  267|    665|		arrayNode->children.push_back ( newItem );
  268|    665|	}
  269|       |
  270|       |	// ! Don't throw here for a too large index. SetProperty will throw, GetProperty will not.
  271|  5.25k|	if ( index >= (XMP_Index)arrayNode->children.size() ) index = -1;
  ------------------
  |  Branch (271:7): [True: 0, False: 5.25k]
  ------------------
  272|  5.25k|	return index;
  273|       |	
  274|  5.25k|}	// FindIndexedItem
XMPCore_Impl.cpp:_ZL19CheckImplicitStructP8XMP_NodeRKNSt3__16vectorI13XPathStepInfoNS1_9allocatorIS3_EEEEmm:
  487|  3.62k|{
  488|       |
  489|  3.62k|	if ( (stepNum < stepLim) &&
  ------------------
  |  Branch (489:7): [True: 0, False: 3.62k]
  ------------------
  490|      0|		 ((node->options & kXMP_PropCompositeMask) == 0) &&
  ------------------
  |  Branch (490:4): [True: 0, False: 0]
  ------------------
  491|      0|		 (GetStepKind ( expandedXPath[stepNum].options ) == kXMP_StructFieldStep) ) {
  ------------------
  |  |  408|      0|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  |  Branch (491:4): [True: 0, False: 0]
  ------------------
  492|       |
  493|      0|		node->options |= kXMP_PropValueIsStruct;
  494|       |
  495|      0|	}
  496|       |
  497|  3.62k|}	// CheckImplicitStruct

_ZN13XMP_AutoMutexC2Ev:
  222|  49.3k|	XMP_AutoMutex() : mutex(&sXMPCoreLock) { XMP_EnterCriticalRegion ( *mutex ); ReportLock(); };
  ------------------
  |  |  168|  49.3k|	#define ReportLock()			++sLockCount
  ------------------
_ZN13XMP_AutoMutexD2Ev:
  223|  49.3k|	~XMP_AutoMutex() { if ( mutex != 0 ) { ReportUnlock(); XMP_ExitCriticalRegion ( *mutex ); mutex = 0; } };
  ------------------
  |  |  169|  25.1k|	#define ReportUnlock()			--sLockCount
  ------------------
  |  Branch (223:26): [True: 25.1k, False: 24.1k]
  ------------------
_ZN13XMP_AutoMutex8KeepLockEv:
  224|  24.1k|	void KeepLock() { ReportKeepLock(); mutex = 0; };
_ZN13XPathStepInfoC2EPKcj:
  389|  36.3k|	XPathStepInfo ( XMP_StringPtr _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN13XPathStepInfoC2ENSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEj:
  390|  10.6k|	XPathStepInfo ( XMP_VarString _step, XMP_OptionBits _options ) : step(_step), options(_options) {};
_ZN8XMP_NodeC2EPS_PKcj:
  434|  13.6k|		: options(_options), name(_name), parent(_parent)
  435|  13.6k|	{
  436|       |		#if XMP_DebugBuild
  437|       |			XMP_Assert ( (name.find ( ':' ) != XMP_VarString::npos) || (name == kXMP_ArrayItemName) ||
  438|       |			             (options & kXMP_SchemaNode) || (parent == 0) );
  439|       |			// *** _namePtr  = name.c_str();
  440|       |			// *** _valuePtr = value.c_str();
  441|       |		#endif
  442|  13.6k|	};
_ZN8XMP_NodeC2EPS_PKcS2_j:
  456|  14.9k|		: options(_options), name(_name), value(_value), parent(_parent)
  457|  14.9k|	{
  458|       |		#if XMP_DebugBuild
  459|       |			XMP_Assert ( (name.find ( ':' ) != XMP_VarString::npos) || (name == kXMP_ArrayItemName) ||
  460|       |			             (options & kXMP_SchemaNode) || (parent == 0) );
  461|       |			// *** _namePtr  = name.c_str();
  462|       |			// *** _valuePtr = value.c_str();
  463|       |		#endif
  464|  14.9k|	};
_ZN8XMP_NodeC2EPS_RKNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEES9_j:
  467|    318|		: options(_options), name(_name), value(_value), parent(_parent)
  468|    318|	{
  469|       |		#if XMP_DebugBuild
  470|       |			XMP_Assert ( (name.find ( ':' ) != XMP_VarString::npos) || (name == kXMP_ArrayItemName) ||
  471|       |			             (options & kXMP_SchemaNode) || (parent == 0) );
  472|       |			// *** _namePtr  = name.c_str();
  473|       |			// *** _valuePtr = value.c_str();
  474|       |		#endif
  475|    318|	};
_ZN8XMP_Node14RemoveChildrenEv:
  478|  33.4k|	{
  479|  58.2k|		for ( size_t i = 0, vLim = children.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (479:47): [True: 24.8k, False: 33.4k]
  ------------------
  480|  24.8k|			if ( children[i] != 0 ) delete children[i];
  ------------------
  |  Branch (480:9): [True: 24.8k, False: 0]
  ------------------
  481|  24.8k|		}
  482|  33.4k|		children.clear();
  483|  33.4k|	}
_ZN8XMP_Node16RemoveQualifiersEv:
  486|  32.8k|	{
  487|  33.3k|		for ( size_t i = 0, vLim = qualifiers.size(); i < vLim; ++i ) {
  ------------------
  |  Branch (487:49): [True: 500, False: 32.8k]
  ------------------
  488|    500|			if ( qualifiers[i] != 0 ) delete qualifiers[i];
  ------------------
  |  Branch (488:9): [True: 500, False: 0]
  ------------------
  489|    500|		}
  490|  32.8k|		qualifiers.clear();
  491|  32.8k|	}
_ZN8XMP_Node9ClearNodeEv:
  494|  3.92k|	{
  495|  3.92k|		options = 0;
  496|  3.92k|		name.erase();
  497|  3.92k|		value.erase();
  498|  3.92k|		this->RemoveChildren();
  499|  3.92k|		this->RemoveQualifiers();
  500|  3.92k|	}
_ZN8XMP_NodeD2Ev:
  502|  28.8k|	virtual ~XMP_Node() { RemoveChildren(); RemoveQualifiers(); };

_ZN11XMPIterator10InitializeEv:
  376|      1|{
  377|      1|	sDummySchema = new XMP_Node ( 0, "dummy:schema/", kXMP_SchemaNode);
  378|      1|	return true;
  379|       |	
  380|      1|}	// Initialize
_ZN11XMPIterator9TerminateEv:
  388|      1|{
  389|      1|	delete ( sDummySchema );
  390|      1|	sDummySchema = 0;
  391|      1|	return;
  392|       |	
  393|      1|}	// Terminate
_ZN11XMPIteratorC2ERK7XMPMetaPKcS4_j:
  427|  3.38k|						   XMP_OptionBits  options ) : clientRefs(0), info(IterInfo(options,&xmpObj))
  428|  3.38k|{
  429|  3.38k|	if ( (options & kXMP_IterClassMask) != kXMP_IterProperties ) {
  ------------------
  |  Branch (429:7): [True: 0, False: 3.38k]
  ------------------
  430|      0|		XMP_Throw ( "Unsupported iteration kind", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  431|      0|	}
  432|       |	
  433|       |	// *** Lock the XMPMeta object if we ever stop using a full DLL lock.
  434|       |
  435|  3.38k|	if ( *propName != 0 ) {
  ------------------
  |  Branch (435:7): [True: 716, False: 2.66k]
  ------------------
  436|       |
  437|       |		// An iterator rooted at a specific node.
  438|       |
  439|       |		#if TraceIterators
  440|       |			printf ( "\nNew XMP property iterator for \"%s\", options = %X\n    Schema = %s, root = %s\n",
  441|       |			         xmpObj.tree.name.c_str(), options, schemaNS, propName );
  442|       |		#endif
  443|       |		
  444|    716|		XMP_ExpandedXPath propPath;
  445|    716|		ExpandXPath ( schemaNS, propName, &propPath );
  446|    716|		XMP_Node * propNode = FindConstNode ( &xmpObj.tree, propPath );	// If not found get empty iteration.
  ------------------
  |  |  301|    716|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|    716|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  447|       |		
  448|    716|		if ( propNode != 0 ) {
  ------------------
  |  Branch (448:8): [True: 716, False: 0]
  ------------------
  449|       |
  450|    716|			XMP_VarString rootName ( propPath[1].step );	// The schema is [0].
  451|    716|			for ( size_t i = 2; i < propPath.size(); ++i ) {
  ------------------
  |  Branch (451:24): [True: 0, False: 716]
  ------------------
  452|      0|				XMP_OptionBits stepKind = GetStepKind ( propPath[i].options );
  ------------------
  |  |  408|      0|#define GetStepKind(f)	((f) & kXMP_StepKindMask)
  ------------------
  453|      0|				if ( stepKind <= kXMP_QualifierStep ) rootName += '/';
  ------------------
  |  Branch (453:10): [True: 0, False: 0]
  ------------------
  454|      0|				rootName += propPath[i].step;
  455|      0|			}
  456|       |
  457|    716|			propName = rootName.c_str();
  458|    716|			size_t leafOffset = rootName.size();
  459|  12.7k|			while ( (leafOffset > 0) && (propName[leafOffset] != '/') && (propName[leafOffset] != '[') ) --leafOffset;
  ------------------
  |  Branch (459:12): [True: 12.0k, False: 716]
  |  Branch (459:32): [True: 12.0k, False: 0]
  |  Branch (459:65): [True: 12.0k, False: 0]
  ------------------
  460|    716|			if ( propName[leafOffset] == '/' ) ++leafOffset;
  ------------------
  |  Branch (460:9): [True: 0, False: 716]
  ------------------
  461|       |
  462|    716|			info.tree.children.push_back ( IterNode ( propNode->options, propName, leafOffset ) );
  463|    716|			SetCurrSchema ( info, propPath[kSchemaStep].step.c_str() );
  464|    716|			if ( info.options & kXMP_IterJustChildren ) {
  ------------------
  |  Branch (464:9): [True: 0, False: 716]
  ------------------
  465|      0|				AddNodeOffspring ( info, info.tree.children.back(), propNode );
  466|      0|			}
  467|       |
  468|    716|		}
  469|       |	
  470|  2.66k|	} else if ( *schemaNS != 0 ) {
  ------------------
  |  Branch (470:14): [True: 0, False: 2.66k]
  ------------------
  471|       |
  472|       |		// An iterator for all properties in one schema.
  473|       |		
  474|       |		#if TraceIterators
  475|       |			printf ( "\nNew XMP schema iterator for \"%s\", options = %X\n    Schema = %s\n",
  476|       |			         xmpObj.tree.name.c_str(), options, schemaNS );
  477|       |		#endif
  478|       |		
  479|      0|		info.tree.children.push_back ( IterNode ( kXMP_SchemaNode, schemaNS, 0 ) );
  480|      0|		IterNode & iterSchema = info.tree.children.back();
  481|       |		
  482|      0|		XMP_Node * xmpSchema = FindConstSchema ( &xmpObj.tree, schemaNS );
  ------------------
  |  |  298|      0|#define FindConstSchema(t,u)	FindSchemaNode ( const_cast<XMP_Node*>(t), u, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|      0|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  483|      0|		if ( xmpSchema != 0 ) AddSchemaProps ( info, iterSchema, xmpSchema );
  ------------------
  |  Branch (483:8): [True: 0, False: 0]
  ------------------
  484|       |		
  485|      0|		if ( info.options & kXMP_IterIncludeAliases ) AddSchemaAliases ( info, iterSchema, schemaNS );
  ------------------
  |  Branch (485:8): [True: 0, False: 0]
  ------------------
  486|       |		
  487|      0|		if ( iterSchema.children.empty() ) {
  ------------------
  |  Branch (487:8): [True: 0, False: 0]
  ------------------
  488|      0|			info.tree.children.pop_back();	// No properties, remove the schema node.
  489|      0|		} else {
  490|      0|			SetCurrSchema ( info, schemaNS );
  491|      0|		}
  492|       |	
  493|  2.66k|	} else {
  494|       |
  495|       |		// An iterator for all properties in all schema. First add schema that exist (have children),
  496|       |		// adding aliases from them if appropriate. Then add schema that have no actual properties
  497|       |		// but do have aliases to existing properties, if we're including aliases in the iteration.
  498|       |		
  499|       |		#if TraceIterators
  500|       |			printf ( "\nNew XMP tree iterator for \"%s\", options = %X\n",
  501|       |			         xmpObj.tree.name.c_str(), options );
  502|       |		#endif
  503|       |		
  504|       |		// First pick up the schema that exist.
  505|       |		
  506|  7.63k|		for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum != schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (506:72): [True: 4.97k, False: 2.66k]
  ------------------
  507|       |
  508|  4.97k|			const XMP_Node * xmpSchema = xmpObj.tree.children[schemaNum];
  509|  4.97k|			info.tree.children.push_back ( IterNode ( kXMP_SchemaNode, xmpSchema->name, 0 ) );
  510|  4.97k|			IterNode & iterSchema = info.tree.children.back();
  511|       |
  512|  4.97k|			if ( ! (info.options & kXMP_IterJustChildren) ) {
  ------------------
  |  Branch (512:9): [True: 4.97k, False: 0]
  ------------------
  513|  4.97k|				AddSchemaProps ( info, iterSchema, xmpSchema );
  514|  4.97k|				if ( info.options & kXMP_IterIncludeAliases ) AddSchemaAliases ( info, iterSchema, xmpSchema->name.c_str() );
  ------------------
  |  Branch (514:10): [True: 0, False: 4.97k]
  ------------------
  515|  4.97k|				if ( iterSchema.children.empty() ) info.tree.children.pop_back();	// No properties, remove the schema node.
  ------------------
  |  Branch (515:10): [True: 0, False: 4.97k]
  ------------------
  516|  4.97k|			}
  517|       |
  518|  4.97k|		}
  519|       |		
  520|  2.66k|		if ( info.options & kXMP_IterIncludeAliases ) {
  ------------------
  |  Branch (520:8): [True: 0, False: 2.66k]
  ------------------
  521|       |
  522|       |			// Add the schema that only have aliases. The most convenient, and safest way, is to go
  523|       |			// through the registered namespaces, see if it exists, and let AddSchemaAliases do its
  524|       |			// thing if not. Don't combine with the above loop, it is nicer to have the "real" stuff
  525|       |			// be in storage order (not subject to the namespace map order).
  526|       |			
  527|       |			// ! We don't do the kXMP_IterJustChildren handing in the same way here as above. The
  528|       |			// ! existing schema (presumably) have actual children. We need to call AddSchemaAliases
  529|       |			// ! here to determine if the namespace has any aliases to existing properties. We then
  530|       |			// ! strip the children if necessary.
  531|       |
  532|      0|			XMP_cStringMapPos currNS = sNamespaceURIToPrefixMap->begin();
  533|      0|			XMP_cStringMapPos endNS  = sNamespaceURIToPrefixMap->end();
  534|      0|			for ( ; currNS != endNS; ++currNS ) {
  ------------------
  |  Branch (534:12): [True: 0, False: 0]
  ------------------
  535|      0|				XMP_StringPtr schemaName = currNS->first.c_str();
  536|      0|				if ( FindConstSchema ( &xmpObj.tree, schemaName ) != 0 ) continue;
  ------------------
  |  |  298|      0|#define FindConstSchema(t,u)	FindSchemaNode ( const_cast<XMP_Node*>(t), u, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|      0|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  |  Branch (536:10): [True: 0, False: 0]
  ------------------
  537|      0|				info.tree.children.push_back ( IterNode ( kXMP_SchemaNode, schemaName, 0 ) );
  538|      0|				IterNode & iterSchema = info.tree.children.back();
  539|      0|				AddSchemaAliases ( info, iterSchema, schemaName );
  540|      0|				if ( iterSchema.children.empty() ) {
  ------------------
  |  Branch (540:10): [True: 0, False: 0]
  ------------------
  541|      0|					info.tree.children.pop_back();	// No aliases, remove the schema node.
  542|      0|				} else if ( info.options & kXMP_IterJustChildren ) {
  ------------------
  |  Branch (542:17): [True: 0, False: 0]
  ------------------
  543|      0|					iterSchema.children.clear();	// Get rid of the children.
  544|      0|				}
  545|      0|			}
  546|       |
  547|      0|		}
  548|       |
  549|  2.66k|	}
  550|       |	
  551|       |	// Set the current iteration position to the first node to be visited.
  552|       |	
  553|  3.38k|	info.currPos = info.tree.children.begin();
  554|  3.38k|	info.endPos  = info.tree.children.end();
  555|       |	
  556|  3.38k|	if ( (info.options & kXMP_IterJustChildren) && (info.currPos != info.endPos) && (*schemaNS != 0) ) {
  ------------------
  |  Branch (556:7): [True: 0, False: 3.38k]
  |  Branch (556:49): [True: 0, False: 0]
  |  Branch (556:82): [True: 0, False: 0]
  ------------------
  557|      0|		info.currPos->visitStage = kIter_VisitSelf;
  558|      0|	}
  559|       |
  560|       |	#if TraceIterators
  561|       |		if ( info.currPos == info.endPos ) {
  562|       |			printf ( "    ** Empty iteration **\n" );
  563|       |		} else {
  564|       |			printf ( "    Initial node %s, stage = %s, iterator @ %.8X\n",
  565|       |			         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage], this );
  566|       |		}
  567|       |	#endif
  568|       |	
  569|  3.38k|}	// XMPIterator for XMPMeta objects
_ZN11XMPIteratorD2Ev:
  591|  3.38k|{
  592|  3.38k|	XMP_Assert ( this->clientRefs <= 0 );
  ------------------
  |  |  142|  3.38k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  593|       |	// Let everything else default.
  594|       |	
  595|  3.38k|}	// ~XMPIterator
_ZN11XMPIterator4NextEPPKcPjS2_S3_S2_S3_S3_:
  617|  23.0k|{
  618|       |	// *** Lock the XMPMeta object if we ever stop using a full DLL lock.
  619|       |	
  620|       |	// ! NOTE: Supporting aliases throws in some nastiness with schemas. There might not be any XMP
  621|       |	// ! node for the schema, but we still have to visit it because of possible aliases.
  622|       |	
  623|  23.0k|	if ( info.currPos == info.endPos ) return false;	// Happens at the start of an empty iteration.
  ------------------
  |  Branch (623:7): [True: 231, False: 22.8k]
  ------------------
  624|       |	
  625|       |	#if TraceIterators
  626|       |		printf ( "Next iteration from %s, stage = %s, iterator @ %.8X\n",
  627|       |			     info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage], this );
  628|       |	#endif
  629|       |	
  630|  22.8k|	const XMP_Node * xmpNode = GetNextXMPNode ( info );
  631|  22.8k|	if ( xmpNode == 0 ) return false;
  ------------------
  |  Branch (631:7): [True: 3.02k, False: 19.7k]
  ------------------
  632|  19.7k|	bool isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  633|       |	
  634|  19.7k|	if ( info.options & kXMP_IterJustLeafNodes ) {
  ------------------
  |  Branch (634:7): [True: 0, False: 19.7k]
  ------------------
  635|      0|		while ( isSchemaNode || (! xmpNode->children.empty()) ) {
  ------------------
  |  Branch (635:11): [True: 0, False: 0]
  |  Branch (635:27): [True: 0, False: 0]
  ------------------
  636|      0|			info.currPos->visitStage = kIter_VisitQualifiers;	// Skip to this node's children.
  637|      0|			xmpNode = GetNextXMPNode ( info );
  638|      0|			if ( xmpNode == 0 ) return false;
  ------------------
  |  Branch (638:9): [True: 0, False: 0]
  ------------------
  639|      0|			isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  640|      0|		}
  641|      0|	}
  642|       |	
  643|  19.7k|	*schemaNS = info.currSchema.c_str();
  644|  19.7k|	*nsSize   = info.currSchema.size();
  645|       |
  646|  19.7k|	*propOptions = info.currPos->options;
  647|       |
  648|  19.7k|	*propPath  = "";
  649|  19.7k|	*pathSize  = 0;
  650|  19.7k|	*propValue = "";
  651|  19.7k|	*valueSize = 0;
  652|       |	
  653|  19.7k|	if ( ! (*propOptions & kXMP_SchemaNode) ) {
  ------------------
  |  Branch (653:7): [True: 14.8k, False: 4.97k]
  ------------------
  654|       |
  655|  14.8k|		*propPath = info.currPos->fullPath.c_str();
  656|  14.8k|		*pathSize = info.currPos->fullPath.size();
  657|  14.8k|		if ( info.options & kXMP_IterJustLeafName ) {
  ------------------
  |  Branch (657:8): [True: 0, False: 14.8k]
  ------------------
  658|      0|			*propPath += info.currPos->leafOffset;
  659|      0|			*pathSize -= info.currPos->leafOffset;
  660|      0|		}
  661|       |		
  662|  14.8k|		if ( ! (*propOptions & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (662:8): [True: 12.8k, False: 1.94k]
  ------------------
  663|  12.8k|			*propValue = xmpNode->value.c_str();
  664|  12.8k|			*valueSize = xmpNode->value.size();
  665|  12.8k|		}
  666|       |
  667|  14.8k|	}
  668|       |	
  669|       |	#if TraceIterators
  670|       |		printf ( "    Next node %s, stage = %s\n",
  671|       |			     info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  672|       |	#endif
  673|       |	
  674|  19.7k|	return true;
  675|       |
  676|  19.7k|}	// Next
_ZN11XMPIterator10UnlockIterEj:
  729|  19.7k|{
  730|  19.7k|	UNUSED(options);
  731|       |
  732|  19.7k|	XMPMeta::Unlock ( 0 );
  733|       |	
  734|  19.7k|}	// UnlockIter
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoPKc:
  181|    716|{
  182|       |
  183|    716|	info.currSchema = schemaName;
  184|       |	#if 0	// *** XMP_DebugBuild
  185|       |		info._schemaPtr = info.currSchema.c_str();
  186|       |	#endif
  187|       |
  188|    716|}	// SetCurrSchema
XMPIterator.cpp:_ZL16AddNodeOffspringR8IterInfoR8IterNodePK8XMP_Node:
  114|  14.8k|{
  115|  14.8k|	XMP_VarString currPath ( iterParent.fullPath );
  116|  14.8k|	size_t        leafOffset = iterParent.fullPath.size();
  117|       |	
  118|  14.8k|	if ( (! xmpParent->qualifiers.empty()) && (! (info.options & kXMP_IterOmitQualifiers)) ) {
  ------------------
  |  Branch (118:7): [True: 272, False: 14.5k]
  |  Branch (118:44): [True: 272, False: 0]
  ------------------
  119|       |
  120|       |		#if TraceIterators
  121|       |			printf ( "    Adding qualifiers of %s\n", currPath.c_str() );
  122|       |		#endif
  123|       |
  124|    272|		currPath += "/?";	// All qualifiers are named and use paths like "Prop/?Qual".
  125|    272|		leafOffset += 2;
  126|       |		
  127|    674|		for ( size_t qualNum = 0, qualLim = xmpParent->qualifiers.size(); qualNum != qualLim; ++qualNum ) {
  ------------------
  |  Branch (127:69): [True: 402, False: 272]
  ------------------
  128|    402|			const XMP_Node * xmpQual = xmpParent->qualifiers[qualNum];
  129|    402|			currPath += xmpQual->name;
  130|    402|			iterParent.qualifiers.push_back ( IterNode ( xmpQual->options, currPath, leafOffset ) );
  131|    402|			currPath.erase ( leafOffset );
  132|       |			#if TraceIterators
  133|       |				printf ( "        %s\n", xmpQual->name.c_str() );
  134|       |			#endif
  135|    402|		}
  136|       |		
  137|    272|		leafOffset -= 2;
  138|    272|		currPath.erase ( leafOffset );
  139|       |
  140|    272|	}
  141|       |
  142|  14.8k|	if ( ! xmpParent->children.empty() ) {
  ------------------
  |  Branch (142:7): [True: 1.93k, False: 12.8k]
  ------------------
  143|       |	
  144|       |		#if TraceIterators
  145|       |			printf ( "    Adding children of %s\n", currPath.c_str() );
  146|       |		#endif
  147|       |
  148|  1.93k|		XMP_Assert ( xmpParent->options & kXMP_PropCompositeMask );
  ------------------
  |  |  142|  1.93k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  149|       |		
  150|  1.93k|		if ( xmpParent->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (150:8): [True: 356, False: 1.58k]
  ------------------
  151|    356|			currPath += '/';
  152|    356|			leafOffset += 1;
  153|    356|		}
  154|       |		
  155|  6.27k|		for ( size_t childNum = 0, childLim = xmpParent->children.size(); childNum != childLim; ++childNum ) {
  ------------------
  |  Branch (155:69): [True: 4.33k, False: 1.93k]
  ------------------
  156|  4.33k|			const XMP_Node * xmpChild = xmpParent->children[childNum];
  157|  4.33k|			if ( ! (xmpParent->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (157:9): [True: 918, False: 3.41k]
  ------------------
  158|    918|				currPath += xmpChild->name;
  159|  3.41k|			} else {
  160|  3.41k|				char buffer [32];	// AUDIT: Using sizeof(buffer) below for snprintf length is safe.
  161|  3.41k|				snprintf ( buffer, sizeof(buffer), "[%lu]", static_cast<unsigned long>(childNum+1) );	// ! XPath indices are one-based.
  162|  3.41k|				currPath += buffer;
  163|  3.41k|			}
  164|  4.33k|			iterParent.children.push_back ( IterNode ( xmpChild->options, currPath, leafOffset ) );
  165|  4.33k|			currPath.erase ( leafOffset );
  166|       |			#if TraceIterators
  167|       |				printf ( "        %s\n", (iterParent.children.back().fullPath.c_str() + leafOffset) );
  168|       |			#endif
  169|  4.33k|		}
  170|       |	
  171|  1.93k|	}
  172|       |
  173|  14.8k|}	// AddNodeOffspring
XMPIterator.cpp:_ZL14AddSchemaPropsR8IterInfoR8IterNodePK8XMP_Node:
   48|  4.97k|{
   49|  4.97k|	UNUSED(info);
   50|       |	#if TraceIterators
   51|       |		printf ( "    Adding properties of %s\n", xmpSchema->name.c_str() );
   52|       |	#endif
   53|       |
   54|  14.7k|	for ( size_t propNum = 0, propLim = xmpSchema->children.size(); propNum != propLim; ++propNum ) {
  ------------------
  |  Branch (54:66): [True: 9.74k, False: 4.97k]
  ------------------
   55|  9.74k|		const XMP_Node * xmpProp = xmpSchema->children[propNum];
   56|       |		// *** set the has-aliases bit when appropriate
   57|  9.74k|		iterSchema.children.push_back ( IterNode ( xmpProp->options, xmpProp->name, 0 ) );
   58|       |		#if TraceIterators
   59|       |			printf ( "        %s\n", xmpProp->name.c_str() );
   60|       |		#endif
   61|  9.74k|	}
   62|       |
   63|  4.97k|}	// AddSchemaProps
XMPIterator.cpp:_ZL14GetNextXMPNodeR8IterInfo:
  308|  22.8k|{
  309|  22.8k|	const XMP_Node * xmpNode = 0;
  310|       |
  311|       |	// ----------------------------------------------------------------------------------------------
  312|       |	// On entry currPos points to an iteration node whose state is either before-visit or visit-self.
  313|       |	// If it is before-visit then we will return that node's value part now. If it is visit-self it
  314|       |	// means the previous iteration returned the value portion of that node, so we can advance to the
  315|       |	// next node in the iteration tree. Then we find the corresponding XMP node, allowing for the XMP
  316|       |	// tree to have been modified since that part of the iteration tree was constructed.
  317|       |	
  318|       |	// ! NOTE: Supporting aliases throws in some nastiness with schemas. There might not be any XMP
  319|       |	// ! node for the schema, but we still have to visit it because of possible aliases. The static
  320|       |	// ! sDummySchema is returned if there is no real schema node.
  321|       |
  322|  22.8k|	if ( info.currPos->visitStage != kIter_BeforeVisit ) AdvanceIterPos ( info );
  ------------------
  |  Branch (322:7): [True: 19.6k, False: 3.14k]
  ------------------
  323|       |	
  324|  22.8k|	bool isSchemaNode = false;
  325|  22.8k|	XMP_ExpandedXPath expPath;	// Keep outside the loop to avoid constant construct/destruct.
  326|       |	
  327|  22.8k|	while ( info.currPos != info.endPos ) {
  ------------------
  |  Branch (327:10): [True: 19.7k, False: 3.02k]
  ------------------
  328|       |
  329|  19.7k|		isSchemaNode = XMP_NodeIsSchema ( info.currPos->options );
  330|  19.7k|		if ( isSchemaNode ) {
  ------------------
  |  Branch (330:8): [True: 4.97k, False: 14.8k]
  ------------------
  331|  4.97k|			SetCurrSchema ( info, info.currPos->fullPath );
  332|  4.97k|			xmpNode = FindConstSchema ( &info.xmpObj->tree, info.currPos->fullPath.c_str() );
  ------------------
  |  |  298|  4.97k|#define FindConstSchema(t,u)	FindSchemaNode ( const_cast<XMP_Node*>(t), u, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  4.97k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  333|  4.97k|			if ( xmpNode == 0 ) xmpNode = sDummySchema;
  ------------------
  |  Branch (333:9): [True: 0, False: 4.97k]
  ------------------
  334|  14.8k|		} else {
  335|  14.8k|			ExpandXPath ( info.currSchema.c_str(), info.currPos->fullPath.c_str(), &expPath );
  336|  14.8k|			xmpNode = FindConstNode ( &info.xmpObj->tree, expPath );
  ------------------
  |  |  301|  14.8k|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|  14.8k|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
  337|  14.8k|		}
  338|  19.7k|		if ( xmpNode != 0 ) break;	// Exit the loop, we found a live XMP node.
  ------------------
  |  Branch (338:8): [True: 19.7k, False: 0]
  ------------------
  339|       |
  340|      0|		info.currPos->visitStage = kIter_VisitChildren;	// Make AdvanceIterPos move to the next sibling.
  341|      0|		info.currPos->children.clear();
  342|      0|		info.currPos->qualifiers.clear();
  343|      0|		AdvanceIterPos ( info );
  344|       |
  345|      0|	}
  346|       |
  347|  22.8k|	if ( info.currPos == info.endPos ) return 0;
  ------------------
  |  Branch (347:7): [True: 3.02k, False: 19.7k]
  ------------------
  348|       |	
  349|       |	// -------------------------------------------------------------------------------------------
  350|       |	// Now we've got the iteration node and corresponding XMP node. Add the iteration children for
  351|       |	// structs and arrays. The children of schema were added when the iterator was constructed.
  352|       |
  353|  19.7k|	XMP_Assert ( info.currPos->visitStage == kIter_BeforeVisit );
  ------------------
  |  |  142|  19.7k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  354|       |
  355|  19.7k|	if ( info.currPos->visitStage == kIter_BeforeVisit ) {
  ------------------
  |  Branch (355:7): [True: 19.7k, False: 0]
  ------------------
  356|  19.7k|		if ( (! isSchemaNode) && (! (info.options & kXMP_IterJustChildren)) ) {
  ------------------
  |  Branch (356:8): [True: 14.8k, False: 4.97k]
  |  Branch (356:28): [True: 14.8k, False: 0]
  ------------------
  357|  14.8k|			AddNodeOffspring ( info, *info.currPos, xmpNode );
  358|  14.8k|		}
  359|  19.7k|		info.currPos->visitStage = kIter_VisitSelf;
  360|  19.7k|	}
  361|       |	
  362|  19.7k|	return xmpNode;
  363|       |
  364|  22.8k|}	// GetNextXMPNode
XMPIterator.cpp:_ZL13SetCurrSchemaR8IterInfoRNSt3__112basic_stringIcNS1_11char_traitsIcEENS1_9allocatorIcEEEE:
  192|  7.50k|{
  193|       |
  194|  7.50k|	info.currSchema = schemaName;
  195|       |	#if 0	// *** XMP_DebugBuild
  196|       |		info._schemaPtr = info.currSchema.c_str();
  197|       |	#endif
  198|       |
  199|  7.50k|}	// SetCurrSchema
XMPIterator.cpp:_ZL14AdvanceIterPosR8IterInfo:
  212|  19.6k|{
  213|       |	// -------------------------------------------------------------------------------------------
  214|       |	// Keep looking until we find a node to visit or the end of everything. The first time through
  215|       |	// the current node will exist, we just visited it. But we have to keep looking if the current
  216|       |	// node was the last of its siblings or is an empty schema.
  217|       |	
  218|       |	// ! It is possible that info.currPos == info.endPos on entry. Don't dereference info.currPos yet!
  219|       |
  220|  46.1k|	while ( true ) {
  ------------------
  |  Branch (220:10): [True: 46.1k, Folded]
  ------------------
  221|       |	
  222|  46.1k|		if ( info.currPos == info.endPos ) {
  ------------------
  |  Branch (222:8): [True: 9.95k, False: 36.1k]
  ------------------
  223|       |		
  224|       |			// ------------------------------------------------------------------------------------
  225|       |			// At the end of a set of siblings, move up to an ancestor. We've either just finished
  226|       |			// the qualifiers and will move to the children, or have just finished the children and
  227|       |			// will move on to the next sibling.
  228|       |			
  229|  9.95k|			if ( info.ancestors.empty() ) break;	// We're at the end of the schema list.
  ------------------
  |  Branch (229:9): [True: 3.02k, False: 6.92k]
  ------------------
  230|       |
  231|  6.92k|			IterPosPair & parent = info.ancestors.back();
  232|  6.92k|			info.currPos = parent.first;
  233|  6.92k|			info.endPos  = parent.second;
  234|  6.92k|			info.ancestors.pop_back();
  235|       |			
  236|       |			#if TraceIterators
  237|       |				printf ( "    Moved up to %s, stage = %s\n",
  238|       |				         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  239|       |			#endif
  240|       |		
  241|  36.1k|		} else {
  242|       |			
  243|       |			// -------------------------------------------------------------------------------------------
  244|       |			// Decide what to do with this iteration node based on its state. Don't use a switch statement,
  245|       |			// some of the cases want to break from the loop. A break in a switch just exits the case.
  246|       |			
  247|       |			#if TraceIterators
  248|       |				printf ( "    Moving from %s, stage = %s\n",
  249|       |				         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  250|       |			#endif
  251|       |			
  252|  36.1k|			if ( info.currPos->visitStage == kIter_BeforeVisit ) {		// Visit this node now.
  ------------------
  |  Branch (252:9): [True: 9.58k, False: 26.5k]
  ------------------
  253|  9.58k|				if ( info.currPos->options & kXMP_SchemaNode ) SetCurrSchema ( info, info.currPos->fullPath );
  ------------------
  |  Branch (253:10): [True: 2.53k, False: 7.04k]
  ------------------
  254|  9.58k|				break;
  255|  9.58k|			}
  256|       |
  257|  26.5k|			if ( info.currPos->visitStage == kIter_VisitSelf ) {		// Just finished visiting the value portion.
  ------------------
  |  Branch (257:9): [True: 19.6k, False: 6.92k]
  ------------------
  258|  19.6k|				info.currPos->visitStage = kIter_VisitQualifiers;		// Start visiting the qualifiers.
  259|  19.6k|				if ( ! info.currPos->qualifiers.empty() ) {
  ------------------
  |  Branch (259:10): [True: 229, False: 19.4k]
  ------------------
  260|    229|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  261|    229|					info.endPos  = info.currPos->qualifiers.end();		// ! Set the parent's endPos before changing currPos!
  262|    229|					info.currPos = info.currPos->qualifiers.begin();
  263|    229|					break;
  264|    229|				}
  265|  19.6k|			}
  266|       |
  267|  26.3k|			if ( info.currPos->visitStage == kIter_VisitQualifiers ) {	// Just finished visiting the qualifiers.
  ------------------
  |  Branch (267:9): [True: 19.6k, False: 6.70k]
  ------------------
  268|  19.6k|				info.currPos->qualifiers.clear();
  269|  19.6k|				info.currPos->visitStage = kIter_VisitChildren;			// Start visiting the children.
  270|  19.6k|				if ( ! info.currPos->children.empty() ) {
  ------------------
  |  Branch (270:10): [True: 6.82k, False: 12.8k]
  ------------------
  271|  6.82k|					info.ancestors.push_back ( IterPosPair ( info.currPos, info.endPos ) );
  272|  6.82k|					info.endPos  = info.currPos->children.end();		// ! Set the parent's endPos before changing currPos!
  273|  6.82k|					info.currPos = info.currPos->children.begin();
  274|  6.82k|					break;
  275|  6.82k|				}
  276|  19.6k|			}
  277|       |
  278|  19.5k|			if ( info.currPos->visitStage == kIter_VisitChildren ) {	// Just finished visiting the children.
  ------------------
  |  Branch (278:9): [True: 19.5k, False: 0]
  ------------------
  279|  19.5k|				info.currPos->children.clear();
  280|  19.5k|				++info.currPos;											// Move to the next sibling.
  281|  19.5k|				continue;
  282|  19.5k|			}
  283|       |			
  284|       |			#if TraceIterators
  285|       |				if ( info.currPos != info.endPos ) {
  286|       |					printf ( "    Moved to %s, stage = %s\n",
  287|       |					         info.currPos->fullPath.c_str(), sStageNames[info.currPos->visitStage] );
  288|       |				}
  289|       |			#endif
  290|       |			
  291|  19.5k|		}
  292|       |
  293|  46.1k|	}	// Loop to find the next node.
  294|       |	
  295|  19.6k|	XMP_Assert ( (info.currPos == info.endPos) || (info.currPos->visitStage == kIter_BeforeVisit) );
  ------------------
  |  |  142|  19.6k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  296|       |
  297|  19.6k|}	// AdvanceIterPos

_ZN8IterNodeC2Ev:
   43|  3.38k|	IterNode() : options(0), leafOffset(0), visitStage(kIter_BeforeVisit)
   44|  3.38k|	{
   45|       |		#if 0	// *** XMP_DebugBuild
   46|       |			_pathPtr = _leafPtr = 0;
   47|       |		#endif
   48|  3.38k|	};
_ZN8IterNodeC2EjRKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEEm:
   51|  20.1k|			 : options(_options), fullPath(_fullPath), leafOffset(_leafOffset), visitStage(kIter_BeforeVisit)
   52|  20.1k|	{
   53|       |		#if 0	// *** XMP_DebugBuild
   54|       |			_pathPtr = fullPath.c_str();
   55|       |			_leafPtr = _pathPtr + leafOffset;
   56|       |		#endif
   57|  20.1k|	};
_ZN8IterInfoC2EjPK7XMPMeta:
   80|  3.38k|	IterInfo ( XMP_OptionBits _options, const XMPMeta * _xmpObj ) : options(_options), xmpObj(_xmpObj)
   81|  3.38k|	{
   82|       |		#if 0	// *** XMP_DebugBuild
   83|       |			_schemaPtr = 0;
   84|       |		#endif
   85|  3.38k|	};

_ZN7XMPMeta11SetPropertyEPKcS1_S1_j:
  454|  3.50k|{
  455|  3.50k|	XMP_Assert ( (schemaNS != 0) && (propName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|  3.50k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  456|       |
  457|  3.50k|	options = VerifySetOptions ( options, propValue );
  458|       |
  459|  3.50k|	XMP_ExpandedXPath expPath;
  460|  3.50k|	ExpandXPath ( schemaNS, propName, &expPath );
  461|       |
  462|  3.50k|	XMP_Node * propNode = FindNode ( &tree, expPath, kXMP_CreateNodes, options );
  ------------------
  |  |  295|  3.50k|#define kXMP_CreateNodes	true
  ------------------
  463|  3.50k|	if ( propNode == 0 ) XMP_Throw ( "Specified property does not exist", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (463:7): [True: 0, False: 3.50k]
  ------------------
  464|       |	
  465|  3.50k|	SetNode ( propNode, propValue, options );
  466|       |	
  467|  3.50k|}	// SetProperty
_ZN7XMPMeta15AppendArrayItemEPKcS1_jS1_j:
  503|     58|{
  504|     58|	XMP_Assert ( (schemaNS != 0) && (arrayName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  ------------------
  505|       |
  506|     58|	arrayOptions = VerifySetOptions ( arrayOptions, 0 );
  507|     58|	if ( (arrayOptions & ~kXMP_PropArrayFormMask) != 0 ) {
  ------------------
  |  Branch (507:7): [True: 0, False: 58]
  ------------------
  508|      0|		XMP_Throw ( "Only array form flags allowed for arrayOptions", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  509|      0|	}
  510|       |	
  511|       |	// Locate or create the array. If it already exists, make sure the array form from the options
  512|       |	// parameter is compatible with the current state.
  513|       |	
  514|     58|	XMP_ExpandedXPath arrayPath;
  515|     58|	ExpandXPath ( schemaNS, arrayName, &arrayPath );
  516|     58|	XMP_Node * arrayNode = FindNode ( &tree, arrayPath, kXMP_ExistingOnly );	// Just lookup, don't try to create.
  ------------------
  |  |  296|     58|#define kXMP_ExistingOnly	false
  ------------------
  517|       |	
  518|     58|	if ( arrayNode != 0 ) {
  ------------------
  |  Branch (518:7): [True: 0, False: 58]
  ------------------
  519|       |		// The array exists, make sure the form is compatible. Zero arrayForm means take what exists.
  520|      0|		if ( ! (arrayNode->options & kXMP_PropValueIsArray) ) {
  ------------------
  |  Branch (520:8): [True: 0, False: 0]
  ------------------
  521|      0|			XMP_Throw ( "The named property is not an array", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  522|      0|		}
  523|       |		#if 0
  524|       |			// *** Disable for now. Need to do some general rethinking of semantic checks.
  525|       |			if ( (arrayOptions != 0) && (arrayOptions != (arrayNode->options & kXMP_PropArrayFormMask)) ) {
  526|       |				XMP_Throw ( "Mismatch of existing and specified array form", kXMPErr_BadOptions );
  527|       |			}
  528|       |		#endif
  529|     58|	} else {
  530|       |		// The array does not exist, try to create it.
  531|     58|		if ( arrayOptions == 0 ) XMP_Throw ( "Explicit arrayOptions required to create new array", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (531:8): [True: 0, False: 58]
  ------------------
  532|     58|		arrayNode = FindNode ( &tree, arrayPath, kXMP_CreateNodes, arrayOptions );
  ------------------
  |  |  295|     58|#define kXMP_CreateNodes	true
  ------------------
  533|     58|		if ( arrayNode == 0 ) XMP_Throw ( "Failure creating array node", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (533:8): [True: 0, False: 58]
  ------------------
  534|     58|	}
  535|       |	
  536|     58|	DoSetArrayItem ( arrayNode, kXMP_ArrayLastItem, itemValue, (options | kXMP_InsertAfterItem) );
  537|       |	
  538|     58|}	// AppendArrayItem
_ZN7XMPMeta12SetQualifierEPKcS1_S1_S1_S1_j:
  575|     58|{
  576|     58|	XMP_Assert ( (schemaNS != 0) && (propName != 0) && (qualNS != 0) && (qualName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  ------------------
  577|       |
  578|     58|	XMP_StringPtr	qualPath;
  579|     58|	XMP_StringLen	pathLen;
  580|       |
  581|     58|	XMP_ExpandedXPath expPath;
  582|     58|	ExpandXPath ( schemaNS, propName, &expPath );
  583|     58|	XMP_Node * propNode = FindNode ( &tree, expPath, kXMP_ExistingOnly );
  ------------------
  |  |  296|     58|#define kXMP_ExistingOnly	false
  ------------------
  584|     58|	if ( propNode == 0 ) XMP_Throw ( "Specified property does not exist", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (584:7): [True: 0, False: 58]
  ------------------
  585|       |
  586|     58|	XMPUtils::ComposeQualifierPath ( schemaNS, propName, qualNS, qualName, &qualPath, &pathLen );
  587|     58|	SetProperty ( schemaNS, qualPath, qualValue, options );
  588|       |
  589|     58|}	// SetQualifier
XMPMeta-GetSet.cpp:_ZL7SetNodeP8XMP_NodePKcj:
  117|  3.56k|{
  118|  3.56k|	if ( options & kXMP_DeleteExisting ) {
  ------------------
  |  Branch (118:7): [True: 0, False: 3.56k]
  ------------------
  119|      0|		XMP_ClearOption ( options, kXMP_DeleteExisting );
  120|      0|		node->options = options;
  121|      0|		node->value.erase();
  122|      0|		node->RemoveChildren();
  123|      0|		node->RemoveQualifiers();
  124|      0|	}
  125|       |	
  126|  3.56k|	node->options |= options;	// Keep options set by FindNode when creating a new node.
  127|       |
  128|  3.56k|	if ( value != 0 ) {
  ------------------
  |  Branch (128:7): [True: 2.99k, False: 566]
  ------------------
  129|       |	
  130|       |		// This is setting the value of a leaf node.
  131|  2.99k|		if ( node->options & kXMP_PropCompositeMask ) XMP_Throw ( "Composite nodes can't have values", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (131:8): [True: 0, False: 2.99k]
  ------------------
  132|  2.99k|		XMP_Assert ( node->children.empty() );
  ------------------
  |  |  142|  2.99k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  133|  2.99k|		SetNodeValue ( node, value );
  134|       |	
  135|  2.99k|	} else {
  136|       |	
  137|       |		// This is setting up an array or struct.
  138|    566|		if ( ! node->value.empty() ) XMP_Throw ( "Composite nodes can't have values", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (138:8): [True: 0, False: 566]
  ------------------
  139|    566|		if ( node->options & kXMP_PropCompositeMask ) {	// Can't change an array to a struct, or vice versa.
  ------------------
  |  Branch (139:8): [True: 411, False: 155]
  ------------------
  140|    411|			if ( (options & kXMP_PropCompositeMask) != (node->options & kXMP_PropCompositeMask) ) {
  ------------------
  |  Branch (140:9): [True: 0, False: 411]
  ------------------
  141|      0|				XMP_Throw ( "Requested and existing composite form mismatch", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  142|      0|			}
  143|    411|		}
  144|    566|		node->RemoveChildren();
  145|       |	
  146|    566|	}
  147|       |	
  148|  3.56k|}	// SetNode
XMPMeta-GetSet.cpp:_ZL14DoSetArrayItemP8XMP_NodeiPKcj:
  160|     58|{
  161|     58|	XMP_OptionBits itemLoc = options & kXMP_PropArrayLocationMask;
  162|     58|	XMP_Index      arraySize = arrayNode->children.size();
  163|       |	
  164|     58|	options &= ~kXMP_PropArrayLocationMask;
  165|     58|	options = VerifySetOptions ( options, itemValue );
  166|       |	
  167|       |	// Now locate or create the item node and set the value. Note the index parameter is one-based!
  168|       |	// The index can be in the range [0..size+1] or "last", normalize it and check the insert flags.
  169|       |	// The order of the normalization checks is important. If the array is empty we end up with an
  170|       |	// index and location to set item size+1.
  171|       |	
  172|     58|	XMP_Node * itemNode = 0;
  173|       |	
  174|     58|	if ( itemIndex == kXMP_ArrayLastItem ) itemIndex = arraySize;
  ------------------
  |  Branch (174:7): [True: 58, False: 0]
  ------------------
  175|     58|	if ( (itemIndex == 0) && (itemLoc == kXMP_InsertAfterItem) ) {
  ------------------
  |  Branch (175:7): [True: 58, False: 0]
  |  Branch (175:27): [True: 58, False: 0]
  ------------------
  176|     58|		itemIndex = 1;
  177|     58|		itemLoc = kXMP_InsertBeforeItem;
  178|     58|	}
  179|     58|	if ( (itemIndex == arraySize) && (itemLoc == kXMP_InsertAfterItem) ) {
  ------------------
  |  Branch (179:7): [True: 0, False: 58]
  |  Branch (179:35): [True: 0, False: 0]
  ------------------
  180|      0|		itemIndex += 1;
  181|      0|		itemLoc = 0;
  182|      0|	}
  183|     58|	if ( (itemIndex == arraySize+1) && (itemLoc == kXMP_InsertBeforeItem) ) itemLoc = 0;
  ------------------
  |  Branch (183:7): [True: 58, False: 0]
  |  Branch (183:37): [True: 58, False: 0]
  ------------------
  184|       |	
  185|     58|	if ( itemIndex == arraySize+1 ) {
  ------------------
  |  Branch (185:7): [True: 58, False: 0]
  ------------------
  186|       |
  187|     58|		if ( itemLoc != 0 ) XMP_Throw ( "Can't insert before or after implicit new item", kXMPErr_BadIndex );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (187:8): [True: 0, False: 58]
  ------------------
  188|     58|		itemNode = new XMP_Node ( arrayNode, kXMP_ArrayItemName, 0 );
  ------------------
  |  |  293|     58|#define kXMP_ArrayItemName	"[]"
  ------------------
  189|     58|		arrayNode->children.push_back ( itemNode );
  190|       |
  191|     58|	} else {
  192|       |
  193|      0|		if ( (itemIndex < 1) || (itemIndex > arraySize) ) XMP_Throw ( "Array index out of bounds", kXMPErr_BadIndex );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (193:8): [True: 0, False: 0]
  |  Branch (193:27): [True: 0, False: 0]
  ------------------
  194|      0|		--itemIndex;	// ! Convert the index to a C zero-based value!
  195|      0|		if ( itemLoc == 0 ) {
  ------------------
  |  Branch (195:8): [True: 0, False: 0]
  ------------------
  196|      0|			itemNode = arrayNode->children[itemIndex];
  197|      0|		} else {
  198|      0|			XMP_NodePtrPos itemPos = arrayNode->children.begin() + itemIndex;
  199|      0|			if ( itemLoc == kXMP_InsertAfterItem ) ++itemPos;
  ------------------
  |  Branch (199:9): [True: 0, False: 0]
  ------------------
  200|      0|			itemNode = new XMP_Node ( arrayNode, kXMP_ArrayItemName, 0 );
  ------------------
  |  |  293|      0|#define kXMP_ArrayItemName	"[]"
  ------------------
  201|      0|			itemPos = arrayNode->children.insert ( itemPos, itemNode );
  202|      0|		}
  203|       |
  204|      0|	}
  205|       |	
  206|     58|	SetNode ( itemNode, itemValue, options );
  207|       |	
  208|     58|}	// DoSetArrayItem
XMPMeta-GetSet.cpp:_ZL12SetNodeValueP8XMP_NodePKc:
   76|  2.99k|{
   77|       |
   78|       |	#if XMP_DebugBuild	// ! Hack to force an assert.
   79|       |		if ( (node->name == "xmp:TestAssertNotify") && XMP_LitMatch ( value, "DoIt!" ) ) {
   80|       |			XMP_Assert ( node->name != "xmp:TestAssertNotify" );
   81|       |		}
   82|       |	#endif
   83|       |	
   84|  2.99k|	node->value = value;
   85|       |	
   86|  2.99k|	XMP_Uns8* chPtr = (XMP_Uns8*) node->value.c_str();	// Check for valid UTF-8, replace ASCII controls with a space.
   87|  7.35k|	while ( *chPtr != 0 ) {
  ------------------
  |  Branch (87:10): [True: 4.35k, False: 2.99k]
  ------------------
   88|   126k|		while ( (*chPtr != 0) && (*chPtr < 0x80) ) {
  ------------------
  |  Branch (88:11): [True: 123k, False: 2.97k]
  |  Branch (88:28): [True: 121k, False: 1.37k]
  ------------------
   89|   121k|			if ( *chPtr < 0x20 ) {
  ------------------
  |  Branch (89:9): [True: 1.15k, False: 120k]
  ------------------
   90|  1.15k|				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  100|  1.15k|#define kTab ((char)0x09)
  ------------------
              				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  101|    560|#define kLF ((char)0x0A)
  ------------------
              				if ( (*chPtr != kTab) && (*chPtr != kLF) && (*chPtr != kCR) ) *chPtr = 0x20;
  ------------------
  |  |  102|      0|#define kCR ((char)0x0D)
  ------------------
  |  Branch (90:10): [True: 560, False: 599]
  |  Branch (90:30): [True: 0, False: 560]
  |  Branch (90:49): [True: 0, False: 0]
  ------------------
   91|   120k|			} else if (*chPtr == 0x7F ) {
  ------------------
  |  Branch (91:15): [True: 0, False: 120k]
  ------------------
   92|      0|				*chPtr = 0x20;
   93|      0|			}
   94|   121k|			++chPtr;
   95|   121k|		}
   96|  4.35k|		XMP_Assert ( (*chPtr == 0) || (*chPtr >= 0x80) );
  ------------------
  |  |  142|  4.35k|	#define XMP_Assert(c)	((void) 0)
  ------------------
   97|  4.35k|		if ( *chPtr != 0 ) (void) GetCodePoint ( (const XMP_Uns8 **) &chPtr );	// Throws for bad UTF-8.
  ------------------
  |  Branch (97:8): [True: 1.37k, False: 2.97k]
  ------------------
   98|  4.35k|	}
   99|       |
  100|  2.99k|	if ( XMP_PropIsQualifier(node->options) && (node->name == "xml:lang") ) NormalizeLangValue ( &node->value );
  ------------------
  |  Branch (100:7): [True: 152, False: 2.84k]
  |  Branch (100:45): [True: 95, False: 57]
  ------------------
  101|       |
  102|       |	#if 0	// *** XMP_DebugBuild
  103|       |		node->_valuePtr = node->value.c_str();
  104|       |	#endif
  105|       |	
  106|  2.99k|}	// SetNodeValue

_ZN7XMPMeta15ParseFromBufferEPKcjj:
 1096|  3.29k|{
 1097|  3.29k|	if ( (buffer == 0) && (xmpSize != 0) ) XMP_Throw ( "Null parse buffer", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1097:7): [True: 0, False: 3.29k]
  |  Branch (1097:24): [True: 0, False: 0]
  ------------------
 1098|  3.29k|	if ( xmpSize == kXMP_UseNullTermination ) xmpSize = strlen ( buffer );
  ------------------
  |  Branch (1098:7): [True: 0, False: 3.29k]
  ------------------
 1099|       |	
 1100|  3.29k|	const bool lastClientCall = ((options & kXMP_ParseMoreBuffers) == 0);	// *** Could use FlagIsSet & FlagIsClear macros.
 1101|       |	
 1102|  3.29k|	this->tree.ClearNode();	// Make sure the target XMP object is totally empty.
 1103|       |
 1104|  3.29k|	if ( this->xmlParser == 0 ) {
  ------------------
  |  Branch (1104:7): [True: 3.29k, False: 0]
  ------------------
 1105|  3.29k|		if ( (xmpSize == 0) && lastClientCall ) return;	// Tolerate empty parse. Expat complains if there are no XML elements.
  ------------------
  |  Branch (1105:8): [True: 0, False: 3.29k]
  |  Branch (1105:26): [True: 0, False: 0]
  ------------------
 1106|  3.29k|		this->xmlParser = XMP_NewExpatAdapter();
 1107|  3.29k|	}
 1108|       |	
 1109|  3.29k|	XMLParserAdapter& parser = *this->xmlParser;
 1110|       |	
 1111|       |	#if 0	// XMP_DebugBuild
 1112|       |		if ( parser.parseLog != 0 ) {
 1113|       |			char message [200];	// AUDIT: Using sizeof(message) below for snprintf length is safe.
 1114|       |			snprintf ( message, sizeof(message), "<!-- ParseFromBuffer, length = %d, options = %X%s -->",	// AUDIT: See above.
 1115|       |					   xmpSize, options, (lastClientCall ? " (last)" : "") );
 1116|       |			fwrite ( message, 1, strlen(message), parser.parseLog );
 1117|       |			fflush ( parser.parseLog );
 1118|       |		}
 1119|       |	#endif
 1120|       |		
 1121|  3.29k|	try {	// Cleanup the tree and xmlParser if anything fails.
 1122|       |	
 1123|       |		// Determine the character encoding before doing any real parsing. This is needed to do the
 1124|       |		// 8-bit special processing.
 1125|       |		
 1126|  3.29k|		if ( parser.charEncoding == XMP_OptionBits(-1) ) {
  ------------------
  |  Branch (1126:8): [True: 3.29k, False: 0]
  ------------------
 1127|       |
 1128|  3.29k|			if ( (parser.pendingCount == 0) && (xmpSize >= kXMLPendingInputMax) ) {
  ------------------
  |  Branch (1128:9): [True: 3.29k, False: 0]
  |  Branch (1128:39): [True: 3.29k, False: 3]
  ------------------
 1129|       |
 1130|       |				// This ought to be the common case, the first buffer is big enough.
 1131|  3.29k|				parser.charEncoding = DetermineInputEncoding ( (XMP_Uns8*)buffer, xmpSize );
 1132|       |
 1133|  3.29k|			} else {
 1134|       |			
 1135|       |				// Try to fill the pendingInput buffer before calling DetermineInputEncoding.
 1136|       |
 1137|      3|				size_t pendingOverlap = kXMLPendingInputMax - parser.pendingCount;
 1138|      3|				if ( pendingOverlap > xmpSize ) pendingOverlap = xmpSize;
  ------------------
  |  Branch (1138:10): [True: 3, False: 0]
  ------------------
 1139|       |
 1140|      3|				memcpy ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
 1141|      3|				buffer += pendingOverlap;
 1142|      3|				xmpSize -= pendingOverlap;
 1143|      3|				parser.pendingCount += pendingOverlap;
 1144|       |
 1145|      3|				if ( (! lastClientCall) && (parser.pendingCount < kXMLPendingInputMax) ) return;
  ------------------
  |  Branch (1145:10): [True: 0, False: 3]
  |  Branch (1145:32): [True: 0, False: 0]
  ------------------
 1146|      3|				parser.charEncoding = DetermineInputEncoding ( parser.pendingInput, parser.pendingCount );
 1147|       |				
 1148|       |				#if Trace_ParsingHackery
 1149|       |					fprintf ( stderr, "XMP Character encoding is %d\n", parser.charEncoding );
 1150|       |				#endif
 1151|       |			
 1152|      3|			}
 1153|       |
 1154|  3.29k|		}
 1155|       |		
 1156|       |		// We have the character encoding. Process UTF-16 and UTF-32 as is. UTF-8 needs special
 1157|       |		// handling to take care of things like ISO Latin-1 or unescaped ASCII controls.
 1158|       |
 1159|  3.29k|		XMP_Assert ( parser.charEncoding != XMP_OptionBits(-1) );
  ------------------
  |  |  142|  3.29k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1160|       |
 1161|  3.29k|		if ( parser.charEncoding != kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1161:8): [True: 0, False: 3.29k]
  ------------------
 1162|       |		
 1163|      0|			if ( parser.pendingCount > 0 ) {
  ------------------
  |  Branch (1163:9): [True: 0, False: 0]
  ------------------
 1164|       |				// Might have pendingInput from the above portion to determine the character encoding.
 1165|      0|				parser.ParseBuffer ( parser.pendingInput, parser.pendingCount, false );
 1166|      0|			}
 1167|      0|			parser.ParseBuffer ( buffer, xmpSize, lastClientCall );
 1168|       |			
 1169|  3.29k|		} else {
 1170|       |
 1171|       |			#if Trace_ParsingHackery
 1172|       |				fprintf ( stderr, "Parsing %d bytes @ %.8X, %s, %d pending, context: %.8s\n",
 1173|       |						  xmpSize, buffer, (lastClientCall ? "last" : "not last"), parser.pendingCount, buffer );
 1174|       |			#endif
 1175|       |
 1176|       |			// The UTF-8 processing is a bit complex due to the need to tolerate ISO Latin-1 input.
 1177|       |			// This is done by scanning the input for byte sequences that are not valid UTF-8,
 1178|       |			// assuming they are Latin-1 characters in the range 0x80..0xFF. This requires saving a
 1179|       |			// pending input buffer to handle partial UTF-8 sequences at the end of a buffer.
 1180|       |			
 1181|  3.29k|			while ( parser.pendingCount > 0 ) {
  ------------------
  |  Branch (1181:12): [True: 3, False: 3.29k]
  ------------------
 1182|       |			
 1183|       |				// We've got some leftover input, process it first then continue with the current
 1184|       |				// buffer. Try to fill the pendingInput buffer before parsing further. We use a loop
 1185|       |				// for weird edge cases like a 2 byte input buffer, using 1 byte for pendingInput,
 1186|       |				// then having a partial UTF-8 end and need to absorb more.
 1187|       |				
 1188|      3|				size_t pendingOverlap = kXMLPendingInputMax - parser.pendingCount;
 1189|      3|				if ( pendingOverlap > xmpSize ) pendingOverlap = xmpSize;
  ------------------
  |  Branch (1189:10): [True: 3, False: 0]
  ------------------
 1190|       |				
 1191|      3|				memcpy ( &parser.pendingInput[parser.pendingCount], buffer, pendingOverlap );	// AUDIT: Count is safe.
 1192|      3|				parser.pendingCount += pendingOverlap;
 1193|      3|				buffer += pendingOverlap;
 1194|      3|				xmpSize -= pendingOverlap;
 1195|       |
 1196|      3|				if ( (! lastClientCall) && (parser.pendingCount < kXMLPendingInputMax) ) return;
  ------------------
  |  Branch (1196:10): [True: 0, False: 3]
  |  Branch (1196:32): [True: 0, False: 0]
  ------------------
 1197|      3|				size_t bytesDone = ProcessUTF8Portion ( &parser, parser.pendingInput, parser.pendingCount, lastClientCall );
 1198|      3|				size_t bytesLeft = parser.pendingCount - bytesDone;
 1199|       |
 1200|       |				#if Trace_ParsingHackery
 1201|       |					fprintf ( stderr, "   ProcessUTF8Portion handled %d pending bytes\n", bytesDone );
 1202|       |				#endif
 1203|       |				
 1204|      3|				if ( bytesDone == parser.pendingCount ) {
  ------------------
  |  Branch (1204:10): [True: 3, False: 0]
  ------------------
 1205|       |
 1206|       |					// Done with all of the pending input, move on to the current buffer.
 1207|      3|					parser.pendingCount = 0;
 1208|       |
 1209|      3|				} else if ( bytesLeft <= pendingOverlap ) {
  ------------------
  |  Branch (1209:17): [True: 0, False: 0]
  ------------------
 1210|       |
 1211|       |					// The leftover pending input all came from the current buffer. Exit this loop.
 1212|      0|					buffer -= bytesLeft;
 1213|      0|					xmpSize += bytesLeft;
 1214|      0|					parser.pendingCount = 0;
 1215|       |
 1216|      0|				} else if ( xmpSize > 0 ) {
  ------------------
  |  Branch (1216:17): [True: 0, False: 0]
  ------------------
 1217|       |
 1218|       |					// Pull more of the current buffer into the pending input and try again.
 1219|       |					// Backup by this pass's overlap so the loop entry code runs OK.
 1220|      0|					parser.pendingCount -= pendingOverlap;
 1221|      0|					buffer -= pendingOverlap;
 1222|      0|					xmpSize += pendingOverlap;
 1223|       |
 1224|      0|				} else {
 1225|       |
 1226|       |					// There is no more of the current buffer. Wait for more. Partial sequences at
 1227|       |					// the end of the last buffer should be treated as Latin-1 by ProcessUTF8Portion.
 1228|      0|					XMP_Assert ( ! lastClientCall );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1229|      0|					parser.pendingCount = bytesLeft;
 1230|      0|					memcpy ( &parser.pendingInput[0], &parser.pendingInput[bytesDone], bytesLeft );	// AUDIT: Count is safe.
 1231|      0|					return;
 1232|       |
 1233|      0|				}
 1234|       |			
 1235|      3|			}
 1236|       |			
 1237|       |			// Done with the pending input, process the current buffer.
 1238|       |
 1239|  3.29k|			size_t bytesDone = ProcessUTF8Portion ( &parser, (XMP_Uns8*)buffer, xmpSize, lastClientCall );
 1240|       |
 1241|       |			#if Trace_ParsingHackery
 1242|       |				fprintf ( stderr, "   ProcessUTF8Portion handled %d additional bytes\n", bytesDone );
 1243|       |			#endif
 1244|       |			
 1245|  3.29k|			if ( bytesDone < xmpSize ) {
  ------------------
  |  Branch (1245:9): [True: 0, False: 3.29k]
  ------------------
 1246|       |
 1247|      0|				XMP_Assert ( ! lastClientCall );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1248|      0|				size_t bytesLeft = xmpSize - bytesDone;
 1249|      0|				if ( bytesLeft > kXMLPendingInputMax ) XMP_Throw ( "Parser bytesLeft too large", kXMPErr_InternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1249:10): [True: 0, False: 0]
  ------------------
 1250|       |
 1251|      0|				memcpy ( parser.pendingInput, &buffer[bytesDone], bytesLeft );	// AUDIT: Count is safe.
 1252|      0|				parser.pendingCount = bytesLeft;
 1253|      0|				return;	// Wait for the next buffer.
 1254|       |
 1255|      0|			}
 1256|       |
 1257|  3.29k|		}
 1258|       |		
 1259|  3.29k|		if ( lastClientCall ) {
  ------------------
  |  Branch (1259:8): [True: 3.29k, False: 3]
  ------------------
 1260|       |		
 1261|       |			#if XMP_DebugBuild && DumpXMLParseTree
 1262|       |				if ( parser.parseLog == 0 ) parser.parseLog = stdout;
 1263|       |				DumpXMLTree ( parser.parseLog, parser.tree, 0 );
 1264|       |			#endif
 1265|       |
 1266|  3.29k|			const XML_Node * xmlRoot = FindRootNode ( this, *this->xmlParser, options );
 1267|       |
 1268|  3.29k|			if ( xmlRoot != 0 ) {
  ------------------
  |  Branch (1268:9): [True: 3.11k, False: 182]
  ------------------
 1269|       |
 1270|  3.11k|				ProcessRDF ( &this->tree, *xmlRoot, options );
 1271|  3.11k|				NormalizeDCArrays ( &this->tree );
 1272|  3.11k|				if ( this->tree.options & kXMP_PropHasAliases ) MoveExplicitAliases ( &this->tree, options );
  ------------------
  |  Branch (1272:10): [True: 0, False: 3.11k]
  ------------------
 1273|  3.11k|				TouchUpDataModel ( this );
 1274|       |				
 1275|       |				// Delete empty schema nodes. Do this last, other cleanup can make empty schema.
 1276|  3.11k|				size_t schemaNum = 0;
 1277|  8.08k|				while ( schemaNum < this->tree.children.size() ) {
  ------------------
  |  Branch (1277:13): [True: 4.97k, False: 3.11k]
  ------------------
 1278|  4.97k|					XMP_Node * currSchema = this->tree.children[schemaNum];
 1279|  4.97k|					if ( currSchema->children.size() > 0 ) {
  ------------------
  |  Branch (1279:11): [True: 4.97k, False: 0]
  ------------------
 1280|  4.97k|						++schemaNum;
 1281|  4.97k|					} else {
 1282|      0|						delete this->tree.children[schemaNum];	// ! Delete the schema node itself.
 1283|      0|						this->tree.children.erase ( this->tree.children.begin() + schemaNum );
 1284|      0|					}
 1285|  4.97k|				}
 1286|       |				
 1287|  3.11k|			}
 1288|       |
 1289|  3.29k|			delete this->xmlParser;
 1290|  3.29k|			this->xmlParser = 0;
 1291|       |
 1292|  3.29k|		}
 1293|       |		
 1294|  3.29k|	} catch ( ... ) {
 1295|       |
 1296|    632|		delete this->xmlParser;
 1297|    632|		this->xmlParser = 0;
 1298|    632|		prevTkVer = 0;
 1299|    632|		this->tree.ClearNode();
 1300|    632|		throw;
 1301|       |
 1302|    632|	}
 1303|       |	
 1304|  3.29k|}	// ParseFromBuffer
XMPMeta-Parse.cpp:_ZL22DetermineInputEncodingPKhm:
  810|  3.29k|{
  811|  3.29k|	if ( length < 2 ) return kXMP_EncodeUTF8;
  ------------------
  |  Branch (811:7): [True: 0, False: 3.29k]
  ------------------
  812|       |	
  813|  3.29k|	XMP_Uns8 * uniChar = (XMP_Uns8*)buffer;	// ! Make sure comparisons are unsigned.
  814|       |	
  815|  3.29k|	if ( uniChar[0] == 0 ) {
  ------------------
  |  Branch (815:7): [True: 0, False: 3.29k]
  ------------------
  816|       |	
  817|       |		// These cases are:
  818|       |		//   00 nn -- -- - Big endian UTF-16
  819|       |		//   00 00 00 nn - Big endian UTF-32
  820|       |		//   00 00 FE FF - Big endian UTF 32
  821|       |
  822|      0|		if ( (length < 4) || (uniChar[1] != 0) ) return kXMP_EncodeUTF16Big;
  ------------------
  |  Branch (822:8): [True: 0, False: 0]
  |  Branch (822:24): [True: 0, False: 0]
  ------------------
  823|      0|		return kXMP_EncodeUTF32Big;
  824|       |		
  825|  3.29k|	} else if ( uniChar[0] < 0x80 ) {
  ------------------
  |  Branch (825:14): [True: 3.29k, False: 0]
  ------------------
  826|       |	
  827|       |		// These cases are:
  828|       |		//   nn mm -- -- - UTF-8, includes EF BB BF case
  829|       |		//   nn 00 00 00 - Little endian UTF-32
  830|       |		//   nn 00 -- -- - Little endian UTF-16
  831|       |
  832|  3.29k|		if ( uniChar[1] != 0 )  return kXMP_EncodeUTF8;
  ------------------
  |  Branch (832:8): [True: 3.29k, False: 0]
  ------------------
  833|      0|		if ( (length < 4) || (uniChar[2] != 0) ) return kXMP_EncodeUTF16Little;
  ------------------
  |  Branch (833:8): [True: 0, False: 0]
  |  Branch (833:24): [True: 0, False: 0]
  ------------------
  834|      0|		return kXMP_EncodeUTF32Little;
  835|       |
  836|      0|	} else {
  837|       |	
  838|       |		// These cases are:
  839|       |		//   EF BB BF -- - UTF-8
  840|       |		//   FE FF -- -- - Big endian UTF-16
  841|       |		//   FF FE 00 00 - Little endian UTF-32
  842|       |		//   FF FE -- -- - Little endian UTF-16
  843|       |
  844|      0|		if ( uniChar[0] == 0xEF ) return kXMP_EncodeUTF8;
  ------------------
  |  Branch (844:8): [True: 0, False: 0]
  ------------------
  845|      0|		if ( uniChar[0] == 0xFE ) return kXMP_EncodeUTF16Big;
  ------------------
  |  Branch (845:8): [True: 0, False: 0]
  ------------------
  846|      0|		if ( (length < 4) || (uniChar[2] != 0) ) return kXMP_EncodeUTF16Little;
  ------------------
  |  Branch (846:8): [True: 0, False: 0]
  |  Branch (846:24): [True: 0, False: 0]
  ------------------
  847|      0|		return kXMP_EncodeUTF32Little;
  848|       |
  849|      0|	}
  850|       |		
  851|  3.29k|}	// DetermineInputEncoding
XMPMeta-Parse.cpp:_ZL18ProcessUTF8PortionP16XMLParserAdapterPKhmb:
  976|  3.29k|{
  977|  3.29k|	const XMP_Uns8 * bufEnd = buffer + length;
  978|       |	
  979|  3.29k|	const XMP_Uns8 * spanEnd;
  980|       |
  981|       |	// `buffer` is copied into this std::string. If `buffer` only
  982|       |	// contains valid UTF-8 and no escape characters, then the copy
  983|       |	// will be identical to the original, but invalid characters are
  984|       |	// replaced - usually with a space character.  This std::string was
  985|       |	// added as a performance fix for:
  986|       |	// https://github.com/Exiv2/exiv2/security/advisories/GHSA-w8mv-g8qq-36mj
  987|       |	// Previously, the code was repeatedly calling
  988|       |	// `xmlParser->ParseBuffer()`, which turned out to have quadratic
  989|       |	// complexity, because expat kept reparsing the entire string from
  990|       |	// the beginning.
  991|  3.29k|	std::string copy;
  992|       |		
  993|  7.06M|	for ( spanEnd = buffer; spanEnd < bufEnd; ++spanEnd ) {
  ------------------
  |  Branch (993:26): [True: 7.06M, False: 3.29k]
  ------------------
  994|       |
  995|  7.06M|		if ( (0x20 <= *spanEnd) && (*spanEnd <= 0x7E) && (*spanEnd != '&') ) {
  ------------------
  |  Branch (995:8): [True: 7.02M, False: 39.4k]
  |  Branch (995:30): [True: 6.97M, False: 51.3k]
  |  Branch (995:52): [True: 6.94M, False: 22.1k]
  ------------------
  996|  6.94M|			copy.push_back(*spanEnd);
  997|  6.94M|			continue;	// A regular ASCII character.
  998|  6.94M|		}
  999|       |
 1000|   113k|		if ( *spanEnd >= 0x80 ) {
  ------------------
  |  Branch (1000:8): [True: 46.5k, False: 66.4k]
  ------------------
 1001|       |		
 1002|       |			// See if this is a multi-byte UTF-8 sequence, or a Latin-1 character to replace.
 1003|       |
 1004|  46.5k|			int uniLen = CountUTF8 ( spanEnd, bufEnd );
 1005|       |
 1006|  46.5k|			if ( uniLen > 0 ) {
  ------------------
  |  Branch (1006:9): [True: 46.5k, False: 0]
  ------------------
 1007|       |
 1008|       |				// A valid UTF-8 character, keep it as-is.
 1009|  46.5k|				copy.append((const char*)spanEnd, uniLen);
 1010|  46.5k|				spanEnd += uniLen - 1;	// ! The loop increment will put back the +1.
 1011|       |
 1012|  46.5k|			} else if ( (uniLen < 0) && (! last) ) {
  ------------------
  |  Branch (1012:16): [True: 0, False: 0]
  |  Branch (1012:32): [True: 0, False: 0]
  ------------------
 1013|       |
 1014|       |				// Have a partial UTF-8 character at the end of the buffer and more input coming.
 1015|      0|				xmlParser->ParseBuffer ( copy.c_str(), copy.size(), false );
 1016|      0|				return (spanEnd - buffer);
 1017|       |
 1018|      0|			} else {
 1019|       |
 1020|       |				// Not a valid UTF-8 sequence. Replace the first byte with the Latin-1 equivalent.
 1021|      0|				const char * replacement = kReplaceLatin1 [ *spanEnd - 0x80 ];
 1022|      0|				copy.append ( replacement );
 1023|       |
 1024|      0|			}
 1025|       |		
 1026|  66.4k|		} else if ( (*spanEnd < 0x20) || (*spanEnd == 0x7F) ) {
  ------------------
  |  Branch (1026:15): [True: 39.4k, False: 26.9k]
  |  Branch (1026:36): [True: 4.78k, False: 22.1k]
  ------------------
 1027|       |
 1028|       |			// Replace ASCII controls other than tab, LF, and CR with a space.
 1029|       |
 1030|  44.2k|			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  100|  44.2k|#define kTab ((char)0x09)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  101|  41.1k|#define kLF ((char)0x0A)
  ------------------
              			if ( (*spanEnd == kTab) || (*spanEnd == kLF) || (*spanEnd == kCR) ) {
  ------------------
  |  |  102|  8.71k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (1030:9): [True: 3.09k, False: 41.1k]
  |  Branch (1030:31): [True: 32.4k, False: 8.71k]
  |  Branch (1030:52): [True: 3.92k, False: 4.78k]
  ------------------
 1031|  39.4k|				copy.push_back(*spanEnd);
 1032|  39.4k|				continue;
 1033|  39.4k|			}
 1034|       |
 1035|  4.78k|			copy.push_back(' ');
 1036|       |		
 1037|  22.1k|		} else {
 1038|       |		
 1039|       |			// See if this is a numeric escape sequence for a prohibited ASCII control.
 1040|       |			
 1041|  22.1k|			XMP_Assert ( *spanEnd == '&' );
  ------------------
  |  |  142|  22.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1042|  22.1k|			int escLen = CountControlEscape ( spanEnd, bufEnd );
 1043|       |			
 1044|  22.1k|			if ( escLen < 0 ) {
  ------------------
  |  Branch (1044:9): [True: 6, False: 22.1k]
  ------------------
 1045|       |
 1046|       |				// Have a partial numeric escape in this buffer, wait for more input.
 1047|      6|				if ( last ) {
  ------------------
  |  Branch (1047:10): [True: 6, False: 0]
  ------------------
 1048|      6|					copy.push_back('&');
 1049|      6|					continue;	// No more buffers, not an escape, absorb as normal input.
 1050|      6|				}
 1051|      0|				xmlParser->ParseBuffer ( copy.c_str(), copy.size(), false );
 1052|      0|				return (spanEnd - buffer);
 1053|       |
 1054|  22.1k|			} else if ( escLen > 0 ) {
  ------------------
  |  Branch (1054:16): [True: 735, False: 21.4k]
  ------------------
 1055|       |
 1056|       |				// Have a complete numeric escape to replace.
 1057|    735|				copy.push_back(' ');
 1058|    735|				spanEnd = spanEnd + escLen - 1;	// ! The loop continuation will increment spanEnd!
 1059|       |
 1060|  21.4k|			} else {
 1061|  21.4k|				copy.push_back('&');
 1062|  21.4k|			}
 1063|       |
 1064|  22.1k|		}
 1065|       |		
 1066|   113k|	}
 1067|       |	
 1068|  3.29k|	XMP_Assert ( spanEnd == bufEnd );
  ------------------
  |  |  142|  3.29k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1069|  3.29k|	copy.push_back(' ');
 1070|  3.29k|	xmlParser->ParseBuffer ( copy.c_str(), copy.size(), true );
 1071|  3.29k|	return length;
 1072|       |
 1073|  3.29k|}	// ProcessUTF8Portion
XMPMeta-Parse.cpp:_ZL9CountUTF8PKhS0_:
  867|  46.5k|{
  868|  46.5k|	XMP_Assert ( charStart < bufEnd );		// Catch this in debug builds.
  ------------------
  |  |  142|  46.5k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  869|  46.5k|	if ( charStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (869:7): [True: 0, False: 46.5k]
  ------------------
  870|  46.5k|	if ( (*charStart & 0xC0) != 0xC0 ) return 0;	// Must have at least 2 high bits set.
  ------------------
  |  Branch (870:7): [True: 0, False: 46.5k]
  ------------------
  871|       |	
  872|  46.5k|	int byteCount = 2;
  873|  46.5k|	XMP_Uns8 firstByte = *charStart;
  874|  48.7k|	for ( firstByte = firstByte << 2; (firstByte & 0x80) != 0; firstByte = firstByte << 1 ) ++byteCount;
  ------------------
  |  Branch (874:36): [True: 2.13k, False: 46.5k]
  ------------------
  875|       |	
  876|  46.5k|	if ( (charStart + byteCount) > bufEnd ) return -byteCount;
  ------------------
  |  Branch (876:7): [True: 0, False: 46.5k]
  ------------------
  877|       |
  878|  95.2k|	for ( int i = 1; i < byteCount; ++i ) {
  ------------------
  |  Branch (878:19): [True: 48.7k, False: 46.5k]
  ------------------
  879|  48.7k|		if ( (charStart[i] & 0xC0) != 0x80 ) return 0;
  ------------------
  |  Branch (879:8): [True: 0, False: 48.7k]
  ------------------
  880|  48.7k|	}
  881|       |	
  882|  46.5k|	return byteCount;
  883|       |	
  884|  46.5k|}	// CountUTF8
XMPMeta-Parse.cpp:_ZL18CountControlEscapePKhS0_:
  897|  22.1k|{
  898|  22.1k|	XMP_Assert ( escStart < bufEnd );	// Catch this in debug builds.
  ------------------
  |  |  142|  22.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  899|  22.1k|	if ( escStart >= bufEnd ) return 0;	// Don't run-on in release builds.
  ------------------
  |  Branch (899:7): [True: 0, False: 22.1k]
  ------------------
  900|  22.1k|	XMP_Assert ( *escStart == '&' );
  ------------------
  |  |  142|  22.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  901|       |	
  902|  22.1k|	size_t tailLen = bufEnd - escStart;
  903|  22.1k|	if ( tailLen < 5 ) return -1;	// Don't need a more thorough check, we'll catch it on the next pass.
  ------------------
  |  Branch (903:7): [True: 6, False: 22.1k]
  ------------------
  904|       |	
  905|  22.1k|	if ( strncmp ( (char*)escStart, "&#x", 3 ) != 0 ) return 0;
  ------------------
  |  Branch (905:7): [True: 16.1k, False: 6.08k]
  ------------------
  906|       |	
  907|  6.08k|	XMP_Uns8 escValue = 0;
  908|  6.08k|	const XMP_Uns8 * escPos = escStart + 3;
  909|       |	
  910|  6.08k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (910:7): [True: 5.20k, False: 878]
  |  Branch (910:27): [True: 620, False: 4.58k]
  ------------------
  911|    620|		escValue = *escPos - '0';
  912|    620|		++escPos;
  913|  5.46k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (913:14): [True: 4.24k, False: 1.21k]
  |  Branch (913:34): [True: 2.38k, False: 1.86k]
  ------------------
  914|  2.38k|		escValue = *escPos - 'A' + 10;
  915|  2.38k|		++escPos;
  916|  3.08k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (916:14): [True: 1.70k, False: 1.37k]
  |  Branch (916:34): [True: 1.52k, False: 178]
  ------------------
  917|  1.52k|		escValue = *escPos - 'a' + 10;
  918|  1.52k|		++escPos;
  919|  1.52k|	}
  920|       |	
  921|  6.08k|	if ( ('0' <= *escPos) && (*escPos <= '9') ) {
  ------------------
  |  Branch (921:7): [True: 4.83k, False: 1.24k]
  |  Branch (921:27): [True: 546, False: 4.29k]
  ------------------
  922|    546|		escValue = (escValue << 4) + (*escPos - '0');
  923|    546|		++escPos;
  924|  5.54k|	} else if ( ('A' <= *escPos) && (*escPos <= 'F') ) {
  ------------------
  |  Branch (924:14): [True: 3.10k, False: 2.43k]
  |  Branch (924:34): [True: 627, False: 2.47k]
  ------------------
  925|    627|		escValue = (escValue << 4) + (*escPos - 'A' + 10);
  926|    627|		++escPos;
  927|  4.91k|	} else if ( ('a' <= *escPos) && (*escPos <= 'f') ) {
  ------------------
  |  Branch (927:14): [True: 2.10k, False: 2.80k]
  |  Branch (927:34): [True: 1.82k, False: 280]
  ------------------
  928|  1.82k|		escValue = (escValue << 4) + (*escPos - 'a' + 10);
  929|  1.82k|		++escPos;
  930|  1.82k|	}
  931|       |	
  932|  6.08k|	if ( escPos == bufEnd ) return -1;	// Partial escape.
  ------------------
  |  Branch (932:7): [True: 0, False: 6.08k]
  ------------------
  933|  6.08k|	if ( *escPos != ';' ) return 0;
  ------------------
  |  Branch (933:7): [True: 4.02k, False: 2.06k]
  ------------------
  934|       |	
  935|  2.06k|	size_t escLen = escPos - escStart + 1;
  936|  2.06k|	if ( escLen < 5 ) return 0;	// ! Catch "&#x;".
  ------------------
  |  Branch (936:7): [True: 195, False: 1.86k]
  ------------------
  937|       |	
  938|  1.86k|	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  100|  1.86k|#define kTab ((char)0x09)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  101|  1.50k|#define kLF ((char)0x0A)
  ------------------
              	if ( (escValue == kTab) || (escValue == kLF) || (escValue == kCR) ) return 0;	// An allowed escape.
  ------------------
  |  |  102|  1.21k|#define kCR ((char)0x0D)
  ------------------
  |  Branch (938:7): [True: 359, False: 1.50k]
  |  Branch (938:29): [True: 293, False: 1.21k]
  |  Branch (938:50): [True: 481, False: 735]
  ------------------
  939|       |	
  940|    735|	return escLen;	// Found a full "prohibited" numeric escape.
  941|       |	
  942|  1.86k|}	// CountControlEscape
XMPMeta-Parse.cpp:_ZL12FindRootNodeP7XMPMetaRK16XMLParserAdapterj:
  151|  3.29k|{
  152|  3.29k|	const XML_Node * rootNode = xmlParser.rootNode;
  153|       |	
  154|  3.29k|	if ( xmlParser.rootCount > 1 ) rootNode = PickBestRoot ( xmlParser.tree, options );
  ------------------
  |  Branch (154:7): [True: 58, False: 3.23k]
  ------------------
  155|  3.29k|	if ( rootNode == 0 ) return 0;
  ------------------
  |  Branch (155:7): [True: 182, False: 3.11k]
  ------------------
  156|       |	
  157|       |	// We have a root node. Try to extract previous toolkit version number.
  158|       |	
  159|  3.11k|	XMP_StringPtr verStr = "";
  160|       |	
  161|  3.11k|		XMP_Assert ( rootNode->name == "rdf:RDF" );
  ------------------
  |  |  142|  3.11k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  162|       |	
  163|  3.11k|		if ( (options & kXMP_RequireXMPMeta) &&
  ------------------
  |  Branch (163:8): [True: 0, False: 3.11k]
  ------------------
  164|      0|		     ((rootNode->parent == 0) ||
  ------------------
  |  Branch (164:9): [True: 0, False: 0]
  ------------------
  165|      0|		      ((rootNode->parent->name != "x:xmpmeta") && (rootNode->parent->name != "x:xapmeta"))) ) return 0;
  ------------------
  |  Branch (165:10): [True: 0, False: 0]
  |  Branch (165:53): [True: 0, False: 0]
  ------------------
  166|       |
  167|  3.41k|		for ( size_t attrNum = 0, attrLim = rootNode->parent->attrs.size(); attrNum < attrLim; ++attrNum ) {
  ------------------
  |  Branch (167:71): [True: 452, False: 2.96k]
  ------------------
  168|    452|			const XML_Node * currAttr =rootNode->parent->attrs[attrNum];
  169|    452|			if ( (currAttr->name == "x:xmptk") || (currAttr->name == "x:xaptk") ) {
  ------------------
  |  Branch (169:9): [True: 146, False: 306]
  |  Branch (169:42): [True: 1, False: 305]
  ------------------
  170|    147|				verStr = currAttr->value.c_str();
  171|    147|				break;
  172|    147|			}
  173|    452|		}
  174|       |		
  175|       |	// Decode the version number into MMmmuubbb digits. If any part is too big, peg it at 99 or 999.
  176|       |	
  177|  3.11k|	unsigned long part;
  178|  4.25k|	while ( (*verStr != 0) && ((*verStr < '0') || (*verStr > '9')) ) ++verStr;
  ------------------
  |  Branch (178:10): [True: 1.29k, False: 2.96k]
  |  Branch (178:29): [True: 219, False: 1.07k]
  |  Branch (178:48): [True: 929, False: 147]
  ------------------
  179|       |	
  180|  3.11k|	part = 0;
  181|  3.77k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (181:10): [True: 811, False: 2.96k]
  |  Branch (181:28): [True: 686, False: 125]
  |  Branch (181:48): [True: 665, False: 21]
  ------------------
  182|    665|		part = (part * 10) + (*verStr - '0');
  183|    665|		++verStr;
  184|    665|	}
  185|  3.11k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (185:7): [True: 23, False: 3.08k]
  ------------------
  186|  3.11k|	thiz->prevTkVer = part * 100*100*1000;
  187|       |	
  188|  3.11k|	part = 0;
  189|  3.11k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (189:7): [True: 108, False: 3.00k]
  ------------------
  190|  3.71k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (190:10): [True: 746, False: 2.96k]
  |  Branch (190:28): [True: 633, False: 113]
  |  Branch (190:48): [True: 600, False: 33]
  ------------------
  191|    600|		part = (part * 10) + (*verStr - '0');
  192|    600|		++verStr;
  193|    600|	}
  194|  3.11k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (194:7): [True: 25, False: 3.08k]
  ------------------
  195|  3.11k|	thiz->prevTkVer += part * 100*1000;
  196|       |	
  197|  3.11k|	part = 0;
  198|  3.11k|	if ( *verStr == '.' ) ++verStr;
  ------------------
  |  Branch (198:7): [True: 57, False: 3.05k]
  ------------------
  199|  3.40k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (199:10): [True: 434, False: 2.96k]
  |  Branch (199:28): [True: 326, False: 108]
  |  Branch (199:48): [True: 289, False: 37]
  ------------------
  200|    289|		part = (part * 10) + (*verStr - '0');
  201|    289|		++verStr;
  202|    289|	}
  203|  3.11k|	if ( part > 99 ) part = 99;
  ------------------
  |  Branch (203:7): [True: 6, False: 3.10k]
  ------------------
  204|  3.11k|	thiz->prevTkVer += part * 1000;
  205|       |	
  206|  3.11k|	part = 0;
  207|  3.11k|	if ( *verStr == '-' ) ++verStr;
  ------------------
  |  Branch (207:7): [True: 84, False: 3.02k]
  ------------------
  208|  3.54k|	while ( (*verStr != 0) && ('0' <= *verStr) && (*verStr <= '9') ) {
  ------------------
  |  Branch (208:10): [True: 533, False: 3.01k]
  |  Branch (208:28): [True: 502, False: 31]
  |  Branch (208:48): [True: 438, False: 64]
  ------------------
  209|    438|		part = (part * 10) + (*verStr - '0');
  210|    438|		++verStr;
  211|    438|	}
  212|  3.11k|	if ( part > 999 ) part = 999;
  ------------------
  |  Branch (212:7): [True: 12, False: 3.09k]
  ------------------
  213|  3.11k|	thiz->prevTkVer += part;
  214|       |	
  215|  3.11k|	return rootNode;
  216|       |	
  217|  3.11k|}	// FindRootNode
XMPMeta-Parse.cpp:_ZL12PickBestRootRK8XML_Nodej:
  111|  2.04k|{
  112|       |
  113|       |	// Look among this parent's content for x:xmpmeta. The recursion for x:xmpmeta is broader than
  114|       |	// the strictly defined choice, but gives us smaller code.
  115|  6.83k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (115:66): [True: 4.88k, False: 1.95k]
  ------------------
  116|  4.88k|		const XML_Node * childNode = xmlParent.content[childNum];
  117|  4.88k|		if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (117:8): [True: 4.49k, False: 389]
  ------------------
  118|    389|		if ( (childNode->name == "x:xmpmeta") || (childNode->name == "x:xapmeta") ) return PickBestRoot ( *childNode, 0 );
  ------------------
  |  Branch (118:8): [True: 92, False: 297]
  |  Branch (118:44): [True: 0, False: 297]
  ------------------
  119|    389|	}
  120|       |	// Look among this parent's content for a bare rdf:RDF if that is allowed.
  121|  1.95k|	if ( ! (options & kXMP_RequireXMPMeta) ) {
  ------------------
  |  Branch (121:7): [True: 1.95k, False: 0]
  ------------------
  122|  6.64k|		for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (122:67): [True: 4.74k, False: 1.90k]
  ------------------
  123|  4.74k|			const XML_Node * childNode = xmlParent.content[childNum];
  124|  4.74k|			if ( childNode->kind != kElemNode ) continue;
  ------------------
  |  Branch (124:9): [True: 4.44k, False: 297]
  ------------------
  125|    297|			if ( childNode->name == "rdf:RDF" ) return childNode;
  ------------------
  |  Branch (125:9): [True: 49, False: 248]
  ------------------
  126|    297|		}
  127|  1.95k|	}
  128|       |	
  129|       |	// Recurse into the content.
  130|  3.79k|	for ( size_t childNum = 0, childLim = xmlParent.content.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (130:66): [True: 1.89k, False: 1.90k]
  ------------------
  131|  1.89k|		const XML_Node * foundRoot = PickBestRoot ( *xmlParent.content[childNum], options );
  132|  1.89k|		if ( foundRoot != 0 ) return foundRoot;
  ------------------
  |  Branch (132:8): [True: 0, False: 1.89k]
  ------------------
  133|  1.89k|	}
  134|       |	
  135|  1.90k|	return 0;
  136|       |
  137|  1.90k|}	// PickBestRoot
XMPMeta-Parse.cpp:_ZL17NormalizeDCArraysP8XMP_Node:
  231|  2.48k|{
  232|  2.48k|	XMP_Node * dcSchema = FindSchemaNode ( xmpTree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.48k|#define kXMP_ExistingOnly	false
  ------------------
  233|  2.48k|	if ( dcSchema == 0 ) return;
  ------------------
  |  Branch (233:7): [True: 2.33k, False: 145]
  ------------------
  234|       |	
  235|    416|	for ( size_t propNum = 0, propLimit = dcSchema->children.size(); propNum < propLimit; ++propNum ) {
  ------------------
  |  Branch (235:67): [True: 271, False: 145]
  ------------------
  236|    271|		XMP_Node *     currProp  = dcSchema->children[propNum];
  237|    271|		XMP_OptionBits arrayForm = 0;
  238|       |		
  239|    271|		if ( ! XMP_PropIsSimple ( currProp->options ) ) continue;	// Nothing to do if not simple.
  ------------------
  |  Branch (239:8): [True: 70, False: 201]
  ------------------
  240|       |		
  241|    201|		if ( (currProp->name == "dc:creator" )     ||	// See if it is supposed to be an array.
  ------------------
  |  Branch (241:8): [True: 16, False: 185]
  ------------------
  242|    185|		     (currProp->name == "dc:date" ) ) {			// *** Think about an array of char* and a loop.
  ------------------
  |  Branch (242:8): [True: 0, False: 185]
  ------------------
  243|     16|			arrayForm = kXMP_PropArrayIsOrdered;
  244|    185|		} else if (
  245|    185|		     (currProp->name == "dc:description" ) ||
  ------------------
  |  Branch (245:8): [True: 8, False: 177]
  ------------------
  246|    177|		     (currProp->name == "dc:rights" )      ||
  ------------------
  |  Branch (246:8): [True: 0, False: 177]
  ------------------
  247|    177|		     (currProp->name == "dc:title" ) ) {
  ------------------
  |  Branch (247:8): [True: 0, False: 177]
  ------------------
  248|      8|			arrayForm = kXMP_PropArrayIsAltText;
  249|    177|		} else if (
  250|    177|		     (currProp->name == "dc:contributor" ) ||
  ------------------
  |  Branch (250:8): [True: 0, False: 177]
  ------------------
  251|    177|		     (currProp->name == "dc:language" )    ||
  ------------------
  |  Branch (251:8): [True: 7, False: 170]
  ------------------
  252|    170|		     (currProp->name == "dc:publisher" )   ||
  ------------------
  |  Branch (252:8): [True: 0, False: 170]
  ------------------
  253|    170|		     (currProp->name == "dc:relation" )    ||
  ------------------
  |  Branch (253:8): [True: 5, False: 165]
  ------------------
  254|    165|		     (currProp->name == "dc:subject" )     ||
  ------------------
  |  Branch (254:8): [True: 0, False: 165]
  ------------------
  255|    165|		     (currProp->name == "dc:type" ) ) {
  ------------------
  |  Branch (255:8): [True: 0, False: 165]
  ------------------
  256|     12|			arrayForm = kXMP_PropValueIsArray;
  257|     12|		}
  258|    201|		if ( arrayForm == 0 ) continue;	// Nothing to do if it isn't supposed to be an array.
  ------------------
  |  Branch (258:8): [True: 165, False: 36]
  ------------------
  259|       |		
  260|     36|		arrayForm = VerifySetOptions ( arrayForm, 0 );	// Set the implicit array bits.
  261|     36|		XMP_Node * newArray = new XMP_Node ( dcSchema, currProp->name.c_str(), arrayForm );
  262|     36|		dcSchema->children[propNum] = newArray;
  263|     36|		newArray->children.push_back ( currProp );
  264|     36|		currProp->parent = newArray;
  265|     36|		currProp->name = kXMP_ArrayItemName;
  ------------------
  |  |  293|     36|#define kXMP_ArrayItemName	"[]"
  ------------------
  266|       |		
  267|     36|		if ( XMP_ArrayIsAltText ( arrayForm ) && (! (currProp->options & kXMP_PropHasLang)) ) {
  ------------------
  |  Branch (267:8): [True: 8, False: 28]
  |  Branch (267:44): [True: 8, False: 0]
  ------------------
  268|      8|			XMP_Node * newLang = new XMP_Node ( currProp, "xml:lang", "x-default", kXMP_PropIsQualifier );
  269|      8|			currProp->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  270|      8|			if ( currProp->qualifiers.empty() ) {	// *** Need a util?
  ------------------
  |  Branch (270:9): [True: 8, False: 0]
  ------------------
  271|      8|				currProp->qualifiers.push_back ( newLang );
  272|      8|			} else {
  273|      0|				currProp->qualifiers.insert ( currProp->qualifiers.begin(), newLang );
  274|      0|			}
  275|      8|		}
  276|       |
  277|     36|	}
  278|       |	
  279|    145|}	// NormalizeDCArrays
XMPMeta-Parse.cpp:_ZL16TouchUpDataModelP7XMPMeta:
  665|  2.48k|{
  666|  2.48k|	XMP_Node & tree = xmp->tree;
  667|       |	
  668|       |	// Do special case touch ups for certain schema.
  669|       |
  670|  2.48k|	XMP_Node * currSchema = 0;
  671|       |
  672|  2.48k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_EXIF, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.48k|#define kXMP_ExistingOnly	false
  ------------------
  673|  2.48k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (673:7): [True: 48, False: 2.43k]
  ------------------
  674|       |
  675|       |		// Do a special case fix for exif:GPSTimeStamp.
  676|     48|		XMP_Node * gpsDateTime = FindChildNode ( currSchema, "exif:GPSTimeStamp", kXMP_ExistingOnly );
  ------------------
  |  |  296|     48|#define kXMP_ExistingOnly	false
  ------------------
  677|     48|		if ( gpsDateTime != 0 ) FixGPSTimeStamp ( currSchema, gpsDateTime );
  ------------------
  |  Branch (677:8): [True: 0, False: 48]
  ------------------
  678|       |	
  679|       |		// *** Should probably have RepairAltText change simple values to LangAlt with 'x-default' item.
  680|       |		// *** For now just do this for exif:UserComment, the one case we know about, late in cycle fix.
  681|     48|		XMP_Node * userComment = FindChildNode ( currSchema, "exif:UserComment", kXMP_ExistingOnly );
  ------------------
  |  |  296|     48|#define kXMP_ExistingOnly	false
  ------------------
  682|     48|		if ( (userComment != 0) && XMP_PropIsSimple ( userComment->options ) ) {
  ------------------
  |  Branch (682:8): [True: 0, False: 48]
  |  Branch (682:30): [True: 0, False: 0]
  ------------------
  683|      0|			XMP_Node * newChild = new XMP_Node ( userComment, kXMP_ArrayItemName,
  ------------------
  |  |  293|      0|#define kXMP_ArrayItemName	"[]"
  ------------------
  684|      0|												 userComment->value.c_str(), userComment->options );
  685|      0|			newChild->qualifiers.swap ( userComment->qualifiers );
  686|      0|			if ( ! XMP_PropHasLang ( newChild->options ) ) {
  ------------------
  |  Branch (686:9): [True: 0, False: 0]
  ------------------
  687|      0|				XMP_Node * langQual = new XMP_Node ( newChild, "xml:lang", "x-default", kXMP_PropIsQualifier );
  688|      0|				newChild->qualifiers.insert ( newChild->qualifiers.begin(), langQual );
  689|      0|				newChild->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  690|      0|			}
  691|      0|			userComment->value.erase();
  692|      0|			userComment->options = kXMP_PropArrayFormMask;	// ! Happens to have all the right bits.
  693|      0|			userComment->children.push_back ( newChild );
  694|      0|		}
  695|       |
  696|     48|	}
  697|       |
  698|  2.48k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DM, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.48k|#define kXMP_ExistingOnly	false
  ------------------
  699|  2.48k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (699:7): [True: 0, False: 2.48k]
  ------------------
  700|       |		// Do a special case migration of xmpDM:copyright to dc:rights['x-default']. Do this before
  701|       |		// the dc: touch up since it can affect the dc: schema.
  702|      0|		XMP_Node * dmCopyright = FindChildNode ( currSchema, "xmpDM:copyright", kXMP_ExistingOnly );
  ------------------
  |  |  296|      0|#define kXMP_ExistingOnly	false
  ------------------
  703|      0|		if ( dmCopyright != 0 ) MigrateAudioCopyright ( xmp, dmCopyright );
  ------------------
  |  Branch (703:8): [True: 0, False: 0]
  ------------------
  704|      0|	}
  705|       |
  706|  2.48k|	currSchema = FindSchemaNode ( &tree, kXMP_NS_DC, kXMP_ExistingOnly );
  ------------------
  |  |  296|  2.48k|#define kXMP_ExistingOnly	false
  ------------------
  707|  2.48k|	if ( currSchema != 0 ) {
  ------------------
  |  Branch (707:7): [True: 145, False: 2.33k]
  ------------------
  708|       |		// Do a special case fix for dc:subject, make sure it is an unordered array.
  709|    145|		XMP_Node * dcSubject = FindChildNode ( currSchema, "dc:subject", kXMP_ExistingOnly );
  ------------------
  |  |  296|    145|#define kXMP_ExistingOnly	false
  ------------------
  710|    145|		if ( dcSubject != 0 ) {
  ------------------
  |  Branch (710:8): [True: 20, False: 125]
  ------------------
  711|     20|                        XMP_OptionBits keepMask = static_cast<XMP_OptionBits>(~(kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText));
  712|     20|			dcSubject->options &= keepMask;	// Make sure any ordered array bits are clear.
  713|     20|		}
  714|    145|	}
  715|       |	
  716|       |	// Fix any broken AltText arrays that we know about.
  717|       |	
  718|  2.48k|	RepairAltText ( tree, kXMP_NS_DC, "dc:description" );	// ! Note inclusion of prefixes for direct node lookup!
  719|  2.48k|	RepairAltText ( tree, kXMP_NS_DC, "dc:rights" );
  720|  2.48k|	RepairAltText ( tree, kXMP_NS_DC, "dc:title" );
  721|  2.48k|	RepairAltText ( tree, kXMP_NS_XMP_Rights, "xmpRights:UsageTerms" );
  722|  2.48k|	RepairAltText ( tree, kXMP_NS_EXIF, "exif:UserComment" );
  723|       |	
  724|       |	// Tweak old XMP: Move an instance ID from rdf:about to the xmpMM:InstanceID property. An old
  725|       |	// instance ID usually looks like "uuid:bac965c4-9d87-11d9-9a30-000d936b79c4", plus InDesign
  726|       |	// 3.0 wrote them like "bac965c4-9d87-11d9-9a30-000d936b79c4". If the name looks like a UUID
  727|       |	// simply move it to xmpMM:InstanceID, don't worry about any existing xmpMM:InstanceID. Both
  728|       |	// will only be present when a newer file with the xmpMM:InstanceID property is updated by an
  729|       |	// old app that uses rdf:about.
  730|       |	
  731|  2.48k|	if ( ! tree.name.empty() ) {
  ------------------
  |  Branch (731:7): [True: 167, False: 2.31k]
  ------------------
  732|       |
  733|    167|		bool nameIsUUID = false;
  734|    167|		XMP_StringPtr nameStr = tree.name.c_str();
  735|       |
  736|    167|		if ( XMP_LitNMatch ( nameStr, "uuid:", 5 ) ) {
  ------------------
  |  |   97|    167|#define XMP_LitNMatch(s,l,n)	(std::strncmp((s),(l),(n)) == 0)
  |  |  ------------------
  |  |  |  Branch (97:30): [True: 32, False: 135]
  |  |  ------------------
  ------------------
  737|       |
  738|     32|			nameIsUUID = true;
  739|       |
  740|    135|		} else if ( tree.name.size() == 36 ) {
  ------------------
  |  Branch (740:15): [True: 99, False: 36]
  ------------------
  741|       |
  742|     99|			nameIsUUID = true;	// ! Assume true, we'll set it to false below if not.
  743|  2.20k|			for ( int i = 0;  i < 36; ++i ) {
  ------------------
  |  Branch (743:22): [True: 2.17k, False: 28]
  ------------------
  744|  2.17k|				char ch = nameStr[i];
  745|  2.17k|				if ( ch == '-' ) {
  ------------------
  |  Branch (745:10): [True: 93, False: 2.08k]
  ------------------
  746|     93|					if ( (i == 8) || (i == 13) || (i == 18) || (i == 23) ) continue;
  ------------------
  |  Branch (746:11): [True: 12, False: 81]
  |  Branch (746:23): [True: 12, False: 69]
  |  Branch (746:36): [True: 21, False: 48]
  |  Branch (746:49): [True: 26, False: 22]
  ------------------
  747|     22|					nameIsUUID = false;
  748|     22|					break;
  749|  2.08k|				} else {
  750|  2.08k|					if ( (('0' <= ch) && (ch <= '9')) || (('a' <= ch) && (ch <= 'z')) ) continue;
  ------------------
  |  Branch (750:12): [True: 2.07k, False: 12]
  |  Branch (750:27): [True: 404, False: 1.66k]
  |  Branch (750:44): [True: 1.64k, False: 34]
  |  Branch (750:59): [True: 1.62k, False: 15]
  ------------------
  751|     49|					nameIsUUID = false;
  752|     49|					break;
  753|  2.08k|				}
  754|  2.17k|			}
  755|       |
  756|     99|		}
  757|       |		
  758|    167|		if ( nameIsUUID ) {
  ------------------
  |  Branch (758:8): [True: 60, False: 107]
  ------------------
  759|       |
  760|     60|			XMP_ExpandedXPath expPath;
  761|     60|			ExpandXPath ( kXMP_NS_XMP_MM, "InstanceID", &expPath );
  762|     60|			XMP_Node * idNode = FindNode ( &tree, expPath, kXMP_CreateNodes, 0 );
  ------------------
  |  |  295|     60|#define kXMP_CreateNodes	true
  ------------------
  763|     60|			if ( idNode == 0 ) XMP_Throw ( "Failure creating xmpMM:InstanceID", kXMPErr_InternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (763:9): [True: 0, False: 60]
  ------------------
  764|       |
  765|     60|			idNode->options = 0;	// Clobber any existing xmpMM:InstanceID.
  766|     60|			idNode->value = tree.name;
  767|     60|			idNode->RemoveChildren();
  768|     60|			idNode->RemoveQualifiers();
  769|       |
  770|     60|			tree.name.erase();
  771|       |
  772|     60|		}
  773|       |
  774|    167|	}
  775|       |
  776|  2.48k|}	// TouchUpDataModel
XMPMeta-Parse.cpp:_ZL13RepairAltTextR8XMP_NodePKcS2_:
  609|  12.4k|{
  610|  12.4k|	XMP_Node * schemaNode = FindSchemaNode ( &tree, schemaNS, kXMP_ExistingOnly );
  ------------------
  |  |  296|  12.4k|#define kXMP_ExistingOnly	false
  ------------------
  611|  12.4k|	if ( schemaNode == 0 ) return;
  ------------------
  |  Branch (611:7): [True: 11.9k, False: 495]
  ------------------
  612|       |	
  613|    495|	XMP_Node * arrayNode = FindChildNode ( schemaNode, arrayName, kXMP_ExistingOnly );
  ------------------
  |  |  296|    495|#define kXMP_ExistingOnly	false
  ------------------
  614|    495|	if ( (arrayNode == 0) || XMP_ArrayIsAltText ( arrayNode->options ) ) return;	// Already OK.
  ------------------
  |  Branch (614:7): [True: 436, False: 59]
  |  Branch (614:27): [True: 36, False: 23]
  ------------------
  615|       |	
  616|     23|	if ( ! XMP_PropIsArray ( arrayNode->options ) ) return;	// ! Not even an array, leave it alone.
  ------------------
  |  Branch (616:7): [True: 0, False: 23]
  ------------------
  617|       |	// *** Should probably change simple values to LangAlt with 'x-default' item.
  618|       |	
  619|     23|	arrayNode->options |= (kXMP_PropArrayIsOrdered | kXMP_PropArrayIsAlternate | kXMP_PropArrayIsAltText);
  620|       |	
  621|     45|	for ( int i = arrayNode->children.size()-1; i >= 0; --i ) {	// ! Need a signed index type.
  ------------------
  |  Branch (621:46): [True: 22, False: 23]
  ------------------
  622|       |
  623|     22|		XMP_Node * currChild = arrayNode->children[i];
  624|       |
  625|     22|		if ( ! XMP_PropIsSimple ( currChild->options ) ) {
  ------------------
  |  Branch (625:8): [True: 3, False: 19]
  ------------------
  626|       |
  627|       |			// Delete non-simple children.
  628|      3|			delete ( currChild );
  629|      3|			arrayNode->children.erase ( arrayNode->children.begin() + i );
  630|       |
  631|     19|		} else if ( ! XMP_PropHasLang ( currChild->options ) ) {
  ------------------
  |  Branch (631:15): [True: 19, False: 0]
  ------------------
  632|       |		
  633|     19|			if ( currChild->value.empty() ) {
  ------------------
  |  Branch (633:9): [True: 0, False: 19]
  ------------------
  634|       |
  635|       |				// Delete empty valued children that have no xml:lang.
  636|      0|				delete ( currChild );
  637|      0|				arrayNode->children.erase ( arrayNode->children.begin() + i );
  638|       |
  639|     19|			} else {
  640|       |
  641|       |				// Add an xml:lang qualifier with the value "x-repair".
  642|     19|				XMP_Node * repairLang = new XMP_Node ( currChild, "xml:lang", "x-repair", kXMP_PropIsQualifier );
  643|     19|				if ( currChild->qualifiers.empty() ) {
  ------------------
  |  Branch (643:10): [True: 19, False: 0]
  ------------------
  644|     19|					currChild->qualifiers.push_back ( repairLang );
  645|     19|				} else {
  646|      0|					currChild->qualifiers.insert ( currChild->qualifiers.begin(), repairLang );
  647|      0|				}
  648|     19|				currChild->options |= (kXMP_PropHasQualifiers | kXMP_PropHasLang);
  649|       |
  650|     19|			}
  651|       |
  652|     19|		}
  653|       |
  654|     22|	}
  655|       |
  656|     23|}	// RepairAltText

_ZNK7XMPMeta17SerializeToBufferEPPKcPjjjS1_S1_i:
 1165|    247|{
 1166|    247|	XMP_Assert ( (rdfString != 0) && (rdfSize != 0) && (newline != 0) && (indentStr != 0) );
  ------------------
  |  |  142|    247|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1167|       |
 1168|       |	// Fix up some default parameters.
 1169|       |	
 1170|    247|	enum { kDefaultPad = 2048 };
 1171|    247|	size_t unicodeUnitSize = 1;
 1172|    247|	XMP_OptionBits charEncoding = options & kXMP_EncodingMask;
 1173|       |
 1174|    247|	if ( charEncoding != kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1174:7): [True: 0, False: 247]
  ------------------
 1175|      0|		if ( options & _XMP_UTF16_Bit ) {
  ------------------
  |  Branch (1175:8): [True: 0, False: 0]
  ------------------
 1176|      0|			if ( options & _XMP_UTF32_Bit ) XMP_Throw ( "Can't use both _XMP_UTF16_Bit and _XMP_UTF32_Bit", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1176:9): [True: 0, False: 0]
  ------------------
 1177|      0|			unicodeUnitSize = 2;
 1178|      0|		} else if ( options & _XMP_UTF32_Bit ) {
  ------------------
  |  Branch (1178:15): [True: 0, False: 0]
  ------------------
 1179|      0|			unicodeUnitSize = 4;
 1180|      0|		} else {
 1181|      0|			XMP_Throw ( "Can't use _XMP_LittleEndian_Bit by itself", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1182|      0|		}
 1183|      0|	}
 1184|       |	
 1185|    247|	if ( options & kXMP_OmitAllFormatting ) {
  ------------------
  |  Branch (1185:7): [True: 45, False: 202]
  ------------------
 1186|     45|		newline = " ";	// ! Yes, a space for "newline". This ensures token separation.
 1187|     45|		indentStr = "";
 1188|    202|	} else {
 1189|    202|		if ( *newline == 0 ) newline = "\xA";	// Linefeed
  ------------------
  |  Branch (1189:8): [True: 202, False: 0]
  ------------------
 1190|    202|		if ( *indentStr == 0 ) {
  ------------------
  |  Branch (1190:8): [True: 202, False: 0]
  ------------------
 1191|    202|			indentStr = " ";
 1192|    202|			if ( ! (options & kXMP_UseCompactFormat) ) indentStr  = "   ";
  ------------------
  |  Branch (1192:9): [True: 0, False: 202]
  ------------------
 1193|    202|		}
 1194|    202|	}
 1195|       |	
 1196|    247|	if ( options & kXMP_ExactPacketLength ) {
  ------------------
  |  Branch (1196:7): [True: 0, False: 247]
  ------------------
 1197|      0|		if ( options & (kXMP_OmitPacketWrapper | kXMP_IncludeThumbnailPad) ) {
  ------------------
  |  Branch (1197:8): [True: 0, False: 0]
  ------------------
 1198|      0|			XMP_Throw ( "Inconsistent options for exact size serialize", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1199|      0|		}
 1200|      0|		if ( (padding & (unicodeUnitSize-1)) != 0 ) {
  ------------------
  |  Branch (1200:8): [True: 0, False: 0]
  ------------------
 1201|      0|			XMP_Throw ( "Exact size must be a multiple of the Unicode element", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1202|      0|		}
 1203|    247|	} else if ( options & kXMP_ReadOnlyPacket ) {
  ------------------
  |  Branch (1203:14): [True: 0, False: 247]
  ------------------
 1204|      0|		if ( options & (kXMP_OmitPacketWrapper | kXMP_IncludeThumbnailPad) ) {
  ------------------
  |  Branch (1204:8): [True: 0, False: 0]
  ------------------
 1205|      0|			XMP_Throw ( "Inconsistent options for read-only packet", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1206|      0|		}
 1207|      0|		padding = 0;
 1208|    247|	} else if ( options & kXMP_OmitPacketWrapper ) {
  ------------------
  |  Branch (1208:14): [True: 0, False: 247]
  ------------------
 1209|      0|		if ( options & kXMP_IncludeThumbnailPad ) {
  ------------------
  |  Branch (1209:8): [True: 0, False: 0]
  ------------------
 1210|      0|			XMP_Throw ( "Inconsistent options for non-packet serialize", kXMPErr_BadOptions );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1211|      0|		}
 1212|      0|		padding = 0;
 1213|    247|	} else {
 1214|    247|		if ( padding == 0 ) padding = kDefaultPad * unicodeUnitSize;
  ------------------
  |  Branch (1214:8): [True: 247, False: 0]
  ------------------
 1215|    247|		if ( options & kXMP_IncludeThumbnailPad ) {
  ------------------
  |  Branch (1215:8): [True: 0, False: 247]
  ------------------
 1216|      0|			if ( ! this->DoesPropertyExist ( kXMP_NS_XMP, "Thumbnails" ) ) padding += (10000 * unicodeUnitSize);	// *** Need a better estimate.
  ------------------
  |  Branch (1216:9): [True: 0, False: 0]
  ------------------
 1217|      0|		}
 1218|    247|	}
 1219|       |
 1220|       |	// Serialize as UTF-8, then convert to UTF-16 or UTF-32 if necessary, and assemble with the padding and tail.
 1221|       |	
 1222|    247|	std::string tailStr;
 1223|       |
 1224|    247|	SerializeAsRDF ( *this, *sOutputStr, tailStr, options, newline, indentStr, baseIndent );
 1225|    247|	if ( charEncoding == kXMP_EncodeUTF8 ) {
  ------------------
  |  Branch (1225:7): [True: 247, False: 0]
  ------------------
 1226|       |
 1227|    247|		if ( options & kXMP_ExactPacketLength ) {
  ------------------
  |  Branch (1227:8): [True: 0, False: 247]
  ------------------
 1228|      0|			size_t minSize = sOutputStr->size() + tailStr.size();
 1229|      0|			if ( minSize > padding ) XMP_Throw ( "Can't fit into specified packet size", kXMPErr_BadSerialize );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1229:9): [True: 0, False: 0]
  ------------------
 1230|      0|			padding -= minSize;	// Now the actual amount of padding to add.
 1231|      0|		}
 1232|       |		
 1233|    247|		size_t newlineLen = strlen ( newline );
 1234|       |	
 1235|    247|		if ( padding < newlineLen ) {
  ------------------
  |  Branch (1235:8): [True: 0, False: 247]
  ------------------
 1236|      0|			sOutputStr->append ( padding, ' ' );
 1237|    247|		} else {
 1238|    247|			padding -= newlineLen;	// Write this newline last.
 1239|  5.18k|			while ( padding >= (100 + newlineLen) ) {
  ------------------
  |  Branch (1239:12): [True: 4.94k, False: 247]
  ------------------
 1240|  4.94k|				sOutputStr->append ( 100, ' ' );
 1241|  4.94k|				*sOutputStr += newline;
 1242|  4.94k|				padding -= (100 + newlineLen);
 1243|  4.94k|			}
 1244|    247|			sOutputStr->append ( padding, ' ' );
 1245|    247|			*sOutputStr += newline;
 1246|    247|		}
 1247|       |
 1248|    247|		*sOutputStr += tailStr;
 1249|       |	
 1250|    247|	} else {
 1251|       |	
 1252|       |		// Need to convert the encoding. Swap the UTF-8 into a local string and convert back. Assemble everything.
 1253|       |		
 1254|      0|		XMP_VarString utf8Str, newlineStr;
 1255|      0|		bool bigEndian = ((charEncoding & _XMP_LittleEndian_Bit) == 0);
 1256|       |		
 1257|      0|		if ( charEncoding & _XMP_UTF16_Bit ) {
  ------------------
  |  Branch (1257:8): [True: 0, False: 0]
  ------------------
 1258|       |
 1259|      0|			std::string padStr ( "  " );  padStr[0] = 0;	// Assume big endian.
 1260|       |			
 1261|      0|			utf8Str.swap ( *sOutputStr );
 1262|      0|			ToUTF16 ( (UTF8Unit*)utf8Str.c_str(), utf8Str.size(), sOutputStr, bigEndian );
 1263|      0|			utf8Str.swap ( tailStr );
 1264|      0|			ToUTF16 ( (UTF8Unit*)utf8Str.c_str(), utf8Str.size(), &tailStr, bigEndian );
 1265|       |
 1266|      0|			if ( options & kXMP_ExactPacketLength ) {
  ------------------
  |  Branch (1266:9): [True: 0, False: 0]
  ------------------
 1267|      0|				size_t minSize = sOutputStr->size() + tailStr.size();
 1268|      0|				if ( minSize > padding ) XMP_Throw ( "Can't fit into specified packet size", kXMPErr_BadSerialize );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1268:10): [True: 0, False: 0]
  ------------------
 1269|      0|				padding -= minSize;	// Now the actual amount of padding to add (in bytes).
 1270|      0|			}
 1271|       |
 1272|      0|			utf8Str.assign ( newline );
 1273|      0|			ToUTF16 ( (UTF8Unit*)utf8Str.c_str(), utf8Str.size(), &newlineStr, bigEndian );
 1274|      0|			size_t newlineLen = newlineStr.size();
 1275|       |	
 1276|      0|			if ( padding < newlineLen ) {
  ------------------
  |  Branch (1276:9): [True: 0, False: 0]
  ------------------
 1277|      0|				for ( int i = padding/2; i > 0; --i ) *sOutputStr += padStr;
  ------------------
  |  Branch (1277:30): [True: 0, False: 0]
  ------------------
 1278|      0|			} else {
 1279|      0|				padding -= newlineLen;	// Write this newline last.
 1280|      0|				while ( padding >= (200 + newlineLen) ) {
  ------------------
  |  Branch (1280:13): [True: 0, False: 0]
  ------------------
 1281|      0|					for ( int i = 100; i > 0; --i ) *sOutputStr += padStr;
  ------------------
  |  Branch (1281:25): [True: 0, False: 0]
  ------------------
 1282|      0|					*sOutputStr += newlineStr;
 1283|      0|					padding -= (200 + newlineLen);
 1284|      0|				}
 1285|      0|				for ( int i = padding/2; i > 0; --i ) *sOutputStr += padStr;
  ------------------
  |  Branch (1285:30): [True: 0, False: 0]
  ------------------
 1286|      0|				*sOutputStr += newlineStr;
 1287|      0|			}
 1288|       |
 1289|      0|			*sOutputStr += tailStr;
 1290|       |
 1291|      0|		} else {
 1292|       |
 1293|      0|			std::string padStr ( "    " );  padStr[0] = padStr[1] = padStr[2] = 0;	// Assume big endian.
 1294|       |//			UTF8_to_UTF32_Proc Converter = UTF8_to_UTF32BE;
 1295|       |
 1296|      0|			if ( charEncoding & _XMP_LittleEndian_Bit ) {
  ------------------
  |  Branch (1296:9): [True: 0, False: 0]
  ------------------
 1297|      0|				padStr[0] = ' '; padStr[1] = padStr[2] = padStr[3] = 0;
 1298|       |//				Converter = UTF8_to_UTF32LE;
 1299|      0|			}
 1300|       |			
 1301|      0|			utf8Str.swap ( *sOutputStr );
 1302|      0|			ToUTF32 ( (UTF8Unit*)utf8Str.c_str(), utf8Str.size(), sOutputStr, bigEndian );
 1303|      0|			utf8Str.swap ( tailStr );
 1304|      0|			ToUTF32 ( (UTF8Unit*)utf8Str.c_str(), utf8Str.size(), &tailStr, bigEndian );
 1305|       |
 1306|      0|			if ( options & kXMP_ExactPacketLength ) {
  ------------------
  |  Branch (1306:9): [True: 0, False: 0]
  ------------------
 1307|      0|				size_t minSize = sOutputStr->size() + tailStr.size();
 1308|      0|				if ( minSize > padding ) XMP_Throw ( "Can't fit into specified packet size", kXMPErr_BadSerialize );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1308:10): [True: 0, False: 0]
  ------------------
 1309|      0|				padding -= minSize;	// Now the actual amount of padding to add (in bytes).
 1310|      0|			}
 1311|       |
 1312|      0|			utf8Str.assign ( newline );
 1313|      0|			ToUTF32 ( (UTF8Unit*)utf8Str.c_str(), utf8Str.size(), &newlineStr, bigEndian );
 1314|      0|			size_t newlineLen = newlineStr.size();
 1315|       |	
 1316|      0|			if ( padding < newlineLen ) {
  ------------------
  |  Branch (1316:9): [True: 0, False: 0]
  ------------------
 1317|      0|				for ( int i = padding/4; i > 0; --i ) *sOutputStr += padStr;
  ------------------
  |  Branch (1317:30): [True: 0, False: 0]
  ------------------
 1318|      0|			} else {
 1319|      0|				padding -= newlineLen;	// Write this newline last.
 1320|      0|				while ( padding >= (400 + newlineLen) ) {
  ------------------
  |  Branch (1320:13): [True: 0, False: 0]
  ------------------
 1321|      0|					for ( int i = 100; i > 0; --i ) *sOutputStr += padStr;
  ------------------
  |  Branch (1321:25): [True: 0, False: 0]
  ------------------
 1322|      0|					*sOutputStr += newlineStr;
 1323|      0|					padding -= (400 + newlineLen);
 1324|      0|				}
 1325|      0|				for ( int i = padding/4; i > 0; --i ) *sOutputStr += padStr;
  ------------------
  |  Branch (1325:30): [True: 0, False: 0]
  ------------------
 1326|      0|				*sOutputStr += newlineStr;
 1327|      0|			}
 1328|       |
 1329|      0|			*sOutputStr += tailStr;
 1330|       |
 1331|      0|		}
 1332|       |	
 1333|      0|	}
 1334|       |
 1335|       |	// Return the finished string.
 1336|       |	
 1337|    247|	*rdfString = sOutputStr->c_str();
 1338|    247|	*rdfSize   = sOutputStr->size();
 1339|       |
 1340|    247|}	// SerializeToBuffer
XMPMeta-Serialize.cpp:_ZL14SerializeAsRDFRK7XMPMetaRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_jPKcSB_i:
 1058|    247|{
 1059|    247|	const size_t treeNameLen = xmpObj.tree.name.size();
 1060|    247|	const size_t indentLen   = strlen ( indentStr );
 1061|       |
 1062|       |	// First estimate the worst case space and reserve room in the output string. This optimization
 1063|       |	// avoids reallocating and copying the output as it grows. The initial count does not look at
 1064|       |	// the values of properties, so it does not account for character entities, e.g. &#xA; for newline.
 1065|       |	// Since there can be a lot of these in things like the base 64 encoding of a large thumbnail,
 1066|       |	// inflate the count by 1/4 (easy to do) to accommodate.
 1067|       |	
 1068|       |	// *** Need to include estimate for alias comments.
 1069|       |	
 1070|    247|	size_t outputLen = 2 * (strlen(kPacketHeader) + strlen(kRDF_XMPMetaStart) + strlen(kRDF_RDFStart) + 3*baseIndent*indentLen);
 1071|       |	
 1072|    935|	for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum < schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (1072:71): [True: 688, False: 247]
  ------------------
 1073|    688|		const XMP_Node * currSchema = xmpObj.tree.children[schemaNum];
 1074|    688|		outputLen += 2*(baseIndent+2)*indentLen + strlen(kRDF_SchemaStart) + treeNameLen + strlen(kRDF_SchemaEnd) + 2;
 1075|    688|		outputLen += EstimateRDFSize ( currSchema, baseIndent+2, indentLen );
 1076|    688|	}
 1077|       |	
 1078|    247|	outputLen += (outputLen >> 2);	// Inflate by 1/4, an empirical fudge factor.
 1079|       |	
 1080|       |	// Now generate the RDF into the head string as UTF-8.
 1081|       |	
 1082|    247|	XMP_Index level;
 1083|       |	
 1084|    247|	headStr.erase();
 1085|    247|	headStr.reserve ( outputLen );
 1086|       |	
 1087|       |	// Write the packet header PI.
 1088|    247|	if ( ! (options & kXMP_OmitPacketWrapper) ) {
  ------------------
  |  Branch (1088:7): [True: 247, False: 0]
  ------------------
 1089|    247|		for ( level = baseIndent; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1089:29): [True: 0, False: 247]
  ------------------
 1090|    247|		headStr += kPacketHeader;
 1091|    247|		headStr += newline;
 1092|    247|	}
 1093|       |
 1094|       |	// Write the xmpmeta element's start tag.
 1095|    247|	if ( ! (options & kXMP_OmitXMPMetaElement) ) {
  ------------------
  |  Branch (1095:7): [True: 247, False: 0]
  ------------------
 1096|    247|		for ( level = baseIndent; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1096:29): [True: 0, False: 247]
  ------------------
 1097|    247|		headStr += kRDF_XMPMetaStart;
 1098|    247|		headStr += kXMPCore_VersionMessage "\">";
  ------------------
  |  |  134|    247|	#define kXMPCore_VersionMessage	kXMPCoreName " " XMP_API_VERSION_STRING
  |  |  ------------------
  |  |  |  |  133|    247|	#define kXMPCoreName "XMP Core"
  |  |  ------------------
  ------------------
 1099|    247|		headStr += newline;
 1100|    247|	}
 1101|       |
 1102|       |	// Write the rdf:RDF start tag.
 1103|    494|	for ( level = baseIndent+1; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1103:30): [True: 247, False: 247]
  ------------------
 1104|    247|	headStr += kRDF_RDFStart;
 1105|    247|	headStr += newline;
 1106|       |	
 1107|       |	// Write all of the properties.
 1108|    247|	if ( options & kXMP_UseCompactFormat ) {
  ------------------
  |  Branch (1108:7): [True: 247, False: 0]
  ------------------
 1109|    247|		SerializeCompactRDFSchemas ( xmpObj.tree, headStr, newline, indentStr, baseIndent );
 1110|    247|	} else {
 1111|      0|		if ( xmpObj.tree.children.size() > 0 ) {
  ------------------
  |  Branch (1111:8): [True: 0, False: 0]
  ------------------
 1112|      0|			for ( size_t schemaNum = 0, schemaLim = xmpObj.tree.children.size(); schemaNum < schemaLim; ++schemaNum ) {
  ------------------
  |  Branch (1112:73): [True: 0, False: 0]
  ------------------
 1113|      0|				const XMP_Node * currSchema = xmpObj.tree.children[schemaNum];
 1114|      0|				SerializePrettyRDFSchema ( xmpObj.tree.name, currSchema, headStr, options, newline, indentStr, baseIndent );
 1115|      0|			}
 1116|      0|		} else {
 1117|      0|			for ( XMP_Index level = baseIndent+2; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1117:42): [True: 0, False: 0]
  ------------------
 1118|      0|			headStr += kRDF_SchemaStart;	// Special case an empty XMP object.
 1119|      0|			headStr += '"';
 1120|      0|			headStr += xmpObj.tree.name;
 1121|      0|			headStr += "\"/>";
 1122|      0|			headStr += newline;
 1123|      0|		}
 1124|      0|	}
 1125|       |
 1126|       |	// Write the rdf:RDF end tag.
 1127|    494|	for ( level = baseIndent+1; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1127:30): [True: 247, False: 247]
  ------------------
 1128|    247|	headStr += kRDF_RDFEnd;
 1129|    247|	headStr += newline;
 1130|       |
 1131|       |	// Write the xmpmeta end tag.
 1132|    247|	if ( ! (options & kXMP_OmitXMPMetaElement) ) {
  ------------------
  |  Branch (1132:7): [True: 247, False: 0]
  ------------------
 1133|    247|		for ( level = baseIndent; level > 0; --level ) headStr += indentStr;
  ------------------
  |  Branch (1133:29): [True: 0, False: 247]
  ------------------
 1134|    247|		headStr += kRDF_XMPMetaEnd;
 1135|    247|		headStr += newline;
 1136|    247|	}
 1137|       |	
 1138|       |	// Write the packet trailer PI into the tail string as UTF-8.
 1139|    247|	tailStr.erase();
 1140|    247|	if ( ! (options & kXMP_OmitPacketWrapper) ) {
  ------------------
  |  Branch (1140:7): [True: 247, False: 0]
  ------------------
 1141|    247|		tailStr.reserve ( strlen(kPacketTrailer) + (strlen(indentStr) * baseIndent) );
 1142|    247|		for ( level = baseIndent; level > 0; --level ) tailStr += indentStr;
  ------------------
  |  Branch (1142:29): [True: 0, False: 247]
  ------------------
 1143|    247|		tailStr += kPacketTrailer;
 1144|    247|		if ( options & kXMP_ReadOnlyPacket ) tailStr[tailStr.size()-4] = 'r';
  ------------------
  |  Branch (1144:8): [True: 0, False: 247]
  ------------------
 1145|    247|	}
 1146|       |	
 1147|       |	// ! This assert is just a performance check, to see if the reserve was enough.
 1148|       |	// *** XMP_Assert ( headStr.size() <= outputLen );
 1149|       |	// *** Don't use an assert. Think of some way to track this without risk of aborting the client.
 1150|       |	
 1151|    247|}	// SerializeAsRDF
XMPMeta-Serialize.cpp:_ZL15EstimateRDFSizePK8XMP_Nodeim:
   83|  4.30k|{
   84|  4.30k|	size_t outputLen = 2 * (indent*indentLen + currNode->name.size() + 4);	// The property element tags.
   85|       |	
   86|  4.30k|	if ( ! currNode->qualifiers.empty() ) {
  ------------------
  |  Branch (86:7): [True: 112, False: 4.19k]
  ------------------
   87|       |		// This node has qualifiers, assume it is written using rdf:value and estimate the qualifiers.
   88|       |
   89|    112|		indent += 2;	// Everything else is indented inside the rdf:Description element.
   90|    112|		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
   91|    112|		outputLen += 2 * (indent*indentLen + strlen(kRDF_ValueStart) + 2);		// The rdf:value tags.
   92|       |
   93|    267|		for ( size_t qualNum = 0, qualLim = currNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (93:68): [True: 155, False: 112]
  ------------------
   94|    155|			const XMP_Node * currQual = currNode->qualifiers[qualNum];
   95|    155|			outputLen += EstimateRDFSize ( currQual, indent, indentLen );
   96|    155|		}
   97|       |
   98|    112|	}
   99|       |	
  100|  4.30k|	if ( currNode->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (100:7): [True: 108, False: 4.20k]
  ------------------
  101|    108|		indent += 1;
  102|    108|		outputLen += 2 * (indent*indentLen + strlen(kRDF_StructStart) + 2);	// The rdf:Description tags.
  103|  4.20k|	} else if ( currNode->options & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (103:14): [True: 361, False: 3.84k]
  ------------------
  104|    361|		indent += 2;
  105|    361|		outputLen += 2 * ((indent-1)*indentLen + strlen(kRDF_BagStart) + 2);		// The rdf:Bag/Seq/Alt tags.
  106|    361|		outputLen += 2 * currNode->children.size() * (strlen(kRDF_ItemStart) + 2);	// The rdf:li tags, indent counted in children.
  107|  3.84k|	} else if ( ! (currNode->options & kXMP_SchemaNode) ) {
  ------------------
  |  Branch (107:14): [True: 3.15k, False: 688]
  ------------------
  108|  3.15k|		outputLen += currNode->value.size();	// This is a leaf value node.
  109|  3.15k|	}
  110|       |
  111|  7.77k|	for ( size_t childNum = 0, childLim = currNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (111:67): [True: 3.46k, False: 4.30k]
  ------------------
  112|  3.46k|		const XMP_Node * currChild = currNode->children[childNum];
  113|  3.46k|		outputLen += EstimateRDFSize ( currChild, indent+1, indentLen );
  114|  3.46k|	}
  115|       |
  116|  4.30k|	return outputLen;
  117|       |	
  118|  4.30k|}	// EstimateRDFSize
XMPMeta-Serialize.cpp:_ZL26SerializeCompactRDFSchemasRK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  973|    247|{
  974|    247|	XMP_Index level;
  975|    247|	size_t schema, schemaLim;
  976|       |	
  977|       |	// Begin the rdf:Description start tag.
  978|    741|	for ( level = baseIndent+2; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (978:30): [True: 494, False: 247]
  ------------------
  979|    247|	outputStr += kRDF_SchemaStart;
  980|    247|	outputStr += '"';
  981|    247|	outputStr += xmpTree.name;
  982|    247|	outputStr += '"';
  983|       |	
  984|       |	// Write all necessary xmlns attributes.
  985|       |	
  986|    247|	size_t totalLen = 8;	// Start at 8 for "xml:rdf:".
  987|    247|	XMP_cStringMapPos currPos = sNamespacePrefixToURIMap->begin();
  988|    247|	XMP_cStringMapPos endPos  = sNamespacePrefixToURIMap->end();
  989|  37.2k|	for ( ; currPos != endPos; ++currPos ) totalLen += currPos->first.size();
  ------------------
  |  Branch (989:10): [True: 36.9k, False: 247]
  ------------------
  990|       |
  991|    247|	XMP_VarString usedNS;
  992|    247|	usedNS.reserve ( totalLen );
  993|    247|	usedNS = "xml:rdf:";
  994|       |
  995|    935|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (995:57): [True: 688, False: 247]
  ------------------
  996|    688|		const XMP_Node * currSchema = xmpTree.children[schema];
  997|    688|		DeclareUsedNamespaces ( currSchema, usedNS, outputStr, newline, indentStr, baseIndent+4 );
  998|    688|	}
  999|       |	
 1000|       |	// Write the top level "attrProps" and close the rdf:Description start tag.
 1001|    247|	bool allAreAttrs = true;
 1002|    935|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (1002:57): [True: 688, False: 247]
  ------------------
 1003|    688|		const XMP_Node * currSchema = xmpTree.children[schema];
 1004|    688|		allAreAttrs &= SerializeCompactRDFAttrProps ( currSchema, outputStr, newline, indentStr, baseIndent+3 );
 1005|    688|	}
 1006|    247|	if ( ! allAreAttrs ) {
  ------------------
  |  Branch (1006:7): [True: 92, False: 155]
  ------------------
 1007|     92|		outputStr += ">";
 1008|     92|		outputStr += newline;
 1009|    155|	} else {
 1010|    155|		outputStr += "/>";
 1011|    155|		outputStr += newline;
 1012|    155|		return;	// ! Done if all properties in all schema are written as attributes.
 1013|    155|	}
 1014|       |
 1015|       |	// Write the remaining properties for each schema.
 1016|    478|	for ( schema = 0, schemaLim = xmpTree.children.size(); schema != schemaLim; ++schema ) {
  ------------------
  |  Branch (1016:57): [True: 386, False: 92]
  ------------------
 1017|    386|		const XMP_Node * currSchema = xmpTree.children[schema];
 1018|    386|		SerializeCompactRDFElemProps ( currSchema, outputStr, newline, indentStr, baseIndent+3 );
 1019|    386|	}
 1020|       |	
 1021|       |	// Write the rdf:Description end tag.
 1022|       |	// *** Elide the end tag if everything (all props in all schema) is an attr.
 1023|    276|	for ( level = baseIndent+2; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (1023:30): [True: 184, False: 92]
  ------------------
 1024|     92|	outputStr += kRDF_SchemaEnd;
 1025|     92|	outputStr += newline;
 1026|       |
 1027|     92|}	// SerializeCompactRDFSchemas
XMPMeta-Serialize.cpp:_ZL21DeclareUsedNamespacesPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEES9_PKcSB_i:
  191|  4.30k|{
  192|       |
  193|  4.30k|	if ( currNode->options & kXMP_SchemaNode ) {
  ------------------
  |  Branch (193:7): [True: 688, False: 3.62k]
  ------------------
  194|       |		// The schema node name is the URI, the value is the prefix.
  195|    688|		DeclareOneNamespace ( currNode->value, currNode->name, usedNS, outputStr, newline, indentStr, indent );
  196|  3.62k|	} else if ( currNode->options & kXMP_PropValueIsStruct ) {
  ------------------
  |  Branch (196:14): [True: 108, False: 3.51k]
  ------------------
  197|    410|		for ( size_t fieldNum = 0, fieldLim = currNode->children.size(); fieldNum < fieldLim; ++fieldNum ) {
  ------------------
  |  Branch (197:68): [True: 302, False: 108]
  ------------------
  198|    302|			const XMP_Node * currField = currNode->children[fieldNum];
  199|    302|			DeclareElemNamespace ( currField->name, usedNS, outputStr, newline, indentStr, indent );
  200|    302|		}
  201|    108|	}
  202|       |
  203|  7.77k|	for ( size_t childNum = 0, childLim = currNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (203:67): [True: 3.46k, False: 4.30k]
  ------------------
  204|  3.46k|		const XMP_Node * currChild = currNode->children[childNum];
  205|  3.46k|		DeclareUsedNamespaces ( currChild, usedNS, outputStr, newline, indentStr, indent );
  206|  3.46k|	}
  207|       |
  208|  4.46k|	for ( size_t qualNum = 0, qualLim = currNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (208:67): [True: 155, False: 4.30k]
  ------------------
  209|    155|		const XMP_Node * currQual = currNode->qualifiers[qualNum];
  210|    155|		DeclareElemNamespace ( currQual->name, usedNS, outputStr, newline, indentStr, indent );
  211|    155|		DeclareUsedNamespaces ( currQual, usedNS, outputStr, newline, indentStr, indent );
  212|    155|	}
  213|       |	
  214|  4.30k|}	// DeclareUsedNamespaces
XMPMeta-Serialize.cpp:_ZL19DeclareOneNamespaceRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEES7_RS5_S8_PKcSA_i:
  133|  1.14k|{
  134|  1.14k|	size_t nsPos = usedNS.find ( nsPrefix );
  135|       |
  136|  1.14k|	if ( nsPos == XMP_VarString::npos ) {
  ------------------
  |  Branch (136:7): [True: 565, False: 580]
  ------------------
  137|       |		
  138|    565|		outputStr += newline;
  139|  2.82k|		for ( ; indent > 0; --indent ) outputStr += indentStr;
  ------------------
  |  Branch (139:11): [True: 2.26k, False: 565]
  ------------------
  140|    565|		outputStr += "xmlns:";
  141|    565|		outputStr += nsPrefix;
  142|    565|		outputStr[outputStr.size()-1] = '=';	// Change the colon to =.
  143|    565|		outputStr += '"';
  144|    565|		outputStr += nsURI;
  145|    565|		outputStr += '"';
  146|       |
  147|    565|		usedNS += nsPrefix;
  148|       |
  149|    565|	}
  150|       |
  151|  1.14k|}	// DeclareOneNamespace
XMPMeta-Serialize.cpp:_ZL20DeclareElemNamespaceRKNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERS5_S8_PKcSA_i:
  165|    457|{
  166|    457|	size_t colonPos = elemName.find ( ':' );
  167|       |
  168|    457|	if ( colonPos != XMP_VarString::npos ) {
  ------------------
  |  Branch (168:7): [True: 457, False: 0]
  ------------------
  169|    457|		XMP_VarString nsPrefix ( elemName.substr ( 0, colonPos+1 ) );
  170|    457|		XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( nsPrefix );
  171|    457|		XMP_Enforce ( prefixPos != sNamespacePrefixToURIMap->end() );
  ------------------
  |  |  148|    457|		if ( ! (c) ) {																				\
  |  |  ------------------
  |  |  |  Branch (148:8): [True: 0, False: 457]
  |  |  ------------------
  |  |  149|      0|			const char * assert_msg = _NotifyMsg ( XMP_Enforce, (c), __FILE__, __LINE__ );			\
  |  |  ------------------
  |  |  |  |  139|      0|#define _NotifyMsg(n,c,f,l)	#n " failed: " #c " in " f " at line " _MakeStr(l)
  |  |  |  |  ------------------
  |  |  |  |  |  |  138|      0|#define _MakeStr(p)			#p
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  150|      0|			XMP_Throw ( assert_msg , kXMPErr_EnforceFailure );										\
  |  |  ------------------
  |  |  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  |  |  ------------------
  |  |  151|      0|		}
  ------------------
  172|    457|		DeclareOneNamespace ( nsPrefix, prefixPos->second, usedNS, outputStr, newline, indentStr, indent );
  173|    457|	}
  174|       |
  175|    457|}	// DeclareElemNamespace
XMPMeta-Serialize.cpp:_ZL28SerializeCompactRDFAttrPropsPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  682|    796|{
  683|    796|	size_t prop, propLim;
  684|    796|	bool allAreAttrs = true;
  685|       |
  686|  3.53k|	for ( prop = 0, propLim = parentNode->children.size(); prop != propLim; ++prop ) {
  ------------------
  |  Branch (686:57): [True: 2.74k, False: 796]
  ------------------
  687|       |
  688|  2.74k|		const XMP_Node * currProp = parentNode->children[prop];
  689|  2.74k|		if ( ! CanBeRDFAttrProp ( currProp ) ) {
  ------------------
  |  Branch (689:8): [True: 425, False: 2.31k]
  ------------------
  690|    425|			allAreAttrs = false;
  691|    425|			continue;
  692|    425|		}
  693|       |		
  694|  2.31k|		outputStr += newline;
  695|  10.0k|		for ( XMP_Index level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (695:35): [True: 7.72k, False: 2.31k]
  ------------------
  696|  2.31k|		outputStr += currProp->name;
  697|  2.31k|		outputStr += "=\"";
  698|  2.31k|		AppendNodeValue ( outputStr, currProp->value, kForAttribute );
  699|  2.31k|		outputStr += '"';
  700|       |
  701|  2.31k|	}
  702|       |	
  703|    796|	return allAreAttrs;
  704|       |
  705|    796|}	// SerializeCompactRDFAttrProps
XMPMeta-Serialize.cpp:_ZL16CanBeRDFAttrPropPK8XMP_Node:
  341|  5.85k|{
  342|       |	
  343|  5.85k|	if ( propNode->name[0] == '[' ) return false;
  ------------------
  |  Branch (343:7): [True: 723, False: 5.13k]
  ------------------
  344|  5.13k|	if ( ! propNode->qualifiers.empty() ) return false;
  ------------------
  |  Branch (344:7): [True: 60, False: 5.07k]
  ------------------
  345|  5.07k|	if ( propNode->options & kXMP_PropValueIsURI ) return false;
  ------------------
  |  Branch (345:7): [True: 0, False: 5.07k]
  ------------------
  346|  5.07k|	if ( propNode->options & kXMP_PropCompositeMask ) return false;
  ------------------
  |  Branch (346:7): [True: 790, False: 4.28k]
  ------------------
  347|       |	
  348|  4.28k|	return true;
  349|       |	
  350|  5.07k|}	// CanBeRDFAttrProp
XMPMeta-Serialize.cpp:_ZL15AppendNodeValueRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEERKS5_b:
  281|  3.14k|{
  282|       |
  283|  3.14k|	unsigned char * runStart = (unsigned char *) value.c_str();
  284|  3.14k|	unsigned char * runLimit  = runStart + value.size();
  285|  3.14k|	unsigned char * runEnd;
  286|  3.14k|	unsigned char   ch=0;
  287|       |	
  288|  8.83k|	while ( runStart < runLimit ) {
  ------------------
  |  Branch (288:10): [True: 5.68k, False: 3.14k]
  ------------------
  289|       |	
  290|   127k|		for ( runEnd = runStart; runEnd < runLimit; ++runEnd ) {
  ------------------
  |  Branch (290:28): [True: 124k, False: 2.96k]
  ------------------
  291|   124k|			ch = *runEnd;
  292|   124k|			if ( forAttribute && (ch == '"') ) break;
  ------------------
  |  Branch (292:9): [True: 49.5k, False: 74.9k]
  |  Branch (292:25): [True: 104, False: 49.4k]
  ------------------
  293|   124k|			if ( (ch < 0x20) || (ch == '&') || (ch == '<') || (ch == '>') ) break;
  ------------------
  |  Branch (293:9): [True: 1.15k, False: 123k]
  |  Branch (293:24): [True: 0, False: 123k]
  |  Branch (293:39): [True: 0, False: 123k]
  |  Branch (293:54): [True: 1.46k, False: 121k]
  ------------------
  294|   124k|		}
  295|       |		
  296|  5.68k|		outputStr.append ( (char *) runStart, (runEnd - runStart) );
  297|       |		
  298|  5.68k|		if ( runEnd < runLimit ) {
  ------------------
  |  Branch (298:8): [True: 2.72k, False: 2.96k]
  ------------------
  299|       |
  300|  2.72k|			if ( ch < 0x20 ) {
  ------------------
  |  Branch (300:9): [True: 1.15k, False: 1.56k]
  ------------------
  301|       |			
  302|  1.15k|				XMP_Assert ( (ch == kTab) || (ch == kLF) || (ch == kCR) );
  ------------------
  |  |  142|  1.15k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  303|       |
  304|  1.15k|				char hexBuf[16];
  305|  1.15k|				memcpy ( hexBuf, "&#xn;", 5 );
  306|  1.15k|				hexBuf[3] = kHexDigits[ch&0xF];
  ------------------
  |  |   94|  1.15k|#define kHexDigits "0123456789ABCDEF"
  ------------------
  307|  1.15k|				outputStr.append ( hexBuf, 5 );
  308|       |
  309|  1.56k|			} else {
  310|       |
  311|  1.56k|				if ( ch == '"' ) {
  ------------------
  |  Branch (311:10): [True: 104, False: 1.46k]
  ------------------
  312|    104|					outputStr += "&quot;";
  313|  1.46k|				} else if ( ch == '<' ) {
  ------------------
  |  Branch (313:17): [True: 0, False: 1.46k]
  ------------------
  314|      0|					outputStr += "&lt;";
  315|  1.46k|				} else if ( ch == '>' ) {
  ------------------
  |  Branch (315:17): [True: 1.46k, False: 0]
  ------------------
  316|  1.46k|					outputStr += "&gt;";
  317|  1.46k|				} else {
  318|      0|					XMP_Assert ( ch == '&' );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
  319|      0|					outputStr += "&amp;";
  320|      0|				}
  321|       |
  322|  1.56k|			}
  323|       |
  324|  2.72k|			++runEnd;
  325|       |
  326|  2.72k|		}
  327|       |		
  328|  5.68k|		runStart = runEnd;
  329|       |	
  330|  5.68k|	}
  331|       |
  332|  3.14k|}	// AppendNodeValue
XMPMeta-Serialize.cpp:_ZL28SerializeCompactRDFElemPropsPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_i:
  753|    747|{
  754|    747|	XMP_Index level;
  755|       |
  756|  3.55k|	for ( size_t prop = 0, propLim = parentNode->children.size(); prop != propLim; ++prop ) {
  ------------------
  |  Branch (756:64): [True: 2.81k, False: 747]
  ------------------
  757|       |
  758|  2.81k|		const XMP_Node * propNode = parentNode->children[prop];
  759|  2.81k|		if ( CanBeRDFAttrProp ( propNode ) ) continue;
  ------------------
  |  Branch (759:8): [True: 1.66k, False: 1.14k]
  ------------------
  760|       |
  761|  1.14k|		bool emitEndTag = true;
  762|  1.14k|		bool indentEndTag = true;
  763|       |
  764|  1.14k|		XMP_OptionBits propForm = propNode->options & kXMP_PropCompositeMask;
  765|       |
  766|       |		// -----------------------------------------------------------------------------------
  767|       |		// Determine the XML element name, write the name part of the start tag. Look over the
  768|       |		// qualifiers to decide on "normal" versus "rdf:value" form. Emit the attribute
  769|       |		// qualifiers at the same time.
  770|       |		
  771|  1.14k|		XMP_StringPtr elemName = propNode->name.c_str();
  772|  1.14k|		if ( *elemName == '[' ) elemName = "rdf:li";
  ------------------
  |  Branch (772:8): [True: 723, False: 425]
  ------------------
  773|       |
  774|  6.03k|		for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (774:25): [True: 4.89k, False: 1.14k]
  ------------------
  775|  1.14k|		outputStr += '<';
  776|  1.14k|		outputStr += elemName;
  777|       |
  778|  1.14k|		#define isCompact	false
  779|  1.14k|		bool hasGeneralQualifiers = isCompact;	// Might also become true later.
  ------------------
  |  |  778|  1.14k|		#define isCompact	false
  ------------------
  780|  1.14k|		bool hasRDFResourceQual   = false;
  781|       |
  782|  1.30k|		for ( size_t qualNum = 0, qualLim = propNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (782:68): [True: 155, False: 1.14k]
  ------------------
  783|    155|			const XMP_Node * currQual = propNode->qualifiers[qualNum];
  784|    155|			if ( ! IsRDFAttrQualifier ( currQual->name ) ) {
  ------------------
  |  Branch (784:9): [True: 60, False: 95]
  ------------------
  785|     60|				hasGeneralQualifiers = true;
  786|     95|			} else {
  787|     95|				if ( currQual->name == "rdf:resource" ) hasRDFResourceQual = true;
  ------------------
  |  Branch (787:10): [True: 0, False: 95]
  ------------------
  788|     95|				outputStr += ' ';
  789|     95|				outputStr += currQual->name;
  790|     95|				outputStr += "=\"";
  791|     95|				AppendNodeValue ( outputStr, currQual->value, kForAttribute );
  792|     95|				outputStr += '"';
  793|     95|			}
  794|    155|		}
  795|       |		
  796|       |		// --------------------------------------------------------
  797|       |		// Process the property according to the standard patterns.
  798|       |	
  799|  1.14k|		if ( hasGeneralQualifiers ) {
  ------------------
  |  Branch (799:8): [True: 17, False: 1.13k]
  ------------------
  800|       |		
  801|       |			// -------------------------------------------------------------------------------------
  802|       |			// The node has general qualifiers, ones that can't be attributes on a property element.
  803|       |			// Emit using the qualified property pseudo-struct form. The value is output by a call
  804|       |			// to SerializePrettyRDFProperty with emitAsRDFValue set.
  805|       |			
  806|       |			// *** We're losing compactness in the calls to SerializePrettyRDFProperty.
  807|       |			// *** Should refactor to have SerializeCompactRDFProperty that does one node.
  808|       |
  809|     17|			outputStr += " rdf:parseType=\"Resource\">";
  810|     17|			outputStr += newline;
  811|       |
  812|     17|			SerializePrettyRDFProperty ( propNode, outputStr, newline, indentStr, indent+1, true );
  813|       |		
  814|     17|			size_t qualNum = 0;
  815|     17|			size_t qualLim = propNode->qualifiers.size();
  816|     17|			if ( propNode->options & kXMP_PropHasLang ) ++qualNum;
  ------------------
  |  Branch (816:9): [True: 0, False: 17]
  ------------------
  817|       |			
  818|     77|			for ( ; qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (818:12): [True: 60, False: 17]
  ------------------
  819|     60|				const XMP_Node * currQual = propNode->qualifiers[qualNum];
  820|     60|				SerializePrettyRDFProperty ( currQual, outputStr, newline, indentStr, indent+1 );
  821|     60|			}
  822|       |			
  823|  1.13k|		} else {
  824|       |
  825|       |			// --------------------------------------------------------------------
  826|       |			// This node has only attribute qualifiers. Emit as a property element.
  827|       |			
  828|  1.13k|			if ( propForm == 0 ) {
  ------------------
  |  Branch (828:9): [True: 662, False: 469]
  ------------------
  829|       |			
  830|       |				// --------------------------
  831|       |				// This is a simple property.
  832|       |				
  833|    662|				if ( propNode->options & kXMP_PropValueIsURI ) {
  ------------------
  |  Branch (833:10): [True: 0, False: 662]
  ------------------
  834|      0|					outputStr += " rdf:resource=\"";
  835|      0|					AppendNodeValue ( outputStr, propNode->value, kForAttribute );
  836|      0|					outputStr += "\"/>";
  837|      0|					outputStr += newline;
  838|      0|					emitEndTag = false;
  839|    662|				} else if ( propNode->value.empty() ) {
  ------------------
  |  Branch (839:17): [True: 1, False: 661]
  ------------------
  840|      1|					outputStr += "/>";
  841|      1|					outputStr += newline;
  842|      1|					emitEndTag = false;
  843|    661|				} else {
  844|    661|					outputStr += '>';
  845|    661|					AppendNodeValue ( outputStr, propNode->value, kForElement );
  846|    661|					indentEndTag = false;
  847|    661|				}
  848|       |				
  849|    662|			} else if ( propForm & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (849:16): [True: 361, False: 108]
  ------------------
  850|       |
  851|       |				// -----------------
  852|       |				// This is an array.
  853|       |				
  854|    361|				outputStr += '>';
  855|    361|				outputStr += newline;
  856|    361|				EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsStartTag );
  857|       |			
  858|    361|				if ( XMP_ArrayIsAltText(propNode->options) ) NormalizeLangArray ( (XMP_Node*)propNode );
  ------------------
  |  Branch (858:10): [True: 0, False: 361]
  ------------------
  859|    361|				SerializeCompactRDFElemProps ( propNode, outputStr, newline, indentStr, indent+2 );
  860|       |
  861|    361|				EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsEndTag );
  862|       |
  863|    361|			} else {
  864|       |
  865|       |				// ----------------------
  866|       |				// This must be a struct.
  867|       |				
  868|    108|				XMP_Assert ( propForm & kXMP_PropValueIsStruct );
  ------------------
  |  |  142|    108|	#define XMP_Assert(c)	((void) 0)
  ------------------
  869|       |
  870|    108|				bool hasAttrFields = false;
  871|    108|				bool hasElemFields = false;
  872|       |			
  873|    108|				size_t field, fieldLim;
  874|    410|				for ( field = 0, fieldLim = propNode->children.size(); field != fieldLim; ++field ) {
  ------------------
  |  Branch (874:60): [True: 302, False: 108]
  ------------------
  875|    302|					XMP_Node * currField = propNode->children[field];
  876|    302|					if ( CanBeRDFAttrProp ( currField ) ) {
  ------------------
  |  Branch (876:11): [True: 302, False: 0]
  ------------------
  877|    302|						hasAttrFields = true;
  878|    302|						if ( hasElemFields ) break;	// No sense looking further.
  ------------------
  |  Branch (878:12): [True: 0, False: 302]
  ------------------
  879|    302|					} else {
  880|      0|						hasElemFields = true;
  881|      0|						if ( hasAttrFields ) break;	// No sense looking further.
  ------------------
  |  Branch (881:12): [True: 0, False: 0]
  ------------------
  882|      0|					}
  883|    302|				}
  884|       |				
  885|    108|				if ( hasRDFResourceQual && hasElemFields ) {
  ------------------
  |  Branch (885:10): [True: 0, False: 108]
  |  Branch (885:32): [True: 0, False: 0]
  ------------------
  886|      0|					XMP_Throw ( "Can't mix rdf:resource qualifier and element fields", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  887|      0|				}
  888|       |				
  889|    108|				if ( propNode->children.size() == 0 ) {
  ------------------
  |  Branch (889:10): [True: 0, False: 108]
  ------------------
  890|       |				
  891|       |					// Catch an empty struct as a special case. The case below would emit an empty
  892|       |					// XML element, which gets reparsed as a simple property with an empty value.
  893|      0|					outputStr += " rdf:parseType=\"Resource\"/>";
  894|      0|					outputStr += newline;
  895|      0|					emitEndTag = false;
  896|       |				
  897|    108|				} else if ( ! hasElemFields ) {
  ------------------
  |  Branch (897:17): [True: 108, False: 0]
  ------------------
  898|       |
  899|       |					// All fields can be attributes, use the emptyPropertyElt form.
  900|    108|					SerializeCompactRDFAttrProps ( propNode, outputStr, newline, indentStr, indent+1 );
  901|    108|					outputStr += "/>";
  902|    108|					outputStr += newline;
  903|    108|					emitEndTag = false;
  904|       |
  905|    108|				} else if ( ! hasAttrFields ) {
  ------------------
  |  Branch (905:17): [True: 0, False: 0]
  ------------------
  906|       |				
  907|       |					// All fields must be elements, use the parseTypeResourcePropertyElt form.
  908|      0|					outputStr += " rdf:parseType=\"Resource\">";
  909|      0|					outputStr += newline;
  910|      0|					SerializeCompactRDFElemProps ( propNode, outputStr, newline, indentStr, indent+1 );
  911|       |				
  912|      0|				} else {
  913|       |				
  914|       |					// Have a mix of attributes and elements, use an inner rdf:Description.
  915|      0|					outputStr += '>';
  916|      0|					outputStr += newline;
  917|      0|					for ( level = indent+1; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (917:30): [True: 0, False: 0]
  ------------------
  918|      0|					outputStr += "<rdf:Description";
  919|      0|					SerializeCompactRDFAttrProps ( propNode, outputStr, newline, indentStr, indent+2 );
  920|      0|					outputStr += ">";
  921|      0|					outputStr += newline;
  922|      0|					SerializeCompactRDFElemProps ( propNode, outputStr, newline, indentStr, indent+1 );
  923|      0|					for ( level = indent+1; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (923:30): [True: 0, False: 0]
  ------------------
  924|      0|					outputStr += kRDF_StructEnd;
  925|      0|					outputStr += newline;
  926|       |
  927|      0|				}
  928|       |
  929|    108|			}
  930|       |
  931|  1.13k|		}
  932|       |		
  933|       |		// ----------------------------------
  934|       |		// Emit the property element end tag.
  935|       |		
  936|  1.14k|		if ( emitEndTag ) {
  ------------------
  |  Branch (936:8): [True: 1.03k, False: 109]
  ------------------
  937|  1.54k|			if ( indentEndTag ) for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (937:9): [True: 378, False: 661]
  |  Branch (937:46): [True: 1.16k, False: 378]
  ------------------
  938|  1.03k|			outputStr += "</";
  939|  1.03k|			outputStr += elemName;
  940|  1.03k|			outputStr += '>';
  941|  1.03k|			outputStr += newline;
  942|  1.03k|		}
  943|       |
  944|  1.14k|	}
  945|       |	
  946|    747|}	// SerializeCompactRDFElemProps
XMPMeta-Serialize.cpp:_ZL18IsRDFAttrQualifierNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEE:
  361|    215|{
  362|       |
  363|    815|	for ( size_t i = 0; *sAttrQualifiers[i] != 0; ++i ) {
  ------------------
  |  Branch (363:22): [True: 695, False: 120]
  ------------------
  364|    695|		if ( qualName == sAttrQualifiers[i] ) return true;
  ------------------
  |  Branch (364:8): [True: 95, False: 600]
  ------------------
  365|    695|	}
  366|       |
  367|    120|	return false;
  368|       |	
  369|    215|}	// IsRDFAttrQualifier
XMPMeta-Serialize.cpp:_ZL26SerializePrettyRDFPropertyPK8XMP_NodeRNSt3__112basic_stringIcNS2_11char_traitsIcEENS2_9allocatorIcEEEEPKcSB_ib:
  410|     77|{
  411|     77|	XMP_Index level;
  412|     77|	bool emitEndTag   = true;
  413|     77|	bool indentEndTag = true;
  414|       |
  415|     77|	XMP_OptionBits propForm = propNode->options & kXMP_PropCompositeMask;
  416|       |
  417|       |	// ------------------------------------------------------------------------------------------
  418|       |	// Determine the XML element name. Open the start tag with the name and attribute qualifiers.
  419|       |	
  420|     77|	XMP_StringPtr elemName = propNode->name.c_str();
  421|     77|	if ( emitAsRDFValue ) {
  ------------------
  |  Branch (421:7): [True: 17, False: 60]
  ------------------
  422|     17|		elemName= "rdf:value";
  423|     60|	} else if ( *elemName == '[' ) {
  ------------------
  |  Branch (423:14): [True: 0, False: 60]
  ------------------
  424|      0|		elemName = "rdf:li";
  425|      0|	}
  426|       |
  427|    539|	for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (427:24): [True: 462, False: 77]
  ------------------
  428|     77|	outputStr += '<';
  429|     77|	outputStr += elemName;
  430|       |	
  431|     77|	#define isCompact	false
  432|     77|	bool hasGeneralQualifiers = isCompact;	// Might also become true later.
  ------------------
  |  |  431|     77|	#define isCompact	false
  ------------------
  433|     77|	bool hasRDFResourceQual   = false;
  434|       |	
  435|    137|	for ( size_t qualNum = 0, qualLim = propNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (435:67): [True: 60, False: 77]
  ------------------
  436|     60|		const XMP_Node * currQual = propNode->qualifiers[qualNum];
  437|     60|		if ( ! IsRDFAttrQualifier ( currQual->name ) ) {
  ------------------
  |  Branch (437:8): [True: 60, False: 0]
  ------------------
  438|     60|			hasGeneralQualifiers = true;
  439|     60|		} else {
  440|      0|			if ( currQual->name == "rdf:resource" ) hasRDFResourceQual = true;
  ------------------
  |  Branch (440:9): [True: 0, False: 0]
  ------------------
  441|      0|			if ( ! emitAsRDFValue ) {
  ------------------
  |  Branch (441:9): [True: 0, False: 0]
  ------------------
  442|      0|				outputStr += ' ';
  443|      0|				outputStr += currQual->name;
  444|      0|				outputStr += "=\"";
  445|      0|				AppendNodeValue ( outputStr, currQual->value, kForAttribute );
  446|      0|				outputStr += '"';
  447|      0|			}
  448|      0|		}
  449|     60|	}
  450|       |	
  451|       |	// --------------------------------------------------------
  452|       |	// Process the property according to the standard patterns.
  453|       |	
  454|     77|	if ( hasGeneralQualifiers && (! emitAsRDFValue) ) {
  ------------------
  |  Branch (454:7): [True: 17, False: 60]
  |  Branch (454:31): [True: 0, False: 17]
  ------------------
  455|       |	
  456|       |		// -----------------------------------------------------------------------------------------
  457|       |		// This node has general, non-attribute, qualifiers. Emit using the qualified property form.
  458|       |		// ! The value is output by a recursive call ON THE SAME NODE with emitAsRDFValue set.
  459|       |
  460|      0|		if ( hasRDFResourceQual ) {
  ------------------
  |  Branch (460:8): [True: 0, False: 0]
  ------------------
  461|      0|			XMP_Throw ( "Can't mix rdf:resource and general qualifiers", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  462|      0|		}
  463|       |		
  464|      0|		outputStr += " rdf:parseType=\"Resource\">";
  465|      0|		outputStr += newline;
  466|       |
  467|      0|		SerializePrettyRDFProperty ( propNode, outputStr, newline, indentStr, indent+1, true );
  468|       |		
  469|      0|		for ( size_t qualNum = 0, qualLim = propNode->qualifiers.size(); qualNum < qualLim; ++qualNum ) {
  ------------------
  |  Branch (469:68): [True: 0, False: 0]
  ------------------
  470|      0|			const XMP_Node * currQual = propNode->qualifiers[qualNum];
  471|      0|			if ( IsRDFAttrQualifier ( currQual->name ) ) continue;
  ------------------
  |  Branch (471:9): [True: 0, False: 0]
  ------------------
  472|      0|			SerializePrettyRDFProperty ( currQual, outputStr, newline, indentStr, indent+1 );
  473|      0|		}
  474|       |		
  475|     77|	} else {
  476|       |
  477|       |		// --------------------------------------------------------------------
  478|       |		// This node has no general qualifiers. Emit using an unqualified form.
  479|       |		
  480|     77|		if ( propForm == 0 ) {
  ------------------
  |  Branch (480:8): [True: 77, False: 0]
  ------------------
  481|       |		
  482|       |			// --------------------------
  483|       |			// This is a simple property.
  484|       |			
  485|     77|			if ( propNode->options & kXMP_PropValueIsURI ) {
  ------------------
  |  Branch (485:9): [True: 0, False: 77]
  ------------------
  486|      0|				outputStr += " rdf:resource=\"";
  487|      0|				AppendNodeValue ( outputStr, propNode->value, kForAttribute );
  488|      0|				outputStr += "\"/>";
  489|      0|				outputStr += newline;
  490|      0|				emitEndTag = false;
  491|     77|			} else if ( propNode->value.empty() ) {
  ------------------
  |  Branch (491:16): [True: 3, False: 74]
  ------------------
  492|      3|				outputStr += "/>";
  493|      3|				outputStr += newline;
  494|      3|				emitEndTag = false;
  495|     74|			} else {
  496|     74|				outputStr += '>';
  497|     74|				AppendNodeValue ( outputStr, propNode->value, kForElement );
  498|     74|				indentEndTag = false;
  499|     74|			}
  500|       |			
  501|     77|		} else if ( propForm & kXMP_PropValueIsArray ) {
  ------------------
  |  Branch (501:15): [True: 0, False: 0]
  ------------------
  502|       |		
  503|       |			// This is an array.
  504|      0|			outputStr += '>';
  505|      0|			outputStr += newline;
  506|      0|			EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsStartTag );
  507|      0|			if ( XMP_ArrayIsAltText(propNode->options) ) NormalizeLangArray ( (XMP_Node*)propNode );
  ------------------
  |  Branch (507:9): [True: 0, False: 0]
  ------------------
  508|      0|			for ( size_t childNum = 0, childLim = propNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (508:69): [True: 0, False: 0]
  ------------------
  509|      0|				const XMP_Node * currChild = propNode->children[childNum];
  510|      0|				SerializePrettyRDFProperty ( currChild, outputStr, newline, indentStr, indent+2 );
  511|      0|			}
  512|      0|			EmitRDFArrayTag ( propForm, outputStr, newline, indentStr, indent+1, propNode->children.size(), kIsEndTag );
  513|       |		
  514|       |		
  515|      0|		} else if ( ! hasRDFResourceQual ) {
  ------------------
  |  Branch (515:15): [True: 0, False: 0]
  ------------------
  516|       |		
  517|       |			// This is a "normal" struct, use the rdf:parseType="Resource" form.
  518|      0|			XMP_Assert ( propForm & kXMP_PropValueIsStruct );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
  519|      0|			if ( propNode->children.size() == 0 ) {
  ------------------
  |  Branch (519:9): [True: 0, False: 0]
  ------------------
  520|      0|				outputStr += " rdf:parseType=\"Resource\"/>";
  521|      0|				outputStr += newline;
  522|      0|				emitEndTag = false;
  523|      0|			} else {
  524|      0|				outputStr += " rdf:parseType=\"Resource\">";
  525|      0|				outputStr += newline;
  526|      0|				for ( size_t childNum = 0, childLim = propNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (526:70): [True: 0, False: 0]
  ------------------
  527|      0|					const XMP_Node * currChild = propNode->children[childNum];
  528|      0|					SerializePrettyRDFProperty ( currChild, outputStr, newline, indentStr, indent+1 );
  529|      0|				}
  530|      0|			}
  531|       |		
  532|      0|		} else {
  533|       |		
  534|       |			// This is a struct with an rdf:resource attribute, use the "empty property element" form.
  535|      0|			XMP_Assert ( propForm & kXMP_PropValueIsStruct );
  ------------------
  |  |  142|      0|	#define XMP_Assert(c)	((void) 0)
  ------------------
  536|      0|			for ( size_t childNum = 0, childLim = propNode->children.size(); childNum < childLim; ++childNum ) {
  ------------------
  |  Branch (536:69): [True: 0, False: 0]
  ------------------
  537|      0|				const XMP_Node * currChild = propNode->children[childNum];
  538|      0|				if ( ! CanBeRDFAttrProp ( currChild ) ) {
  ------------------
  |  Branch (538:10): [True: 0, False: 0]
  ------------------
  539|      0|					XMP_Throw ( "Can't mix rdf:resource and complex fields", kXMPErr_BadRDF );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  540|      0|				}
  541|      0|				outputStr += newline;
  542|      0|				for ( level = indent+1; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (542:29): [True: 0, False: 0]
  ------------------
  543|      0|				outputStr += ' ';
  544|      0|				outputStr += currChild->name;
  545|      0|				outputStr += "=\"";
  546|      0|				outputStr += currChild->value;
  547|      0|				outputStr += '"';
  548|      0|			}
  549|      0|			outputStr += "/>";
  550|      0|			outputStr += newline;
  551|      0|			emitEndTag = false;
  552|       |		
  553|      0|		}
  554|       |		
  555|     77|	}
  556|       |	
  557|       |	// ----------------------------------
  558|       |	// Emit the property element end tag.
  559|       |	
  560|     77|	if ( emitEndTag ) {
  ------------------
  |  Branch (560:7): [True: 74, False: 3]
  ------------------
  561|     74|		if ( indentEndTag ) for ( level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (561:8): [True: 0, False: 74]
  |  Branch (561:45): [True: 0, False: 0]
  ------------------
  562|     74|		outputStr += "</";
  563|     74|		outputStr += elemName;
  564|     74|		outputStr += '>';
  565|     74|		outputStr += newline;
  566|     74|	}
  567|       |	
  568|     77|}	// SerializePrettyRDFProperty
XMPMeta-Serialize.cpp:_ZL15EmitRDFArrayTagjRNSt3__112basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEEEPKcS8_iib:
  235|    722|{
  236|    722|	if ( (! isStartTag) && (arraySize == 0) ) return;
  ------------------
  |  Branch (236:7): [True: 361, False: 361]
  |  Branch (236:25): [True: 4, False: 357]
  ------------------
  237|       |	
  238|  3.59k|	for ( XMP_Index level = indent; level > 0; --level ) outputStr += indentStr;
  ------------------
  |  Branch (238:34): [True: 2.87k, False: 718]
  ------------------
  239|    718|	if ( isStartTag ) {
  ------------------
  |  Branch (239:7): [True: 361, False: 357]
  ------------------
  240|    361|		outputStr += "<rdf:";
  241|    361|	} else {
  242|    357|		outputStr += "</rdf:";
  243|    357|	}
  244|       |
  245|    718|	if ( arrayForm & kXMP_PropArrayIsAlternate ) {
  ------------------
  |  Branch (245:7): [True: 150, False: 568]
  ------------------
  246|    150|		outputStr += "Alt";
  247|    568|	} else if ( arrayForm & kXMP_PropArrayIsOrdered ) {
  ------------------
  |  Branch (247:14): [True: 478, False: 90]
  ------------------
  248|    478|		outputStr += "Seq";
  249|    478|	} else {
  250|     90|		outputStr += "Bag";
  251|     90|	}
  252|       |	
  253|    718|	if ( isStartTag && (arraySize == 0) ) outputStr += '/';
  ------------------
  |  Branch (253:7): [True: 361, False: 357]
  |  Branch (253:21): [True: 4, False: 357]
  ------------------
  254|    718|	outputStr += '>';
  255|    718|	outputStr += newline;
  256|       |
  257|    718|}	// EmitRDFArrayTag

_ZN7XMPMetaC2Ev:
  588|  3.54k|XMPMeta::XMPMeta() : clientRefs(0), prevTkVer(0), tree(XMP_Node(0,"",0)), xmlParser(0)
  589|  3.54k|{
  590|       |	// Nothing more to do, clientRefs is incremented in wrapper.
  591|       |	#if XMP_TraceCTorDTor
  592|       |		printf ( "Default construct XMPMeta @ %.8X\n", this );
  593|       |	#endif
  594|  3.54k|}	// XMPMeta
_ZN7XMPMetaD2Ev:
  599|  3.54k|{
  600|       |	#if XMP_TraceCTorDTor
  601|       |		printf ( "Destruct XMPMeta @ %.8X\n", this );
  602|       |	#endif
  603|       |
  604|  3.54k|	XMP_Assert ( this->clientRefs <= 0 );
  ------------------
  |  |  142|  3.54k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  605|  3.54k|	if ( xmlParser != 0 ) delete ( xmlParser );
  ------------------
  |  Branch (605:7): [True: 0, False: 3.54k]
  ------------------
  606|  3.54k|	xmlParser = 0;
  607|       |
  608|  3.54k|}	// ~XMPMeta
_ZN7XMPMeta10InitializeEv:
  644|      1|{
  645|       |	// Allocate and initialize static objects.
  646|       |	
  647|      1|	++sXMP_InitCount;
  648|      1|	if ( sXMP_InitCount > 1 ) return true;
  ------------------
  |  Branch (648:7): [True: 0, False: 1]
  ------------------
  649|       |	
  650|       |	#if TraceXMPCalls
  651|       |		// xmpOut = fopen ( "xmp.out", "w" );	// Coordinate with client glue in WXMP_Common.hpp
  652|       |		fprintf ( xmpOut, "XMP initializing\n" ); fflush ( xmpOut );
  653|       |	#endif
  654|       |	
  655|      1|	sExceptionMessage = new XMP_VarString();
  656|      1|	XMP_InitMutex ( &sXMPCoreLock );
  657|      1|    sOutputNS  = new XMP_VarString;
  658|      1|    sOutputStr = new XMP_VarString;
  659|       |
  660|      1|	xdefaultName = new XMP_VarString ( "x-default" );
  661|       |	
  662|      1|	sNamespaceURIToPrefixMap	= new XMP_StringMap;
  663|      1|	sNamespacePrefixToURIMap	= new XMP_StringMap;
  664|      1|	sRegisteredAliasMap			= new XMP_AliasMap;
  665|       |	
  666|      1|	InitializeUnicodeConversions();
  667|       |	
  668|       |	// Register standard namespaces and aliases.
  669|      1|	RegisterNamespace ( kXMP_NS_XML, "xml" );
  670|      1|	RegisterNamespace ( kXMP_NS_RDF, "rdf" );
  671|      1|	RegisterNamespace ( kXMP_NS_DC, "dc" );
  672|       |
  673|      1|	RegisterNamespace ( kXMP_NS_XMP, "xmp" );
  674|      1|	RegisterNamespace ( kXMP_NS_PDF, "pdf" );
  675|      1|	RegisterNamespace ( kXMP_NS_Photoshop, "photoshop" );
  676|      1|	RegisterNamespace ( kXMP_NS_PSAlbum, "album" );
  677|      1|	RegisterNamespace ( kXMP_NS_EXIF, "exif" );
  678|      1|	RegisterNamespace ( kXMP_NS_EXIF_Aux, "aux" );
  679|      1|	RegisterNamespace ( kXMP_NS_TIFF, "tiff" );
  680|      1|	RegisterNamespace ( kXMP_NS_PNG, "png" );
  681|      1|	RegisterNamespace ( kXMP_NS_JPEG, "jpeg" );
  682|      1|	RegisterNamespace ( kXMP_NS_JP2K, "jp2k" );
  683|      1|	RegisterNamespace ( kXMP_NS_CameraRaw, "crs" );
  684|      1|	RegisterNamespace ( kXMP_NS_ASF, "asf" );
  685|      1|	RegisterNamespace ( kXMP_NS_WAV, "wav" );
  686|       |
  687|      1|	RegisterNamespace ( kXMP_NS_AdobeStockPhoto, "bmsp" );
  688|      1|	RegisterNamespace ( kXMP_NS_CreatorAtom, "creatorAtom" );
  689|       |
  690|      1|	RegisterNamespace ( kXMP_NS_XMP_Rights, "xmpRights" );
  691|      1|	RegisterNamespace ( kXMP_NS_XMP_MM, "xmpMM" );
  692|      1|	RegisterNamespace ( kXMP_NS_XMP_BJ, "xmpBJ" );
  693|      1|	RegisterNamespace ( kXMP_NS_XMP_Note, "xmpNote" );
  694|       |
  695|      1|	RegisterNamespace ( kXMP_NS_DM, "xmpDM" );
  696|      1|	RegisterNamespace ( kXMP_NS_XMP_Text, "xmpT" );
  697|      1|	RegisterNamespace ( kXMP_NS_XMP_PagedFile, "xmpTPg" );
  698|      1|	RegisterNamespace ( kXMP_NS_XMP_Graphics, "xmpG" );
  699|      1|	RegisterNamespace ( kXMP_NS_XMP_Image, "xmpGImg" );
  700|       |
  701|      1|	RegisterNamespace ( kXMP_NS_XMP_Font, "stFnt" );
  702|      1|	RegisterNamespace ( kXMP_NS_XMP_Dimensions, "stDim" );
  703|      1|	RegisterNamespace ( kXMP_NS_XMP_ResourceEvent, "stEvt" );
  704|      1|	RegisterNamespace ( kXMP_NS_XMP_ResourceRef, "stRef" );
  705|      1|	RegisterNamespace ( kXMP_NS_XMP_ST_Version, "stVer" );
  706|      1|	RegisterNamespace ( kXMP_NS_XMP_ST_Job, "stJob" );
  707|      1|	RegisterNamespace ( kXMP_NS_XMP_ManifestItem, "stMfs" );
  708|       |
  709|      1|	RegisterNamespace ( kXMP_NS_XMP_IdentifierQual, "xmpidq" );
  710|       |
  711|      1|	RegisterNamespace ( kXMP_NS_IPTCCore, "Iptc4xmpCore" );
  712|      1|	RegisterNamespace ( kXMP_NS_DICOM, "DICOM" );
  713|       |
  714|      1|	RegisterNamespace ( kXMP_NS_PDFA_Schema, "pdfaSchema" );
  715|      1|	RegisterNamespace ( kXMP_NS_PDFA_Property, "pdfaProperty" );
  716|      1|	RegisterNamespace ( kXMP_NS_PDFA_Type, "pdfaType" );
  717|      1|	RegisterNamespace ( kXMP_NS_PDFA_Field, "pdfaField" );
  718|      1|	RegisterNamespace ( kXMP_NS_PDFA_ID, "pdfaid" );
  719|      1|	RegisterNamespace ( kXMP_NS_PDFA_Extension, "pdfaExtension" );
  720|       |
  721|      1|	RegisterNamespace ( kXMP_NS_PDFX, "pdfx" );
  722|      1|	RegisterNamespace ( kXMP_NS_PDFX_ID, "pdfxid" );
  723|       |	
  724|      1|	RegisterNamespace ( "adobe:ns:meta/", "x" );
  725|      1|	RegisterNamespace ( "http://ns.adobe.com/iX/1.0/", "iX" );
  726|       |
  727|       |// 06-Oct-07, ahu: Do not use aliases. They result in unexpected behaviour.
  728|       |//	XMPMeta::RegisterStandardAliases ( "" );
  729|       |	
  730|       |	// Initialize the other core classes.
  731|       |	
  732|      1|	if ( ! XMPIterator::Initialize() ) XMP_Throw ( "Failure from XMPIterator::Initialize", kXMPErr_InternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (732:7): [True: 0, False: 1]
  ------------------
  733|      1|	if ( ! XMPUtils::Initialize() ) XMP_Throw ( "Failure from XMPUtils::Initialize", kXMPErr_InternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (733:7): [True: 0, False: 1]
  ------------------
  734|       |	// Do miscelaneous semantic checks of types and arithmetic.
  735|       |
  736|      1|	XMP_Assert ( sizeof(XMP_Int8) == 1 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  737|      1|	XMP_Assert ( sizeof(XMP_Int16) == 2 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  738|      1|	XMP_Assert ( sizeof(XMP_Int32) == 4 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  739|      1|	XMP_Assert ( sizeof(XMP_Int64) == 8 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  740|      1|	XMP_Assert ( sizeof(XMP_Uns8) == 1 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  741|      1|	XMP_Assert ( sizeof(XMP_Uns16) == 2 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  742|      1|	XMP_Assert ( sizeof(XMP_Uns32) == 4 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  743|      1|	XMP_Assert ( sizeof(XMP_Uns64) == 8 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  744|       |	
  745|      1|	XMP_Assert ( sizeof(XMP_OptionBits) == 4 );	// Check that option masking work on all 32 bits.
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  746|      1|	XMP_OptionBits flag = ~0;
  747|       |
  748|      1|	XMP_Assert ( flag == (XMP_OptionBits)(-1L) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  749|      1|	XMP_Assert ( (flag ^ kXMP_PropHasLang) == 0xFFFFFFBFUL );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  750|      1|	XMP_Assert ( (flag & ~kXMP_PropHasLang) == 0xFFFFFFBFUL );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  751|       |	
  752|      1|	XMP_OptionBits opt1 = 0;	// Check the general option bit macros.
  753|      1|	XMP_OptionBits opt2 = flag;
  754|      1|	XMP_SetOption ( opt1, kXMP_PropValueIsArray );
  755|      1|	XMP_ClearOption ( opt2, kXMP_PropValueIsArray );
  756|      1|	XMP_Assert ( opt1 == ~opt2 );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  757|      1|	XMP_Assert ( XMP_TestOption ( opt1, kXMP_PropValueIsArray ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  758|      1|	XMP_Assert ( ! XMP_TestOption ( opt2, kXMP_PropValueIsArray ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  759|       |	
  760|      1|	XMP_Assert ( XMP_PropIsSimple ( ~kXMP_PropCompositeMask ) );	// Check the special option bit macros.
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  761|      1|	XMP_Assert ( ! XMP_PropIsSimple ( kXMP_PropValueIsStruct ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  762|      1|	XMP_Assert ( ! XMP_PropIsSimple ( kXMP_PropValueIsArray ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  763|       |
  764|      1|	XMP_Assert ( XMP_PropIsStruct ( kXMP_PropValueIsStruct ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  765|      1|	XMP_Assert ( XMP_PropIsArray  ( kXMP_PropValueIsArray ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  766|      1|	XMP_Assert ( ! XMP_PropIsStruct ( ~kXMP_PropValueIsStruct ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  767|      1|	XMP_Assert ( ! XMP_PropIsArray  ( ~kXMP_PropValueIsArray ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  768|       |	
  769|      1|	XMP_Assert ( XMP_ArrayIsUnordered ( ~kXMP_PropArrayIsOrdered ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  770|      1|	XMP_Assert ( XMP_ArrayIsOrdered   ( kXMP_PropArrayIsOrdered ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  771|      1|	XMP_Assert ( XMP_ArrayIsAlternate ( kXMP_PropArrayIsAlternate ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  772|      1|	XMP_Assert ( XMP_ArrayIsAltText   ( kXMP_PropArrayIsAltText ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  773|      1|	XMP_Assert ( ! XMP_ArrayIsUnordered ( kXMP_PropArrayIsOrdered ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  774|      1|	XMP_Assert ( ! XMP_ArrayIsOrdered   ( ~kXMP_PropArrayIsOrdered ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  775|      1|	XMP_Assert ( ! XMP_ArrayIsAlternate ( ~kXMP_PropArrayIsAlternate ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  776|      1|	XMP_Assert ( ! XMP_ArrayIsAltText   ( ~kXMP_PropArrayIsAltText ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  777|       |	
  778|      1|	XMP_Assert ( XMP_PropHasQualifiers ( kXMP_PropHasQualifiers ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  779|      1|	XMP_Assert ( XMP_PropIsQualifier   ( kXMP_PropIsQualifier ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  780|      1|	XMP_Assert ( XMP_PropHasLang       ( kXMP_PropHasLang ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  781|      1|	XMP_Assert ( ! XMP_PropHasQualifiers ( ~kXMP_PropHasQualifiers ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  782|      1|	XMP_Assert ( ! XMP_PropIsQualifier   ( ~kXMP_PropIsQualifier ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  783|      1|	XMP_Assert ( ! XMP_PropHasLang       ( ~kXMP_PropHasLang ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  784|       |	
  785|      1|	XMP_Assert ( XMP_NodeIsSchema ( kXMP_SchemaNode ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  786|      1|	XMP_Assert ( XMP_PropIsAlias  ( kXMP_PropIsAlias ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  787|      1|	XMP_Assert ( ! XMP_NodeIsSchema ( ~kXMP_SchemaNode ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  788|      1|	XMP_Assert ( ! XMP_PropIsAlias  ( ~kXMP_PropIsAlias ) );
  ------------------
  |  |  142|      1|	#define XMP_Assert(c)	((void) 0)
  ------------------
  789|       |	
  790|       |	#if 0	// Generally off, enable to hand check generated code.
  791|       |		extern XMP_OptionBits opt3, opt4;
  792|       |		if ( XMP_TestOption ( opt3, kXMP_PropValueIsArray ) ) opt4 = opt3;
  793|       |		if ( ! XMP_TestOption ( opt3, kXMP_PropValueIsStruct ) ) opt4 = opt3;
  794|       |		static bool ok1 = XMP_TestOption ( opt4, kXMP_PropValueIsArray );
  795|       |		static bool ok2 = ! XMP_TestOption ( opt4, kXMP_PropValueIsStruct );
  796|       |	#endif
  797|       |	
  798|       |	// Make sure the embedded info strings are referenced and kept.
  799|      1|	if ( (kXMPCore_EmbeddedVersion[0] == 0) || (kXMPCore_EmbeddedCopyright[0] == 0) ) return false;
  ------------------
  |  Branch (799:7): [True: 0, False: 1]
  |  Branch (799:45): [True: 0, False: 1]
  ------------------
  800|      1|	return true;
  801|       |
  802|      1|}	// Initialize
_ZN7XMPMeta9TerminateEv:
  813|      1|{
  814|      1|	--sXMP_InitCount;
  815|      1|	if ( sXMP_InitCount > 0 ) return;
  ------------------
  |  Branch (815:7): [True: 0, False: 1]
  ------------------
  816|       |
  817|       |	#if TraceXMPCalls
  818|       |		fprintf ( xmpOut, "XMP terminating\n" ); fflush ( xmpOut );
  819|       |		// fclose ( xmpOut );	// Coordinate with fopen in XMPMeta::Initialize.
  820|       |	#endif
  821|       |	
  822|      1|	XMPIterator::Terminate();
  823|      1|	XMPUtils::Terminate();
  824|      1|	EliminateGlobal ( sNamespaceURIToPrefixMap );
  ------------------
  |  |  809|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  825|      1|	EliminateGlobal ( sNamespacePrefixToURIMap );
  ------------------
  |  |  809|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  826|      1|	EliminateGlobal ( sRegisteredAliasMap );
  ------------------
  |  |  809|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  827|       |    
  828|      1|    EliminateGlobal ( xdefaultName );
  ------------------
  |  |  809|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  829|      1|    EliminateGlobal ( sOutputNS );
  ------------------
  |  |  809|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  830|      1|    EliminateGlobal ( sOutputStr );
  ------------------
  |  |  809|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  831|      1|	EliminateGlobal ( sExceptionMessage );
  ------------------
  |  |  809|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  832|       |
  833|      1|	XMP_TermMutex ( sXMPCoreLock );
  834|       |	
  835|      1|}	// Terminate
_ZN7XMPMeta6UnlockEj:
  844|  24.1k|{
  845|  24.1k|	UNUSED(options);
  846|       |
  847|       |    #if TraceXMPLocking
  848|       |    	fprintf ( xmpOut, "  Unlocking XMP toolkit, count = %d\n", sLockCount ); fflush ( xmpOut );
  849|       |	#endif
  850|  24.1k|    --sLockCount;
  851|  24.1k|    XMP_Assert ( sLockCount == 0 );
  ------------------
  |  |  142|  24.1k|	#define XMP_Assert(c)	((void) 0)
  ------------------
  852|  24.1k|	XMP_ExitCriticalRegion ( sXMPCoreLock );
  853|       |
  854|  24.1k|}	// Unlock
_ZNK7XMPMeta12UnlockObjectEj:
  863|    247|{
  864|    247|	UNUSED(options);
  865|       |
  866|    247|	XMPMeta::Unlock ( 0 );
  867|       |
  868|    247|}	// UnlockObject
_ZN7XMPMeta17RegisterNamespaceEPKcS1_:
 1041|  10.6k|{
 1042|  10.6k|	if ( (*namespaceURI == 0) || (*prefix == 0) ) {
  ------------------
  |  Branch (1042:7): [True: 0, False: 10.6k]
  |  Branch (1042:31): [True: 0, False: 10.6k]
  ------------------
 1043|      0|		XMP_Throw ( "Empty namespace URI or prefix", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1044|      0|	}
 1045|       |	
 1046|  10.6k|	XMP_VarString	nsURI ( namespaceURI );
 1047|  10.6k|	XMP_VarString	prfix ( prefix );
 1048|  10.6k|	if ( prfix[prfix.size()-1] != ':' ) prfix += ':';
  ------------------
  |  Branch (1048:7): [True: 10.6k, False: 0]
  ------------------
 1049|  10.6k|	VerifySimpleXMLName ( prefix, prefix+prfix.size()-1 );	// Exclude the colon.
 1050|       |	
 1051|       |        // Set the new namespace in both maps.
 1052|  10.6k|        (*sNamespaceURIToPrefixMap)[nsURI] = prfix;
 1053|  10.6k|        (*sNamespacePrefixToURIMap)[prfix] = nsURI;
 1054|       |	
 1055|  10.6k|}	// RegisterNamespace
_ZN7XMPMeta18GetNamespacePrefixEPKcPS1_Pj:
 1066|  41.4k|{
 1067|  41.4k|	bool	found	= false;
 1068|       |	
 1069|  41.4k|	XMP_Assert ( *namespaceURI != 0 ); 	// ! Enforced by wrapper.
  ------------------
  |  |  142|  41.4k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1070|  41.4k|	XMP_Assert ( (namespacePrefix != 0) && (prefixSize != 0) );	// ! Enforced by wrapper.
  ------------------
  |  |  142|  41.4k|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1071|       |
 1072|  41.4k|	XMP_VarString    nsURI ( namespaceURI );
 1073|  41.4k|	XMP_StringMapPos uriPos	= sNamespaceURIToPrefixMap->find ( nsURI );
 1074|       |	
 1075|  41.4k|	if ( uriPos != sNamespaceURIToPrefixMap->end() ) {
  ------------------
  |  Branch (1075:7): [True: 41.3k, False: 107]
  ------------------
 1076|  41.3k|		*namespacePrefix = uriPos->second.c_str();
 1077|  41.3k|		*prefixSize = uriPos->second.size();
 1078|  41.3k|		found = true;
 1079|  41.3k|	}
 1080|       |	
 1081|  41.4k|	return found;
 1082|       |	
 1083|  41.4k|}	// GetNamespacePrefix
_ZN7XMPMeta15DeleteNamespaceEPKc:
 1126|    159|{
 1127|    159|	XMP_StringMapPos uriPos = sNamespaceURIToPrefixMap->find ( namespaceURI );
 1128|    159|	if ( uriPos == sNamespaceURIToPrefixMap->end() ) return;
  ------------------
  |  Branch (1128:7): [True: 107, False: 52]
  ------------------
 1129|       |
 1130|     52|	XMP_StringMapPos prefixPos = sNamespacePrefixToURIMap->find ( uriPos->second );
 1131|     52|	if ( prefixPos == sNamespacePrefixToURIMap->end() ) return;
  ------------------
  |  Branch (1131:7): [True: 0, False: 52]
  ------------------
 1132|       |	
 1133|     52|	sNamespaceURIToPrefixMap->erase ( uriPos );
 1134|     52|	sNamespacePrefixToURIMap->erase ( prefixPos );
 1135|       |
 1136|     52|}	// DeleteNamespace
_ZNK7XMPMeta15CountArrayItemsEPKcS1_:
 1510|    753|{
 1511|    753|	XMP_Assert ( (schemaNS != 0) && (arrayName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|    753|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1512|       |
 1513|    753|	XMP_ExpandedXPath	expPath;
 1514|    753|	ExpandXPath ( schemaNS, arrayName, &expPath );
 1515|       |	
 1516|    753|	const XMP_Node * arrayNode = FindConstNode ( &tree, expPath );
  ------------------
  |  |  301|    753|#define FindConstNode(t,p)		FindNode ( const_cast<XMP_Node*>(t), p, kXMP_ExistingOnly, 0 )
  |  |  ------------------
  |  |  |  |  296|    753|#define kXMP_ExistingOnly	false
  |  |  ------------------
  ------------------
 1517|       |
 1518|    753|	if ( arrayNode == 0 ) return 0;
  ------------------
  |  Branch (1518:7): [True: 0, False: 753]
  ------------------
 1519|    753|	if ( ! (arrayNode->options & kXMP_PropValueIsArray) ) XMP_Throw ( "The named property is not an array", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1519:7): [True: 0, False: 753]
  ------------------
 1520|    753|	return arrayNode->children.size();
 1521|       |	
 1522|    753|}	// CountArrayItems

_ZN8XMPUtils10InitializeEv:
  640|      1|{
  641|      1|	sComposedPath	= new XMP_VarString();
  642|      1|	sConvertedValue = new XMP_VarString();
  643|      1|	sBase64Str		= new XMP_VarString();
  644|      1|	sCatenatedItems = new XMP_VarString();
  645|      1|	sStandardXMP    = new XMP_VarString();
  646|      1|	sExtendedXMP    = new XMP_VarString();
  647|      1|	sExtendedDigest = new XMP_VarString();
  648|       |
  649|       |	#if XMP_MacBuild && __MWERKS__
  650|       |		LookupTimeProcs();
  651|       |	#endif
  652|       |
  653|      1|	return true;
  654|       |
  655|      1|}	// Initialize
_ZN8XMPUtils9TerminateEv:
  666|      1|{
  667|      1|	EliminateGlobal ( sComposedPath );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  668|      1|	EliminateGlobal ( sConvertedValue );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  669|      1|	EliminateGlobal ( sBase64Str );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  670|      1|	EliminateGlobal ( sCatenatedItems );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  671|      1|	EliminateGlobal ( sStandardXMP );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  672|      1|	EliminateGlobal ( sExtendedXMP );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  673|      1|	EliminateGlobal ( sExtendedDigest );
  ------------------
  |  |  662|      1|#define EliminateGlobal(g) delete ( g ); g = 0
  ------------------
  674|       |
  675|      1|	return;
  676|       |
  677|      1|}	// Terminate
_ZN8XMPUtils20ComposeQualifierPathEPKcS1_S1_S1_PS1_Pj:
  790|     58|{
  791|     58|	XMP_Assert ( (schemaNS != 0) && (qualNS != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  ------------------
  792|     58|	XMP_Assert ( (*propName != 0) && (*qualName != 0) );	// Enforced by wrapper.
  ------------------
  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  ------------------
  793|     58|	XMP_Assert ( (fullPath != 0) && (pathSize != 0) );		// Enforced by wrapper.
  ------------------
  |  |  142|     58|	#define XMP_Assert(c)	((void) 0)
  ------------------
  794|       |
  795|     58|	XMP_ExpandedXPath expPath;	// Just for side effects to check namespace and basic path.
  796|     58|	ExpandXPath ( schemaNS, propName, &expPath );
  797|       |
  798|     58|	XMP_ExpandedXPath qualPath;
  799|     58|	ExpandXPath ( qualNS, qualName, &qualPath );
  800|     58|	if ( qualPath.size() != 2 ) XMP_Throw ( "The qualifier name must be simple", kXMPErr_BadXPath );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (800:7): [True: 0, False: 58]
  ------------------
  801|       |
  802|     58|	XMP_StringLen reserveLen = strlen(propName) + qualPath[kRootPropStep].step.size() + 2;
  803|       |
  804|     58|	sComposedPath->erase();
  805|     58|	sComposedPath->reserve ( reserveLen );
  806|     58|	*sComposedPath = propName;
  807|     58|	*sComposedPath += "/?";
  808|     58|	*sComposedPath += qualPath[kRootPropStep].step;
  809|       |
  810|     58|	*fullPath = sComposedPath->c_str();
  811|     58|	*pathSize = sComposedPath->size();
  812|       |
  813|     58|}	// ComposeQualifierPath
_ZN8XMPUtils13ConvertToDateEPKcP12XMP_DateTime:
 1293|    146|{
 1294|    146|	if ( (strValue == 0) || (*strValue == 0) ) XMP_Throw ( "Empty convert-from string", kXMPErr_BadValue);
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1294:7): [True: 0, False: 146]
  |  Branch (1294:26): [True: 1, False: 145]
  ------------------
 1295|       |
 1296|    145|	size_t	 pos = 0;
 1297|    145|	XMP_Int32 temp;
 1298|       |
 1299|    145|	XMP_Assert ( sizeof(*binValue) == sizeof(XMP_DateTime) );
  ------------------
  |  |  142|    145|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1300|    145|	(void) memset ( binValue, 0, sizeof(*binValue) );	// AUDIT: Safe, using sizeof destination.
 1301|       |
 1302|    145|	bool timeOnly = ( (strValue[0] == 'T') ||
  ------------------
  |  Branch (1302:20): [True: 61, False: 84]
  ------------------
 1303|     84|					  ((strlen(strValue) >= 2) && (strValue[1] == ':')) ||
  ------------------
  |  Branch (1303:9): [True: 81, False: 3]
  |  Branch (1303:36): [True: 21, False: 60]
  ------------------
 1304|     63|					  ((strlen(strValue) >= 3) && (strValue[2] == ':')) );
  ------------------
  |  Branch (1304:9): [True: 59, False: 4]
  |  Branch (1304:36): [True: 1, False: 58]
  ------------------
 1305|       |
 1306|    145|	if ( ! timeOnly ) {
  ------------------
  |  Branch (1306:7): [True: 62, False: 83]
  ------------------
 1307|       |
 1308|     62|		if ( strValue[0] == '-' ) pos = 1;
  ------------------
  |  Branch (1308:8): [True: 34, False: 28]
  ------------------
 1309|       |
 1310|     62|		temp = GatherInt ( strValue, &pos, "Invalid year in date string" ); // Extract the year.
 1311|     62|		if ( (strValue[pos] != 0) && (strValue[pos] != '-') ) XMP_Throw ( "Invalid date string, after year", kXMPErr_BadParam );
  ------------------
  |  |  199|      4|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1311:8): [True: 43, False: 19]
  |  Branch (1311:32): [True: 4, False: 39]
  ------------------
 1312|     58|		if ( strValue[0] == '-' ) temp = -temp;
  ------------------
  |  Branch (1312:8): [True: 27, False: 31]
  ------------------
 1313|     58|		binValue->year = temp;
 1314|     58|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1314:8): [True: 11, False: 47]
  ------------------
 1315|       |
 1316|     47|		++pos;
 1317|     47|		temp = GatherInt ( strValue, &pos, "Invalid month in date string" );	// Extract the month.
 1318|     47|		if ( (temp < 1) || (temp > 12) ) XMP_Throw ( "Month is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      4|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1318:8): [True: 14, False: 33]
  |  Branch (1318:22): [True: 3, False: 30]
  ------------------
 1319|     43|		if ( (strValue[pos] != 0) && (strValue[pos] != '-') ) XMP_Throw ( "Invalid date string, after month", kXMPErr_BadParam );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1319:8): [True: 19, False: 24]
  |  Branch (1319:32): [True: 1, False: 18]
  ------------------
 1320|     42|		binValue->month = temp;
 1321|     42|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1321:8): [True: 11, False: 31]
  ------------------
 1322|       |
 1323|     31|		++pos;
 1324|     31|		temp = GatherInt ( strValue, &pos, "Invalid day in date string" );	// Extract the day.
 1325|     31|		if ( (temp < 1) || (temp > 31) ) XMP_Throw ( "Day is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      7|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1325:8): [True: 22, False: 9]
  |  Branch (1325:22): [True: 3, False: 6]
  ------------------
 1326|     24|		if ( (strValue[pos] != 0) && (strValue[pos] != 'T') ) XMP_Throw ( "Invalid date string, after day", kXMPErr_BadParam );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1326:8): [True: 2, False: 22]
  |  Branch (1326:32): [True: 1, False: 1]
  ------------------
 1327|     23|		binValue->day = temp;
 1328|     23|		if ( strValue[pos] == 0 ) return;
  ------------------
  |  Branch (1328:8): [True: 4, False: 19]
  ------------------
 1329|       |
 1330|       |		// Allow year, month, and day to all be zero; implies the date portion is missing.
 1331|     19|		if ( (binValue->year != 0) || (binValue->month != 0) || (binValue->day != 0) ) {
  ------------------
  |  Branch (1331:8): [True: 19, False: 0]
  |  Branch (1331:33): [True: 0, False: 0]
  |  Branch (1331:59): [True: 0, False: 0]
  ------------------
 1332|       |			// Temporary fix for bug 1269463, silently fix out of range month or day.
 1333|       |			// if ( (binValue->month < 1) || (binValue->month > 12) ) XMP_Throw ( "Month is out of range", kXMPErr_BadParam );
 1334|       |			// if ( (binValue->day < 1) || (binValue->day > 31) ) XMP_Throw ( "Day is out of range", kXMPErr_BadParam );
 1335|      1|			if ( binValue->month < 1 ) binValue->month = 1;
  ------------------
  |  Branch (1335:9): [True: 0, False: 1]
  ------------------
 1336|      1|			if ( binValue->month > 12 ) binValue->month = 12;
  ------------------
  |  Branch (1336:9): [True: 0, False: 1]
  ------------------
 1337|      1|			if ( binValue->day < 1 ) binValue->day = 1;
  ------------------
  |  Branch (1337:9): [True: 0, False: 1]
  ------------------
 1338|      1|			if ( binValue->day > 31 ) binValue->day = 31;
  ------------------
  |  Branch (1338:9): [True: 0, False: 1]
  ------------------
 1339|      1|		}
 1340|       |
 1341|     19|	}
 1342|       |
 1343|    102|	if ( strValue[pos] == 'T' ) {
  ------------------
  |  Branch (1343:7): [True: 62, False: 40]
  ------------------
 1344|     62|		++pos;
 1345|     62|	} else if ( ! timeOnly ) {
  ------------------
  |  Branch (1345:14): [True: 0, False: 40]
  ------------------
 1346|      0|		XMP_Throw ( "Invalid date string, missing 'T' after date", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1347|      0|	}
 1348|       |
 1349|    102|	temp = GatherInt ( strValue, &pos, "Invalid hour in date string" ); // Extract the hour.
 1350|    102|	if ( strValue[pos] != ':' ) XMP_Throw ( "Invalid date string, after hour", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1350:7): [True: 3, False: 99]
  ------------------
 1351|     99|	if ( temp < 0 || temp > 23 ) temp = 23;	// *** 1269463: XMP_Throw ( "Hour is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1351:7): [True: 24, False: 75]
  |  Branch (1351:19): [True: 42, False: 33]
  ------------------
 1352|     99|	binValue->hour = temp;
 1353|       |	// Don't check for done, we have to work up to the time zone.
 1354|       |
 1355|     99|	++pos;
 1356|     99|	temp = GatherInt ( strValue, &pos, "Invalid minute in date string" );	// And the minute.
 1357|     99|	if ( (strValue[pos] != ':') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1357:7): [True: 30, False: 69]
  |  Branch (1357:33): [True: 29, False: 1]
  ------------------
 1358|     97|		 (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) XMP_Throw ( "Invalid date string, after minute", kXMPErr_BadParam );
  ------------------
  |  |  199|      2|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1358:4): [True: 22, False: 7]
  |  Branch (1358:30): [True: 10, False: 12]
  |  Branch (1358:56): [True: 2, False: 8]
  ------------------
 1359|     97|	if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Minute is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1359:7): [True: 28, False: 69]
  |  Branch (1359:19): [True: 44, False: 25]
  ------------------
 1360|     97|	binValue->minute = temp;
 1361|       |	// Don't check for done, we have to work up to the time zone.
 1362|       |
 1363|     97|	if ( strValue[pos] == ':' ) {
  ------------------
  |  Branch (1363:7): [True: 41, False: 56]
  ------------------
 1364|       |
 1365|     41|		++pos;
 1366|     41|		temp = GatherInt ( strValue, &pos, "Invalid whole seconds in date string" );	// Extract the whole seconds.
 1367|     41|		if ( (strValue[pos] != '.') && (strValue[pos] != 'Z') &&
  ------------------
  |  Branch (1367:8): [True: 13, False: 28]
  |  Branch (1367:34): [True: 12, False: 1]
  ------------------
 1368|     12|			 (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1368:5): [True: 11, False: 1]
  |  Branch (1368:31): [True: 7, False: 4]
  |  Branch (1368:57): [True: 5, False: 2]
  ------------------
 1369|      5|			XMP_Throw ( "Invalid date string, after whole seconds", kXMPErr_BadParam );
  ------------------
  |  |  199|      5|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1370|      0|		}
 1371|     36|		if ( temp < 0 || temp > 59 ) temp = 59;	// *** 1269463: XMP_Throw ( "Whole second is out of range", kXMPErr_BadParam );
  ------------------
  |  Branch (1371:8): [True: 4, False: 32]
  |  Branch (1371:20): [True: 5, False: 27]
  ------------------
 1372|     36|		binValue->second = temp;
 1373|       |		// Don't check for done, we have to work up to the time zone.
 1374|       |
 1375|     36|		if ( strValue[pos] == '.' ) {
  ------------------
  |  Branch (1375:8): [True: 24, False: 12]
  ------------------
 1376|       |
 1377|     24|			++pos;
 1378|     24|			size_t digits = pos;	// Will be the number of digits later.
 1379|       |
 1380|     24|			temp = GatherInt ( strValue, &pos, "Invalid fractional seconds in date string" );	// Extract the fractional seconds.
 1381|     24|			if ( (strValue[pos] != 'Z') && (strValue[pos] != '+') && (strValue[pos] != '-') && (strValue[pos] != 0) ) {
  ------------------
  |  Branch (1381:9): [True: 19, False: 5]
  |  Branch (1381:35): [True: 17, False: 2]
  |  Branch (1381:61): [True: 13, False: 4]
  |  Branch (1381:87): [True: 3, False: 10]
  ------------------
 1382|      3|				XMP_Throw ( "Invalid date string, after fractional second", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1383|      0|			}
 1384|       |
 1385|     21|			digits = pos - digits;
 1386|    428|			for ( ; digits > 9; --digits ) temp = temp / 10;
  ------------------
  |  Branch (1386:12): [True: 407, False: 21]
  ------------------
 1387|     45|			for ( ; digits < 9; ++digits ) temp = temp * 10;
  ------------------
  |  Branch (1387:12): [True: 24, False: 21]
  ------------------
 1388|       |
 1389|     21|			if ( temp < 0 || temp >= 1000*1000*1000 ) XMP_Throw ( "Fractional second is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1389:9): [True: 4, False: 17]
  |  Branch (1389:21): [True: 0, False: 17]
  ------------------
 1390|     21|			binValue->nanoSecond = temp;
 1391|       |			// Don't check for done, we have to work up to the time zone.
 1392|       |
 1393|     21|		}
 1394|       |
 1395|     36|	}
 1396|       |
 1397|     89|	if ( strValue[pos] == 'Z' ) {
  ------------------
  |  Branch (1397:7): [True: 3, False: 86]
  ------------------
 1398|       |
 1399|      3|		++pos;
 1400|       |
 1401|     86|	} else if ( strValue[pos] != 0 ) {
  ------------------
  |  Branch (1401:14): [True: 30, False: 56]
  ------------------
 1402|       |
 1403|     30|		if ( strValue[pos] == '+' ) {
  ------------------
  |  Branch (1403:8): [True: 10, False: 20]
  ------------------
 1404|     10|			binValue->tzSign = kXMP_TimeEastOfUTC;
 1405|     20|		} else if ( strValue[pos] == '-' ) {
  ------------------
  |  Branch (1405:15): [True: 20, False: 0]
  ------------------
 1406|     20|			binValue->tzSign = kXMP_TimeWestOfUTC;
 1407|     20|		} else {
 1408|      0|			XMP_Throw ( "Time zone must begin with 'Z', '+', or '-'", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1409|      0|		}
 1410|       |
 1411|     30|		++pos;
 1412|     30|		temp = GatherInt ( strValue, &pos, "Invalid time zone hour in date string" );	// Extract the time zone hour.
 1413|     30|		if ( strValue[pos] != ':' ) XMP_Throw ( "Invalid date string, after time zone hour", kXMPErr_BadParam );
  ------------------
  |  |  199|      6|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1413:8): [True: 6, False: 24]
  ------------------
 1414|     24|		if ( temp < 0 || temp > 23 ) XMP_Throw ( "Time zone hour is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      1|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1414:8): [True: 7, False: 17]
  |  Branch (1414:20): [True: 1, False: 16]
  ------------------
 1415|     23|		binValue->tzHour = temp;
 1416|       |
 1417|     23|		++pos;
 1418|     23|		temp = GatherInt ( strValue, &pos, "Invalid time zone minute in date string" ); // Extract the time zone minute.
 1419|     23|		if ( temp < 0 || temp > 59 ) XMP_Throw ( "Time zone minute is out of range", kXMPErr_BadParam );
  ------------------
  |  |  199|      3|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1419:8): [True: 11, False: 12]
  |  Branch (1419:20): [True: 3, False: 9]
  ------------------
 1420|     20|		binValue->tzMinute = temp;
 1421|       |
 1422|     56|	} else {
 1423|       |
 1424|     56|		XMPUtils::SetTimeZone( binValue );
 1425|       |
 1426|     56|	}
 1427|       |
 1428|     79|	if ( strValue[pos] != 0 ) XMP_Throw ( "Invalid date string, extra chars at end", kXMPErr_BadParam );
  ------------------
  |  |  199|      7|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1428:7): [True: 7, False: 72]
  ------------------
 1429|       |
 1430|     72|}	// ConvertToDate
_ZN8XMPUtils11SetTimeZoneEP12XMP_DateTime:
 1946|     71|{
 1947|     71|	XMP_Assert ( xmpTime != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     71|	#define XMP_Assert(c)	((void) 0)
  ------------------
 1948|       |
 1949|     71|	if ( (xmpTime->tzSign != 0) || (xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0) ) {
  ------------------
  |  Branch (1949:7): [True: 0, False: 71]
  |  Branch (1949:33): [True: 0, False: 71]
  |  Branch (1949:59): [True: 0, False: 71]
  ------------------
 1950|      0|		XMP_Throw ( "SetTimeZone can only be used on \"zoneless\" times", kXMPErr_BadParam );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1951|      0|	}
 1952|       |
 1953|       |	// Create ansi_tt form of the input time. Need the ansi_tm form to make the ansi_tt form.
 1954|       |
 1955|     71|	ansi_tt ttTime;
 1956|     71|	ansi_tm tmLocal, tmUTC;
 1957|       |
 1958|     71|	if ( (xmpTime->year == 0) && (xmpTime->month == 0) && (xmpTime->day == 0) ) {
  ------------------
  |  Branch (1958:7): [True: 45, False: 26]
  |  Branch (1958:31): [True: 43, False: 2]
  |  Branch (1958:56): [True: 43, False: 0]
  ------------------
 1959|     43|		ansi_tt now = ansi_time(0);
  ------------------
  |  |   69|     43|	#define ansi_time		time
  ------------------
 1960|     43|		if ( now == -1 ) XMP_Throw ( "Failure from ANSI C time function", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1960:8): [True: 0, False: 43]
  ------------------
 1961|     43|		ansi_localtime ( &now, &tmLocal );
  ------------------
  |  |   74|     43|	#define ansi_localtime	localtime_r
  ------------------
 1962|     43|	} else {
 1963|     28|		if (xmpTime->year < std::numeric_limits<decltype(tmLocal.tm_year)>::min() + 1900) {
  ------------------
  |  Branch (1963:7): [True: 0, False: 28]
  ------------------
 1964|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1965|     28|		} else if (xmpTime->year > std::numeric_limits<decltype(tmLocal.tm_year)>::max()) {
  ------------------
  |  Branch (1965:14): [True: 0, False: 28]
  ------------------
 1966|      0|			XMP_Throw ( "Invalid year", kXMPErr_BadParam);
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
 1967|     28|		} else {
 1968|     28|			tmLocal.tm_year = xmpTime->year - 1900;
 1969|     28|		}
 1970|     28|		tmLocal.tm_mon	 = xmpTime->month - 1;
 1971|     28|		tmLocal.tm_mday	 = xmpTime->day;
 1972|     28|	}
 1973|       |
 1974|     71|	tmLocal.tm_hour = xmpTime->hour;
 1975|     71|	tmLocal.tm_min = xmpTime->minute;
 1976|     71|	tmLocal.tm_sec = xmpTime->second;
 1977|     71|	tmLocal.tm_isdst = -1;	// Don't know if daylight time is in effect.
 1978|       |
 1979|     71|	ttTime = ansi_mktime ( &tmLocal );
  ------------------
  |  |   70|     71|	#define ansi_mktime		mktime
  ------------------
 1980|     71|	if ( ttTime == -1 ) XMP_Throw ( "Failure from ANSI C mktime function", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (1980:7): [True: 0, False: 71]
  ------------------
 1981|       |
 1982|       |	// Convert back to a localized ansi_tm time and get the corresponding UTC ansi_tm time.
 1983|       |
 1984|     71|	ansi_localtime ( &ttTime, &tmLocal );
  ------------------
  |  |   74|     71|	#define ansi_localtime	localtime_r
  ------------------
 1985|     71|	ansi_gmtime ( &ttTime, &tmUTC );
  ------------------
  |  |   73|     71|	#define ansi_gmtime		gmtime_r
  ------------------
 1986|       |
 1987|       |	// Get the offset direction and amount.
 1988|       |
 1989|     71|	ansi_tm tmx = tmLocal;	// ! Note that mktime updates the ansi_tm parameter, messing up difftime!
 1990|     71|	ansi_tm tmy = tmUTC;
 1991|     71|	tmx.tm_isdst = tmy.tm_isdst = 0;
 1992|     71|	ansi_tt ttx = ansi_mktime ( &tmx );
  ------------------
  |  |   70|     71|	#define ansi_mktime		mktime
  ------------------
 1993|     71|	ansi_tt tty = ansi_mktime ( &tmy );
  ------------------
  |  |   70|     71|	#define ansi_mktime		mktime
  ------------------
 1994|     71|	double diffSecs;
 1995|       |
 1996|     71|	if ( (ttx != -1) && (tty != -1) ) {
  ------------------
  |  Branch (1996:7): [True: 71, False: 0]
  |  Branch (1996:22): [True: 71, False: 0]
  ------------------
 1997|     71|		diffSecs = ansi_difftime ( ttx, tty );
  ------------------
  |  |   71|     71|	#define ansi_difftime	difftime
  ------------------
 1998|     71|	} else {
 1999|       |		#if XMP_MacBuild
 2000|       |			// Looks like Apple's mktime is buggy - see W1140533. But the offset is visible.
 2001|       |			diffSecs = tmLocal.tm_gmtoff;
 2002|       |		#else
 2003|       |			// Win and UNIX don't have a visible offset. Make sure we know about the failure,
 2004|       |			// then try using the current date/time as a close fallback.
 2005|      0|			ttTime = ansi_time(0);
  ------------------
  |  |   69|      0|	#define ansi_time		time
  ------------------
 2006|      0|			if ( ttTime == -1 ) XMP_Throw ( "Failure from ANSI C time function", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (2006:9): [True: 0, False: 0]
  ------------------
 2007|      0|			ansi_localtime ( &ttTime, &tmx );
  ------------------
  |  |   74|      0|	#define ansi_localtime	localtime_r
  ------------------
 2008|      0|			ansi_gmtime ( &ttTime, &tmy );
  ------------------
  |  |   73|      0|	#define ansi_gmtime		gmtime_r
  ------------------
 2009|      0|			tmx.tm_isdst = tmy.tm_isdst = 0;
 2010|      0|			ttx = ansi_mktime ( &tmx );
  ------------------
  |  |   70|      0|	#define ansi_mktime		mktime
  ------------------
 2011|      0|			tty = ansi_mktime ( &tmy );
  ------------------
  |  |   70|      0|	#define ansi_mktime		mktime
  ------------------
 2012|      0|			if ( (ttx == -1) || (tty == -1) ) XMP_Throw ( "Failure from ANSI C mktime function", kXMPErr_ExternalFailure );
  ------------------
  |  |  199|      0|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (2012:9): [True: 0, False: 0]
  |  Branch (2012:24): [True: 0, False: 0]
  ------------------
 2013|      0|			diffSecs = ansi_difftime ( ttx, tty );
  ------------------
  |  |   71|      0|	#define ansi_difftime	difftime
  ------------------
 2014|      0|		#endif
 2015|      0|	}
 2016|       |
 2017|     71|	if ( diffSecs > 0.0 ) {
  ------------------
  |  Branch (2017:7): [True: 0, False: 71]
  ------------------
 2018|      0|		xmpTime->tzSign = kXMP_TimeEastOfUTC;
 2019|     71|	} else if ( diffSecs == 0.0 ) {
  ------------------
  |  Branch (2019:14): [True: 71, False: 0]
  ------------------
 2020|     71|		xmpTime->tzSign = kXMP_TimeIsUTC;
 2021|     71|	} else {
 2022|      0|		xmpTime->tzSign = kXMP_TimeWestOfUTC;
 2023|      0|		diffSecs = -diffSecs;
 2024|      0|	}
 2025|     71|	xmpTime->tzHour = XMP_Int32 ( diffSecs / 3600.0 );
 2026|     71|	xmpTime->tzMinute = XMP_Int32 ( (diffSecs / 60.0) - (xmpTime->tzHour * 60.0) );
 2027|       |
 2028|       |	// *** Save the tm_isdst flag in a qualifier?
 2029|       |
 2030|     71|	XMP_Assert ( (0 <= xmpTime->tzHour) && (xmpTime->tzHour <= 23) );
  ------------------
  |  |  142|     71|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2031|     71|	XMP_Assert ( (0 <= xmpTime->tzMinute) && (xmpTime->tzMinute <= 59) );
  ------------------
  |  |  142|     71|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2032|     71|	XMP_Assert ( (-1 <= xmpTime->tzSign) && (xmpTime->tzSign <= +1) );
  ------------------
  |  |  142|     71|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2033|     71|	XMP_Assert ( (xmpTime->tzSign == 0) ? ((xmpTime->tzHour == 0) && (xmpTime->tzMinute == 0)) :
  ------------------
  |  |  142|     71|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2034|     71|										  ((xmpTime->tzHour != 0) || (xmpTime->tzMinute != 0)) );
 2035|       |
 2036|     71|}	// SetTimeZone
_ZN8XMPUtils16ConvertToUTCTimeEP12XMP_DateTime:
 2045|     51|{
 2046|     51|	XMP_Assert ( time != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2047|       |
 2048|     51|	XMP_Assert ( (0 <= time->tzHour) && (time->tzHour <= 23) );
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2049|     51|	XMP_Assert ( (0 <= time->tzMinute) && (time->tzMinute <= 59) );
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2050|     51|	XMP_Assert ( (-1 <= time->tzSign) && (time->tzSign <= +1) );
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2051|     51|	XMP_Assert ( (time->tzSign == 0) ? ((time->tzHour == 0) && (time->tzMinute == 0)) :
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2052|     51|									   ((time->tzHour != 0) || (time->tzMinute != 0)) );
 2053|       |
 2054|     51|	if ( time->tzSign == kXMP_TimeEastOfUTC ) {
  ------------------
  |  Branch (2054:7): [True: 3, False: 48]
  ------------------
 2055|       |		// We are before (east of) GMT, subtract the offset from the time.
 2056|      3|		time->hour -= time->tzHour;
 2057|      3|		time->minute -= time->tzMinute;
 2058|     48|	} else if ( time->tzSign == kXMP_TimeWestOfUTC ) {
  ------------------
  |  Branch (2058:14): [True: 2, False: 46]
  ------------------
 2059|       |		// We are behind (west of) GMT, add the offset to the time.
 2060|      2|		time->hour += time->tzHour;
 2061|      2|		time->minute += time->tzMinute;
 2062|      2|	}
 2063|       |
 2064|     51|	AdjustTimeOverflow ( time );
 2065|     51|	time->tzSign = time->tzHour = time->tzMinute = 0;
 2066|       |
 2067|     51|}	// ConvertToUTCTime
_ZN8XMPUtils18ConvertToLocalTimeEP12XMP_DateTime:
 2076|     51|{
 2077|     51|	XMP_Assert ( time != 0 );	// ! Enforced by wrapper.
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2078|       |
 2079|     51|	XMP_Assert ( (0 <= time->tzHour) && (time->tzHour <= 23) );
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2080|     51|	XMP_Assert ( (0 <= time->tzMinute) && (time->tzMinute <= 59) );
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2081|     51|	XMP_Assert ( (-1 <= time->tzSign) && (time->tzSign <= +1) );
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2082|     51|	XMP_Assert ( (time->tzSign == 0) ? ((time->tzHour == 0) && (time->tzMinute == 0)) :
  ------------------
  |  |  142|     51|	#define XMP_Assert(c)	((void) 0)
  ------------------
 2083|     51|									   ((time->tzHour != 0) || (time->tzMinute != 0)) );
 2084|       |
 2085|     51|	ConvertToUTCTime ( time );	// The existing time zone might not be the local one.
 2086|     51|	SetTimeZone ( time );		// Fill in the local timezone offset, then adjust the time.
 2087|       |
 2088|     51|	if ( time->tzSign > 0 ) {
  ------------------
  |  Branch (2088:7): [True: 0, False: 51]
  ------------------
 2089|       |		// We are before (east of) GMT, add the offset to the time.
 2090|      0|		time->hour += time->tzHour;
 2091|      0|		time->minute += time->tzMinute;
 2092|     51|	} else if ( time->tzSign < 0 ) {
  ------------------
  |  Branch (2092:14): [True: 0, False: 51]
  ------------------
 2093|       |		// We are behind (west of) GMT, subtract the offset from the time.
 2094|      0|		time->hour -= time->tzHour;
 2095|      0|		time->minute -= time->tzMinute;
 2096|      0|	}
 2097|       |
 2098|     51|	AdjustTimeOverflow ( time );
 2099|       |
 2100|     51|}	// ConvertToLocalTime
XMPUtils.cpp:_ZL9GatherIntPKcPmS0_:
  368|    389|{
  369|    389|	size_t	 pos   = *_pos;
  370|    389|	XMP_Int32 value = 0;
  371|       |
  372|       |	// Limits for overflow checking. Assuming that the maximum value of XMP_Int32
  373|       |	// is 2147483647, then tens_upperbound == 214748364 and ones_upperbound == 7.
  374|       |	// Most of the time, we can just check that value < tens_upperbound to confirm
  375|       |	// that the calculation won't overflow, which makes the bounds checking more
  376|       |	// efficient for the common case.
  377|    389|	const XMP_Int32 tens_upperbound = std::numeric_limits<XMP_Int32>::max() / 10;
  378|    389|	const XMP_Int32 ones_upperbound = std::numeric_limits<XMP_Int32>::max() % 10;
  379|       |
  380|  5.97k|	for ( char ch = strValue[pos]; ('0' <= ch) && (ch <= '9'); ++pos, ch = strValue[pos] ) {
  ------------------
  |  Branch (380:33): [True: 5.77k, False: 195]
  |  Branch (380:48): [True: 5.60k, False: 171]
  ------------------
  381|  5.60k|		const XMP_Int32 digit = ch - '0';
  382|  5.60k|		if (value >= tens_upperbound) {
  ------------------
  |  Branch (382:7): [True: 45, False: 5.56k]
  ------------------
  383|     45|			if (value > tens_upperbound || digit > ones_upperbound) {
  ------------------
  |  Branch (383:8): [True: 19, False: 26]
  |  Branch (383:35): [True: 4, False: 22]
  ------------------
  384|     23|				XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     23|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  385|      0|			}
  386|     45|		}
  387|  5.58k|		value = (value * 10) + digit;
  388|  5.58k|	}
  389|       |
  390|    366|	if ( pos == *_pos ) XMP_Throw ( errMsg, kXMPErr_BadParam );
  ------------------
  |  |  199|     24|#define XMP_Throw(msg,id)	{ AnnounceThrow ( msg ); throw XMP_Error ( id, msg ); }
  ------------------
  |  Branch (390:7): [True: 24, False: 342]
  ------------------
  391|    342|	*_pos = pos;
  392|    342|	return value;
  393|       |
  394|    366|}	// GatherInt
XMPUtils.cpp:_ZL18AdjustTimeOverflowP12XMP_DateTime:
  214|    102|{
  215|    102|	enum { kBillion = 1000*1000*1000L };
  216|       |
  217|       |	// ----------------------------------------------------------------------------------------------
  218|       |	// To be safe against pathalogical overflow we first adjust from month to second, then from
  219|       |	// nanosecond back up to month. This leaves each value closer to zero before propagating into it.
  220|       |	// For example if the hour and minute are both near max, adjusting minutes first can cause the
  221|       |	// hour to overflow.
  222|       |
  223|       |	// ! Photoshop 8 creates "time only" values with zeros for year, month, and day.
  224|       |
  225|    102|	if ( (time->year != 0) || (time->month != 0) || (time->day != 0) ) {
  ------------------
  |  Branch (225:7): [True: 49, False: 53]
  |  Branch (225:28): [True: 3, False: 50]
  |  Branch (225:50): [True: 0, False: 50]
  ------------------
  226|       |
  227|     61|		while ( time->month < 1 ) {
  ------------------
  |  Branch (227:11): [True: 9, False: 52]
  ------------------
  228|      9|			time->year -= 1;
  229|      9|			time->month += 12;
  230|      9|		}
  231|       |
  232|     52|		while ( time->month > 12 ) {
  ------------------
  |  Branch (232:11): [True: 0, False: 52]
  ------------------
  233|      0|			time->year += 1;
  234|      0|			time->month -= 12;
  235|      0|		}
  236|       |
  237|     72|		while ( time->day < 1 ) {
  ------------------
  |  Branch (237:11): [True: 20, False: 52]
  ------------------
  238|     20|			time->month -= 1;
  239|     20|			if ( time->month < 1 ) {	// ! Keep the months in range for indexing daysInMonth!
  ------------------
  |  Branch (239:9): [True: 1, False: 19]
  ------------------
  240|      1|				time->year -= 1;
  241|      1|				time->month += 12;
  242|      1|			}
  243|     20|			time->day += DaysInMonth ( time->year, time->month );	// ! Decrement month before so index here is right!
  244|     20|		}
  245|       |
  246|     56|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (246:11): [True: 4, False: 52]
  ------------------
  247|      4|			time->day -= DaysInMonth ( time->year, time->month );	// ! Increment month after so index here is right!
  248|      4|			time->month += 1;
  249|      4|			if ( time->month > 12 ) {
  ------------------
  |  Branch (249:9): [True: 0, False: 4]
  ------------------
  250|      0|				time->year += 1;
  251|      0|				time->month -= 12;
  252|      0|			}
  253|      4|		}
  254|       |
  255|     52|	}
  256|       |
  257|    103|	while ( time->hour < 0 ) {
  ------------------
  |  Branch (257:10): [True: 1, False: 102]
  ------------------
  258|      1|		time->day -= 1;
  259|      1|		time->hour += 24;
  260|      1|	}
  261|       |
  262|    103|	while ( time->hour >= 24 ) {
  ------------------
  |  Branch (262:10): [True: 1, False: 102]
  ------------------
  263|      1|		time->day += 1;
  264|      1|		time->hour -= 24;
  265|      1|	}
  266|       |
  267|    105|	while ( time->minute < 0 ) {
  ------------------
  |  Branch (267:10): [True: 3, False: 102]
  ------------------
  268|      3|		time->hour -= 1;
  269|      3|		time->minute += 60;
  270|      3|	}
  271|       |
  272|    104|	while ( time->minute >= 60 ) {
  ------------------
  |  Branch (272:10): [True: 2, False: 102]
  ------------------
  273|      2|		time->hour += 1;
  274|      2|		time->minute -= 60;
  275|      2|	}
  276|       |
  277|    102|	while ( time->second < 0 ) {
  ------------------
  |  Branch (277:10): [True: 0, False: 102]
  ------------------
  278|      0|		time->minute -= 1;
  279|      0|		time->second += 60;
  280|      0|	}
  281|       |
  282|    102|	while ( time->second >= 60 ) {
  ------------------
  |  Branch (282:10): [True: 0, False: 102]
  ------------------
  283|      0|		time->minute += 1;
  284|      0|		time->second -= 60;
  285|      0|	}
  286|       |
  287|    102|	while ( time->nanoSecond < 0 ) {
  ------------------
  |  Branch (287:10): [True: 0, False: 102]
  ------------------
  288|      0|		time->second -= 1;
  289|      0|		time->nanoSecond += kBillion;
  290|      0|	}
  291|       |
  292|    102|	while ( time->nanoSecond >= kBillion ) {
  ------------------
  |  Branch (292:10): [True: 0, False: 102]
  ------------------
  293|      0|		time->second += 1;
  294|      0|		time->nanoSecond -= kBillion;
  295|      0|	}
  296|       |
  297|    102|	while ( time->second < 0 ) {
  ------------------
  |  Branch (297:10): [True: 0, False: 102]
  ------------------
  298|      0|		time->minute -= 1;
  299|      0|		time->second += 60;
  300|      0|	}
  301|       |
  302|    102|	while ( time->second >= 60 ) {
  ------------------
  |  Branch (302:10): [True: 0, False: 102]
  ------------------
  303|      0|		time->minute += 1;
  304|      0|		time->second -= 60;
  305|      0|	}
  306|       |
  307|    102|	while ( time->minute < 0 ) {
  ------------------
  |  Branch (307:10): [True: 0, False: 102]
  ------------------
  308|      0|		time->hour -= 1;
  309|      0|		time->minute += 60;
  310|      0|	}
  311|       |
  312|    102|	while ( time->minute >= 60 ) {
  ------------------
  |  Branch (312:10): [True: 0, False: 102]
  ------------------
  313|      0|		time->hour += 1;
  314|      0|		time->minute -= 60;
  315|      0|	}
  316|       |
  317|    103|	while ( time->hour < 0 ) {
  ------------------
  |  Branch (317:10): [True: 1, False: 102]
  ------------------
  318|      1|		time->day -= 1;
  319|      1|		time->hour += 24;
  320|      1|	}
  321|       |
  322|    103|	while ( time->hour >= 24 ) {
  ------------------
  |  Branch (322:10): [True: 1, False: 102]
  ------------------
  323|      1|		time->day += 1;
  324|      1|		time->hour -= 24;
  325|      1|	}
  326|       |
  327|    102|	if ( (time->year != 0) || (time->month != 0) || (time->day != 0) ) {
  ------------------
  |  Branch (327:7): [True: 48, False: 54]
  |  Branch (327:28): [True: 4, False: 50]
  |  Branch (327:50): [True: 4, False: 46]
  ------------------
  328|       |
  329|     60|		while ( time->month < 1 ) { // Make sure the months are OK first, for DaysInMonth.
  ------------------
  |  Branch (329:11): [True: 4, False: 56]
  ------------------
  330|      4|			time->year -= 1;
  331|      4|			time->month += 12;
  332|      4|		}
  333|       |
  334|     56|		while ( time->month > 12 ) {
  ------------------
  |  Branch (334:11): [True: 0, False: 56]
  ------------------
  335|      0|			time->year += 1;
  336|      0|			time->month -= 12;
  337|      0|		}
  338|       |
  339|     58|		while ( time->day < 1 ) {
  ------------------
  |  Branch (339:11): [True: 2, False: 56]
  ------------------
  340|      2|			time->month -= 1;
  341|      2|			if ( time->month < 1 ) {
  ------------------
  |  Branch (341:9): [True: 0, False: 2]
  ------------------
  342|      0|				time->year -= 1;
  343|      0|				time->month += 12;
  344|      0|			}
  345|      2|			time->day += DaysInMonth ( time->year, time->month );
  346|      2|		}
  347|       |
  348|     56|		while ( time->day > DaysInMonth ( time->year, time->month ) ) {
  ------------------
  |  Branch (348:11): [True: 0, False: 56]
  ------------------
  349|      0|			time->day -= DaysInMonth ( time->year, time->month );
  350|      0|			time->month += 1;
  351|      0|			if ( time->month > 12 ) {
  ------------------
  |  Branch (351:9): [True: 0, False: 0]
  ------------------
  352|      0|				time->year += 1;
  353|      0|				time->month -= 12;
  354|      0|			}
  355|      0|		}
  356|       |
  357|     56|	}
  358|       |
  359|    102|}	// AdjustTimeOverflow
XMPUtils.cpp:_ZL11DaysInMonthii:
  195|    138|{
  196|       |
  197|    138|	static short	daysInMonth[13] = { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 };
  198|       |									   // Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
  199|       |
  200|    138|	int days = daysInMonth [ month ];
  201|    138|	if ( (month == 2) && IsLeapYear ( year ) ) days += 1;
  ------------------
  |  Branch (201:7): [True: 58, False: 80]
  |  Branch (201:23): [True: 19, False: 39]
  ------------------
  202|       |
  203|    138|	return days;
  204|       |
  205|    138|}	// DaysInMonth
XMPUtils.cpp:_ZL10IsLeapYearl:
  176|     58|{
  177|       |	// This code uses the Gregorian calendar algorithm:
  178|       |	// https://en.wikipedia.org/wiki/Leap_year#Algorithm
  179|       |
  180|     58|	if ( (year % 4) != 0 ) return false;	// Not a multiple of 4.
  ------------------
  |  Branch (180:7): [True: 32, False: 26]
  ------------------
  181|     26|	if ( (year % 100) != 0 ) return true;	// A multiple of 4 but not a multiple of 100.
  ------------------
  |  Branch (181:7): [True: 12, False: 14]
  ------------------
  182|     14|	if ( (year % 400) == 0 ) return true;	// A multiple of 400.
  ------------------
  |  Branch (182:7): [True: 7, False: 7]
  ------------------
  183|       |
  184|      7|	return false;							// A multiple of 100 but not a multiple of 400.
  185|       |
  186|     14|}	// IsLeapYear

